/* ==========================================================================
   2. HERO SECTION
   ========================================================================== */
#hero {
    position: relative;
    width: 100%;
    /* Padding-based height prevents iOS Safari vh rendering bugs */
    padding: 80px 5% 100px 5%;
    box-sizing: border-box;

    background-image: url("6-new-hero.PNG");
    /* cover guarantees the background always fills the box without shrinking or white gaps */
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    
    display: flex;
    align-items: center;
    min-height: 75vh;
}

.hero-info {
    max-width: 580px;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

#hero h1 {
    color: #435635;
    font-family: "PT Serif", serif;
    font-weight: 500;
    /* Scales fluidly across screen sizes so it never overflows */
    font-size: clamp(1.75rem, 4.5vw, 3.2rem);
    line-height: 1.15;
    margin: 0 0 16px 0;
}

.hero-word-natural {
    color: #a62b2b;
}

#hero h2 {
    color: #435635;
    font-family: "PT Serif", serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    line-height: 1.5;
    margin: 0 0 24px 0;
    max-width: 100%;
}

.hero-benefits {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 28px;
}

.benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Update these rules in your CSS */

.benefit i {
    /* Fluid icon sizing: ranges smoothly from 1.1rem up to 1.4rem */
    font-size: clamp(1.1rem, 3.5vw, 1.4rem);
    color: #435635;
    margin-bottom: 6px;
}

.benefit p {
    margin: 0;
    font-family: "PT Serif", serif;
    /* Fluid text sizing: scales down dynamically on mobile from 0.75rem to 0.65rem */
    font-size: clamp(0.65rem, 2.2vw, 0.75rem);
    color: #435635;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.25;
}

/* Ensure mobile rules keep the clean proportion */
@media (max-width: 480px) {
    .hero-benefits {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 10px; /* Slightly tighter gap for mobile */
        justify-content: start;
    }

    .benefit i {
        font-size: 1.1rem; /* Tidy icon size on phones */
    }

    .benefit p {
        font-size: 0.68rem; /* Perfectly proportioned text size on phones */
    }
}

.btn-shop-now {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px 24px;
}

.btn-shop-now a {
    text-decoration: none;
    background-color: #435635;
    color: white;
    padding: 12px 28px;
    border-radius: 4px;
    font-family: "PT Serif", serif;
    white-space: nowrap;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

.btn-shop-now a:hover {
    background-color: #324127;
}

.hero-measure {
    color: #435635;
    font-family: "PT Serif", serif;
    font-weight: 300;
    font-size: 0.95rem;
}

/* ==========================================================================
   3. BENEFITS BANNER
   ========================================================================== */
.benefits-banner {
    /* Changed from full width to max-width with auto-margin for rounding */
    max-width: 1300px;
    width: 90%; /* Leaves slight gap on side before hitting max-width */
    background-color: #f4f3eb;
    margin: 40px auto 40px auto;
    padding: 30px 5%;
    box-sizing: border-box;
    
    /* ADDED BORDER RADIUS */
    border-radius: 12px;
    border: 1px solid rgba(67, 86, 53, 0.12); /* Subtle full border instead of just top/bottom */

    /* Responsive Grid: 4 columns across on desktop */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.feature-item i {
    font-size: 1.8rem;
    color: #435635;
    flex-shrink: 0;
}

.feature-item p {
    font-family: "PT Serif", serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #435635;
    margin: 0;
    line-height: 1.35;
}

/* ==========================================================================
   4. INGREDIENTS SECTION
   ========================================================================== */
#ingredients-boxes {
    padding: 3rem 1.5rem;
    text-align: center;
}

.ingredients-section h2 {
    font-family: "PT Serif", serif;
    color: #435635;
    font-size: 1.5rem;
}

.ingredients-section h3 {
    font-family: "PT Serif", serif;
    font-size: 0.9rem;
    font-weight: 500;
    padding-bottom: 2vh;
}

.ingredients-row {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    justify-content: center;
}

.ingredients-row::-webkit-scrollbar { 
    height: 4px; 
}

.ingredients-row::-webkit-scrollbar-thumb { 
    background: #d4a017; 
    border-radius: 2px; 
}

.ingredients-row > div {
    width: 150px;
    flex-shrink: 0;
    background: #fff;
    border: 0.5px solid #d4a017;
    border-radius: 12px;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.ingredients-row img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 1.5px solid #d4a017;
    object-fit: cover;
}

.ingredients-row h4 {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.04em;
    color: #435635;
}

.ingredients-row p {
    font-size: 12px;
    color: #000000;
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   5. REVIEWS SECTION
   ========================================================================== */
#reviews {
    padding: 3rem 1.5rem;
    text-align: center;
}

#reviews h2 {
    margin: 0 0 1.25rem;
    color: #435635;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

#reviews h2::before,
#reviews h2::after {
    content: '';
    flex: 1;
    height: 2px;
    background-color: #d4a017;
}

.review-boxes {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: none;
}

.review-boxes::-webkit-scrollbar {
    display: none;
}

.review-boxes > div {
    border: 0.5px solid #d4a017;
    border-radius: 12px;
    padding: 1.25rem;
    width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.review-boxes > div p:first-child {
    color: #d4a017;
    font-size: 18px;
    letter-spacing: 2px;
    margin: 0;
}

.review-boxes > div p {
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.view-reviews-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    background-color: #435635;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 200;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease;
}

.view-reviews-btn:hover {
    background-color: #324127;
}
/* ==========================================================================
   6. MOBILE OVERRIDES (Triggers strictly on phone screens under 480px)
   ========================================================================== */
@media (max-width: 480px) {

    #hero {
        min-height: auto;
        padding: 40px 16px 50px 16px;
        background-position: center center;
        margin-bottom: 30px !important;
    }

    .hero-info {
        background: none;
        padding: 0;
        border-radius: 0;
        backdrop-filter: none;
        text-align: left;
    }

    /* Switches to 2x2 grid strictly on narrow phone screens */
    .hero-benefits {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 10px;
        justify-content: start;
    }

    .benefit {
        align-items: flex-start;
        text-align: left;
    }

    .btn-shop-now {
        justify-content: flex-start;
    }

    .benefits-banner {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 12px;
        padding: 24px 16px;
        width: 92%;
        margin-bottom: 30px;
    }

    .feature-item {
        justify-content: flex-start;
    }

    .ingredients-row {
        justify-content: flex-start;
    }

    .ingredients-row > div {
        width: 135px;
    }

    .review-boxes {
        justify-content: flex-start;
    }

    .review-boxes > div {
        width: 200px;
    }
}

@media (max-width: 380px) {
    /* Tight mobile displays (e.g. iPhone SE) */
    .benefits-banner {
        grid-template-columns: 1fr; /* Stacks to single column on very small screens */
    }
}

@media (max-width: 768px) {
    .benefits-banner {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 12px;
        padding: 24px 16px;
        width: 92%;
        
        /* Spacing for mobile screens */
        margin: 25px auto 30px auto;
    }
}