:root {
    --header-height: 60px;
    --navbar-height: 40px;
}

/* HERO SECTION */
.hero-section {
    width: 100%;
    height: calc(100vh - var(--header-height) - var(--navbar-height));
    display: flex;
    align-items: top;
    background: linear-gradient(to bottom, #6f7f6b, #dfe4df);
    position: relative;
    overflow: hidden;
}

/* LEFT CONTENT */
.hero-content {
    flex: -3;
    padding: 100px;
    color: #fff;
}

.hero-content h1 {
    font-size: 46px;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 30px;
    margin-bottom: 15px;
}

.hero-meta {
    display: flex;
    gap: 10px;
    font-size: 20px;
    opacity: 1;

}

/* RIGHT IMAGE */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: top;
}

.hero-image img {
    max-height: 90%;
    max-width: 90%;
    object-fit: contain;
}

/* ARROWS */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-150%);
    background: rgba(0,0,0,0.3);
    border: none;
    color: #fff;
    font-size: 40px;
    width: 50px;
    height: 80px;
    cursor: pointer;
}

.hero-arrow.left { left: 10px; }
.hero-arrow.right { right: 10px; }

@media (max-width: 768px) {

    :root {
        --header-height: 110px;
        --navbar-height: 40px;
    }

    .hero-section {
        flex-direction: column;
        padding: 20px;
        height: calc(100vh - var(--header-height) - var(--navbar-height));
    }

    .hero-content {
        padding: 20px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 26px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .hero-image img {
        max-height: 250px;
    }
    .hero-meta{
            flex-wrap: wrap;
    justify-content:center;
    }
}

@media (max-width: 768px) {

    .full-section {
        height: calc(100vh - var(--header-height) - var(--navbar-height));
        padding: 20px;
    }

    .section-inner h2 {
        font-size: 24px;
    }

    .section-inner p {
        font-size: 16px;
    }
}



/* ================= PRODUCT SECTIONS (FIXED) ================= */

/* Ensure hero & background create stacking context */
.hero-section,
.light-section {
    position: relative;
}

/* BASE PRODUCT SECTION — NORMAL FLOW */
.product-overlay {
    position: relative;
    z-index: 1;
    margin: 60px 0;   /* proper vertical spacing */
    background-colour:#e6f0e2;
}

/* ONLY FIRST PRODUCT SECTION FLOATS */
.product-overlay.overlay-main {
    margin-top: -25vh;   /* overlaps hero bottom */
    margin-bottom: 60px; /* DO NOT pull next section */
    z-index: 10;
}

/* GRID */
.product-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* CARD */
.product-card {
    background: #fff;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* CARD TITLE */
.product-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* INNER GRID */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.card-grid img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.card-grid p {
    font-size: 13px;
    margin: 4px 0 0;
}

/* LINK */
.product-card a {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    color: #007185;
    text-decoration: none;
}

/* ================= RESPONSIVE ================= */

/* TABLET */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE */
@media (max-width: 768px) {

    /* ONLY FIRST PRODUCT FLOATS */
    .product-overlay.overlay-main {
        margin-top: -15vh;
        margin-bottom: 40px;
    }

    /* NORMAL SECTIONS STACK */
    .product-overlay {
        margin: 40px 0;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .card-grid img {
        height: 100px;
    }
}



