/* 
   Milano Hights - Green & Black Luxury Redesign
   Principles: Taste (Anti-Slop) & UI/UX Pro Max
*/

:root {
    /* Sophisticated Green & Black Palette */
    --color-bg: #0B0E0B; 
    --color-surface: #151815;
    --color-obsidian: #080908;
    --color-brand-green: #2D6A4F;
    --color-brand-green-light: #40916C;
    --color-brand-green-dark: #1B4332;
    --color-accent-mint: #D8F3DC;
    --color-text: #FDFCFB;
    --color-text-muted: #A0A0A0;
    --color-text-primary: var(--color-text);
    --font-sans: var(--font-body);

    /* Typography System (Fluid) */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --fs-h1: clamp(3.5rem, 12vw, 10rem);
    --fs-h2: clamp(2.5rem, 8vw, 6rem);
    --fs-h3: clamp(1.8rem, 4vw, 3rem);
    --fs-body: clamp(0.9rem, 1.1vw, 1.1rem);
    
    /* Spacing & Layout */
    --section-padding: clamp(5rem, 15vw, 18rem);
    --container-width: 1440px;
    
    /* Shadows & Glassmorphism */
    --shadow-soft: 0 10px 50px -10px rgba(0, 0, 0, 0.2);
    --shadow-premium: 0 40px 80px -20px rgba(0, 0, 0, 0.4);
    --glass-bg: rgba(21, 24, 21, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Radius */
    --radius-full: 100px;
    --radius-lg: 32px;
    --radius-md: 16px;

    /* Transitions */
    --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
}

html {
    scroll-behavior: initial; /* Lenis handles this */
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}


/* Ambient Background - Deep Green & Black */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #0B0E0B 0%, #050605 100%);
    overflow: hidden;
}

.ambient-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(45, 106, 79, 0.07) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(27, 67, 50, 0.07) 0%, transparent 50%);
}

.ambient-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("img/noise.svg");
    opacity: 0.1;
    pointer-events: none;
    mix-blend-mode: overlay;
}


/* Typography Helpers */
.heading-serif { font-family: var(--font-heading); font-weight: 400; }
.heading-serif.small { font-size: 2.2rem; }
.heading-serif.large-outline {
    font-size: 8vw;
    color: rgba(255,255,255,0.07);
    -webkit-text-stroke: 2px rgba(255,255,255,0.45);
    text-transform: uppercase;
    text-shadow: 0 0 80px rgba(64, 145, 108, 0.15);
}
.body-text { font-size: var(--fs-body); color: var(--color-text-muted); }
.body-text.muted { color: rgba(255,255,255,0.4); }
.body-text.small { font-size: 0.8rem; }
.accent-green { color: var(--color-brand-green-light); }

/* Navigation */
.navbar {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    padding: 0.6rem 2rem;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-full);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04),
        0 8px 32px rgba(0, 0, 0, 0.35),
        0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0; /* JS Fade in */
    transition: background 0.6s var(--ease-expo), border-color 0.6s var(--ease-expo), box-shadow 0.6s var(--ease-expo), backdrop-filter 0.6s var(--ease-expo);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    height: 56px;
    text-decoration: none;
}

.logo-img {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter 0.6s var(--ease-expo);
}

.navbar.scrolled .logo-img {
    filter: brightness(0);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08);
}

.navbar:not(.scrolled) .nav-links a,
.navbar:not(.scrolled) .lang-btn,
.navbar:not(.scrolled) .lang-divider,
.navbar:not(.scrolled) .btn-icon {
    color: #FFF;
}

.navbar.scrolled .nav-links a,
.navbar.scrolled .lang-btn,
.navbar.scrolled .lang-divider,
.navbar.scrolled .btn-icon {
    color: var(--color-obsidian);
}

.lang-btn.active {
    opacity: 1 !important;
    font-weight: 700;
}

.navbar:not(.scrolled) .lang-btn:not(.active) { opacity: 0.5; }
.navbar.scrolled .lang-btn:not(.active) { opacity: 0.3; }

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: color 0.3s var(--ease-expo);
}

.nav-links a:hover {
    color: var(--color-brand-green-light) !important;
}

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

/* Language Switcher Fix */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    pointer-events: auto;
}

.lang-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 2px 4px;
    transition: color 0.3s var(--ease-expo);
}


/* Hamburger Toggle (hidden on desktop) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
    width: 36px;
    height: 36px;
    position: relative;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.4s var(--ease-expo), opacity 0.3s var(--ease-expo);
    transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero Section — Full-bleed cinematic */
.hero {
    min-height: 100dvh;
    padding: 12rem 5% 6rem;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    gap: 4rem;
    background: var(--color-bg);
    color: #FFF;
    position: relative;
    overflow: hidden;
}

/* Bottom cinematic fade — adds depth at footer edge of hero */
.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background: linear-gradient(to top, rgba(5,6,5,0.6) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: rgba(45, 106, 79, 0.1);
    border: 1px solid rgba(45, 106, 79, 0.3);
    color: var(--color-accent-mint);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.25em;
}

.hero-title {
    font-size: var(--fs-h1);
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin-bottom: 3rem;
}

.accent-text {
    color: var(--color-brand-green-light);
    font-style: italic;
    margin-left: 2vw;
    position: relative;
}

.accent-text::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-brand-green-light);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 1.2s var(--ease-expo) 0.5s;
}

.hero:hover .accent-text::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hero-subtitle {
    max-width: 480px;
    margin-bottom: 4rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

/* Buttons */
.hero .btn-primary {
    background: var(--color-brand-green-light);
    color: #FFF;
}

.hero .btn-primary:hover {
    background: var(--color-accent-mint);
    color: var(--color-brand-green-dark);
}

/* CTA sizing & hover */
.hero-cta .btn-primary {
    display: inline-block;
    width: fit-content;
    min-width: 180px;
    max-width: 220px;
    padding: 16px 32px;
    border-radius: 999px;
    transition: transform 0.3s cubic-bezier(0.32,0.72,0,1),
                background 0.3s cubic-bezier(0.32,0.72,0,1),
                color 0.3s cubic-bezier(0.32,0.72,0,1);
}

.hero-cta .btn-primary:hover {
    transform: scale(1.03);
}

/* ── Hero entrance animations ─────────────────────────────── */
@keyframes hero-fade-up {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes hero-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.hero-badge-container {
    animation: hero-fade-in 0.3s ease-out both;
}

.hero-title {
    animation: hero-fade-up 0.6s cubic-bezier(0.22,1,0.36,1) 0.1s both;
}

.hero-subtitle {
    animation: hero-fade-in 0.5s ease-out 0.3s both;
}

.hero-cta {
    animation: hero-fade-in 0.5s ease-out 0.5s both;
}

.hero .btn-icon {
    border-color: rgba(255, 255, 255, 0.3);
    color: #FFF;
}

.hero .btn-icon:hover {
    background: #FFF;
    color: var(--color-obsidian);
    border-color: #FFF;
}

.hero-content {
    grid-column: 1 / 8;
    position: relative;
    z-index: 2;
}

/* Full-bleed background — removed from grid flow */
.hero-visual {
    position: absolute;
    inset: 0;
    z-index: 0;
    height: auto;
}

.visual-canvas {
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    overflow: hidden;
    position: relative;
}

/* Animated gradient veil — dark left → transparent right */
.visual-canvas::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        108deg,
        #050605 0%,
        #050605 18%,
        rgba(5,6,5,0.94) 30%,
        rgba(5,6,5,0.65) 46%,
        rgba(5,6,5,0.15) 63%,
        transparent 78%
    );
    transform-origin: left center;
    will-change: transform;
    animation: hero-veil-breathe 10s cubic-bezier(0.45,0,0.55,1) infinite;
    pointer-events: none;
}

@keyframes hero-veil-breathe {
    0%, 100% { transform: scaleX(1);    opacity: 1; }
    50%       { transform: scaleX(1.07); opacity: 0.9; }
}

/* ── Hero Bubbles ─────────────────────────────────────────── */
.hero-bubbles {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.hero-bubbles span {
    position: absolute;
    bottom: -12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    animation: bubble-rise linear infinite;
    will-change: transform, opacity;
}

@keyframes bubble-rise {
    0%   { transform: translateY(0)      translateX(0);    opacity: 0;   }
    8%   { opacity: 1; }
    50%  { transform: translateY(-50vh)  translateX(18px); }
    85%  { opacity: 0.5; }
    100% { transform: translateY(-110vh) translateX(-8px); opacity: 0;   }
}

/* 15 bubbles — varied size, position, speed, delay */
.hero-bubbles span:nth-child(1)  { left:  6%;  width: 5px;  height: 5px;  animation-duration: 14s; animation-delay:  0s;   }
.hero-bubbles span:nth-child(2)  { left: 14%;  width: 3px;  height: 3px;  animation-duration: 18s; animation-delay:  2.5s; }
.hero-bubbles span:nth-child(3)  { left: 22%;  width: 7px;  height: 7px;  animation-duration: 22s; animation-delay:  5s;   }
.hero-bubbles span:nth-child(4)  { left: 31%;  width: 4px;  height: 4px;  animation-duration: 16s; animation-delay:  1s;   }
.hero-bubbles span:nth-child(5)  { left: 40%;  width: 3px;  height: 3px;  animation-duration: 20s; animation-delay:  7s;   }
.hero-bubbles span:nth-child(6)  { left: 48%;  width: 6px;  height: 6px;  animation-duration: 25s; animation-delay:  3s;   }
.hero-bubbles span:nth-child(7)  { left: 57%;  width: 4px;  height: 4px;  animation-duration: 17s; animation-delay:  9s;   }
.hero-bubbles span:nth-child(8)  { left: 65%;  width: 8px;  height: 8px;  animation-duration: 28s; animation-delay:  0.5s; }
.hero-bubbles span:nth-child(9)  { left: 72%;  width: 3px;  height: 3px;  animation-duration: 13s; animation-delay:  4s;   }
.hero-bubbles span:nth-child(10) { left: 80%;  width: 5px;  height: 5px;  animation-duration: 19s; animation-delay:  6s;   }
.hero-bubbles span:nth-child(11) { left: 88%;  width: 4px;  height: 4px;  animation-duration: 23s; animation-delay:  1.5s; }
.hero-bubbles span:nth-child(12) { left: 10%;  width: 6px;  height: 6px;  animation-duration: 21s; animation-delay: 11s;   }
.hero-bubbles span:nth-child(13) { left: 36%;  width: 3px;  height: 3px;  animation-duration: 15s; animation-delay:  8s;   }
.hero-bubbles span:nth-child(14) { left: 62%;  width: 5px;  height: 5px;  animation-duration: 24s; animation-delay: 13s;   }
.hero-bubbles span:nth-child(15) { left: 92%;  width: 4px;  height: 4px;  animation-duration: 20s; animation-delay:  3.5s; }

@media (prefers-reduced-motion: reduce) {
    .hero-bubbles { display: none; }
}

.parallax-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 65% center;
    position: absolute;
    top: 0;
    left: 0;
    filter: brightness(0.72);
}

/* Floating badge — right side where image is visible */
.floating-element {
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    left: auto;
    background: rgba(8, 10, 8, 0.88);
    padding: 1.8rem 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    z-index: 20;
    color: #FFF;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Navbar Theme Transitions */
.logo-img { transition: filter 0.6s var(--ease-expo); }
.nav-links a { transition: color 0.3s var(--ease-expo); }
.lang-btn { transition: color 0.3s var(--ease-expo), opacity 0.3s var(--ease-expo); }
.btn-icon { transition: all 0.3s var(--ease-expo); }

.navbar .icon-svg {
    stroke: currentColor;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 1.5rem 3.5rem;
    background: var(--color-brand-green-dark);
    color: #FFF;
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: all 0.3s var(--ease-expo);
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--color-brand-green-light);
    color: #FFF;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(45, 106, 79, 0.45);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(45, 106, 79, 0.3);
}

.btn-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    display: grid;
    place-items: center;
    transition: all 0.3s var(--ease-expo);
}

.btn-icon:hover {
    background: var(--color-brand-green-light);
    color: #FFF;
    border-color: var(--color-brand-green-light);
}


/* ─── Stats Strip (Features) ────────────────────────────── */
.features {
    padding: var(--section-padding) 5%;
    background: var(--color-bg);
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.stat-item {
    padding: 4rem 3rem;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.stat-item:last-child { border-right: none; }

.stats-strip .stat-num {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 4.5vw, 5.5rem);
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.03em;
    line-height: 1;
}

.stats-strip .stat-label {
    font-size: 0.82rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.38);
    line-height: 1.65;
    max-width: 22ch;
}

@media (max-width: 768px) {
    .stats-strip { grid-template-columns: 1fr 1fr; }
    .stat-item:nth-child(2) { border-right: none; }
    .stat-item:nth-child(3) {
        border-top: 1px solid rgba(255, 255, 255, 0.07);
        border-right: 1px solid rgba(255, 255, 255, 0.07);
    }
    .stat-item:nth-child(4) {
        border-top: 1px solid rgba(255, 255, 255, 0.07);
        border-right: none;
    }
}

@media (max-width: 480px) {
    .stat-item { padding: 2.5rem 1.5rem; }
}

/* Collection Section */
.products {
    padding: var(--section-padding) 5%;
    background: #050605;
    color: #FFF;
}

.section-title {
    font-size: var(--fs-h2);
    text-align: center;
    margin-bottom: 8rem;
    letter-spacing: -0.03em;
}

.section-title.left {
    text-align: left;
    margin-bottom: 4rem;
}

.eyebrow {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--color-brand-green-light);
    display: block;
    margin-bottom: 1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    row-gap: 8rem;
}

.product-item { 
    position: relative; 
    grid-column: span 12;
}

/* Asymmetric Staggering */
.product-item:nth-child(1) { grid-column: 1 / 7; }
.product-item:nth-child(2) { grid-column: 8 / 13; padding-top: 12rem; }
.product-item:nth-child(3) { grid-column: 3 / 9; }

.product-img-box {
    width: 100%;
    aspect-ratio: 1/1;
    background: #151815;
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
    overflow: hidden;
    position: relative;
}


.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease-expo);
}

.product-item:hover img { transform: scale(1.1); }

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity 0.5s var(--ease-expo);
}

.product-item:hover .product-overlay { opacity: 1; }

.btn-text {
    padding: 1rem 2rem;
    border: 1px solid #FFF;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.product-name { font-size: 2rem; font-family: var(--font-heading); margin-bottom: 0.5rem; }
.product-price { font-size: 1.4rem; color: var(--color-brand-green-light); font-weight: 600; }

/* Footer */
.footer {
    padding: 10rem 5% 4rem;
    background: #000;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 5rem;
    margin-bottom: 8rem;
}

.footer-logo-img { height: 256px; width: auto; max-width: 100%; object-fit: contain; filter: brightness(0) invert(1); margin-bottom: 2rem; display: block; }
.footer-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.25em; margin-bottom: 2.5rem; color: var(--color-brand-green-light); }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 1.2rem; }
.footer-links a { text-decoration: none; color: var(--color-text-muted); font-size: 0.95rem; transition: color 0.3s var(--ease-expo); }
.footer-links a:hover { color: #FFF; }

.footer-bottom {
    padding-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
}

/* Responsiveness */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        background: rgba(5, 6, 5, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3.5rem;
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s var(--ease-expo), visibility 0.5s var(--ease-expo);
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-family: var(--font-heading);
        font-size: clamp(2rem, 9vw, 3.5rem);
        font-weight: 400;
        text-transform: none;
        letter-spacing: 0.02em;
        color: #FFF !important;
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.45s var(--ease-expo), transform 0.45s var(--ease-expo), color 0.3s var(--ease-expo);
    }

    .nav-links.open a { opacity: 1; transform: translateY(0); }
    .nav-links.open a:nth-child(1) { transition-delay: 0.08s; }
    .nav-links.open a:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.open a:nth-child(3) { transition-delay: 0.22s; }
    .nav-links.open a:nth-child(4) { transition-delay: 0.29s; }
}

@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; padding-top: 12rem; text-align: center; }
    .hero-content { grid-column: 1 / -1; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    /* hero-visual is absolute — no grid/height override needed */
    /* Mobile: gradient top-to-bottom so text at top stays readable */
    .visual-canvas::after {
        background: linear-gradient(
            to bottom,
            #050605 0%,
            rgba(5,6,5,0.9) 30%,
            rgba(5,6,5,0.5) 55%,
            transparent 78%
        );
        animation: none; /* disable breathing on mobile for perf */
    }
    .floating-element { right: 1.2rem; bottom: 1.2rem; padding: 1.2rem 1.4rem; }
    .product-grid { grid-template-columns: 1fr 1fr; row-gap: 4rem; }
    .footer-top { grid-template-columns: 1fr 1fr; }

    /* Reset 12-col nth-child overrides for 2-col grid */
    .product-item:nth-child(1),
    .product-item:nth-child(2),
    .product-item:nth-child(3) {
        grid-column: span 1;
        padding-top: 0;
    }
}

@media (max-width: 640px) {
    .footer-top { grid-template-columns: 1fr; }

    /* Horizontal scroll-snap slider */
    .product-grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1.2rem;
        padding-bottom: 1.5rem;
        row-gap: 0;
    }
    .product-grid::-webkit-scrollbar { display: none; }
    .product-grid { -ms-overflow-style: none; scrollbar-width: none; }
}


/* ═══════════════════════════════════════════════════════════════
   LIGHT SECTION SYSTEM
   Applies to: trust-strip, products (index), catalog-section,
               product-section (product.html), legal-section
═══════════════════════════════════════════════════════════════ */

.section-light {
    /* Re-scope design tokens for light surfaces */
    --color-text:          #0B0E0B;
    --color-text-muted:    rgba(11, 14, 11, 0.48);
    --color-text-primary:  #0B0E0B;
    background: #F4F2EE !important;
    color: #0B0E0B;
}


/* ── Products / Collection section on white ────────────────── */
.products.section-light {
    background: #F4F2EE !important;
}

/* Product image box: dark frame floats on white = gallery art */
.products.section-light .product-img-box {
    box-shadow:
        0 24px 64px -8px rgba(11, 14, 11, 0.16),
        0 8px 20px -4px rgba(11, 14, 11, 0.08);
}

/* btn-text overlay stays white: it's inside the dark overlay */
.products.section-light .btn-text {
    border-color: rgba(255, 255, 255, 0.9);
    color: #FFF;
}

/* Section title + eyebrow on white */
.products.section-light .section-title,
.products.section-light .heading-serif {
    color: var(--color-obsidian);
}

.products.section-light .product-name {
    color: var(--color-obsidian);
}

.products.section-light .body-text {
    color: rgba(11, 14, 11, 0.5);
}

/* CTA button on white: dark green on cream = premium */
.products.section-light .btn-primary {
    background: var(--color-brand-green-dark);
    color: #FFF;
}

.products.section-light .btn-primary:hover {
    background: var(--color-brand-green-light);
    box-shadow: 0 12px 30px rgba(45, 106, 79, 0.35);
}

/* Hard cut dark→white IS the separator — no added line needed */