/* Enable Native SPA Scrolling & Disable Scroll Anchoring */
html, body {
    scroll-behavior: smooth;
    overflow-anchor: none;
}

/* Core Variables & Palette */
:root {
    --bg-sand: #F9F6F0;
    --accent-sage: #8DA399;
    --action-terracotta: #C87965;
    --text-dark: #2C3531;
}

/* Universal Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Body Styles */
body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg-sand);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

/* =========================================
   Header & Navigation
   ========================================= */

.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--bg-sand);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

/* Smart Sticky Hidden State */
.nav-hidden {
    transform: translateY(-100%);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Gradient Text Logo */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(to right, var(--action-terracotta), var(--accent-sage));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 0.7;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Language Switcher */
.lang-switch {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.lang-switch a {
    text-decoration: none;
    color: var(--text-dark);
    transition: opacity 0.2s ease;
}

.lang-switch a:hover {
    opacity: 0.7;
}

.lang-switch .active {
    font-weight: 700;
}

/* Disabled Language State */
.lang-disabled {
    cursor: not-allowed;
    opacity: 0.4;
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* CTA Button */
.btn-cta {
    background-color: var(--action-terracotta);
    color: var(--bg-sand);
    padding: 0.6rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-cta:hover {
    background-color: #b56a57; /* Slightly darker terracotta */
    transform: translateY(-1px);
}

/* =========================================
   Hero Section
   ========================================= */

/* Offset the fixed header (approx 80px) */
main {
    padding-top: 100px;
}

/* Container layout: Split 50/50 on desktop */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    gap: 4rem;
    min-height: calc(100vh - 100px); /* Creates a full-screen landing feel */
}

/* Left Column: Typography & Spacing */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

/* Massive, commanding SEO headline */
.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem); /* Responsive scaling */
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-dark);
    opacity: 0.9;
    max-width: 480px;
    line-height: 1.6;
}

/* Primary Conversion CTA */
.btn-hero {
    display: inline-block;
    background-color: var(--action-terracotta);
    color: var(--bg-sand);
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(200, 121, 101, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 0.5rem;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 121, 101, 0.4);
}

/* Trust Anchors List */
.trust-anchors {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
}

.trust-anchors .check {
    color: var(--accent-sage);
    font-weight: 700;
    margin-right: 0.5rem;
}

/* Right Column: 3D Visual Placeholder */
.hero-visual {
    flex: 1;
    width: 100%;
    aspect-ratio: 4 / 5;
    background-color: #F0EBE1; /* Slightly darker sand tone for depth */
    border-radius: 24px;
    box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.03); /* Soft inner shadow */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden; /* NEW: Clips the image to respect the border-radius */
}

/* Constrain and fit the 3D render within the visual box */
.product-render {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Forces the image to fill the box, cropping excess width */
    object-position: center; /* Keeps the pouch dead center during the crop */
    display: block; 
}

/* Mobile Responsiveness (Stacked Layout) */
@media (max-width: 768px) {

    /* Mobile Header Rescue: Hide clutter, force edge alignment */
    .nav-links, 
    .lang-switch {
        display: none;
    }

    .hero {
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 3rem;
        text-align: center;
        min-height: auto;
    }

    .hero-content {
        align-items: center; /* Center everything on mobile */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .trust-anchors {
        align-items: center; 
    }
}

/* =========================================
   Activation Pathway (Benefits & Science)
   ========================================= */

.activation-pathway {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.pathway-header {
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.pathway-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.pathway-header p {
    font-size: 1.125rem;
    color: var(--text-dark);
    opacity: 0.8;
    line-height: 1.6;
}

/* Mobile-First Stack */
.pathway-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.pathway-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-icon {
    width: 80px;
    height: 80px;
    background-color: var(--bg-sand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 2px solid var(--accent-sage);
    position: relative;
    z-index: 2; /* Sits above the connecting line */
}

.step-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--action-terracotta);
}

.pathway-step h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.pathway-step p {
    font-size: 0.95rem;
    color: var(--text-dark);
    opacity: 0.8;
    line-height: 1.6;
    max-width: 350px;
}

/* Desktop: 3-Column Timeline Layout */
@media (min-width: 768px) {
    .pathway-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    /* Subtle Connecting Timeline Line */
    .pathway-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 40px; /* Aligns precisely with the vertical center of the 80px icon */
        left: 50%;
        width: 100%;
        height: 2px;
        background-color: var(--accent-sage);
        opacity: 0.3;
        z-index: -1;
    }
}

/* =========================================
   Frictionless Integration Block
   ========================================= */

.integration-block {
    max-width: 1000px; /* Expanded from 700px to accommodate the split */
    margin: 4rem auto 0;
    padding: 3rem 2rem;
    border: 1px solid rgba(141, 163, 153, 0.3);
    border-radius: 12px;
    background-color: var(--bg-sand);
}

/* Desktop Split Layout */
.integration-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
}

/* Left: Traits Stack */
.integration-traits {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.trait {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.trait svg {
    margin-bottom: 0.75rem;
}

.trait h4 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.trait p {
    font-size: 0.95rem;
    color: var(--text-dark);
    opacity: 0.8;
    line-height: 1.6;
}

/* Right: Visual Constraint & Cropping */
.integration-visual {
    flex: 1;
    width: 100%;
    aspect-ratio: 1 / 1; /* Creates a perfect square for the photo */
    border-radius: 12px;
    overflow: hidden; /* Ensures image respects the border-radius */
    box-shadow: inset 0 4px 15px rgba(0, 0, 0, 0.05);
}

.integration-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Dynamically crops the image to fill the square */
    object-position: center; /* Keeps the focus centered */
    display: block;
}

/* Mobile Responsiveness: Stack Image on Top */
@media (max-width: 768px) {
    .integration-block {
        padding: 2rem 1.5rem;
    }
    
    .integration-layout {
        flex-direction: column-reverse; /* Flips the DOM order visually */
        gap: 2.5rem;
    }
}

/* Secondary CTA Block */
.pathway-cta {
    text-align: center;
    margin-top: 4rem;
}

.pathway-cta p {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

/* =========================================
   FAQ & Logistics
   ========================================= */

.faq-logistics {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.faq-logistics h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.faq-logistics details {
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(141, 163, 153, 0.3); /* Subtle accent-sage border */
}

.faq-logistics summary {
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    padding: 1rem 0;
    transition: opacity 0.2s ease;
    outline: none;
    list-style: none; /* Removes default triangle in some modern browsers */
}

/* Customizing the summary marker for a cleaner UI */
.faq-logistics summary::-webkit-details-marker {
    display: none; /* Removes default triangle in Safari/Chrome */
}

.faq-logistics summary::after {
    content: '+';
    float: right;
    font-size: 1.2rem;
    color: var(--action-terracotta);
}

.faq-logistics details[open] summary::after {
    content: '-';
}

.faq-logistics summary:hover {
    opacity: 0.7;
}

.faq-logistics p {
    padding: 0 0 1.5rem 0;
    color: var(--text-dark);
    opacity: 0.8;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* =========================================
   Global Footer
   ========================================= */

.site-footer {
    margin-top: 6rem;
    padding: 2rem;
    border-top: 1px solid rgba(44, 53, 49, 0.1); /* Faint text-dark border */
    background-color: var(--bg-sand);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    font-size: 0.8rem; /* Microscopic scale */
    color: var(--text-dark);
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-dark);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Temporary Lockdown: Hide all WhatsApp CTA buttons */
.btn-cta,
.btn-hero {
    display: none !important;
}