/* ==============================
   1. CSS Variables & Reset
   ============================== */
:root {
    --base-font-size: 20px;
    --primary-gold: #BE9B63; /* Flyer Gold */
    --gold-light: #E2CFAB;
    
    /* We are mapping the old 'navy' variable to Deep Green so all existing headings automatically turn green! */
    --dark-navy: #0D261A; 
    --deep-green: #0D261A; 
    --text-light: #FFFFFF;
    
    /* Base Light Theme Variables - Warmed up for premium feel */
    --body-bg: #FCFBF8; 
    --cream-bg: #F4F1E1; 
    --text-main: #334139; /* Dark olive-grey for readable text */
    --header-bg: #F0F4F1;
    --card-bg: #FFFFFF;
    --section-overlay: rgba(255, 255, 255, 0.92);
    --cream-overlay: rgba(244, 241, 225, 0.95);
    --highlight-box-bg: rgba(244, 241, 225, 0.9);
}


* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.loading { overflow: hidden; }

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    background-color: var(--body-bg);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5, h6 { 
    font-family: 'Cinzel', serif; 
    font-weight: 700; 
    color: var(--dark-navy); 
    line-height: 1.2; 
}
p { margin-bottom: 1.5rem; }
a { text-decoration: none; transition: 0.3s; }
img { max-width: 100%; height: auto; }

/* Ensure all sections sit ON TOP of the fixed background */
section, footer { 
    padding: 6rem 10%; 
    position: relative;
    z-index: 1;
}

/* ==============================
   2. Loading Screen Styles
   ============================== */
#jg-loader-wrapper {
    position: fixed; inset: 0; z-index: 9999;
    background: #fff; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    transition: opacity 1.2s ease-in-out;
}
#jg-title { letter-spacing: 0.22em; font-size: 26px; font-weight: 500; color: #1a1a1a; margin-top: 32px; opacity: 0; text-transform: uppercase; animation: fadeInTitle 1.2s ease-in-out 0.6s forwards; }
#jg-subtitle { letter-spacing: 0.3em; font-size: 12px; font-weight: 400; color: var(--primary-gold); margin-top: 6px; opacity: 0; text-transform: uppercase; animation: fadeInTitle 1s ease-in-out 1.2s forwards; }
#jg-progress-bar-wrap { margin-top: 28px; width: 160px; height: 1px; background: #e8e0ce; position: relative; opacity: 0; animation: fadeInTitle 0.8s ease-in-out 1.5s forwards; }
#jg-progress-bar { height: 1px; background: linear-gradient(90deg, #b8972a, #e8c84a); width: 0%; transition: width 0.3s ease-in-out; }
#jg-percent { margin-top: 10px; font-size: 11px; letter-spacing: 0.2em; color: var(--primary-gold); font-weight: 600; opacity: 0; animation: fadeInTitle 0.8s ease-in-out 1.5s forwards; }
@keyframes fadeInTitle { to { opacity: 1; } }
#loader-svg { overflow: visible; }
.pollen { fill: #d4a832; opacity: 0; }
.glow-ring { fill: none; stroke: #e8c84a; stroke-width: 0.5; opacity: 0; }
#jg-done-overlay { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; transition: opacity 1.2s ease-in-out; }

/* ==============================
   3. Header & Navigation
   ============================== */
header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0.8rem 5%; 
    background-color: var(--header-bg); 
    
    /* The Gold Frame */
    border-bottom: 4px solid var(--primary-gold); /* Adds the new bottom line */
    
    position: fixed; 
    top: 0; 
    width: 100%; 
    z-index: 1000; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Slightly darkened the shadow to contrast the gold */
    transition: all 0.4s ease; 
}

header.scrolled { 
    padding: 0.4rem 5%; /* Gets even slimmer when the user scrolls down */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
}

.logo-container { display: flex; align-items: center; }

.header-logo { 
    height: 45px; /* Slimmer logo (was 55px) */
    width: auto; 
    transition: height 0.4s ease; 
    display: block; 
}

header.scrolled .header-logo { 
    height: 35px; /* Shrinks further on scroll */
}
nav ul { display: flex; list-style: none; gap: 2rem; align-items: center; }
nav ul li a { color: var(--text-main); font-size: 1rem; font-weight: 600; padding: 0.5rem 0; position: relative; }
nav ul li a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0; background-color: var(--primary-gold); transition: width 0.3s ease; }
nav ul li a:hover { color: var(--primary-gold); }
nav ul li a:hover::after { width: 100%; }
.mobile-only { display: none; }
.menu-toggle { display: none; }

.btn-tour { background-color: var(--dark-navy); color: var(--gold-light); padding: 0.8rem 2rem; font-size: 1rem; font-weight: 700; border-radius: 4px; letter-spacing: 1px; text-transform: uppercase; position: relative; overflow: hidden; z-index: 1; transition: transform 0.3s ease; }
.btn-tour::before { content: ''; position: absolute; top: 0; left: 0; width: 0; height: 100%; background-color: var(--primary-gold); transition: width 0.4s cubic-bezier(0.5, 0, 0, 1); z-index: -1; }
.btn-tour:hover::before { width: 100%; }
.btn-tour:hover { color: var(--dark-navy); transform: translateY(-2px); }

/* Theme Toggle Button */
.theme-btn { background: transparent; border: none; color: var(--text-main); font-size: 1.2rem; cursor: pointer; transition: color 0.3s ease, transform 0.3s ease; padding: 0.5rem; }
.theme-btn:hover { color: var(--primary-gold); transform: scale(1.1); }

/* ==============================
   4. Hero Section & Fixed Background Layer
   ============================== */
#jg-scene {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 0; 
    pointer-events: none; background: var(--body-bg);
}
#bg-svg, #pollen-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.hero {
    height: 100vh; display: flex; align-items: center;
    padding-top: 80px; position: relative;
    background-image: url('hero.png');
    background-size: cover; background-position: center; background-attachment: fixed;
    padding: 0 10%; 
}
.hero::before {
    display: none; /* Completely removes the dark overlay so the image is fully clear */
}

.hero-content {
    position: relative; 
    z-index: 10; 
    max-width: 60%;
    color: var(--text-light);
    animation: slideFadeUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0; 
    transform: translateY(50px);
    pointer-events: auto;
    
    /* Adds a sleek, dark shadow behind the text so it's readable over the clear image */
    text-shadow: 0px 4px 20px rgba(0, 0, 0, 0.8); 
}

@keyframes slideFadeUp { to { opacity: 1; transform: translateY(0); } }

.hero h1 { 
    font-size: 6.5rem; 
    color: var(--gold-light); 
    line-height: 1.1; 
    margin-bottom: 1.5rem; 
    text-shadow: 0px 4px 25px rgba(0,0,0,0.9); 
}
.hero-subtitle { font-size: 2rem; font-weight: 600; margin-bottom: 1rem; }
.hero-desc { font-size: 1.5rem; color: #DDD; margin-bottom: 3rem; max-width: 90%; }

.btn-discover { display: inline-block; background: linear-gradient(135deg, #D4AF37 0%, #AA7C11 100%); color: #111; padding: 1.2rem 2.8rem; font-size: 1.2rem; font-weight: 700; border-radius: 50px; border: 2px solid #5A4A22; text-transform: uppercase; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.btn-discover:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 10px 30px rgba(212, 175, 55, 0.6); }

/* ==============================
   5. Translucent Sections 
   ============================= */
.promise-section { background-color: var(--cream-overlay); text-align: center; border-bottom: 1px solid rgba(190, 155, 99, 0.2); }
.promise-section h2 { font-size: 3rem; color: var(--dark-navy); margin-bottom: 4rem; letter-spacing: 2px; text-transform: uppercase; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4rem; max-width: 1400px; margin: 0 auto; }
.feature-card { display: flex; align-items: flex-start; text-align: left; gap: 1.5rem; padding: 1.5rem; border-radius: 8px; transition: background-color 0.4s ease, transform 0.4s ease; cursor: pointer; }
.feature-card:hover { background-color: var(--card-bg); transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.05); }
.feature-icon { background-color: var(--gold-light); width: 70px; height: 70px; min-width: 70px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 2.2rem; color: var(--dark-navy); border: 1px solid var(--primary-gold); transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.feature-card:hover .feature-icon { background-color: var(--primary-gold); color: var(--text-light); transform: translateY(-8px) scale(1.05); box-shadow: 0 10px 20px rgba(190, 155, 99, 0.4); }
.feature-icon i { transition: transform 0.5s ease; }
.feature-card:hover .feature-icon i { transform: scale(1.1); }
.feature-text h3 { font-size: 1.3rem; margin-bottom: 0.5rem; text-transform: uppercase; color: var(--dark-navy); }
.feature-text p { font-size: 1.15rem; color: var(--text-main); line-height: 1.6; }

.about { background-color: var(--section-overlay); padding-top: 8rem; padding-bottom: 8rem; }
.about h2 { font-size: 3.5rem; text-align: center; margin-bottom: 4rem; text-transform: uppercase;}
.about-main { display: flex; gap: 5rem; align-items: center; margin-bottom: 2rem; }
.about-text-container { flex: 1.2; }
.about-text-container p { font-size: 1.25rem; color: var(--text-main); margin-bottom: 1.8rem; }
.about-image-container { flex: 1; overflow: hidden; border-radius: 8px; border: 10px solid #FFF; box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: box-shadow 0.5s ease, transform 0.5s ease; }
.about-main img { width: 100%; height: 600px; object-fit: cover; transition: transform 0.8s ease; display: block; }
.about-image-container:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.about-image-container:hover img { transform: scale(1.05); }
.about-highlight-box { background-color: var(--highlight-box-bg); padding: 3rem; border-left: 8px solid var(--primary-gold); margin: 3rem 0; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease; }
.about-highlight-box:hover { transform: translateX(10px); }
.about-highlight-box p { font-family: 'Cinzel', serif; font-size: 1.6rem; font-weight: 600; color: var(--dark-navy); font-style: italic; margin-bottom: 0; line-height: 1.4; }

.vision { 
    background-color: var(--deep-green); /* Changed from navy blue */
    color: var(--text-light); 
    text-align: center; 
    position: relative; 
}
.vision h2 { font-size: 3.5rem; color: var(--gold-light); margin-bottom: 2rem; text-transform: uppercase; }
.vision p { font-size: 1.3rem; line-height: 1.9; color: #E0E0E0; margin-bottom: 1.8rem; }
.vision-quote { font-family: 'Cinzel', serif; font-size: 2.2rem; color: var(--primary-gold); font-weight: 700; margin-top: 4rem; font-style: italic; line-height: 1.4; }

.admin { background-color: var(--section-overlay); display: flex; justify-content: center; align-items: center; padding-top: 8rem; padding-bottom: 8rem; }
.admin-card { background-color: var(--cream-overlay); color: var(--text-main); padding: 5rem; border-top: 6px solid var(--primary-gold); box-shadow: 0 15px 50px rgba(0,0,0,0.08); max-width: 1000px; border-radius: 4px; transition: transform 0.5s ease; }
.admin-card:hover { transform: translateY(-5px); }
.admin-title-panel { text-align: center; margin-bottom: 3rem; }
.admin-card h2 { font-size: 2.8rem; margin-bottom: 0.5rem;}
.admin-card .subtitle { font-size: 1.2rem; font-weight: 600; color: #777; text-transform: uppercase;}
.admin-card p { font-size: 1.2rem; color: var(--text-main); line-height: 1.8; margin-bottom: 1.6rem; }
.admin-approach { background-color: rgba(255, 255, 255, 0.9); padding: 2.5rem; text-align: center; font-family: 'Cinzel', serif; font-size: 1.5rem; color: var(--dark-navy); font-weight: 600; margin: 3rem 0; border-left: 5px solid var(--primary-gold); border-right: 5px solid var(--primary-gold); box-shadow: 0 5px 15px rgba(0,0,0,0.03); }
.admin-signature-panel { text-align: right; margin-top: 4rem; }
.admin-sig { font-family: 'Cinzel', serif; font-size: 1.8rem; color: var(--primary-gold); font-weight: 700; }
.admin-sig-title { font-size: 1rem; font-weight: 600; color: #777; margin-top: -5px; }

/* ==============================
   6. Dark Mode Fixes
   ============================== */
[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3, 
[data-theme="dark"] h4, 
[data-theme="dark"] h5, 
[data-theme="dark"] h6 { color: var(--gold-light); }

[data-theme="dark"] .feature-icon { background-color: rgba(190, 155, 99, 0.1); border-color: var(--primary-gold); }
[data-theme="dark"] .feature-icon i { color: var(--primary-gold); }
[data-theme="dark"] .feature-card:hover .feature-icon { background-color: var(--primary-gold); }
[data-theme="dark"] .feature-card:hover .feature-icon i { color: var(--dark-navy); }

[data-theme="dark"] .btn-tour { background-color: var(--primary-gold); color: var(--dark-navy); }
[data-theme="dark"] .btn-tour::before { background-color: var(--gold-light); }

[data-theme="dark"] .admin-approach { background-color: var(--card-bg); color: var(--gold-light); box-shadow: none; border-left: 5px solid var(--gold-light); border-right: 5px solid var(--gold-light); }
[data-theme="dark"] .admin-card .subtitle { color: #A0AEC0; }
[data-theme="dark"] .footer-brand-img { filter: brightness(0) invert(1); }
[data-theme="dark"] .header-logo { filter: brightness(0) invert(1); }

/* ==============================
   7. CSS Scroll Animations
   ============================== */
.animate-scroll { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.animate-scroll.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.5s; }
.delay-4 { transition-delay: 0.7s; }

/* ==============================
   8. Footer
   ============================== */
footer { 
    background-color: var(--deep-green); /* Changed from navy blue */
    color: var(--gold-light); 
    padding: 5rem 5% 2rem; 
    border-top: 5px solid var(--primary-gold); 
}

/* Add this right below the footer rule to make the map responsive */
.footer-map iframe {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    border: 1px solid var(--primary-gold);
    
    /* The CSS Magic: Turns the map dark, then tints it greenish-gold */
    filter: sepia(40%) hue-rotate(90deg) saturate(200%) brightness(0.6) contrast(1.1) invert(10%);
    
    /* Smooth transition if they hover over it */
    transition: filter 0.4s ease;
}

/* Optional: Make it slightly brighter when they hover their mouse over it */
.footer-map iframe:hover {
    filter: sepia(40%) hue-rotate(90deg) saturate(200%) brightness(0.8) contrast(1.1) invert(10%);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1.5fr 1.5fr 1fr; gap: 3rem; margin-bottom: 4rem; }
.footer h4 { font-size: 1.1rem; color: var(--text-light); margin-bottom: 1.5rem; font-weight: 600;}
.footer-logo p { font-size: 0.9rem; color: #AAA; letter-spacing: 2px; margin-top: 0.5rem;}
.contact-list { list-style: none; }
.contact-list li { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.2rem; font-size: 0.95rem; color: #CCC; transition: color 0.3s ease; line-height: 1.4; }
.contact-list li:hover { color: var(--primary-gold); }
.contact-list i { color: var(--primary-gold); font-size: 1.2rem; margin-top: 3px; }

.link-list li a { color: #CCC; text-decoration: none; transition: 0.3s ease; }
.link-list li a:hover { color: var(--primary-gold); padding-left: 5px; }

.newsletter-form { display: flex; transition: box-shadow 0.3s ease; flex-direction: column; gap: 10px; }
.newsletter-form input { padding: 0.8rem; border: none; font-family: 'Montserrat'; font-size: 0.9rem; border-radius: 4px; outline: none; }
.newsletter-form button { background-color: var(--primary-gold); color: var(--dark-navy); border: none; padding: 0.8rem; font-weight: 700; cursor: pointer; border-radius: 4px; transition: background-color 0.3s ease; }
.newsletter-form button:hover { background-color: var(--gold-light); }
.footer-bottom { text-align: center; border-top: 1px solid #333; padding-top: 2rem; font-size: 0.9rem; color: #AAA; }

.dkode-link { color: var(--primary-gold); font-family: 'Montserrat', sans-serif; font-weight: 700; text-decoration: none; letter-spacing: 1px; padding: 0 5px; transition: text-shadow 0.3s ease; }
.dkode-link:hover { text-shadow: 0 0 10px rgba(190, 155, 99, 0.6); }


/* ==============================
   9. Mobile Responsiveness (ENHANCED)
   ============================== */
@media (max-width: 1024px) {
    /* Hide Desktop Elements */
    .desktop-only { display: none !important; }
    .mobile-only { display: block; margin-top: 1rem; }
    
    /* Ensure the hamburger button stays above the sidebar */
    /* --- 1. The Animated Hamburger Button --- */
    .menu-toggle { 
        display: block; 
        cursor: pointer; 
        font-size: 1.8rem; 
        color: var(--deep-green); 
        position: relative; 
        z-index: 1001; 
        transition: transform 0.3s ease;
    }
    
    .menu-toggle:hover {
        transform: scale(1.1); /* Slight pop on tap */
    }

    /* Adds a snappy spring-rotation to the icon */
    .menu-toggle i {
        display: inline-block;
        transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
    }

    /* When the menu opens, it spins 180 degrees and turns Gold to contrast the green sidebar */
    .menu-toggle i.fa-xmark {
        transform: rotate(180deg) scale(1.1);
        color: var(--primary-gold); 
    }


    /* --- 2. The Premium Green Sidebar Theme --- */
    nav#nav-menu { 
        position: fixed; 
        top: 0; 
        right: -100%; 
        width: 300px; 
        max-width: 80vw;
        height: 100vh;
        background: var(--deep-green); /* Updated to the premium deep green */
        box-shadow: -10px 0 30px rgba(0,0,0,0.3); /* Stronger shadow for depth */
        border-left: 3px solid var(--primary-gold); /* Elegant gold edge */
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1); 
        padding: 80px 20px 20px; 
        z-index: 1000;
        clip-path: none; 
    }

    nav#nav-menu.active { 
        right: 0; 
        clip-path: none; 
    }

    nav#nav-menu ul { 
        flex-direction: column; 
        gap: 0; 
        padding: 1rem 0; 
        align-items: flex-start; 
    }
    
    /* Adds faint gold separator lines between links */
    nav#nav-menu ul li { 
        width: 100%; 
        text-align: left; 
        border-bottom: 1px solid rgba(190, 155, 99, 0.15); 
    }
    
    nav#nav-menu ul li:last-child { 
        border-bottom: none; 
        margin-top: 20px;
    }
    
    /* White text to contrast the green, turning gold on hover */
    nav#nav-menu ul li a { 
        display: block; 
        padding: 1.2rem 5%; 
        font-size: 1.2rem; 
        color: var(--text-light); 
        transition: all 0.3s ease;
    }
    
    nav#nav-menu ul li a::after { 
        display: none; 
    }

    nav#nav-menu ul li a:hover {
        color: var(--primary-gold);
        padding-left: 10px; /* Slight elegant indent when tapped/hovered */
    }

    /* Hero Scaling */
    .hero-content { max-width: 100%; text-align: center; margin: 0 auto; }
    .hero h1 { font-size: 4rem; }
    .hero-subtitle { font-size: 1.5rem; }
    .hero-desc { font-size: 1.2rem; margin: 0 auto 2rem auto; }
    
    /* Layout Adjustments to Stack Columns */
    .features-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-main, .about-main.reverse { flex-direction: column; text-align: center; gap: 2.5rem; }
    .about-image-container { width: 100%; border-width: 5px; }
    .about-main img { height: 400px; /* Scale down massive images for tablets */ }
    
    /* Spacing & Paddings */
    section, footer { padding: 4rem 5%; }
    .admin-card { padding: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
    
    /* Disable scroll animation delays on mobile so UI doesn't feel sluggish */
    .delay-1, .delay-2, .delay-3, .delay-4 { transition-delay: 0s !important; }
}


/* For Phones specifically */
@media (max-width: 768px) {
    /* Add breathing room so text doesn't touch screen edges */
    /* Update these classes inside your @media (max-width: 768px) block in style.css */

    .hero-content { 
        max-width: 100%; 
        padding: 0 20px; /* Increased padding to push text away from the screen edges */
    }

    .hero h1 { 
        font-size: 2.2rem; /* Scaled down slightly for better balance */
        line-height: 1.2;
        margin-bottom: 0.8rem;
    } 
    
    .hero-subtitle { 
        font-size: 1.05rem; 
        padding: 0 10px;
    }
    
    .hero-desc { 
        font-size: 0.95rem; /* Scaled down to prevent chunkiness */
        margin-bottom: 2.5rem; 
        padding: 0 15px; 
    }

    /* Fixes the bulky button wrapping */
    .btn-discover {
        font-size: 0.85rem; /* Smaller text fits the pill shape better */
        padding: 1rem 1.2rem; /* Slimmer vertical padding */
        width: 90%; /* Gives it a bit of breathing room on the sides */
        max-width: 320px; 
        margin: 0 auto;
        display: block; 
        line-height: 1.4; /* Improves readability if it still wraps to two lines */
    }
    .about h2, .vision h2 { font-size: 2.2rem; }
    .admin-card h2 { font-size: 1.8rem; }
    .about-highlight-box p { font-size: 1.2rem; }
    
    /* Fix images shrinking too much or being too tall */
    .about-main img { height: 300px; }
    
    /* Footer stacking */
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .contact-list li { justify-content: center; text-align: center; flex-direction: column; align-items: center; gap: 0.5rem; }
    .link-list li a:hover { padding-left: 0; }
    
    /* Padding adjustments */
    section, footer { padding: 3rem 5%; }
    .admin-card { padding: 2rem 1.5rem; }
}


/* ==============================
   10. Hero Features Bar (Flyer Match)
   ============================== */
.hero-features-bar {
    background-color: var(--deep-green);
    position: relative;
    margin-top: 0; /* Removed the negative margin */
    padding: 1rem 0 4rem 0; /* Adjusted padding */
    z-index: 10;
}

.curve-divider {
    position: absolute;
    bottom: 99%; /* Pushes the curve exactly on top of the green section */
    left: 0;
    width: 100%;
    height: 100px;
    line-height: 0;
    pointer-events: none;
}

.curve-divider svg {
    display: block;
    width: 100%;
    height: 100%;
}

.features-bar-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    flex-wrap: wrap;
}

.hero-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--text-light); 
}

.hero-feature-item .icon-circle {
    width: 85px;
    height: 85px;
    border: 2px solid var(--primary-gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    background-color: transparent;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.hero-feature-item .icon-circle i {
    font-size: 2.2rem;
    color: var(--primary-gold);
    transition: all 0.4s ease;
}

/* Hover effect to invert the gold/green */
.hero-feature-item:hover .icon-circle {
    background-color: var(--primary-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(190, 155, 99, 0.4);
}

.hero-feature-item:hover .icon-circle i {
    color: var(--deep-green);
}

.hero-feature-item p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    letter-spacing: 0.5px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
    .features-bar-container {
        gap: 2rem;
    }
    .hero-feature-item .icon-circle {
        width: 70px;
        height: 70px;
    }
    .hero-feature-item .icon-circle i {
        font-size: 1.8rem;
    }
    .hero-feature-item p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-features-bar {
        margin-top: 0; 
    }
    .curve-divider {
        height: 60px; 
    }
    
    /* Turns the container into a horizontal slider */
    .features-bar-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 0;
        padding: 0;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        scrollbar-width: none; /* Hides scrollbar in Firefox */
    }
    
    /* Hides scrollbar in Chrome/Safari */
    .features-bar-container::-webkit-scrollbar {
        display: none;
    }

    /* Forces each icon to take exactly 100% of the screen width */
    .hero-feature-item {
        width: 100%;
        min-width: 100%;
        flex: 0 0 100%;
        scroll-snap-align: center; /* Snaps perfectly to the middle */
        margin-bottom: 0;
        padding: 1rem 0;
    }
}

/* ==============================
   11. Mobile Slider Arrows
   ============================== */
/* Hide arrows by default on Desktop */
.slider-arrow {
    display: none; 
}

@media (max-width: 768px) {
    .slider-arrow {
        display: flex;
        position: absolute;
        top: 60%; /* Centers vertically below the curve */
        transform: translateY(-50%);
        background-color: rgba(255, 255, 255, 0.05); /* Very faint white background */
        border: 1px solid var(--primary-gold);
        color: var(--primary-gold);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        justify-content: center;
        align-items: center;
        font-size: 1.2rem;
        cursor: pointer;
        z-index: 20;
        transition: all 0.3s ease;
    }

    .slider-arrow:active {
        background-color: var(--primary-gold);
        color: var(--deep-green);
    }

    /* Position them on the edges */
    .left-arrow { left: 15px; }
    .right-arrow { right: 15px; }
    
    /* Ensure native smooth scrolling is enabled for the JS click */
    .features-bar-container {
        scroll-behavior: smooth;
    }
    /* Add this inside your @media (max-width: 768px) block in style.css */
    
    .hero::before {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* A deep green gradient that is darkest behind the main text */
        background: linear-gradient(
            to bottom, 
            rgba(13, 38, 26, 0.2) 0%, 
            rgba(13, 38, 26, 0.65) 40%, 
            rgba(13, 38, 26, 0.65) 70%, 
            rgba(13, 38, 26, 0.1) 100%
        );
        z-index: 1;
    }
}

/* ==============================
   12. INNER PAGE HERO WAVE FIX (Desktop & Mobile)
   ============================== */

/* Make sure the hero container can hold our new custom wave */
.page-hero {
    position: relative;
}

/* This creates the exact wave from the index page, but purely in CSS! */
.page-hero::after {
    content: '';
    position: absolute;
    bottom: -1px; /* -1px prevents a tiny gap on some monitors */
    left: 0;
    width: 100%;
    height: 50px; /* Makes the wave shorter/slimmer than the massive index page one */
    
    /* We inject the actual SVG code straight into the background */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 100' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,50 C320,120 420,0 840,50 C1140,85 1340,30 1440,0 L1440,100 L0,100 Z' fill='%230D261A' /%3E%3Cpath d='M0,50 C320,120 420,0 840,50 C1140,85 1340,30 1440,0' fill='none' stroke='%23BE9B63' stroke-width='4' /%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: 10;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .page-hero {
        height: 85vh !important; /* Shows much more of the mobile image */
        background-position: center center !important; /* Centers the focus */
    }
    
    .page-hero::after {
        height: 35px; /* Squishes the wave down slightly so it looks perfect on small screens */
    }
    
    /* Ensure the text is pushed down slightly so it sits beautifully in the extra space */
    .page-hero .hero-content {
        transform: translateY(20px);
    }
}