/* ==========================================================
   SAM MARBLES & GRANITES
   products.css
   Theme : Blue & White
========================================================== */

:root {
    --primary-blue: #0d6efd;
    --secondary-blue: #0a4fb5;
    --dark-blue: #052c65;
    --light-blue: #f3f8ff;
    --white: #ffffff;
    --text-color: #444444;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* ==========================================================
   COMMON SECTION STYLES
========================================================== */

section {
    padding: 70px 8%;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.7rem;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.section-title h3 {
    font-size: 1.2rem;
    color: var(--primary-blue);
    font-weight: 500;
    max-width: 900px;
    margin: auto;
    line-height: 1.7;
}

.section-description {
    max-width: 1100px;
    margin: auto;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-color);
}

/* ==========================================================
   HERO SECTION
========================================================== */

.products-hero {
    background: var(--light-blue);
}

/* ==========================================================
   IMAGE GALLERY
========================================================== */

.gallery-section {
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-6px);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

/* ==========================================================
   PRODUCT SECTIONS
========================================================== */

.product-section {
    background: var(--light-blue);
}

.alternate-bg {
    background: var(--white);
}

.product-card {
    max-width: 1100px;
    margin: auto;
    background: var(--white);
    padding: 50px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.alternate-bg .product-card {
    background: var(--light-blue);
}

.product-content h2 {
    color: var(--dark-blue);
    font-size: 2rem;
    margin-bottom: 25px;
}

.product-content p {
    color: var(--text-color);
    line-height: 2;
    font-size: 1.05rem;
    margin-bottom: 20px;
    text-align: justify;
}

/* ==========================================================
   CONTACT SECTION
========================================================== */

.contact-section {
    background: var(--white);
}

.contact-box {
    max-width: 900px;
    margin: auto;
    padding: 60px 40px;
    border-radius: 18px;
    text-align: center;
    color: var(--white);

    background: linear-gradient(
        135deg,
        var(--primary-blue),
        var(--secondary-blue)
    );

    box-shadow: var(--shadow);
}

.contact-box h2 {
    font-size: 2.3rem;
    margin-bottom: 20px;
}

.contact-box p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 30px;
}

.contact-btn {
    display: inline-block;
    padding: 14px 35px;
    background: var(--white);
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: 0.3s ease;
}

.contact-btn:hover {
    background: var(--dark-blue);
    color: var(--white);
}

/* ==========================================================
   RESPONSIVE DESIGN
========================================================== */

@media (max-width: 992px) {

    section {
        padding: 60px 6%;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .product-card {
        padding: 40px;
    }

    .gallery-item img {
        height: 220px;
    }

}

@media (max-width: 768px) {

    section {
        padding: 50px 5%;
    }

    .section-title h2 {
        font-size: 1.9rem;
    }

    .section-title h3 {
        font-size: 1.05rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 200px;
    }

    .product-card {
        padding: 30px;
    }

    .product-content h2 {
        font-size: 1.7rem;
    }

    .contact-box {
        padding: 40px 25px;
    }

    .contact-box h2 {
        font-size: 1.8rem;
    }

}

@media (max-width: 480px) {

    .section-title h2 {
        font-size: 1.6rem;
    }

    .product-content h2 {
        font-size: 1.5rem;
    }

    .product-content p {
        text-align: left;
        font-size: 1rem;
    }

    .gallery-item img {
        height: 180px;
    }

    .contact-box h2 {
        font-size: 1.5rem;
    }

}
