/* --- Brand Colors & Variables --- */
:root {
    --color-primary-dark: #6b4226; /* Dark Brown (Main Nav/Footer Color) */
    --color-secondary-light: #d4a373; /* Mid-Tone Tan */
    --color-accent-cream: #f8edeb; /* Light Cream/Off-White */
    --color-text-dark: #333;
    --color-text-light: #fff;
    --nav-icon-size: 50px;
    --spacing-lg: 3rem;
    --color-swirl-particle: rgba(212, 163, 115, 0.35); /* Swirl Color */
    --color-pulse-darker: #5f3b20; 
    --color-interaction-glow: #f8edeb; 
}

/* --- CRITICAL GLOBAL RESET (Fixes bottom spacing and horizontal overflow) --- */
html {
    overflow-x: hidden;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: var(--color-accent-cream);
    
    /* --- STICKY FOOTER SOLUTION: PART 1 --- */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--color-primary-dark);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary-light);
}

/* --- MAIN Content Styling --- */
#page-content {
    /* --- STICKY FOOTER SOLUTION: PART 2 --- */
    flex-grow: 1; 
    padding: 0; /* Ensures sections control their own padding */
    text-align: center;
}

/* General Section Styling */
.content-section {
    padding: var(--spacing-lg) 5vw; /* Consistent padding across all main sections */
    max-width: 1200px; 
    margin: 0 auto;
    text-align: left;
}
.content-section h2 {
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
    font-size: 2rem;
    text-align: center;
}
.hero-section {
    padding: 6rem 0;
}
.agency-title {
    font-size: 3.5rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
}
.agency-tagline {
    font-size: 1.3rem;
    color: var(--color-secondary-light);
    margin-bottom: 2rem;
}
.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
    border-radius: 5px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}
.cta-button:hover {
    background-color: var(--color-secondary-light);
    color: var(--color-primary-dark);
}


/* --- 2A. FLOATING NAV ICON (Trigger) --- */
#floating-nav-icon {
    position: fixed;
    top: 25px; 
    right: 25px; 
    width: var(--nav-icon-size);
    height: var(--nav-icon-size);
    background-color: var(--color-secondary-light);
    color: var(--color-text-light);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s, transform 0.3s;
}
.chef-heart-icon {
    font-size: 1.5rem; 
}
/* Visibility Control: Hide/Show on Scroll Up/Down */
#floating-nav-icon.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none; 
}

/* --- 2B. NAVIGATION MENU (Overlay) - FINAL SIZE 1.3rem --- */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary-dark);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    /* CRITICAL FIX: Align items to the center horizontally, but start from the top vertically */
    align-items: center; 
    justify-content: flex-start; /* FIX: Starts content from the top */
    animation: backgroundPulse 5s ease-in-out infinite alternate; 
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    padding-top: 50px; 
    padding-bottom: 20px; /* Add bottom padding for content breathing room */
}
@keyframes backgroundPulse {
    0% {
        background-color: var(--color-primary-dark);
    }
    100% {
        background-color: var(--color-pulse-darker);
    }
}
.nav-overlay.open {
    transform: translateX(0); 
}

/* Close button remains isolated */
.close-btn {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 2.5rem; 
    background: none;
    border: none;
    color: var(--color-secondary-light);
    cursor: pointer;
    opacity: 1;
    transition: transform 0.3s, opacity 0.3s, color 0.1s, text-shadow 0.1s;
    z-index: 1010; 
}
.close-btn:hover {
    color: var(--color-accent-cream);
    transform: rotate(90deg);
}
.close-btn:active {
    color: var(--color-accent-cream);
    text-shadow: 0 0 10px var(--color-interaction-glow); 
    transform: rotate(90deg) scale(1.05);
}

.overlay-menu ul {
    list-style: none;
    padding: 0;
    margin: 0; 
    text-align: center;
}
.overlay-menu li {
    /* Adjusted margin for 1.3rem text */
    margin: 0.1rem 0; 
}

/* --- FINAL PERFECTED MAIN LINK STYLING (1.3rem) --- */
.overlay-menu a {
    color: var(--color-text-light);
    /* **FINAL DESIRED SIZE: 1.3rem, FORCED for reliability** */
    font-size: 1.3rem !important; 
    font-weight: 700; 
    display: inline-block;
    /* Adjusted padding for 1.3rem font */
    padding: 0.3rem 0 !important; 
    letter-spacing: 2px; 
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s, text-shadow 0.3s; 
    line-height: 1.2 !important; 
}
.overlay-menu a::after {
    display: none; 
}
.overlay-menu a:hover,
.overlay-menu a.active-page { /* *** NEW: Apply glow to the current page link *** */
    color: var(--color-secondary-light);
    text-shadow: 0 0 10px var(--color-secondary-light); 
}
.overlay-menu a:hover::after {
    width: 0; 
}

/* --- Menu Divider Style (Refined Spacing) --- */
.menu-divider {
    border: none; 
    border-top: 1px solid rgba(255, 255, 255, 0.15); 
    width: 60%; 
    /* Adjusted margin for better breathing room */
    margin: 0.8rem auto; 
}


.overlay-tagline {
    margin-top: 2.0rem; 
    color: var(--color-secondary-light);
    font-style: italic;
    font-size: 0.85rem; 
    opacity: 0.7;
}

/* --- STEAM BACKGROUND STYLES (Unchanged) --- */
.steam-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
    overflow: hidden;
    pointer-events: none; 
}
.steam-background div {
    position: absolute;
    display: block;
    list-style: none;
    border-radius: 50%; 
    background: var(--color-swirl-particle); 
    bottom: -150px;
    animation: animateSwirl 35s linear infinite; 
    opacity: 0;
    filter: blur(5px); 
}
.steam-background div:nth-child(1) {
    left: 15%; width: 100px; height: 100px; animation-delay: 0s;
}
.steam-background div:nth-child(2) {
    left: 85%; width: 50px; height: 50px; animation-delay: 5s; animation-duration: 20s;
}
.steam-background div:nth-child(3) {
    left: 40%; width: 150px; height: 150px; animation-delay: 10s; animation-duration: 50s;
}
.steam-background div:nth-child(4) {
    left: 70%; width: 80px; height: 80px; animation-delay: 2s; animation-duration: 30s;
}
.steam-background div:nth-child(5) {
    left: 5%; width: 60px; height: 60px; animation-delay: 15s;
}
.steam-background div:nth-child(6) {
    left: 60%; width: 120px; height: 120px; animation-delay: 8s; animation-duration: 60s;
}
.steam-background div:nth-child(7) {
    left: 25%; width: 90px; height: 90px; animation-delay: 12s; animation-duration: 45s;
}
.steam-background div:nth-child(8) {
    left: 95%; width: 70px; height: 70px; animation-delay: 20s;
}
@keyframes animateSwirl {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    30% {
        opacity: 0.9;
    }
    100% {
        transform: translateY(-100vh) translateX(50px) rotate(360deg); 
        opacity: 0;
    }
}

/* --- NEW: Brand Header Styling (Inserted Here) --- */
.nav-brand-header {
    margin-bottom: 2rem; /* Spacing between brand and first link */
    padding-top: 2rem; /* Ensures space below the close button */
}

.nav-brand-header h1 {
    font-family: 'Playfair Display', serif; /* Use your display font */
    font-size: 2.2rem;
    color: var(--color-accent-cream); /* Light cream text for high contrast */
    font-weight: 700;
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(248, 237, 235, 0.4); /* Subtle glow effect */
}

/* --- FIX: SUBMENU TEXT SIZE HIERARCHY --- */
.submenu-item-text {
    /* Set size smaller than the new main links (1.3rem) */
    font-size: 0.9rem; 
    font-weight: 300; 
    padding: 3px 0;
    opacity: 0.7;
    /* CRITICAL FIX: Ensure the size is not overridden by a parent body/ul style */
    font-size: 0.9rem !important; 
}

/* FIX: Mobile Optimization (FINAL PERFECTED SIZE) */
@media (max-height: 700px) and (max-width: 480px) {
    .close-btn {
        top: 10px; 
        right: 20px;
    }
    .nav-overlay {
        padding-top: 30px; 
    }
    .overlay-menu li {
        margin: 0; 
    }
    .overlay-menu a {
        /* Mobile size: 1.1rem, FORCED */
        font-size: 1.1rem !important; 
        line-height: 1.2 !important; 
        padding: 0.3rem 0 !important; 
    }
    .menu-divider {
        margin: 0.5rem auto; 
    }
    .overlay-tagline {
        margin-top: 0.8rem; 
        font-size: 0.75rem;
    }
    /* FIX: Submenu text size on mobile */
    .submenu-item-text {
        font-size: 0.7rem !important;
    }
}

/* --- 3. STANDARDIZED FOOTER STYLES (Grid Layout Fix) --- */

.footer {
    background-color: var(--color-primary-dark); 
    color: var(--color-text-light);
    padding: 40px 20px;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-section {
    min-width: unset;
    text-align: left;
}
.footer-section h3 {
    color: var(--color-secondary-light);
    font-size: 1.1em;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 5px;
    font-weight: 600;
}
.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-secondary-light);
}
.footer-section p, .footer-section a, .footer-section ul li {
    color: var(--color-text-light);
    text-decoration: none;
    line-height: 1.8;
    transition: color 0.3s ease;
    font-size: 1em;
}
.footer-section a:hover {
    color: var(--color-secondary-light);
}
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-section ul li {
    margin-bottom: 8px;
}
.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: var(--color-text-light);
    font-size: 1.2em;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
}
.social-icons a:hover {
    background-color: var(--color-secondary-light);
    color: var(--color-primary-dark);
}
.footer-button {
    display: inline-block;
    background-color: var(--color-secondary-light);
    color: var(--color-primary-dark);
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
    margin-top: 0;
}
.footer-button:hover {
    background-color: var(--color-accent-cream);
    color: var(--color-primary-dark);
}
.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding-top: 1rem;
    margin-top: 2rem;
    font-size: 0.85rem;
}

/* --- Responsiveness (Footer) --- */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-section {
        text-align: center;
    }
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}
@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    .footer-section {
        text-align: center;
    }
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .social-icons {
        justify-content: center;
    }
}
/* --- HOMEPAGE SPECIFIC STYLING (Kinetic, High-Contrast Design - Final V3) --- */

/* Variables for new styles */
:root {
    --color-primary-light: #7c4c30; /* Primary slightly lighter for text contrast */
    --color-secondary-fade: rgba(212, 163, 115, 0.4); /* Used for particle fade */
    --color-texture-fade: #e9dbd6; /* Used for abstract texture */
}

/* General Layout & Text */
.home-section {
    padding: 6rem 5vw;
    max-width: 1400px; /* Wider view for high-end feel */
    margin: 0 auto;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.primary-heading {
    font-size: 2.8rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.primary-heading.light-heading {
    color: var(--color-text-light);
}

.secondary-heading {
    font-size: 2.2rem;
    color: var(--color-primary-light);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.secondary-heading.cta-intro-heading {
    font-style: italic;
    color: var(--color-secondary-light);
}

.body-text-standard {
    font-size: 1.05rem;
    color: var(--color-text-dark);
    max-width: 900px;
    margin: 0 auto 1.5rem;
    line-height: 1.7;
}

.light-text-body {
    color: var(--color-accent-cream);
}

/* Background Color Variants */
.secondary-bg-strip {
    background-color: var(--color-secondary-light);
}
.dark-bg-final {
    background-color: var(--color-primary-dark);
}

/* --- 2. HEADER/HERO SECTION (Video Background Implementation) --- */
.hero-full-height {
    min-height: 70vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    background-color: var(--color-primary-dark); 
    color: var(--color-text-light);
    padding: 0;
    margin: 0; /* FIX: Set margin to 0 */
    background-image: none;
    
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.25); 
    /* FIX: The margin-bottom property is now removed */
    
    position: relative; 
    overflow: hidden;
}

/* Darkening overlay for text readability over video */
.hero-full-height::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Revert to the original, subtle darkening (50%) */
    background: rgba(0, 0, 0, 0.5); 
    z-index: 5; 
}

/* Video Styling to cover the entire container */
.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1; 
    /* Revert to full opacity */
    opacity: 1;
}

/* Text Content Area remains the same below this line */
.hero-content-area {
    position: relative;
    z-index: 10;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5); 
    
    animation: titleScale 4s ease-in-out infinite alternate;
    background: rgba(255, 255, 255, 0.0);
    padding: 20px 40px;
    border-radius: 10px;
    backdrop-filter: none; 
}

.hero-title {
    font-size: 5rem;
    color: var(--color-accent-cream); 
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.6rem;
    color: var(--color-accent-cream); 
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

/* Animation and media queries remain the same below this line */


/* --- 3. IMAGE & BIO SECTION (High Contrast Bar) --- */
.bio-bar {
    padding: 0;
    /* FIX: Set margin-top to zero explicitly */
    margin: 0 auto; 
    /* FIX: Changed background to PRIMARY DARK for high contrast */
    background-color: var(--color-primary-dark); 
    color: var(--color-text-light);
    text-align: center;
}
.bio-text-bar {
    font-size: 1.8rem;
    font-weight: 500;
    /* FIX: Changed text color to LIGHT ACCENT for readability */
    color: var(--color-accent-cream); 
    padding: 2.5rem 5vw;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    font-style: italic; /* Adding style to emphasize the quote */
}


/* --- 4. ABOUT DIGIHIVZE SECTION --- */
.about-section {
    padding-top: 8rem;
    padding-bottom: 8rem;
}
.two-col-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    text-align: left;
    max-width: 1200px;
    align-items: center; 
}
.heading-separator {
    width: 60px;
    height: 3px;
    background-color: var(--color-secondary-light);
    margin-top: 10px;
    margin-bottom: 30px;
}
.abstract-texture {
    /* REMOVED: Old background-image and background-color */
    min-height: 350px;
    border-radius: 10px;
    /* Removed box-shadow to prevent double shadow */
}

/* New style for the actual image */
.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the container */
    display: block;
    /* Add a subtle shadow or border to frame the image */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); 
    border: 5px solid var(--color-accent-cream); /* Light border for definition */
}

/* Ensure mobile layout stacks correctly */
@media (max-width: 768px) {
    .two-col-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .heading-separator {
        /* Center separator on mobile */
        margin: 10px auto 30px auto; 
    }
}

/* --- 5. HOW WE WORK SECTION --- */
.centered-heading {
    text-align: center;
}
.centered-text {
    text-align: center;
}
.highlight-card {
    background-color: #fff;
    border-left: 5px solid var(--color-secondary-light);
    padding: 2.5rem;
    border-radius: 8px;
    max-width: 800px;
    margin: 3rem auto;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.highlight-subheading {
    font-size: 1.5rem;
    color: var(--color-secondary-light); /* Distinct styling */
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.highlight-body {
    font-size: 1.05rem;
}

/* Horizontal Process Flowchart/Timeline */
.process-flowchart {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 5rem;
    padding: 0 20px;
    position: relative;
}
.flow-step {
    flex: 1;
    position: relative;
    padding: 0 10px;
    text-align: center;
    z-index: 2;
}
.flow-icon {
    font-size: 2.5rem;
    color: var(--color-primary-dark);
    background-color: var(--color-accent-cream);
    border: 3px solid var(--color-primary-dark);
    border-radius: 50%;
    padding: 15px;
    margin-bottom: 15px;
    display: inline-block;
    transition: transform 0.3s;
}
.flow-step:hover .flow-icon {
    transform: translateY(-5px);
}
.flow-line {
    position: absolute;
    top: 35px; /* Aligns with the center of the icon */
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--color-secondary-light);
    margin: 0 50px; /* Gap for start/end points */
    z-index: 1;
}


/* --- 6. OUR VALUES SECTION --- */
.values-section {
    padding-top: 8rem;
    padding-bottom: 8rem;
}
.values-grid-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 4rem;
}
.value-card {
    background-color: var(--color-accent-cream);
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    border: 2px solid transparent;
}
.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary-dark);
}
.value-icon {
    font-size: 2.5rem;
    color: var(--color-primary-dark);
    margin-bottom: 15px;
}
.value-card h4 {
    font-size: 1.3rem;
    color: var(--color-primary-dark);
    margin-bottom: 10px;
}


/* --- 7. OUR GOAL SECTION (Quote Styling) --- */
.goal-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}
.quote-container {
    max-width: 900px;
    margin: 3rem auto 0;
    position: relative;
    padding: 30px 20px; 
    
    border-top: 3px solid var(--color-secondary-light); 
    border-bottom: 3px solid var(--color-secondary-light);
}
.goal-quote-text {
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.5;
    color: var(--color-primary-dark);
    padding: 0; 
    margin: 0 auto;
    max-width: 80%;
}

/* Updated Quote Mark Styling */
.open-quote, .close-quote {
    font-size: 6rem; 
    color: rgba(107, 66, 38, 0.15); 
    position: absolute;
    line-height: 1;
    z-index: 2; 
    font-weight: 300; 
}

.open-quote {
    /* FIX: Set TOP to 0 (aligns with the top line) and then shift DOWN using translateY */
    top: 0; 
    left: 20px; 
    /* This pushes the quote mark down exactly by its own height, making it rest below the line */
    transform: translateY(100%); 
    z-index: 0; 
}
.close-quote {
    /* FIX: Set BOTTOM to 0 (aligns with the bottom line) and then shift UP using translateY */
    bottom: 0; 
    right: 20px;
    /* This pulls the quote mark up exactly by its own height, making it rest above the line */
    transform: translateY(-100%);
}
/* ... rest of the CSS continues ... */


/* --- 8. WHY TRUST US? SECTION --- */
.trust-section {
    padding-top: 8rem;
    padding-bottom: 8rem;
}
.features-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px; /* Increased gap for better separation */
    margin-top: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.feature-box {
    flex-basis: calc(20% - 30px); /* 5 items per row on desktop */
    min-width: 200px; /* Slightly wider min width */
    background-color: var(--color-accent-cream);
    padding: 25px 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}
.feature-box:nth-child(even) {
    /* Subtle vertical shading differentiation removed for cleaner look */
    background-color: var(--color-accent-cream); 
}
.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
.feature-icon {
    font-size: 2.5rem; /* Slightly larger icon */
    color: var(--color-primary-dark);
    margin-bottom: 15px;
}
.feature-title {
    font-weight: 700;
    color: var(--color-primary-dark);
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.feature-detail {
    font-size: 0.95rem;
    color: var(--color-text-dark);
    line-height: 1.4;
}

/* --- Responsive adjustment for 8. WHY TRUST US? --- */
@media (max-width: 1024px) {
    .feature-box {
        flex-basis: calc(33.333% - 30px); /* 3 per row */
    }
}
@media (max-width: 768px) {
    .feature-box {
        flex-basis: calc(50% - 20px); /* 2 per row */
    }
}
@media (max-width: 480px) {
    .feature-box {
        flex-basis: 100%; /* 1 per row */
    }
}

/* --- 9. CALL TO ACTION (CTA) SECTION --- */
.cta-section {
    padding: 10rem 5vw;
    /* FIX: Changed background to the light accent color */
    background-color: var(--color-accent-cream); 
    color: var(--color-primary-dark); /* Default dark text for the section */
}
.cta-main-heading {
    /* FIX: Changed main heading color to primary dark for contrast */
    color: var(--color-primary-dark);
}
.cta-intro-heading {
    /* FIX: Changed intro heading color to primary dark for contrast */
    color: var(--color-primary-dark);
}
.body-text-standard.light-text-body {
    /* FIX: Overriding the previous light text color to use the dark primary color */
    color: var(--color-primary-dark);
}
.cta-final-button {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--color-primary-dark); /* Button remains dark primary */
    color: var(--color-text-light);
    border: 2px solid var(--color-primary-dark);
    border-radius: 50px; 
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2rem;
    transition: background-color 0.3s, color 0.3s;
}
.cta-final-button:hover {
    background-color: var(--color-secondary-light); /* Hover shifts to Secondary */
    color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

/* --- Responsive Adjustments (Final) --- */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
    .values-grid-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid {
        justify-content: space-around;
    }
}

@media (max-width: 768px) {
    .two-col-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .flow-line {
        display: none; /* Hide horizontal line */
    }
    .process-flowchart {
        flex-direction: column; /* Stack vertically */
        align-items: center;
    }
    .flow-step {
        width: 100%;
        margin-bottom: 30px;
        padding-bottom: 20px;
        border-bottom: 2px dashed var(--color-secondary-light);
    }
    .flow-step:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    .values-grid-cards {
        grid-template-columns: 1fr;
    }
    .features-grid {
        gap: 15px;
        justify-content: center;
    }
    .feature-box {
        flex-basis: calc(50% - 15px); /* 2 per row on tablet/mobile */
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .primary-heading {
        font-size: 2.2rem;
    }
    .bio-text-styled {
        font-size: 1.4rem;
    }
    .open-quote, .close-quote {
        font-size: 5rem;
    }
    .open-quote { top: -20px; }
    .close-quote { bottom: -40px; }
    .feature-box {
        flex-basis: 100%; /* 1 per row on small mobile */
    }
}

/* --- GLOBAL FONT CHANGE FOR NEW DESIGN --- */
body {
    /* Set the default font to Poppins/sans-serif for general text */
    font-family: 'Poppins', sans-serif; 
}
/* Ensure the agency-title uses the display font */
.agency-title {
    font-family: 'Playfair Display', serif;
}

/* --- NEW CONTACT PAGE STYLES (Digihivze Style) --- */

/* Re-using your color variables defined in :root */
:root {
    --dark: #3a2c1a;
    --gray: #5a4a42;
}

/* CONTACT SECTION STYLES */
.contact-section {
    max-width: 1300px;
    margin: 80px auto;
    padding: 40px 30px;
}
.section-header {
    text-align: center;
    margin-bottom: 70px;
}
.section-header h1 {
    font-size: 3.2rem;
    margin-bottom: 25px;
    color: var(--color-primary-dark); /* Use existing brand variable */
    position: relative;
    display: inline-block;
    font-family: 'Playfair Display', serif; /* Use display font for heading */
}
.section-header h1:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: var(--color-secondary-light); /* Use existing brand variable */
    border-radius: 2px;
}
.section-header p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--gray);
    font-family: 'Poppins', sans-serif;
}
.contact-container {
    display: grid;
    /* Adjusted for 4 columns + 1 spare for better flow on mid-screens */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 40px;
}
.contact-card {
    background: white;
    border-radius: 12px;
    padding: 40px 35px;
    box-shadow: 0 8px 25px rgba(107, 66, 38, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    border-top: 5px solid var(--color-secondary-light);
    border: 1px solid rgba(212, 163, 115, 0.3);
}
.contact-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px rgba(107, 66, 38, 0.15);
}
.contact-icon {
    width: 85px;
    height: 85px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 2.5rem;
}
.youtube-icon { background: #FF0000; }
.facebook-icon { background: #1877F2; }
/* .telegram-icon { background: #0088cc; } REMOVED */
.email-icon { background: var(--color-primary-dark); color: var(--color-accent-cream); }
.instagram-icon { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); }
.contact-card h3 { 
    color: var(--color-primary-dark); 
    margin-bottom: 20px; 
    font-size: 1.7rem; 
    font-family: 'Playfair Display', serif;
}
.contact-card p { 
    color: var(--gray); 
    margin-bottom: 30px; 
    font-size: 1.15rem; 
    line-height: 1.7;
    font-family: 'Poppins', sans-serif;
}
.contact-link {
    display: inline-block;
    background: linear-gradient(to right, var(--color-primary-dark), var(--color-secondary-light));
    color: var(--color-accent-cream);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--color-primary-dark);
    font-family: 'Poppins', sans-serif;
}
.contact-link:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(107, 66, 38, 0.3);
    background: linear-gradient(to right, var(--color-secondary-light), var(--color-primary-dark));
}
.social-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
}
.social-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(107, 66, 38, 0.2);
}
.social-btn:hover {
    transform: translateY(-8px) scale(1.1);
}
.youtube { background: #FF0000; }
.facebook { background: #1877F2; }
/* .telegram { background: #0088cc; } REMOVED */
.email { background: var(--color-primary-dark); color: var(--color-accent-cream); }

/* IMAGE SECTION STYLES */
.image-section {
    width: 100%;
    padding: 40px 0;
    text-align: center;
    background-color: var(--color-accent-cream);
}
.image-section img {
    max-width: 90%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments for the remaining content */
@media (max-width: 768px) {
    .contact-section { margin: 60px auto; padding: 30px 20px; }
    .section-header { margin-bottom: 50px; }
    .section-header h1 { font-size: 2.5rem; }
    .section-header p { font-size: 1.1rem; padding: 0 15px; }
    .contact-container { 
        /* Switch to 2 columns on mobile/tablet */
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
        gap: 20px;
    }
    .contact-card { padding: 30px; }
    .social-buttons { margin-top: 50px; }
    .image-section { padding: 30px 0; }
    .image-section img { max-width: 95%; }
}
/* Ensure single column stack on very small screens */
@media (max-width: 480px) {
    .contact-container { 
        grid-template-columns: 1fr;
    }
}

/* --- NEW STYLES FOR FAQ.HTML (Digihivze Style) --- */

/* Re-using your color variables defined in :root */
:root {
    --dark: #3a2c1a; 
    --gray: #5a4a42;
}

/* --- GLOBAL STYLES OVERRIDE/ADDITIONS --- */
body {
    /* Ensure Poppins is used for general text, Playfair for headers/titles */
    font-family: 'Poppins', sans-serif; 
}
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== FAQ HEADER ===== */
.faq-header {
    text-align: center;
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-secondary-light) 100%);
    color: var(--color-text-light);
    margin-bottom: 4rem;
}

.faq-header h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.faq-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.8;
    font-family: 'Poppins', sans-serif;
}

/* ===== Main Content Area (Image/Bio) ===== */
.main-content {
    flex-shrink: 0;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 3rem;
}

.food-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    object-fit: cover;
    width: clamp(280px, 90vw, 750px);
    aspect-ratio: 16 / 9;
    min-height: 250px;
}

.bio-text {
    max-width: 700px;
    margin-bottom: 20px;
    font-size: 1.6em;
    font-weight: 600;
    color: var(--color-primary-dark);
    line-height: 1.4;
    letter-spacing: 0.5px;
    font-family: 'Playfair Display', serif;
}

/* ===== FAQ SECTION (Accordion) ===== */
.faq-section {
    margin-bottom: 5rem;
}

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 3px 12px rgba(107, 66, 38, 0.07);
    overflow: hidden;
    border-left: 5px solid var(--color-primary-dark);
}

.faq-question {
    padding: 2rem 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    line-height: 1.8;
    font-family: 'Poppins', sans-serif;
}

.faq-question:hover {
    background-color: rgba(107, 66, 38, 0.04);
}

.faq-question::after {
    content: '+';
    font-size: 1.8rem;
    color: var(--color-secondary-light);
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-answer.show {
    padding: 0 2rem 2.5rem;
    max-height: 1000px; /* Reset this to be controlled by JS for smooth reveal */
}

.faq-answer p, .faq-answer ul, .faq-answer a {
    margin-bottom: 1.5rem;
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.8;
    font-family: 'Poppins', sans-serif;
}

.faq-answer ul {
    padding-left: 2rem;
    list-style: none; /* Removed default bullets */
}

.faq-answer li {
    margin-bottom: 1rem;
    position: relative;
    line-height: 1.8;
    padding-left: 2rem; /* Make space for custom bullet */
}

.faq-answer li::before {
    content: '✓';
    color: var(--color-secondary-light);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.highlight {
    background-color: rgba(107, 66, 38, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--color-secondary-light);
    line-height: 1.8;
}
.highlight p:last-child {
    margin-bottom: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(107, 66, 38, 0.03) 0%, rgba(212, 163, 115, 0.03) 100%);
    border-radius: 12px;
    margin: 4rem auto;
    max-width: 900px;
}

.cta-section h2 {
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    font-family: 'Playfair Display', serif;
}

.cta-section p {
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--gray);
    font-size: 1.15rem;
    line-height: 1.8;
    font-family: 'Poppins', sans-serif;
}

.btn {
    display: inline-block;
    background: var(--color-primary-dark);
    color: var(--color-text-light);
    padding: 1rem 2.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    margin: 0.4rem;
    font-family: 'Poppins', sans-serif;
}

.btn:hover {
    background: #5a3720;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(107, 66, 38, 0.15);
}

.btn-secondary {
    background: var(--color-secondary-light);
    color: var(--color-primary-dark);
}

.btn-secondary:hover {
    background: #c1915a;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .faq-header h1 {
        font-size: 2.4rem;
    }

    .bio-text {
        font-size: 1.3em;
    }

    .faq-question {
        font-size: 1.2rem;
        padding: 1.8rem;
    }

    .faq-answer {
        padding: 0 1.8rem;
    }

    .faq-answer li {
        padding-left: 1.8rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-section p {
        font-size: 1.1rem;
    }
}

/* --- CORRECTED INSTAGRAM SOCIAL BUTTON COLOR --- */
.social-btn.instagram {
    /* Instagram Gradient color with !important to ensure override */
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%) !important;
    border: 2px solid var(--color-text-light); /* Light border for contrast */
    color: white !important; /* Ensure the icon color is white */
}

/* --- NEW STYLES FOR AFFILIATES.HTML (Futuristic/High-Value Design) --- */

.affiliate-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* === HEADER/HERO SECTION === */
.affiliate-hero {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-secondary-light));
    color: var(--color-text-light);
    padding: 6rem 0 4rem;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.affiliate-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-accent-cream);
}

.affiliate-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: #fff;
    opacity: 0.9;
}

.affiliate-intro {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* === GENERAL SECTION STYLES === */
.affiliate-tiers-section {
    padding: 4rem 0 6rem;
    text-align: center;
}

.section-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--color-primary-dark);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-secondary-light);
    display: inline-block;
}

.program-note {
    font-size: 1.1rem;
    max-width: 900px;
    margin: 0 auto 3rem;
    color: var(--color-text-dark);
}

/* === COMMISSION TABLE === */
.commission-table-wrapper {
    margin: 3rem auto;
    max-width: 700px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.commission-table {
    width: 100%;
    border-collapse: collapse;
}

.commission-table th, .commission-table td {
    padding: 18px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.commission-table thead th {
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
    font-weight: 600;
    font-size: 1.1rem;
}

.commission-table tbody td {
    background-color: var(--color-accent-cream);
    border-bottom: 1px solid rgba(107, 66, 38, 0.1);
    color: var(--color-text-dark);
}

.commission-table tbody tr:last-child td {
    border-bottom: none;
}

/* TABLE NOTE BLOCKQUOTE */
.commission-note {
    background-color: rgba(212, 163, 115, 0.1); /* Light background using secondary color */
    border-left: 5px solid var(--color-secondary-light);
    padding: 1.5rem;
    margin: 3rem auto;
    max-width: 900px;
    text-align: left;
    font-style: italic;
    color: var(--color-gray);
    border-radius: 5px;
}


/* === TIER CARDS (Grid Layout) === */
.tier-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 5rem auto 3rem;
}

.tier-card {
    background-color: white;
    border-radius: 12px;
    padding: 2.5rem;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border-top: 8px solid;
    position: relative;
}

.tier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.tier-partner {
    border-color: var(--color-primary-dark);
}

.tier-inviter {
    border-color: var(--color-secondary-light);
}

.tier-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--color-primary-dark);
}

.tier-card h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: var(--color-secondary-light);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.tier-card ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.tier-card ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    line-height: 1.6;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--color-text-dark);
}

.tier-card ul li::before {
    content: "•";
    color: var(--color-secondary-light);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    position: absolute;
    left: 0;
}


/* === APPLICATION SECTION === */
.application-section {
    max-width: 900px;
    margin: 5rem auto;
    background-color: var(--color-accent-cream);
    padding: 3rem 4rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(107, 66, 38, 0.1);
}

.application-intro {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: var(--color-text-dark);
    text-align: center;
}

.application-steps {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-bottom: 3rem;
}

.application-steps li {
    background-color: white;
    padding: 15px 25px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    border-left: 5px solid var(--color-secondary-light);
}

.application-steps li strong {
    color: var(--color-primary-dark);
    font-weight: 600;
    display: inline-block;
    width: 150px;
}

.dashboard-info-box {
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: left;
}
.dashboard-info-box p {
    line-height: 1.6;
}

.application-email-details {
    line-height: 2;
    margin-bottom: 2rem;
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

/* CTA BUTTON */
.cta-apply-btn {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--color-secondary-light);
    color: var(--color-primary-dark);
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-family: 'Poppins', sans-serif;
}

.cta-apply-btn:hover {
    background-color: #c1915a;
    transform: translateY(-2px);
}

.join-us-motto {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--color-secondary-light);
    padding-top: 3rem;
}

/* === RESPONSIVENESS === */
@media (max-width: 768px) {
    .affiliate-hero {
        padding: 4rem 0 3rem;
    }
    .affiliate-title {
        font-size: 2.5rem;
    }
    .affiliate-subtitle {
        font-size: 1.4rem;
    }
    .tier-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .application-section {
        padding: 2rem;
    }
    .application-steps li {
        text-align: center;
    }
    .application-steps li strong {
        display: block;
        margin-bottom: 5px;
        width: auto;
    }
    .commission-table th, .commission-table td {
        padding: 12px;
        font-size: 0.9rem;
    }
    .cta-apply-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* --- FIX: Application Email Details List Structure --- */
.application-email-details {
    text-align: left;
    max-width: 500px; /* Constrain width for better reading */
    margin: 0 auto 2rem;
    padding: 1.5rem;
    border: 1px dashed var(--color-secondary-light);
    border-radius: 8px;
    background-color: white;
}

.application-email-details h4 {
    font-family: 'Playfair Display', serif;
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.email-details-list {
    list-style: none;
    padding: 0;
}

.email-details-list li {
    padding: 8px 0;
    line-height: 1.4;
    font-size: 1rem;
    border-bottom: 1px dotted rgba(107, 66, 38, 0.1);
}

.email-details-list li:last-child {
    border-bottom: none;
}

/* --- FINAL FIX: BUBBLE SPEED AND VISIBILITY --- */

.affiliate-hero {
    position: relative;
    overflow: hidden; 
}

.bubbles {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%; 
    z-index: 0;
    pointer-events: none;
}

.bubbles div {
    position: absolute;
    width: 40px;
    height: 40px;
    /* Increased visibility: More opaque white */
    background-color: rgba(255, 255, 255, 0.25); 
    border-radius: 50%;
    animation: continuousFloat linear infinite; 
    bottom: -150px;
}

/* Define bubble size, position, and unique timing */
/* ACTION: Reduced animation-duration across the board for faster movement */
.bubbles div:nth-child(1) { left: 25%; width: 60px; height: 60px; animation-duration: 9s; animation-delay: 0s; }
.bubbles div:nth-child(2) { left: 10%; width: 20px; height: 20px; animation-duration: 14s; animation-delay: 2s; }
.bubbles div:nth-child(3) { left: 70%; width: 20px; height: 20px; animation-duration: 16s; animation-delay: 4s; }
.bubbles div:nth-child(4) { left: 40%; width: 80px; height: 80px; animation-duration: 13s; animation-delay: 0s; }
.bubbles div:nth-child(5) { left: 65%; width: 25px; height: 25px; animation-duration: 7s; animation-delay: 0s; }
.bubbles div:nth-child(6) { left: 75%; width: 110px; height: 110px; animation-duration: 20s; animation-delay: 3s; }
.bubbles div:nth-child(7) { left: 35%; width: 150px; height: 150px; animation-duration: 18s; animation-delay: 7s; }
.bubbles div:nth-child(8) { left: 50%; width: 25px; height: 25px; animation-duration: 11s; animation-delay: 10s; }
.bubbles div:nth-child(9) { left: 20%; width: 15px; height: 15px; animation-duration: 8s; animation-delay: 5s; }
.bubbles div:nth-child(10) { left: 85%; width: 90px; height: 90px; animation-duration: 14s; animation-delay: 8s; }


@keyframes continuousFloat {
    0% {
        transform: translateY(0) translateX(0) scale(0.8); 
        opacity: 0.4; /* Increased starting opacity */
    }
    100% {
        transform: translateY(-100vh) translateX(10px) scale(1.3); /* Slightly larger end scale */
        opacity: 0;
    }
}

/* Ensure content is above bubbles */
.affiliate-hero .affiliate-container {
    position: relative;
    z-index: 1; 
}

/* --- NEW STYLES FOR AFFILIATE TITLE ANIMATION --- */

/* Define the continuous zoom-in/zoom-out animation */
@keyframes titlePulse {
    0% {
        transform: scale(1.0);
    }
    50% {
        transform: scale(1.02); /* Zoom in slightly (2%) */
    }
    100% {
        transform: scale(1.0);
    }
}

/* Apply the animation to the heading */
.affiliate-hero .affiliate-title {
    /* Duration: 3 seconds (medium pace) | Timing: ease-in-out for smooth start/stop | Loop: infinite */
    animation: titlePulse 3s ease-in-out infinite;
    /* Ensure the scale transform doesn't interfere with other elements */
    display: inline-block; 
}

/* --- NEW STYLES FOR POLICIES.HTML --- */

/* Note: Global styles like body, container, a, etc., are already handled by main.css */

.policy-header-override {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-secondary-light) 100%);
    color: var(--color-text-light);
    /* INCREASED PADDING for more vertical space */
    padding: 6rem 0 5rem; 
    text-align: center;
    margin-bottom: 4rem;
    /* ADDED FLOATING EFFECT (Box Shadow) */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); 
    position: relative; /* Ensure shadow is correctly rendered */
}

/* Redefining header styles to be contained within the content block */
.policy-section h2 {
    font-size: 2rem;
    margin: 3rem 0 2rem;
    color: var(--color-primary-dark);
    position: relative;
    padding-bottom: 0.8rem;
    font-weight: 600;
}

.policy-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--color-secondary-light);
}

.policy-section h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1.5rem;
    color: var(--color-primary-dark);
    font-weight: 500;
}

/* Policy Section Container */
.policy-section {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    margin-bottom: 3.5rem;
    box-shadow: 0 8px 25px rgba(107, 66, 38, 0.08);
    border-left: 5px solid var(--color-secondary-light);
}

.badge {
    display: inline-block;
    font-size: 1.8rem;
    margin-right: 1rem;
    vertical-align: middle;
    color: var(--color-secondary-light);
}

.refund-list {
    list-style: none;
    padding-left: 0;
    margin: 2rem 0;
}

.refund-list li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.5rem;
}

.refund-list li::before {
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.3rem;
}

.refund-list li.yes::before {
    content: '✓';
    color: var(--color-secondary-light);
}

.refund-list li.no::before {
    content: '✗';
    color: var(--color-gray); /* Using existing muted color */
}

.highlight {
    background-color: rgba(107, 66, 38, 0.05);
    border-left: 4px solid var(--color-secondary-light);
    padding: 2rem;
    border-radius: 0 8px 8px 0;
    margin: 2.5rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .policy-section {
        padding: 2.5rem;
        margin-bottom: 3rem;
    }
}


/* --- NEW STYLES FOR REVIEWS DROPDOWN SUBMENU --- */

/* Parent item styling */
.menu-list .has-submenu {
    position: relative;
    /* Reset list item margin for submenu structure */
    margin: 1.0rem 0; 
}

/* Toggle link/button styling */
.submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 0; /* Remove padding if any */
}

.submenu-icon {
    font-size: 0.8em; /* Smaller arrow icon */
    margin-left: 10px;
    transition: transform 0.3s ease;
}

/* Submenu container (Hidden by default) */
.submenu {
    list-style: none;
    padding: 0;
    /* Start hidden: set height to 0, use transition for smooth drop */
    max-height: 0; 
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    margin-top: 10px;
}

/* Submenu items */
.submenu li {
    margin: 0.5rem 0;
    text-align: center;
}

.submenu-item-text {
    /* Style for non-clickable text item */
    color: var(--color-secondary-light); /* Light brown/tan text */
    font-size: 1.5rem; /* Smaller than main links */
    opacity: 0.8;
    font-weight: 300;
    padding: 5px 0;
    display: block;
    cursor: default;
}

/* Active/Open state (Controlled by JS) */
.has-submenu.active .submenu {
    /* When active, set height high enough to show content */
    max-height: 100px; 
}

.has-submenu.active .submenu-icon {
    transform: rotate(180deg);
}

/* --- NEW FIX: Mobile Menu Link Spacing --- */
@media (max-width: 600px) {
    /* Ensure the main navigation links have some left/right room */
    .overlay-menu a {
        /* Re-apply styling for main links */
        font-size: 2rem; /* Keep existing font size, or adjust */
        padding: 0.5rem 20px; /* ADD horizontal padding (e.g., 20px left/right) */
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Ensure the submenu toggles (like Programs & Reviews) align nicely */
    .submenu-toggle {
        padding: 0.5rem 20px; /* Apply padding here too */
        justify-content: space-between; /* Spread the text and chevron */
    }
    }

/* --- NEW CREATIONS HUB STYLES (creations-hub.html) --- */

/* 1. HEADER & ZOOM ANIMATION (FIXED SPEED & COLOR) */
.creations-header {
    position: relative;
    height: 70vh; /* Professional, large height */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 3rem; 
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    
    /* FIX: Set animation speed to 8 seconds */
    animation: scaleZoom 8s infinite alternate ease-in-out; 
}

@keyframes scaleZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); } 
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark overlay for text readability, using primary brown */
    background-color: rgba(107, 66, 38, 0.75); 
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.welcome-text-container {
    max-width: 900px;
    padding: 20px;
    color: var(--color-text-light);
}

.welcome-title {
    font-size: 3.5rem;
    color: var(--color-accent-cream);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5); 
}

.welcome-subtitle {
    font-size: 1.35rem;
    line-height: 1.5;
    /* FIX: High-contrast color for readability */
    color: var(--color-accent-cream); 
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* 2. PRODUCT STORE & VERTICAL STACK (FIXED LAYOUT & SIZING) */
#products-store {
    padding: 0 5vw 4rem; 
    text-align: center;
}

.category-title {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 4rem;
    margin-bottom: 1rem;
    color: var(--color-primary-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block; 
    text-align: center;
}

/* WOWING Category Styling */
.premium-star { color: var(--color-primary-dark); }
.standard-star { color: var(--color-primary-dark); }
.tools-kit { color: var(--color-primary-dark); }
.relate-discover { color: var(--color-primary-dark); }


/* PRODUCT GRID (Ensures VERTICAL alignment and Responsiveness) */
.product-grid {
    display: flex;
    flex-direction: column; /* FORCES VERTICAL STACKING */
    align-items: center; /* Centers the vertical stack */
    gap: 30px; /* Increased spacing */
    /* FIX: Significantly increased max width for visibility on desktop/laptop */
    max-width: 800px; 
    margin: 0 auto; 
    padding: 0;
}

.product-card {
    width: 100%; /* The key to vertical stacking within the 800px max-width */
    background-color: var(--color-text-light);
    border: 1px solid var(--color-accent-cream);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: row; /* Horizontal layout inside the card (Image | Details) */
    /* FIX: Increased minimum height for larger card feel */
    min-height: 180px; 
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    /* FIX: Increased image size */
    width: 180px; 
    height: 180px;
    object-fit: cover;
    flex-shrink: 0; 
}

.product-details {
    padding: 15px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-name {
    font-size: 1.35rem; 
    color: var(--color-primary-dark);
    margin-bottom: 5px;
}

.product-desc {
    font-size: 1.0rem; 
    color: #666;
    line-height: 1.4;
    margin-bottom: 10px;
}

/* COMING SOON BUTTON */
.coming-soon-btn {
    width: 100%;
    padding: 12px 0; /* Taller button */
    background-color: var(--color-secondary-light);
    color: var(--color-primary-dark);
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: default; 
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s;
    font-size: 1rem;
}


/* --- Responsiveness (Zero Error Goal) --- */

@media (max-width: 850px) {
    /* Reduce the max width of the overall stack slightly for mid-screens */
    .product-grid {
        max-width: 90%; 
    }
}

@media (max-width: 650px) {
     /* Adjustments for mid-sized screens (e.g., tablet landscape) */
    .welcome-title {
        font-size: 2.5rem;
    }
    .welcome-subtitle {
        font-size: 1.1rem;
    }
    /* FIX: Ensure cards still look good on tablets */
    .product-image {
        width: 150px; 
        height: 150px;
    }
    .product-card {
        min-height: 150px;
    }
    .product-name {
        font-size: 1.2rem;
    }
    .product-desc {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    /* Single-column, full-width card layout for mobile (portrait) */
    .product-card {
        flex-direction: column; /* Stack image and text vertically */
        min-height: unset;
        width: 100%; 
    }

    .product-image {
        width: 100%; /* Image takes full width */
        height: 200px;
    }
    
    .product-details {
        padding: 15px 15px 10px;
    }

    .category-title {
        font-size: 1.6rem;
    }
    .welcome-title {
        font-size: 2rem;
    }
    .welcome-subtitle {
        font-size: 1rem;
    }
}

/* --- NEW FIX: Scrollable Menu Content --- */
.overlay-menu {
    /* CRITICAL: Allows the menu section to take up available space and scroll if needed */
    flex-grow: 1; 
    /* Allows vertical scrolling only if content exceeds the space */
    overflow-y: auto; 
    /* Ensures content doesn't overflow horizontally */
    overflow-x: hidden; 
    width: 100%; /* Ensures it fills the width */
    /* Ensures the inner menu content is centered */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Optional: Add padding inside the scrollable area */
    padding: 1rem 0;
}
