@import url('https://fonts.googleapis.com/css2?family=Satoshi:wght@400;500;700&family=Poppins:wght@400;600&family=Recoleta:wght@400;600;700&display=swap');

/* ============================================================
   DESIGN TOKENS
   Colour tokens (--color-*) are re-declared here as safe static
   fallbacks matching the defaults in app.py's _site_theme_css().
   The server-rendered <style id="theme-overrides"> tag (loaded after
   this file) re-declares the same --color-* names from the admin
   Colours & Theme settings, so saved admin colours always win -- this
   block only prevents a flash of unstyled tokens before that tag
   parses, and keeps a value available on any page that (for any
   reason) doesn't inline the theme overrides.
   Spacing/radius/shadow/type-scale tokens are layout primitives with
   no admin setting yet; they are intentionally static.
   ============================================================ */
:root {
    /* Warm forest/terracotta system -- replaces the old pale-blue default
       palette. Key names are unchanged (component CSS + the server-rendered
       theme-overrides tag both key off these names) so admin-saved colours
       keep working; only the hardcoded fallback *values* changed. */
    --color-primary: #294437;
    --color-primary-deep: #20372D;
    --color-secondary: #C66A55;
    --color-accent: #C66A55;
    --color-accent-hover: #AC5C4A;
    --color-page-background: #F7F2E9;
    --color-surface: #FCFAF6;
    --color-surface-muted: #F2ECDF;
    --color-section-sage: #EFEAD9;
    --color-heading: #294437;
    --color-text: #2D302D;
    --color-text-muted: #6D706B;
    --color-border: #DED4C7;
    --color-button-primary: #C66A55;
    --color-button-primary-text: #FFF9F1;
    --color-footer-background: #20372D;
    --color-footer-background-deep: #182B22;
    --color-footer-text: #E7E7DC;
    --color-footer-accent: #C66A55;
    --color-focus-ring: #C66A55;
    --color-card-text: #2D302D;
    --color-hero-text: #FFF9F1;

    /* Radius scale */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 25px;
    --radius-xl: 30px;

    /* Shadow scale (restrained -- see design system audit) */
    --shadow-sm: 0 2px 10px rgba(28, 46, 61, 0.06);
    --shadow-md: 0 6px 20px rgba(28, 46, 61, 0.08);
    --shadow-lg: 0 16px 40px rgba(28, 46, 61, 0.14);

    /* Layout */
    --content-width: 1200px;
    --content-width-narrow: 640px;
    --space-section: clamp(64px, 9vw, 120px);
    --space-section-sm: clamp(40px, 6vw, 72px);
    --card-padding: clamp(20px, 2.5vw, 32px);
    --header-height: 84px;
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;

    /* Type scale */
    --font-display: clamp(2.75rem, 2.1rem + 3vw, 4.5rem);
    --font-hero: clamp(2.5rem, 2rem + 2.5vw, 3.75rem);
    --font-section: clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem);
    --font-card: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
    --font-intro: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
    --font-body: 1rem;
    --font-meta: 0.875rem;
    --font-legal: 0.8125rem;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* Global visible keyboard-focus state. Mouse/touch users never see this
   (`:focus-visible`); keyboard users always get a clear, on-brand ring
   regardless of what surface the control sits on. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--color-focus-ring, #4e88b5);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Decorative icons must never take keyboard focus or be announced twice
   alongside their adjacent text label. */
svg[aria-hidden="true"] {
    pointer-events: none;
}

/* ---------- Shared page/section header (eyebrow + title) ----------
   Used by the centered header block at the top of secondary pages
   (Events, Newsroom, Products, ...) so the label + heading treatment
   stays in sync across pages instead of being redefined per-file. */
.section-eyebrow {
    font-family: 'Satoshi', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--color-accent, #C66A55);
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Recoleta', serif;
    font-size: var(--font-section, clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem));
    font-weight: 600;
    color: var(--color-heading, #294437);
    margin: 0 0 16px;
    letter-spacing: -1.5px;
    line-height: 1.12;
}

.section-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: var(--color-text-muted, #6D706B);
    line-height: 1.7;
    margin: 0;
}

/* Smooth Page Transition Animations */
@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes pageExit {
    from {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
    to {
        opacity: 0;
        transform: translateY(-30px);
        filter: blur(10px);
    }
}

@keyframes pageOverlay {
    0% {
        transform: scaleY(0);
        opacity: 1;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
    100% {
        transform: scaleY(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-60px);
    }
}

@keyframes underlineSlide {
    from {
        width: 0;
        left: 50%;
    }
    to {
        width: 100%;
        left: 0;
    }
}

@keyframes backgroundFlow {
    0% {
        background: linear-gradient(135deg, rgb(248, 243, 237) 0%, rgb(242, 235, 225) 50%, rgb(245, 239, 231) 100%);
    }
    50% {
        background: linear-gradient(135deg, rgb(250, 245, 239) 0%, rgb(244, 237, 227) 50%, rgb(247, 241, 233) 100%);
    }
    100% {
        background: linear-gradient(135deg, rgb(248, 243, 237) 0%, rgb(242, 235, 225) 50%, rgb(245, 239, 231) 100%);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.5;
        filter: blur(40px);
    }
    50% {
        opacity: 0.8;
        filter: blur(45px);
    }
}

@keyframes glowShift {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(20px, -30px);
    }
    50% {
        transform: translate(0, 0);
    }
    75% {
        transform: translate(-20px, 30px);
    }
    100% {
        transform: translate(0, 0);
    }
}

/* Atmospheric Gradient Blob Animations */
@keyframes blobDriftVertical {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(-15px, -40px) scale(1.05);
        opacity: 0.4;
    }
    50% {
        transform: translate(5px, -80px) scale(1);
        opacity: 0.35;
    }
    75% {
        transform: translate(-25px, -40px) scale(1.03);
        opacity: 0.38;
    }
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
}

@keyframes blobDriftVerticalAlt {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.25;
    }
    25% {
        transform: translate(20px, -50px) scale(1.02);
        opacity: 0.32;
    }
    50% {
        transform: translate(-10px, -100px) scale(0.98);
        opacity: 0.28;
    }
    75% {
        transform: translate(15px, -50px) scale(1.04);
        opacity: 0.31;
    }
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.25;
    }
}

@keyframes waveShimmer {
    0% {
        opacity: 0.08;
        transform: translateY(0px);
    }
    50% {
        opacity: 0.12;
        transform: translateY(-8px);
    }
    100% {
        opacity: 0.08;
        transform: translateY(0px);
    }
}

@keyframes vignetteShift {
    0% {
        opacity: 0.15;
        background-position: 0% 0%;
    }
    50% {
        opacity: 0.18;
        background-position: 1% 1%;
    }
    100% {
        opacity: 0.15;
        background-position: 0% 0%;
    }
}

@keyframes gradientBlobPulse {
    0%, 100% {
        opacity: 0.28;
        filter: blur(80px);
    }
    50% {
        opacity: 0.38;
        filter: blur(100px);
    }
}

/* Film Grain / Paper Texture */
@keyframes filmGrainShift {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}

/* Slow Moving Gradient Animation */
@keyframes slowGradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

html {
    margin: 0;
    padding: 0;
    background: transparent;
    overscroll-behavior: none;
    scroll-behavior: auto;
}

html, body {
    scroll-padding-top: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2a2a2a;
    position: relative;
    overflow-x: hidden;
    background: transparent;
}

/* Global Background Layer - Fixed to viewport */
#global-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(to bottom, #faf7f2, #f5f0eb, #ede7e0);
}

/* App Content Wrapper - page entrance animation here instead of body */
#app-content {
    position: relative;
    padding-top: 146px;
    animation: pageEnter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ── Auto-scrolling announcement ticker ──────────────────────────────────
   Sits above the fixed navbar (pushed down to top:38px to make room).
   Present in the DOM at load, so it's covered by the age-gate overlay and
   only becomes visible once the visitor confirms their age — no extra JS
   coordination needed with the age-gate logic. */
.scroll-ticker {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 101; /* above .navbar (100) */
    height: 38px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #D85B4A 0%, #c94a3a 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.scroll-ticker-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: tickerScroll 32s linear infinite;
    will-change: transform;
}

.scroll-ticker:hover .scroll-ticker-track,
.scroll-ticker-track.paused {
    animation-play-state: paused;
}

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.scroll-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 32px;
    font-family: 'Satoshi', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: #fff;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.scroll-ticker-item:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.scroll-ticker-item:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -3px;
}

.scroll-ticker-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* Hidden when disabled from Admin > Content > Ticker; collapse the layout
   offset so the navbar/page reclaim the space cleanly. */
body.ticker-disabled .scroll-ticker { display: none; }
body.ticker-disabled .navbar { top: 0 !important; }
body.ticker-disabled #app-content { padding-top: 108px !important; }

@media (max-width: 768px) {
    .scroll-ticker { height: 32px; }
    .scroll-ticker-item { padding: 0 20px; font-size: 12px; }
    .scroll-ticker-icon { width: 13px; height: 13px; }

    body.ticker-disabled .navbar { top: 0 !important; }
    body.ticker-disabled #app-content { padding-top: 76px !important; }
}

/* Atmospheric glows on global background layer */
#global-bg::before {
    content: '';
    position: fixed;
    top: 0;
    right: -200px;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(220, 100, 80, 0.6) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

#global-bg::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: -300px;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(100, 140, 200, 0.5) 0%, transparent 70%);
    filter: blur(90px);
    pointer-events: none;
}

/* Third glow using geo-1 element */
.geo-1 {
    position: fixed !important;
    bottom: 100px !important;
    right: -200px !important;
    width: 600px !important;
    height: 600px !important;
    background: radial-gradient(circle, rgba(240, 150, 80, 0.55) 0%, transparent 70%) !important;
    filter: blur(85px) !important;
    z-index: 0 !important;
    pointer-events: none !important;
    border: none !important;
    animation: none !important;
}

/* Page Transition Overlay */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgb(68, 115, 160) 0%, rgb(58, 105, 150) 100%);
    z-index: 9999;
    transform-origin: top;
    animation: pageOverlay 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    pointer-events: none;
}

/* Footer */
.footer {
    position: relative;
    z-index: 10;
    /* No top margin: the footer sits flush against the section above it
       (mailing-list ends in a dark wave-divider that bridges straight into
       this navy background). A gap here would let the fixed cream/glow
       #global-bg layer show through as a jarring stripe between two dark
       elements. */
    margin-top: 0;
    text-align: center;
    background: rgba(210, 190, 165, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1.5px solid rgba(210, 190, 165, 0.7);
    box-shadow: 0 -4px 24px rgba(160, 120, 80, 0.08);
}

/* Organized into three clear zones (brand / navigation / legal) instead of
   one long centred stack, so the footer reads as structured information
   rather than an afterthought. Falls back to the original centred stack
   below 900px, where three side-by-side columns would feel cramped. */
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
    padding: 52px 60px 44px;
    text-align: left;
}

.footer-logo-wrap {
    display: flex;
    justify-content: flex-start;
}

.footer-legal-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    text-align: right;
}

@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
    .footer-logo-wrap {
        justify-content: center;
    }
    .footer-legal-col {
        align-items: center;
        text-align: center;
    }
}

.footer-logo {
    height: 110px;
    width: auto;
    object-fit: contain;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    font-family: 'Satoshi', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #2a3a4a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: #D85B4A;
}

.footer-dot {
    color: #D85B4A;
    font-size: 10px;
    line-height: 1;
    opacity: 0.7;
}

.footer-divider {
    width: 100%;
    max-width: 220px;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    align-self: flex-end;
}

@media (max-width: 900px) {
    .footer-divider { align-self: center; }
}

.footer-text {
    font-family: 'Satoshi', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #aaa;
    margin: 0;
    letter-spacing: 0.2px;
}

/* Atmospheric Glow Elements */
.geo-circle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    border: none;
}

/* Soft coral glow - top right */
.geo-1 {
    width: 600px;
    height: 600px;
    top: -100px;
    right: -150px;
    background: radial-gradient(circle, rgba(220, 100, 80, 0.35) 0%, transparent 70%);
    filter: blur(80px);
    animation: none;
}

/* Geo-2 and Geo-3 hidden - glows now on global-bg layer */
.geo-2 {
    display: none !important;
}

.geo-3 {
    display: none !important;
}

/* Hide Sparkle Elements */
.sparkle {
    display: none;
}

.sparkle-1 {
    display: none;
}

.sparkle-2 {
    display: none;
}

/* Navigation Bar — full-width, business-like bar (not a floating pill).
   The colored bar/background/shadow lives on .navbar itself (edge-to-edge),
   while .nav-container stays a centered, max-width inner row so content
   doesn't spread out awkwardly on very wide screens. */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    position: fixed;
    top: 38px;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    opacity: 1;
    /* Vertical (not diagonal) gradient: a 135deg diagonal across a very wide,
       short bar compresses its color transition into a narrow band, so most
       of the bar reads as flat/mismatched color instead of a smooth blend.
       Top-to-bottom keeps the shading consistent at any viewport width. */
    background: linear-gradient(180deg, rgb(68, 115, 160) 0%, rgb(58, 105, 150) 100%);
    background-image:
        linear-gradient(180deg, rgb(68, 115, 160) 0%, rgb(58, 105, 150) 100%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.04) 2px,
            rgba(255, 255, 255, 0.04) 4px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 4px
        );
    border-radius: 0 0 16px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 10px rgba(20, 40, 65, 0.10);
    transition: box-shadow 0.3s ease;
}

/* Deepen the shadow (no blur/glass) once the page is scrolled — a stable, corporate treatment */
.navbar.scrolled {
    box-shadow: 0 10px 28px rgba(20, 40, 65, 0.24);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    height: 88px;
    padding: 0 40px;
    position: relative;
    will-change: height;
    transition: height 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar.scrolled .nav-container {
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 68px;
    width: auto;
    object-fit: contain;
    transition: height 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Slightly smaller logo when scrolled */
.navbar.scrolled .logo-img {
    height: 56px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 44px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Satoshi', sans-serif;
    transition: opacity 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #D85B4A;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateX(-50%);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active::after {
    width: 100%;
    left: 0;
    transform: translateX(0);
    animation: underlineSlide 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Farmgate nav shimmer — makes the tab stand out with a slow gold
   light-sweep across the text plus a soft pulsing glow. Applied to both
   the desktop .nav-links and mobile .mobile-nav-links Farmgate link. ── */
.nav-farmgate-shimmer {
    display: inline-block;
    background-image: linear-gradient(100deg,
        rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.92) 35%,
        #fff8dd 45%, #f0c869 50%, #fff8dd 55%,
        rgba(255, 255, 255, 0.92) 65%, rgba(255, 255, 255, 0.92) 100%);
    background-size: 220% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: navFarmgateShimmer 3.2s ease-in-out infinite, navFarmgateGlow 3.2s ease-in-out infinite;
}

@keyframes navFarmgateShimmer {
    0% { background-position: 180% center; }
    55%, 100% { background-position: -60% center; }
}

@keyframes navFarmgateGlow {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(240, 201, 105, 0)); }
    50% { filter: drop-shadow(0 0 6px rgba(240, 201, 105, 0.6)); }
}

/* ── Language toggle ───────────────────────────────────────── */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 20px;
    flex-shrink: 0;
}

.lang-globe {
    width: 15px;
    height: 15px;
    color: rgba(255, 255, 255, 0.65);
    flex-shrink: 0;
    transition: color 0.2s;
}

.lang-toggle:hover .lang-globe {
    color: rgba(255, 255, 255, 0.9);
}

.lang-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    font-family: 'Satoshi', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    padding: 3px 2px;
    transition: color 0.2s;
    line-height: 1;
}

.lang-btn:hover {
    color: rgba(255, 255, 255, 0.9);
}

.lang-btn.active {
    color: #fff;
}

.lang-sep {
    color: rgba(255, 255, 255, 0.25);
    font-family: 'Satoshi', sans-serif;
    font-size: 11px;
    line-height: 1;
    user-select: none;
}

/* Hero Section */
.hero {
    padding: 0;
    position: relative;
    z-index: 5;
}

/* Hero Section */
.hero::before {
    display: none;
}

/* Image-led editorial hero: full-bleed to the viewport edges and tucked up
   underneath the fixed nav (via the negative margin-top applied at runtime
   in index.html, matched to the nav+ticker height) so the photo reads as
   one seamless surface with the nav bar instead of a boxed card sitting
   below it. Content sits in a scrim-backed panel anchored to the bottom
   so it stays legible over any image (bright or dark, any subject). */
.hero-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0;
    width: 100%;
    min-height: 640px;
    position: relative;
    background: var(--color-primary-deep, #20372D); /* visible fallback while the editable image loads */
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Gradient scrim over the image so headline/body text stay readable
   regardless of the uploaded image's brightness or composition. */
.hero-container::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg,
        rgba(15, 24, 33, 0.08) 0%,
        rgba(15, 24, 33, 0.18) 40%,
        rgba(15, 24, 33, 0.78) 100%);
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-carousel-img.active {
    opacity: 1;
}

.hero-carousel-controls {
    position: absolute;
    /* Bottom-right, not top-right: index.html's pinHeroUnderNav() pulls the
       hero image up underneath the fixed ticker+navbar for a seamless
       full-bleed look, which also drags a top-anchored element up behind
       those fixed bars -- they sit at a higher z-index, so the prev/next
       arrows and per-image dots were rendering completely hidden behind
       the nav, even though the carousel itself was still auto-advancing. */
    bottom: 24px;
    right: 24px;
    left: auto;
    transform: none;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 3;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--color-primary, #294437);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.9);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #999;
    object-fit: cover;
}

/* For actual images */
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 56px 56px 68px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.hero-content h1 {
    font-family: 'Recoleta', 'Georgia', serif;
    font-weight: 600;
    /* Larger, more confident hero headline (was capped at 56px). */
    font-size: var(--font-hero, clamp(2.5rem, 2rem + 2.5vw, 3.75rem));
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--color-hero-text, #fff);
    /* Prevent very long EN/FR headlines from overflowing the panel */
    overflow-wrap: break-word;
    word-break: break-word;
    /* Reduce orphaned single words wrapping alone on the last line. */
    text-wrap: balance;
}

.hero-content p {
    /* Minimum 16px on all breakpoints per body-copy readability requirement. */
    font-size: clamp(1rem, 0.94rem + 0.3vw, 1.15rem);
    font-weight: 400;
    font-family: 'Satoshi', 'Poppins', sans-serif;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    max-width: 52ch;
    overflow-wrap: break-word;
}

.shop-btn {
    align-self: flex-start;
    background: #fff;
    color: #1c2e3d;
    border: none;
    /* Larger touch target + more visual weight so the primary CTA reads
       clearly against the much larger hero headline. */
    padding: 19px 46px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    margin-top: 4px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
    font-family: 'Satoshi', sans-serif;
}

.shop-btn:hover {
    transform: translateY(-2px);
    background: #f5f0eb;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

/* Products Catalog Section */
.products-catalog {
    padding: 60px 20px;
    position: relative;
    z-index: 5;
}

/* Products Section */
.products-catalog::before {
    display: none;
}

.catalog-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.03) 0px,
            rgba(0, 0, 0, 0.03) 1px,
            transparent 1px,
            transparent 2px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.02) 0px,
            rgba(0, 0, 0, 0.02) 1px,
            transparent 1px,
            transparent 2px
        ),
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.05) 0px,
            rgba(255, 255, 255, 0.05) 2px,
            transparent 2px,
            transparent 4px
        ),
        repeating-linear-gradient(
            -45deg,
            rgba(0, 0, 0, 0.04) 0px,
            rgba(0, 0, 0, 0.04) 2px,
            transparent 2px,
            transparent 4px
        ),
        linear-gradient(135deg, #D85B4A 0%, #C24A3A 100%);
    padding: 70px 60px;
    border-radius: 40px;
    box-shadow: 0 30px 70px rgba(216, 91, 74, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.catalog-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.catalog-title {
    font-family: 'Recoleta', serif;
    font-size: 72px;
    font-weight: 600;
    color: white;
    margin: 0;
    line-height: 1.15;
    letter-spacing: -2px;
}

.catalog-description {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    line-height: 1.6;
    max-width: 300px;
    font-weight: 500;
}

.catalog-button {
    background: linear-gradient(135deg, rgb(248, 243, 237) 0%, rgb(242, 237, 231) 100%);
    color: #D85B4A;
    border: none;
    padding: 16px 32px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Satoshi', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: fit-content;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.catalog-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.catalog-button:active {
    transform: translateY(-2px);
}

.catalog-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.category-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgb(245, 240, 235) 100%);
    padding: 35px 25px;
    border-radius: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(216, 91, 74, 0.15);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(216, 91, 74, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.category-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
}

.category-label {
    font-family: 'Satoshi', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    border-bottom: 2px solid #D85B4A;
    padding-bottom: 8px;
}

/* Placeholder Sections */
.locator {
    padding: 60px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.locator h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: rgb(78, 136, 181);
}

/* ===== CONTACT PAGE ===== */
.contact-section {
    padding: 80px 20px 120px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.contact-header {
    margin-bottom: 60px;
}

.contact-header h1 {
    font-family: 'Recoleta', serif;
    font-size: 58px;
    font-weight: 600;
    color: rgb(78, 136, 181);
    margin: 0 0 14px 0;
    line-height: 1.1;
}

.contact-header p {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    color: #777;
    margin: 0;
    max-width: 460px;
    line-height: 1.7;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    align-items: start;
}

/* ── Info cards ── */
.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    background: white;
    border-radius: 18px;
    padding: 24px 28px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    border: 1.5px solid rgba(78, 136, 181, 0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(78, 136, 181, 0.13);
    border-color: rgba(78, 136, 181, 0.25);
}

.contact-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card-icon.blue  { background: rgba(78,136,181,0.12); color: rgb(78,136,181); }
.contact-card-icon.red   { background: rgba(216,91,74,0.12);  color: #D85B4A; }
.contact-card-icon.green { background: rgba(46,204,113,0.12); color: #2ECC71; }
.contact-card-icon.purple{ background: rgba(155,89,182,0.12); color: #9B59B6; }

.contact-card-body { flex: 1; min-width: 0; }

.contact-card-label {
    font-family: 'Satoshi', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #aaa;
    margin: 0 0 4px 0;
}

.contact-card-value {
    font-family: 'Satoshi', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0;
    word-break: break-word;
}

/* ── Contact form ── */
.contact-form-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    border: 1.5px solid rgba(78, 136, 181, 0.1);
    box-shadow: 0 8px 40px rgba(78, 136, 181, 0.1);
}

.contact-form-card h2 {
    font-family: 'Recoleta', serif;
    font-size: 26px;
    font-weight: 600;
    color: #333;
    margin: 0 0 28px 0;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-field {
    margin-bottom: 18px;
}

.contact-field label {
    display: block;
    font-family: 'Satoshi', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #888;
    margin-bottom: 7px;
}

.contact-field input,
.contact-field textarea,
.contact-field select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid rgba(78, 136, 181, 0.2);
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #333;
    background: rgba(78, 136, 181, 0.025);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.contact-field input:focus,
.contact-field textarea:focus,
.contact-field select:focus {
    outline: none;
    border-color: rgb(78, 136, 181);
    background: white;
    box-shadow: 0 0 0 3px rgba(78, 136, 181, 0.08);
}

.contact-field textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.contact-field-hint {
    margin: 5px 0 0;
    font-size: 12px;
    color: #aaa;
    font-style: italic;
}

/* Mailing list opt-in checkbox */
.mailing-opt-in {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(78, 136, 181, 0.15);
    background: rgba(78, 136, 181, 0.05);
    /* Hidden by default — revealed by JS when email is valid */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    margin-bottom: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-bottom 0.3s ease;
}

.mailing-opt-in.visible {
    max-height: 60px;
    opacity: 1;
    pointer-events: all;
    margin-bottom: 14px;
}

.mailing-opt-in input[type="checkbox"] {
    display: none;
}

.mailing-opt-in-box {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 5px;
    border: 1.5px solid #bbb;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
}

.mailing-opt-in input[type="checkbox"]:checked + .mailing-opt-in-box {
    background: #D85B4A;
    border-color: #D85B4A;
}

.mailing-opt-in input[type="checkbox"]:checked + .mailing-opt-in-box::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translate(-1px, -1px);
}

.mailing-opt-in-text {
    font-size: 13px;
    font-family: 'Satoshi', sans-serif;
    color: #555;
    line-height: 1.3;
    user-select: none;
}

/* File attachment field */
.contact-file-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1.5px dashed rgba(78, 136, 181, 0.35);
    border-radius: 10px;
    background: rgba(78, 136, 181, 0.03);
    cursor: pointer;
    font-family: 'Satoshi', sans-serif;
    font-size: 13px;
    color: #777;
    transition: border-color 0.2s, background 0.2s;
}
.contact-file-label:hover {
    border-color: rgb(78, 136, 181);
    background: rgba(78, 136, 181, 0.06);
    color: rgb(78, 136, 181);
}
.contact-file-label svg {
    flex-shrink: 0;
    color: rgb(78, 136, 181);
}

.contact-submit {
    width: 100%;
    background: linear-gradient(135deg, #D85B4A 0%, #c94a3a 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 14px;
    font-family: 'Satoshi', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(216, 91, 74, 0.3);
    margin-top: 6px;
}

.contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(216, 91, 74, 0.4);
}

.contact-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.contact-success {
    display: none;
    text-align: center;
    padding: 32px 0 8px;
}
.contact-success.show { display: block; }
.contact-success-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(46,204,113,0.15);
    color: #2ECC71;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
}
.contact-success h3 {
    font-family: 'Recoleta', serif;
    font-size: 22px;
    color: #333;
    margin: 0 0 8px;
}
.contact-success p {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #888;
    margin: 0;
}

@media (max-width: 900px) {
    .contact-layout { grid-template-columns: 1fr; }
    .contact-header h1 { font-size: 40px; }
}

@media (max-width: 540px) {
    .contact-form-row { grid-template-columns: 1fr; }
    .contact-form-card { padding: 28px 22px; }
}

/* Age Gate Modal */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.age-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.age-gate-overlay.hidden {
    display: none;
}

.age-gate-modal {
    background: linear-gradient(135deg, rgb(28, 46, 61) 0%, rgb(18, 30, 40) 100%);
    padding: 70px 60px;
    border-radius: 30px;
    text-align: center;
    max-width: 520px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(255, 255, 255, 0.08);
}

.age-gate-content {
    display: flex;
    flex-direction: column;
    gap: 35px;
    align-items: center;
}

.age-gate-logo {
    height: 120px;
    width: auto;
    object-fit: contain;
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

.age-gate-modal h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: rgb(217, 227, 234);
    margin: 0;
    line-height: 1.3;
    animation: fadeIn 0.5s ease 0.2s both;
}

.age-gate-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
    animation: fadeIn 0.5s ease 0.3s both;
}

.btn-yes {
    background: linear-gradient(135deg, #D85B4A 0%, #c94a3a 100%);
    color: white;
    border: none;
    padding: 16px 45px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Satoshi', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex: 1;
    box-shadow: 0 8px 20px rgba(216, 91, 74, 0.3);
}

.btn-yes:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(216, 91, 74, 0.4);
}

.btn-yes:active {
    transform: translateY(-2px);
}

.btn-no {
    background-color: transparent;
    color: rgb(78, 136, 181);
    border: 2.5px solid rgb(78, 136, 181);
    padding: 14px 45px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Satoshi', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex: 1;
}

.btn-no:hover {
    background-color: rgb(78, 136, 181);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(78, 136, 181, 0.3);
}

.btn-no:active {
    transform: translateY(-2px);
}

/* Age Gate Button - True viewport-fixed element */
.age-gate-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    background-color: #D85B4A;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Satoshi', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.age-gate-button:hover {
    background-color: #c94a3a;
    transform: translateY(-2px);
}

/* Responsive */
/* ── Hamburger button (hidden on desktop) ─────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease, width 0.3s ease;
    transform-origin: center;
}

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

/* ── Mobile full-screen nav drawer ───────────────────────── */
.mobile-nav-drawer {
    position: fixed;
    inset: 0;
    z-index: 99;                       /* below navbar (100) */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: rgba(15, 28, 46, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    pointer-events: none;
}

.mobile-nav-drawer.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.mobile-nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 32px;
    font-weight: 600;
    font-family: 'Satoshi', sans-serif;
    padding: 10px 32px;
    border-radius: 14px;
    display: block;
    text-align: center;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
    letter-spacing: -0.01em;
}

.mobile-nav-links a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.mobile-nav-links a.active {
    color: #fff;
    background: rgba(216, 91, 74, 0.18);
}

.mobile-drawer-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    opacity: 0.7;
}

/* ── Mobile breakpoint ────────────────────────────────────── */
@media (max-width: 768px) {
    /* Show hamburger, hide desktop nav items */
    .hamburger {
        display: flex;
    }

    .nav-links,
    .lang-toggle {
        display: none;
    }

    /* Compact full-width bar */
    .navbar {
        border-radius: 0 0 12px 12px;
    }

    .nav-container {
        padding: 0 16px;
        height: 60px;
        justify-content: space-between;
    }

    .navbar.scrolled .nav-container {
        height: 54px;
    }

    .logo-img,
    .navbar.scrolled .logo-img {
        height: 40px;
        margin-top: 0;
    }

    /* Page content offset */
    #app-content {
        padding-top: 108px;
    }

    .navbar {
        top: 32px;
    }

    /* Hero */
    .hero-container {
        min-height: 480px;
    }

    .hero-content {
        max-width: 100%;
        padding: 28px 22px 32px;
        gap: 16px;
    }

    .hero-carousel-controls {
        bottom: 16px;
        right: 16px;
    }

    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-hero h1 {
        font-size: 36px;
    }

    .contact-hero p {
        font-size: 16px;
    }

    /* Popular products — fix first card clipping */
    .popular-scroll-container {
        padding: 10px 0;
    }

    .popular-products-grid {
        justify-content: flex-start;
        padding: 0 16px;
    }

    /* Product modal close button — keep above scrollable content */
    .product-modal-close {
        position: fixed;
        top: 16px;
        right: 16px;
        z-index: 2100;
    }
}

/* Products Page */

/* Products Header */
.products-header {
    padding: 80px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.products-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.products-header-text {
    flex: 1;
}

.products-title {
    font-family: 'Recoleta', serif !important;
    font-size: 56px !important;
    font-weight: 600 !important;
    color: rgb(78, 136, 181) !important;
    margin: 0 0 16px 0 !important;
    letter-spacing: -1px !important;
}

.products-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    color: #666;
    margin: 0;
    line-height: 1.6;
    max-width: 500px;
}

.products-shop-btn {
    background: linear-gradient(135deg, #D85B4A 0%, #c94a3a 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-family: 'Satoshi', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(216, 91, 74, 0.2);
}

.products-shop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(216, 91, 74, 0.26);
}

/* Category Filters */
.products-filters-section {
    padding: 30px 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.products-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-pill {
    background-color: white !important;
    color: rgb(78, 136, 181) !important;
    border: 2px solid rgb(78, 136, 181) !important;
    padding: 12px 26px !important;
    border-radius: 25px !important;
    font-family: 'Satoshi', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}

.filter-pill:hover {
    border-color: #D85B4A !important;
    color: #D85B4A !important;
    background-color: rgba(216, 91, 74, 0.05) !important;
}

.filter-pill.active {
    background-color: #D85B4A !important;
    color: white !important;
    border-color: #D85B4A !important;
    box-shadow: 0 6px 20px rgba(216, 91, 74, 0.4) !important;
}

/* Products Grid */
.products-grid-section {
    padding: 60px 20px 100px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.product-card {
    background: rgb(243, 229, 214);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    border: 2px solid rgba(78, 136, 181, 0.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(78, 136, 181, 0.2);
    box-shadow: 0 15px 40px rgba(78, 136, 181, 0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(78, 136, 181, 0.08) 0%, rgba(216, 91, 74, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-category-badge {
    font-family: 'Satoshi', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: white;
    background-color: #D85B4A;
    padding: 6px 14px;
    border-radius: 20px;
    margin: 16px 16px 0 16px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card-title {
    font-family: 'Recoleta', serif;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 12px 16px 4px 16px;
}

.product-card-detail {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #999;
    margin: 0 16px 12px 16px;
}

.product-card-price {
    font-family: 'Recoleta', serif;
    font-size: 24px;
    font-weight: 600;
    color: rgb(78, 136, 181);
    margin: 0 16px 4px 16px;
}

.product-card-size {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #999;
    margin: 0 16px 16px 16px;
}

.product-card-btn {
    background-color: rgb(78, 136, 181);
    color: white;
    border: none;
    padding: 12px 20px;
    margin: 0 16px 16px 16px;
    border-radius: 20px;
    font-family: 'Satoshi', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card-btn:hover {
    background-color: #D85B4A;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(216, 91, 74, 0.3);
}

.product-card-btn:active {
    transform: translateY(0);
}

    .catalog-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 50px 30px;
    }

    .catalog-title {
        font-size: 48px;
    }

    .catalog-categories {
        grid-template-columns: 1fr 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .products-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .products-title {
        font-size: 40px;
    }

    .products-shop-btn {
        align-self: flex-start;
    }

    .products-filters {
        justify-content: flex-start;
    }
}

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

    .products-title {
        font-size: 32px;
    }

    .products-subtitle {
        font-size: 16px;
    }
}

/* ===== FEATURED PRODUCTS SECTION ===== */
.featured-products {
    padding: 80px 20px;
    position: relative;
    z-index: 5;
}

.featured-products-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.featured-title {
    font-family: 'Recoleta', serif;
    font-size: 48px;
    font-weight: 600;
    color: rgb(78, 136, 181);
    text-align: center;
    margin: 0 0 60px 0;
    letter-spacing: -1px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-bottom: 40px;
}

.featured-card {
    background: rgb(243, 229, 214);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    border: 1.5px solid rgba(78, 136, 181, 0.12);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.featured-card:hover {
    transform: translateY(-8px);
    border-color: rgba(78, 136, 181, 0.2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.featured-image {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, rgba(78, 136, 181, 0.08) 0%, rgba(216, 91, 74, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-card:hover .featured-image img {
    transform: scale(1.03);
}

.featured-badge {
    font-family: 'Satoshi', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: white;
    background-color: rgba(78, 136, 181, 0.7);
    padding: 6px 14px;
    border-radius: 18px;
    display: inline-block;
    margin: 16px 16px 0 16px;
    position: relative;
    z-index: 2;
}

.featured-name {
    font-family: 'Recoleta', serif;
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 14px 16px 6px 16px;
    line-height: 1.2;
}

.featured-info {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #888;
    margin: 0 16px 8px 16px;
    line-height: 1.4;
}

.featured-price {
    font-family: 'Recoleta', serif;
    font-size: 28px;
    font-weight: 600;
    color: rgb(78, 136, 181);
    margin: 8px 16px 16px 16px;
}

.featured-btn {
    background: linear-gradient(135deg, rgb(78, 136, 181) 0%, rgb(65, 120, 160) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    margin: 0 16px 16px 16px;
    border-radius: 22px;
    font-family: 'Satoshi', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 6px 16px rgba(78, 136, 181, 0.2);
    align-self: flex-start;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-btn:hover {
    background: linear-gradient(135deg, #D85B4A 0%, #c94a3a 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(216, 91, 74, 0.3);
}

/* ===== POPULAR PRODUCTS SECTION ===== */
.popular-products {
    padding: 80px 20px;
    position: relative;
    z-index: 5;
}

.popular-products-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.popular-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 60px 0;
}

.popular-title {
    font-family: 'Recoleta', serif;
    font-size: var(--font-section, clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem));
    font-weight: 600;
    color: var(--color-heading, #294437);
    margin: 0;
    letter-spacing: -1px;
    text-wrap: balance;
}

.popular-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-family: 'Satoshi', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-accent, #C66A55);
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 10px;
    border: 1.5px solid color-mix(in srgb, var(--color-accent, #C66A55) 32%, transparent);
    transition: all 0.2s ease;
}

.popular-view-all svg {
    transition: transform 0.2s ease;
}

.popular-view-all:hover {
    background: var(--color-accent, #C66A55);
    color: #fff;
    border-color: var(--color-accent, #C66A55);
}

.popular-view-all:hover svg {
    transform: translateX(3px);
}

.popular-scroll-container {
    overflow-x: hidden;
    padding: 10px 20px;
}

.popular-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.popular-scroll-container::-webkit-scrollbar-track {
    background: color-mix(in srgb, var(--color-text, #2D302D) 8%, transparent);
    border-radius: 4px;
}

.popular-scroll-container::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--color-text, #2D302D) 30%, transparent);
    border-radius: 4px;
}

.popular-scroll-container::-webkit-scrollbar-thumb:hover {
    background: color-mix(in srgb, var(--color-text, #2D302D) 48%, transparent);
}

.popular-products-grid {
    display: flex;
    width: max-content;
    gap: 30px;
    margin-bottom: 20px;
    justify-content: flex-start;
    will-change: transform;
}

/* ===== PRODUCT ITEM CARDS (shared: products.html + home page) ===== */
/* Poster-style card: the photo fills the entire card edge-to-edge and
   the name/badge/info are overlaid directly on top of it (bottom-anchored,
   over a gradient scrim), rather than sitting in a separate text block
   below a smaller, padded image. Bigger, more "in your face" imagery,
   with text taking a supporting role instead of competing for space. */
.product-item {
    position: relative;
    aspect-ratio: 3 / 4;
    background: rgb(243, 229, 214);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 1px solid rgba(78, 136, 181, 0.14);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    cursor: pointer;
}

.product-item:hover,
.product-item:focus-visible {
    transform: translateY(-6px);
    border-color: rgba(78, 136, 181, 0.3);
    box-shadow: 0 14px 32px rgba(78, 136, 181, 0.16);
}

.product-item:focus-visible {
    outline: 2px solid var(--color-focus-ring, #4e88b5);
    outline-offset: 3px;
}

/* Image fills the full card (not just a top slice) so it reads as the
   dominant element; a bottom scrim keeps the overlaid text legible
   regardless of the photo's brightness/subject. */
.product-item-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #f4efe8;
    overflow: hidden;
}

.product-item-image::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg,
        rgba(10, 12, 16, 0) 38%,
        rgba(10, 12, 16, 0.38) 68%,
        rgba(10, 12, 16, 0.86) 100%);
}

.product-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* No transform/scale (and no src swap) on hover — the image must stay
       exactly the same size and framing at all times so cards never appear
       to "zoom" or grow. Opacity transition is only for the initial
       image-loaded fade-in below. */
    transition: opacity 0.5s ease-in-out;
}

@keyframes imgShimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

.product-item-image.img-loading {
    background: linear-gradient(90deg,
        rgba(78,136,181,0.07) 0%,
        rgba(216,91,74,0.10) 50%,
        rgba(78,136,181,0.07) 100%);
    background-size: 200% 100%;
    animation: imgShimmer 1.6s ease-in-out infinite;
}

.product-item-image.img-loading img {
    opacity: 0;
}

/* Category badge(s) pinned to the top-left corner of the photo. Most
   products only render one, but products.html can render several
   (comma-separated categories) — nth-of-type stacks any extras
   underneath the first instead of overlapping them. */
.product-item-badge {
    position: absolute;
    z-index: 3;
    top: 14px;
    left: 14px;
    font-family: 'Satoshi', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    padding: 5px 11px;
    margin: 0;
    border-radius: 6px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.product-item-badge:nth-of-type(2) { top: 42px; }
.product-item-badge:nth-of-type(3) { top: 70px; }

/* Name/info sit directly on the photo, bottom-anchored over the scrim —
   the "poster" treatment: image first, text as a caption on top of it. */
.product-item-name {
    position: absolute;
    z-index: 3;
    left: 16px;
    right: 16px;
    bottom: 38px;
    font-family: 'Recoleta', serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.25;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Higher-specificity + !important: this text now sits over a photo
   (poster-card redesign), so it must stay white regardless of the site's
   configured card-text color. A plain ".product-item-name{!important}"
   rule ties in specificity with the site-wide "!important" rule in
   _site_theme_css() (app.py) that forces this class to --color-card-text,
   and since that rule is emitted later in <head>, it would otherwise win
   the tie -- this compound selector has higher specificity, so it wins
   regardless of source order. */
.product-item .product-item-name {
    color: #fff !important;
}

.product-item-info {
    position: absolute;
    z-index: 3;
    left: 16px;
    right: 16px;
    bottom: 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.82);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
    margin: 0;
}

/* product-item cards inside the home page scroll strip */
.popular-products-grid .product-item {
    min-width: 300px;
    max-width: 340px;
    aspect-ratio: 4 / 5;
    flex-shrink: 0;
}

.popular-card {
    min-width: 320px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgb(246, 242, 237) 100%);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(78, 136, 181, 0.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.popular-card:hover {
    transform: translateY(-8px);
    border-color: rgba(78, 136, 181, 0.15);
    box-shadow: 0 20px 50px rgba(78, 136, 181, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.popular-image {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, rgba(78, 136, 181, 0.08) 0%, rgba(216, 91, 74, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.popular-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.popular-card:hover .popular-image img {
    transform: scale(1.03);
}

.popular-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.popular-name {
    font-family: 'Recoleta', serif;
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.popular-type {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: rgb(78, 136, 181);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 6px 0;
}

.popular-thc {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #888;
    margin: 0 0 12px 0;
}

.popular-price {
    font-family: 'Recoleta', serif;
    font-size: 26px;
    font-weight: 600;
    color: rgb(78, 136, 181);
    margin: 0 0 16px 0;
}

.popular-btn {
    background: linear-gradient(135deg, rgb(78, 136, 181) 0%, rgb(62, 108, 148) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Satoshi', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    box-shadow: 0 8px 20px rgba(78, 136, 181, 0.2);
    align-self: flex-start;
    text-transform: uppercase;
}

.popular-btn:hover {
    background: linear-gradient(135deg, #D85B4A 0%, #C24A3A 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(216, 91, 74, 0.28);
}

/* ===== RELEASE OVERLAY (products page + home popular cards) ===== */
.release-overlay {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex; align-items: center; justify-content: center;
    border-radius: inherit;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.product-item:hover .release-overlay {
    opacity: 0;
}

.product-item-release {
    font-family: 'Satoshi', sans-serif;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
    margin: 4px 16px 10px 16px;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    background: rgba(155, 89, 182, 0.12);
    color: #9B59B6;
    border: 1px solid rgba(155, 89, 182, 0.3);
}
.release-overlay span {
    color: white; font-weight: 700; font-size: 12px;
    text-align: center; padding: 8px 14px;
    background: rgba(0, 0, 0, 0.4);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px; line-height: 1.4;
    text-transform: uppercase; letter-spacing: 0.9px;
    font-family: 'Satoshi', sans-serif;
}
.popular-unreleased { opacity: 0.85; }
.popular-unreleased:hover { opacity: 1; }

/* ===== PRODUCT MODAL (Used by both Products page and Home Popular Products) ===== */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-modal.active {
    display: flex;
}

.product-modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 248, 244, 0.95) 100%);
    border-radius: 25px;
    max-width: 1200px;
    width: 100%;
    max-height: 95vh;
    overflow-y: auto;
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 30px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.modal-layout {
    display: grid;
    grid-template-columns: 90px 1fr 1.2fr;
    gap: 30px;
}

/* Modal Carousel (Left) */
.modal-carousel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    max-height: 660px;
    padding-right: 8px;
}

.modal-carousel::-webkit-scrollbar {
    width: 4px;
}

.modal-carousel::-webkit-scrollbar-track {
    background: transparent;
}

.modal-carousel::-webkit-scrollbar-thumb {
    background: rgba(78, 136, 181, 0.3);
    border-radius: 2px;
}

.modal-carousel-thumb {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(78, 136, 181, 0.08) 0%, rgba(216, 91, 74, 0.08) 100%);
}

.modal-carousel-thumb img {
    width: 100%;
    height: 100%;
    /* Show the whole photo, never crop it — letterboxed against the thumb's
       own gradient background (matches .modal-main-image) rather than
       filling the box and cutting off the edges of the shot. */
    object-fit: contain;
}

.modal-carousel-thumb:hover {
    border-color: rgb(78, 136, 181);
    transform: scale(1.05);
}

.modal-carousel-thumb.active {
    border-color: #D85B4A;
    box-shadow: 0 0 0 2px rgba(216, 91, 74, 0.2);
}

/* Modal Main Image (Center) */
.modal-main-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-main-image {
    width: 100%;
    height: 540px;
    background: linear-gradient(135deg, rgba(78, 136, 181, 0.08) 0%, rgba(216, 91, 74, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 16px;
}

.modal-main-image img {
    width: 100%;
    height: 100%;
    /* Show the whole product photo, never crop it — letterboxed against the
       surrounding gradient background instead of filling the box and
       cutting off the edges of the shot. */
    object-fit: contain;
}

/* Modal Info Panel (Right) */
.modal-info-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    max-height: 660px;
    padding-right: 12px;
}

.modal-info-panel::-webkit-scrollbar {
    width: 6px;
}

.modal-info-panel::-webkit-scrollbar-track {
    background: transparent;
}

.modal-info-panel::-webkit-scrollbar-thumb {
    background: rgba(78, 136, 181, 0.2);
    border-radius: 3px;
}

.modal-brand-name {
    font-family: 'Satoshi', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #D85B4A;
    margin: 0 0 4px;
    opacity: 0.85;
}

.modal-title {
    font-family: 'Recoleta', serif;
    font-size: 28px;
    font-weight: 600;
    color: rgb(78, 136, 181);
    margin: 0;
}

.modal-company-name {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #888;
    margin: 6px 0 0;
}

.modal-specs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.modal-spec {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #666;
}

.modal-spec-icon {
    width: 20px;
    height: 20px;
    color: rgb(78, 136, 181);
    flex-shrink: 0;
}

.modal-description {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #777;
    line-height: 1.6;
    margin: 0;
}

/* Two specs side-by-side (THC + CBD) */
.modal-spec-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.modal-spec-row .modal-spec { flex: 1; min-width: 0; }

/* Flavours / terpenes sections */
.modal-extra-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 10px;
}
.modal-extra-label {
    font-family: 'Satoshi', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #aaa;
}
.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.modal-tag {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

/* "About This Product" structured spec table */
.modal-spec-table-wrap {
    padding-top: 4px;
}
.modal-spec-table {
    display: flex;
    flex-direction: column;
}
.modal-spec-table-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.modal-spec-table-row:last-child {
    border-bottom: none;
}
.modal-spec-table-hidden .modal-spec-table-row:last-child {
    border-bottom: none;
}
.modal-spec-table-label {
    font-family: 'Satoshi', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #999;
    flex-shrink: 0;
}
.modal-spec-table-value {
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    color: #333;
    text-align: right;
}
.modal-spec-table-toggle {
    display: inline-block;
    background: none;
    border: none;
    padding: 10px 0 0;
    margin: 0;
    color: #D85B4A;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Variant pill selector (product options with per-variant pricing) */
.modal-variant-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 4px;
}
.modal-variant-pill {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    background: rgba(0, 0, 0, 0.04);
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.modal-variant-pill:hover {
    border-color: rgba(78, 136, 181, 0.4);
    color: rgb(78, 136, 181);
}
.modal-variant-pill.active {
    background: rgb(78, 136, 181);
    border-color: rgb(78, 136, 181);
    color: #fff;
}

.desc-toggle, .desc-less {
    background: none;
    border: none;
    padding: 0;
    margin-left: 2px;
    color: #D85B4A;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.product-modal-badge {
    font-family: 'Satoshi', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 16px;
}

.product-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.product-modal-close:hover {
    background: #f0f0f0;
    transform: rotate(90deg);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== MAILING LIST SECTION ===== */
/* ── Mailing List — Sea Glass Aurora ──────────────────────────── */
@keyframes auroraFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(40px, -30px) scale(1.05); }
    66%       { transform: translate(-20px, 20px) scale(0.97); }
}
@keyframes auroraFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    40%       { transform: translate(-50px, 20px) scale(1.08); }
    70%       { transform: translate(30px, -15px) scale(0.95); }
}
@keyframes auroraFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(25px, 35px) scale(1.04); }
}
@keyframes beamSweep {
    0%   { transform: rotate(-15deg); opacity: 0.04; }
    50%  { transform: rotate(15deg);  opacity: 0.08; }
    100% { transform: rotate(-15deg); opacity: 0.04; }
}
@keyframes particleDrift {
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    10%  { opacity: 0.8; }
    90%  { opacity: 0.4; }
    100% { transform: translateY(-90px) translateX(var(--drift-x, 12px)); opacity: 0; }
}
@keyframes glassShimmer {
    0%, 100% { left: -60%; opacity: 0.3; }
    50%       { left: 120%; opacity: 0.6; }
}
@keyframes btnBloom {
    0%, 100% { box-shadow: 0 4px 20px rgba(216,91,74,0.22); }
    50%       { box-shadow: 0 6px 28px rgba(216,91,74,0.42), 0 0 0 6px rgba(216,91,74,0.07); }
}
@keyframes fall {
    from { top: -10px; opacity: 1; }
    to   { top: 100vh; opacity: 0; }
}

.mailing-list {
    position: relative;
    z-index: 5;
    overflow: hidden;
    background: var(--color-section-sage, #EFEAD9);
    padding: 0;
}

/* Legacy ambient/decorative layers (aurora blobs, sweeping beam, drifting
   particles, bokeh orbs) are disabled in favour of a calmer, more
   professional postcard-style layout. Elements/JS that reference them are
   left in place (harmless, zero footprint) rather than removed, to avoid
   touching unrelated markup/scripts. */
.ml-aurora,
.ml-aurora-mid,
.ml-beam,
.ml-particles {
    display: none;
}

/* Content */
.mailing-list-wrapper {
    /* Matches the 1200px content width used across the rest of the
       homepage (was 1080px, which made the postcard look narrower/
       off-centre relative to the sections above and below it). */
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 40px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    align-items: stretch;
    position: relative;
    z-index: 2;
}

/* Scroll reveal */
.ml-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.ml-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Left side — editorial copy */
.ml-left {
    display: flex;
    flex-direction: column;
    gap: 0;
    justify-content: center;
    padding: 56px 56px 56px 0;
}

.ml-eyebrow {
    font-family: 'Satoshi', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--color-accent, #C66A55);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition-delay: 0.05s;
}
.ml-eyebrow::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1.5px;
    background: var(--color-accent, #C66A55);
    opacity: 0.55;
}

.mailing-list-title {
    font-family: 'Recoleta', serif;
    font-size: var(--font-section, clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem));
    font-weight: 600;
    color: var(--color-heading, #294437);
    line-height: 1.12;
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
    transition-delay: 0.15s;
    text-wrap: balance;
}

.mailing-list-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: var(--color-text-muted, #6D706B);
    line-height: 1.7;
    margin: 0 0 28px 0;
    max-width: 380px;
    transition-delay: 0.25s;
}

.ml-perks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition-delay: 0.35s;
}

.ml-perk {
    font-family: 'Satoshi', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text, #2D302D);
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    width: fit-content;
}

/* Right side — clean signup card. Card chrome (bg/border/shadow) removed:
   app.py's theme-overrides layer sets `.ml-right { background: transparent
   !important; }` so this now sits flush within the postcard section rather
   than floating as its own white card. */
.ml-right {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: transparent;
    border: none;
    border-left: 1px solid var(--color-border, #DED4C7);
    border-radius: 0;
    padding: 44px 0 44px 40px;
    box-shadow: none;
    position: relative;
    transition-delay: 0.2s;
}

.ml-freq-label {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-muted, #6D706B);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 0 0 12px 0;
}

.ml-freq-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.ml-freq-pill {
    font-family: 'Satoshi', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 20px;
    border: 1.5px solid var(--color-border, #DED4C7);
    background: var(--color-surface, #FCFAF6);
    color: var(--color-text-muted, #6D706B);
    cursor: pointer;
    transition: all 0.2s ease;
}
.ml-freq-pill:hover {
    border-color: color-mix(in srgb, var(--color-accent, #C66A55) 40%, transparent);
    color: var(--color-accent, #C66A55);
    background: color-mix(in srgb, var(--color-accent, #C66A55) 6%, transparent);
}
.ml-freq-pill.active {
    background: var(--color-accent, #C66A55);
    border-color: var(--color-accent, #C66A55);
    color: var(--color-button-primary-text, #FFF9F1);
}

.mailing-list-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.mailing-list-input {
    width: 100%;
    background: var(--color-surface, #FCFAF6);
    border: 1.5px solid var(--color-border, #DED4C7);
    padding: 14px 18px;
    border-radius: 12px;
    font-family: 'Satoshi', sans-serif;
    font-size: 15px;
    color: var(--color-text, #2D302D);
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.mailing-list-input::placeholder { color: var(--color-text-muted, #6D706B); }
.mailing-list-input:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--color-accent, #C66A55) 50%, transparent);
    background: var(--color-surface, #FCFAF6);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent, #C66A55) 10%, transparent);
}

.ml-email-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.ml-email-input { flex: 1; }

.mailing-list-btn {
    background: var(--color-button-primary, #C66A55);
    color: var(--color-button-primary-text, #FFF9F1);
    border: none;
    padding: 0 24px;
    height: 50px;
    border-radius: 12px;
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Satoshi', sans-serif;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--color-button-primary, #C66A55) 28%, transparent);
    transition: all 0.2s ease;
}
.mailing-list-btn:hover {
    background: var(--color-accent-hover, #AC5C4A);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--color-button-primary, #C66A55) 36%, transparent);
}
.mailing-list-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.mailing-list-message {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: var(--color-text-muted, #6D706B);
    margin: 0 0 12px 0;
    min-height: 18px;
    transition: all 0.3s ease;
}
.mailing-list-message.success {
    color: var(--color-primary, #294437);
    font-weight: 600;
    line-height: 1.6;
}
.mailing-list-message.success .unsubscribe-disclaimer {
    display: block;
    font-size: 11px;
    color: var(--color-text-muted, #6D706B);
    font-weight: 400;
    margin-top: 4px;
}
.mailing-list-message.error {
    color: #c94a39;
    font-weight: 600;
}

.ml-disclaimer {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    color: var(--color-text-muted, #6D706B);
    margin: 0;
    letter-spacing: 0.3px;
}

/* Legacy bokeh-orb keyframe/class kept inert for the same reason as the
   aurora layers above — JS still spawns these nodes, but they no longer render. */
.ml-orb {
    display: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .mailing-list-btn { transition: none; }
    .ml-reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== ENERGY SECTION ===== */
.energy-section {
    padding: 80px 20px;
    position: relative;
    z-index: 5;
}

/* Energy Section */
.energy-section::before {
    display: none;
}

.energy-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.energy-title {
    font-family: 'Recoleta', serif;
    font-size: 48px;
    font-weight: 600;
    color: rgb(78, 136, 181);
    text-align: center;
    margin: 0 0 16px 0;
    letter-spacing: -1px;
}

.energy-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    color: #666;
    text-align: center;
    margin: 0 0 50px 0;
    line-height: 1.6;
}

.energy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.energy-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 245, 240, 0.8) 100%);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(78, 136, 181, 0.1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    min-height: 280px;
}

.energy-card:hover {
    transform: translateY(-8px);
    border-color: rgba(78, 136, 181, 0.15);
    box-shadow: 0 18px 50px rgba(78, 136, 181, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(252, 248, 244) 100%);
}

.energy-icon {
    font-size: 52px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.energy-card:hover .energy-icon {
    transform: scale(1.1);
}

.energy-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: rgb(78, 136, 181);
    margin: 0;
}

.energy-card p {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* ===== BRAND STORY SECTION ===== */
/* ── About Us Section ─────────────────────────────────────── */
.about-us-section {
    padding: 0 20px 80px;
    position: relative;
    z-index: 5;
}

/* Deliberately NOT a frosted-glass card like .brand-story-wrapper above it --
   an open, borderless editorial layout gives the two back-to-back sections
   distinct rhythm instead of reading as the same card twice. */
.about-us-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.about-us-wrapper.has-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-us-image-wrap {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(30, 26, 20, 0.10);
}

.about-us-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

.about-us-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-us-content h2 {
    font-family: 'Recoleta', serif;
    font-size: var(--font-section, clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem));
    font-weight: 600;
    color: var(--color-heading, #294437);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -1px;
    text-wrap: balance;
}

.about-us-content p {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    color: var(--color-text-muted, #6D706B);
    margin: 0;
    line-height: 1.8;
}

/* ── Footer legal disclaimer ──────────────────────────────── */
.footer-legal {
    font-family: 'Satoshi', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: rgba(80, 80, 80, 0.6);
    margin: 0;
    letter-spacing: 0.2px;
    max-width: 600px;
    line-height: 1.6;
}

.brand-story {
    padding: 80px 20px;
    position: relative;
    z-index: 5;
}

/* Brand Story Section */
.brand-story::before {
    display: none;
}

/* Open, borderless editorial layout — matches .about-us-wrapper above it so
   the two back-to-back sections don't both read as "cards floating on a
   background". Frosted-glass panel treatment removed per redesign brief. */
.brand-story-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.brand-story-image {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(30, 26, 20, 0.10);
    transition: transform 0.4s ease;
}

.brand-story-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.brand-story-image:hover img {
    transform: scale(1.02);
}

.brand-story-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.brand-story-content h2 {
    font-family: 'Recoleta', serif;
    font-size: var(--font-section, clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem));
    font-weight: 600;
    color: var(--color-heading, #294437);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -1px;
    text-wrap: balance;
}

.brand-story-content p {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    color: var(--color-text-muted, #6D706B);
    margin: 0;
    line-height: 1.8;
}

.brand-story-btn {
    background: var(--color-button-primary, #C66A55);
    color: var(--color-button-primary-text, #FFF9F1);
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    font-family: 'Satoshi', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    width: fit-content;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--color-button-primary, #C66A55) 25%, transparent);
}

.brand-story-btn:hover {
    background: var(--color-accent-hover, #AC5C4A);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px color-mix(in srgb, var(--color-button-primary, #C66A55) 35%, transparent);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    padding: 80px 20px;
    position: relative;
    z-index: 5;
}

.testimonials-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-title {
    font-family: 'Recoleta', serif;
    font-size: 48px;
    font-weight: 600;
    color: rgb(78, 136, 181);
    text-align: center;
    margin: 0 0 60px 0;
    letter-spacing: -1px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.testimonial-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 245, 240, 0.8) 100%);
    padding: 40px 35px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(78, 136, 181, 0.1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: rgba(78, 136, 181, 0.15);
    box-shadow: 0 18px 50px rgba(78, 136, 181, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.testimonial-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgb(78, 136, 181) 0%, rgb(65, 120, 160) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Recoleta', serif;
    font-size: 32px;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(78, 136, 181, 0.25);
}

.testimonial-text {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #555;
    margin: 0;
    line-height: 1.8;
    font-style: italic;
    font-weight: 500;
}

.testimonial-author {
    font-family: 'Satoshi', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: rgb(78, 136, 181);
    margin: 0;
    letter-spacing: 0.5px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .modal-layout {
        grid-template-columns: 70px 1fr 1fr;
        gap: 20px;
    }

    .modal-main-image {
        height: 320px;
    }

    .modal-carousel {
        max-height: 400px;
    }

    .modal-carousel-thumb {
        width: 65px;
        height: 65px;
    }

    .modal-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .mailing-list-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 50px 20px;
    }

    .ml-left {
        padding: 0 0 32px 0;
    }

    .mailing-list-title {
        font-size: 34px;
        margin-bottom: 16px;
    }

    .ml-right {
        border-left: none;
        border-top: 1px solid var(--color-border, #DED4C7);
        padding: 30px 0 0 0;
    }

    .product-modal-content {
        max-width: 100%;
        padding: 20px;
    }

    .modal-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .modal-carousel {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        max-height: none;
        gap: 8px;
        padding-right: 0;
    }

    .modal-carousel-thumb {
        width: 100%;
        height: 60px;
    }

    .modal-main-image {
        height: 280px;
    }

    .modal-info-panel {
        max-height: none;
    }

    .modal-title {
        font-size: 22px;
    }

    .modal-spec-table-row {
        flex-wrap: wrap;
        gap: 2px 16px;
    }

    .modal-spec-table-value {
        text-align: left;
    }

    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .featured-title {
        font-size: 36px;
        margin-bottom: 45px;
    }

    .energy-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .energy-title {
        font-size: 36px;
    }

    .energy-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .energy-card {
        min-height: 240px;
        padding: 30px 24px;
    }

    .brand-story-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 24px;
    }

    .brand-story-content h2 {
        font-size: 36px;
    }

    .about-us-wrapper,
    .about-us-wrapper.has-image {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 24px;
    }

    .about-us-content h2 {
        font-size: 36px;
    }

    .about-us-section {
        padding: 0 16px 60px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .testimonials-title {
        font-size: 36px;
        margin-bottom: 45px;
    }
}

@media (max-width: 640px) {
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .featured-title {
        font-size: 28px;
        margin-bottom: 35px;
    }

    .featured-card {
        border-radius: 20px;
    }

    .featured-image {
        height: 200px;
    }

    .featured-badge {
        font-size: 10px;
        padding: 5px 12px;
        margin: 12px 12px 0 12px;
    }

    .featured-name {
        font-size: 18px;
        margin: 12px 12px 4px 12px;
    }

    .featured-price {
        font-size: 24px;
        margin: 6px 12px 12px 12px;
    }

    .featured-btn {
        margin: 0 12px 12px 12px;
        padding: 10px 20px;
        font-size: 13px;
    }

    .energy-grid {
        grid-template-columns: 1fr;
    }

    .energy-title {
        font-size: 28px;
    }

    .energy-subtitle {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .energy-card {
        min-height: auto;
        padding: 28px 20px;
    }

    .energy-icon {
        font-size: 40px;
    }

    .energy-card h3 {
        font-size: 20px;
    }

    .energy-card p {
        font-size: 14px;
    }

    .brand-story {
        padding: 60px 20px;
    }

    .brand-story-content h2 {
        font-size: 28px;
    }

    .brand-story-content p {
        font-size: 16px;
    }

    .brand-story-btn {
        padding: 12px 28px;
        font-size: 14px;
    }

    .testimonials {
        padding: 60px 20px;
    }

    .testimonials-title {
        font-size: 28px;
        margin-bottom: 35px;
    }

    .testimonial-card {
        padding: 30px 24px;
        gap: 18px;
    }

    .testimonial-avatar {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .testimonial-text {
        font-size: 15px;
    }

    .testimonial-author {
        font-size: 14px;
    }

    .popular-products {
        padding: 60px 20px;
    }

    .popular-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 35px;
    }

    .popular-title {
        font-size: 28px;
        margin: 0;
    }

    .popular-view-all {
        font-size: 14px;
        padding: 10px 18px;
    }

    .popular-card {
        min-width: 280px;
    }

    .popular-image {
        height: 240px;
    }

    .popular-name {
        font-size: 18px;
    }

    .popular-price {
        font-size: 22px;
    }
}

/* Respect reduced-motion: keep the frosted-glass/shrink end-states but disable animation */
@media (prefers-reduced-motion: reduce) {
    .navbar,
    .nav-container,
    .logo-img {
        transition: none !important;
    }
}

/* ============================================================
   Instagram panel — structured card with 3-column grid
   ============================================================ */
/* Full-bleed section — background spans the whole zone (matches
   .brand-story / .popular-products / .locator-preview), the 1200px
   cap lives on .instagram-panel instead so it doesn't clip the zone
   background into a hard-edged rectangle floating over the page bg. */
.instagram-section {
    padding: 80px 20px 40px;
}

/* Panel — open editorial layout (frosted-glass card treatment removed per
   redesign brief; matches the borderless approach used for brand-story/
   about-us above it) with a simple hairline border to keep the grid
   legible against the section background. */
.instagram-panel {
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
    border: 1px solid var(--color-border, #DED4C7);
    border-radius: 24px;
    box-shadow: none;
    padding: 28px 28px 24px;
}

/* Panel header row */
.instagram-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.instagram-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ig-icon {
    width: 24px;
    height: 24px;
    color: var(--color-accent, #C66A55);
    flex-shrink: 0;
}

.instagram-panel-title h2 {
    font-family: 'Satoshi', system-ui, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-heading, #294437);
    margin: 0;
    letter-spacing: -0.01em;
}

.instagram-handle {
    font-family: 'Satoshi', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent, #C66A55);
    text-decoration: none;
    background: color-mix(in srgb, var(--color-accent, #C66A55) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-accent, #C66A55) 18%, transparent);
    border-radius: 999px;
    padding: 5px 14px;
    transition: background 0.2s ease, opacity 0.2s ease;
}
.instagram-handle:hover {
    background: color-mix(in srgb, var(--color-accent, #C66A55) 15%, transparent);
    opacity: 1;
}

/* 3-column grid feed */
.instagram-feed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Base tile */
.ig-tile {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    display: block;
    box-shadow: 0 4px 14px rgba(30, 26, 20, 0.10);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.ig-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.ig-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--color-primary, #294437) 0%, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.ig-tile:hover,
.ig-tile:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(30, 26, 20, 0.18);
}
.ig-tile:focus-visible {
    outline: 2px solid var(--color-focus-ring, #C66A55);
    outline-offset: 3px;
}
.ig-tile:hover img, .ig-tile:focus-visible img { transform: scale(1.05); }
.ig-tile:hover::after, .ig-tile:focus-visible::after {
    opacity: 1;
    background: color-mix(in srgb, var(--color-primary, #294437) 22%, transparent);
}

/* Shimmer skeleton tile */
@keyframes ig-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position:  400px 0; }
}
.ig-skeleton {
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--color-text, #2D302D) 7%, transparent) 25%,
        color-mix(in srgb, var(--color-text, #2D302D) 13%, transparent) 50%,
        color-mix(in srgb, var(--color-text, #2D302D) 7%, transparent) 75%
    );
    background-size: 800px 100%;
    animation: ig-shimmer 1.6s ease-in-out infinite;
    cursor: default;
    pointer-events: none;
}
.ig-skeleton:hover { transform: none; box-shadow: 0 4px 14px rgba(30, 26, 20, 0.10); }

/* Fallback tile (no posts / API error) */
.ig-fallback {
    background: color-mix(in srgb, var(--color-text, #2D302D) 5%, transparent);
    border: 1.5px dashed var(--color-border, #DED4C7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
}
.ig-fallback svg {
    width: 32px;
    height: 32px;
    color: var(--color-text-muted, #6D706B);
    transition: color 0.2s ease;
}
.ig-fallback span {
    font-family: 'Satoshi', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted, #6D706B);
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}
.ig-fallback:hover svg,
.ig-fallback:hover span { color: var(--color-accent, #C66A55); }
.ig-fallback::after { display: none; }

@media (max-width: 768px) {
    .instagram-section { padding: 56px 16px 24px; }
    .instagram-panel { padding: 20px 16px 18px; border-radius: 18px; }
    .instagram-panel-title h2 { font-size: 17px; }
    .instagram-feed { gap: 8px; }
    .ig-tile { border-radius: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .ig-tile, .ig-tile img { transition: none !important; }
    .ig-skeleton { animation: none !important; }
}

/* ══════════════════════════════════════════════════════════════════
   Homepage Redesign — Coastal System
   Additive layout/visual system for the homepage journey. Does not
   modify shared card markup (.product-item, .footer structure, etc.)
   ══════════════════════════════════════════════════════════════════ */

/* ── Cream zone (brand story → about us → instagram) ──
   Gives this stretch of the page an intentional, opaque cream
   background instead of letting the ambient global glow layer
   show through, which read as a muddy, unintentional blend.
   NOTE: applied per-section (not a wrapper div) because the admin
   "homepage section order" feature (applyHomepageOrder() in
   index.html) re-parents each [data-section] element directly under
   #app-content at runtime — a shared wrapper div would get bypassed
   the moment reordering runs. */
.brand-story,
.about-us-section,
.instagram-section {
    position: relative;
    z-index: 4;
    background: var(--color-surface, #FCFAF6);
}
.brand-story { background: var(--color-surface, #FCFAF6); }
.instagram-section { background: var(--color-surface, #FCFAF6); }

/* ── Lighthouse beam system (behind nav + hero) ── */
.hero-container { position: relative; z-index: 1; }

.beam-system {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.beam-ray {
    position: absolute;
    top: -30%;
    width: 300px;
    height: 180%;
    filter: blur(46px);
    transform: rotate(-16deg);
    opacity: 0.55;
}
.beam-ray.beam-1 { left: 2%;  background: linear-gradient(180deg, rgba(255,248,230,0.55) 0%, transparent 72%); }
.beam-ray.beam-2 { left: 26%; background: linear-gradient(180deg, rgba(100,200,168,0.24) 0%, transparent 72%); animation: beamSweep 19s ease-in-out infinite; }
.beam-ray.beam-3 { left: 54%; background: linear-gradient(180deg, rgba(240,201,105,0.22) 0%, transparent 72%); }
.beam-ray.beam-4 { left: 78%; background: linear-gradient(180deg, rgba(216,91,74,0.18) 0%, transparent 72%); animation: beamSweep 23s ease-in-out infinite reverse; }

/* ── Wave divider (bridges zone transitions) ── */
.wave-divider {
    position: relative;
    width: 100%;
    height: 56px;
    line-height: 0;
    overflow: hidden;
    pointer-events: none;
}
.wave-divider svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* ── Icon tile (static — no constant pulsing/motion) ── */
.signal-ring {
    position: relative;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.signal-ring-icon {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(78, 136, 181, 0.08);
    border: 1px solid rgba(78, 136, 181, 0.18);
    color: rgb(78, 136, 181);
}
.signal-ring-icon svg { width: 24px; height: 24px; }

/* ── Compass grid (map-style texture) ── */
.compass-grid {
    background-image:
        repeating-linear-gradient(0deg, rgba(78,136,181,0.10) 0px, rgba(78,136,181,0.10) 1px, transparent 1px, transparent 40px),
        repeating-linear-gradient(90deg, rgba(78,136,181,0.10) 0px, rgba(78,136,181,0.10) 1px, transparent 1px, transparent 40px);
}

/* ── Quick links strip (overlaps hero bottom) ──
   Restyled from three heavy floating dark cards into one understated,
   continuous navigation strip: a single surface with subtle internal
   dividers instead of three independent boxes competing with the hero. */
.quick-actions {
    position: relative;
    z-index: 6;
    margin-top: -34px;
    padding: 0 20px;
}
.quick-actions-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--color-surface, #FCFAF6);
    border-radius: var(--radius-md, 20px);
    box-shadow: var(--shadow-md, 0 6px 20px rgba(28, 46, 61, 0.08));
}
.quick-action-card {
    background: transparent;
    padding: 22px 26px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    border-left: 1px solid var(--color-border, #DED4C7);
    transition: background 0.2s ease;
    cursor: pointer;
}
.quick-action-card:first-child { border-left: none; }
.quick-action-card:hover {
    background: color-mix(in srgb, var(--color-primary, #294437) 5%, transparent);
}
.quick-action-card .signal-ring { flex-shrink: 0; }
.quick-action-card h3 {
    font-family: 'Recoleta', serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--color-card-text, #2D302D);
    margin: 0 0 3px;
}
.quick-action-card p {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: var(--color-text-muted, #6D706B);
    margin: 0;
    line-height: 1.4;
}

/* ── Popular Products → product shelf/dock ──
   With only a handful of cards in a centered row, this section previously
   read as mostly bare: a wide flat-color band with a thin row of content
   floating in the middle and nothing filling the space around it. The
   ::before texture gives the empty background some quiet visual interest
   (a map/grid motif already used elsewhere on the page, e.g. the locator
   preview) instead of a dead flat color; it sits behind the wrapper's own
   content (::before paints first) so it only shows through the gaps, not
   over the cards or text. Section padding/header gap were also trimmed
   since 80px+60px of dead space above three cards was a big part of the
   "empty" feeling regardless of what filled it. */
.popular-products {
    position: relative;
    background: var(--color-surface-muted, #F2ECDF);
    margin-top: 0;
    padding: var(--space-section-sm, clamp(40px, 6vw, 72px)) 20px;
}
.popular-products-wrapper {
    position: relative;
    z-index: 1;
    /* Product grid gets more of the available width -- was capped at
       1200px like every other section; widened slightly so the shelf
       doesn't feel like a narrow strip floating in a wide empty band. */
    max-width: 1320px;
}
.popular-products-wrapper::before {
    content: '';
    display: block;
    height: 1px;
    max-width: 1200px;
    margin: 0 auto 32px;
    background: var(--color-border, #DED4C7);
}

/* ── Store Locator preview (soft sea-glass dip within the warm cream/sand
   family) — starts and ends on the same tones as the sections either side
   of it (popular-products ends #ede7e0, brand-story starts #faf7f2), with a
   muted, low-saturation "water" tone drifting through the middle. This keeps
   the section visually distinct (a deliberate pause/zone change) without the
   hard cream→saturated-blue→cream jump that made it read as a disconnected
   block dropped into an otherwise warm, coherent page. ── */
.locator-preview {
    position: relative;
    z-index: 5;
    padding: var(--space-section-sm, clamp(40px, 6vw, 72px)) 20px;
    background: var(--color-section-sage, #EFEAD9);
    overflow: hidden;
}
.locator-preview-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.locator-preview-eyebrow {
    font-family: 'Satoshi', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-accent, #C66A55);
}
.locator-preview-content h2 {
    font-family: 'Recoleta', serif;
    font-size: var(--font-section, clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem));
    font-weight: 600;
    color: var(--color-heading, #294437);
    margin: 12px 0 16px;
    letter-spacing: -0.5px;
    text-wrap: balance;
}
.locator-preview-content p {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: var(--color-text-muted, #6D706B);
    line-height: 1.7;
    margin: 0 0 26px;
    max-width: 440px;
}
.locator-preview-cta {
    background: var(--color-accent, #C66A55);
    color: #fff;
    border: none;
    padding: 15px 38px;
    border-radius: 10px;
    font-family: 'Satoshi', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--color-accent, #C66A55) 25%, transparent);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.locator-preview-cta:hover {
    transform: translateY(-2px);
    background: var(--color-accent-hover, #AC5C4A);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--color-accent, #C66A55) 32%, transparent);
}
.locator-preview-map-card {
    position: relative;
    height: 340px;
    border-radius: var(--radius-md, 20px);
    background-color: var(--color-surface, #FCFAF6);
    border: 1px solid var(--color-border, #DED4C7);
    box-shadow: var(--shadow-sm, 0 2px 10px rgba(28, 46, 61, 0.06));
    overflow: hidden;
}
.locator-pin {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50% 50% 50% 0;
    background: var(--color-primary, #294437);
    transform: rotate(-45deg);
    box-shadow: 0 4px 10px color-mix(in srgb, var(--color-primary, #294437) 40%, transparent);
}
.locator-pin::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}
.locator-pin-1 { top: 28%; left: 22%; }
.locator-pin-2 { top: 55%; left: 58%; background: var(--color-accent, #C66A55); box-shadow: 0 4px 10px color-mix(in srgb, var(--color-accent, #C66A55) 40%, transparent); }
.locator-pin-3 { top: 70%; left: 34%; }
.locator-preview-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
}

/* ── Trust / process cards (inside brand story) ──
   Converted from four separate frosted-glass floating cards into one
   cohesive band with internal dividers, matching the quick-actions strip
   treatment used earlier in the page — reduces the "stack of cards"
   feeling the redesign brief called out. */
.trust-cards {
    max-width: 1200px;
    margin: 60px auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--color-surface, #FCFAF6);
    border: 1px solid var(--color-border, #DED4C7);
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(30, 26, 20, 0.05);
}
.trust-card {
    background: transparent;
    border: none;
    border-left: 1px solid var(--color-border, #DED4C7);
    border-radius: 0;
    padding: 32px 24px;
    text-align: center;
    box-shadow: none;
    transition: background 0.25s ease;
}
.trust-card:first-child {
    border-left: none;
}
.trust-card:hover {
    transform: none;
    background: color-mix(in srgb, var(--color-primary, #294437) 4%, transparent);
    box-shadow: none;
}
.trust-card-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--color-primary, #294437) 10%, transparent);
    color: var(--color-primary, #294437);
}
.trust-card-icon svg { width: 24px; height: 24px; }
.trust-card h3 {
    font-family: 'Recoleta', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-heading, #294437);
    margin: 0 0 9px;
}
.trust-card p {
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    color: var(--color-text-muted, #6D706B);
    line-height: 1.6;
    margin: 0;
}

/* Mailing list postcard restyle superseded by the professional redesign
   defined earlier in this file (see the main `.mailing-list` rule block). */

/* ── Footer → deep navy/forest tone (site-wide) ──
   Colours below are static fallbacks matching the default palette; the
   server-rendered theme-overrides layer (app.py _site_theme_css) always
   re-applies these from Website Settings > Colours with !important, so
   this block only matters if that layer fails to load. */
.footer {
    background: linear-gradient(180deg, var(--color-footer-background, #20372D) 0%, var(--color-footer-background-deep, #182B22) 100%);
    border-top: 1.5px solid color-mix(in srgb, var(--color-footer-text, #E7E7DC) 10%, transparent);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18);
}
.footer-nav a {
    color: color-mix(in srgb, var(--color-footer-text, #E7E7DC) 82%, transparent);
    font-size: 15px;
}
.footer-nav a:hover { color: var(--color-footer-accent, #C66A55); }
.footer-dot { color: var(--color-footer-accent, #C66A55); opacity: 0.6; }
.footer-divider { background: color-mix(in srgb, var(--color-footer-text, #E7E7DC) 12%, transparent); }
.footer-text {
    color: color-mix(in srgb, var(--color-footer-text, #E7E7DC) 55%, transparent);
    font-size: 13.5px;
    line-height: 1.6;
}
.footer-legal {
    color: color-mix(in srgb, var(--color-footer-text, #E7E7DC) 62%, transparent);
    font-size: 11.5px;
    line-height: 1.65;
}

/* ── Regulatory seals (e.g. Ontario AGCO's Provincial Cannabis Retail Seal)
   ──
   Deliberately its own full-width row spanning all three .footer-inner
   grid columns (rather than tucked inside .footer-legal-col with the fine
   print), since AGCO requires these be "prominently displayed" — not
   buried in tiny type. Only the seal matching the visitor's selected
   language is ever shown (see the lang-gating rules below), so in
   practice this row holds a single compact seal+caption unit sitting
   directly in the footer's own dark background — no white card behind
   it — reading as an integrated part of the footer rather than a
   bolted-on badge. */
.footer-seals {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    padding-top: 22px;
    margin-top: 6px;
    border-top: 1px solid color-mix(in srgb, var(--color-footer-text, #E7E7DC) 12%, transparent);
}

/* Image beside its caption (not stacked) so the whole unit reads as one
   compact line, matching the rest of the footer's horizontal rhythm. */
.footer-seal {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a.footer-seal:hover {
    opacity: 0.82;
}

/* No card/background behind the seal — it sits directly on the footer,
   per the "properly integrated" look, sized to stay legible at a glance
   (~120-140px wide) without the badge previously used to compensate for
   the crop of official seal artwork against a dark background. */
.footer-seal-img {
    width: 130px;
    height: auto;
    max-width: 140px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

/* Matches .footer-text's weight/opacity so it reads as genuine footer
   copy. Left-aligned and narrower now that it sits beside the seal
   rather than centred underneath it. */
.footer-seal-caption {
    font-family: 'Satoshi', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    color: color-mix(in srgb, var(--color-footer-text, #E7E7DC) 82%, transparent);
    text-align: left;
    max-width: 220px;
    line-height: 1.45;
    letter-spacing: 0.15px;
}

/* Language-exclusive seal display: only the seal matching the visitor's
   selected language is shown. Language is entirely client-side
   (translations.js sets html[lang] from localStorage on load /
   langchange), so both seals are always present in the markup and these
   rules are what actually decide visibility. These classes are only
   applied server-side (see app.py's _site_seals()) when BOTH an English
   and a French seal are configured — if only one is configured it carries
   neither class and simply always shows, regardless of language. */
.footer-seal-en-only { display: flex; }
html[lang="fr"] .footer-seal-en-only { display: none; }
.footer-seal-fr-only { display: none; }
html[lang="fr"] .footer-seal-fr-only { display: flex; }

@media (max-width: 900px) {
    .footer-seals { padding-top: 20px; }
    .footer-seal {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center;
    }
    .footer-seal-caption {
        text-align: center;
        max-width: 280px;
    }
}

/* ── Farmgate panel (fixed, always first — above Hero) ──
   A short, unmissable explainer banner so "Farmgate" — a term most
   visitors won't recognize — is defined immediately, with a link to the
   full educational page (/farmgate) for anyone who wants more detail. */
.farmgate-panel {
    position: relative;
    z-index: 20;
    box-sizing: border-box;
    width: calc(100% - 40px);
    max-width: 1400px;
    margin: 0 auto 28px;
    background:
        radial-gradient(560px 200px at 14% 0%, color-mix(in srgb, var(--color-footer-accent, #f0c869) 16%, transparent) 0%, transparent 60%),
        radial-gradient(420px 260px at 100% 100%, color-mix(in srgb, var(--color-accent, #D85B4A) 14%, transparent) 0%, transparent 65%),
        linear-gradient(120deg, var(--color-primary-deep, #16232f) 0%, var(--color-primary, #1c3346) 45%, color-mix(in srgb, var(--color-primary, #245066) 82%, white) 100%);
    padding: 22px 60px 22px 26px;
    border-radius: 20px;
    box-shadow: 0 16px 36px color-mix(in srgb, var(--color-primary-deep, #0f1e2d) 60%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.farmgate-panel.farmgate-panel-dismissed {
    opacity: 0;
    transform: scale(0.98);
}
/* Keeps the hardcoded fallback copy (baked into the HTML) invisible until
   loadFarmgatePanelContent() has fetched the admin-configured text and swapped
   it in — otherwise visitors briefly see the placeholder copy flash before
   the real copy replaces it. The panel shape/background still paints
   immediately so there's no layout shift, only the text/button fade in. */
.farmgate-panel.farmgate-panel-loading .farmgate-panel-text,
.farmgate-panel.farmgate-panel-loading .farmgate-panel-actions {
    visibility: hidden;
}

/* Same pattern as the Farmgate panel above, applied to every other spot on
   the homepage where hardcoded fallback copy is baked into the HTML and
   later overwritten by loadSettings()'s /api/settings fetch: Hero headline
   /subtitle, Brand Story title/text, and the Instagram handle. Hidden by
   default so the placeholder text never paints; loadSettings() adds
   .home-content-ready to <body> once it has decided the final text (custom
   admin copy, or the hardcoded fallback if a field was left blank) — see
   index.html. Only the text is hidden (visibility, not display), so the
   surrounding layout/images don't shift or disappear while waiting. */
body:not(.home-content-ready) #heroHeadline,
body:not(.home-content-ready) #heroSubtitle,
body:not(.home-content-ready) #brandStoryTitle,
body:not(.home-content-ready) #brandStoryText,
body:not(.home-content-ready) .instagram-handle {
    visibility: hidden;
}

/* Same pattern again for contact.html's email card — see
   loadContactSettings() there for where .contact-content-ready is added. */
body:not(.contact-content-ready) #contactEmailText {
    visibility: hidden;
}
/* Soft diagonal sheen + fine film-grain texture instead of a flat accent
   border/grid — reads as ambient light and paper-like texture rather than
   an obvious repeating pattern. */
.farmgate-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.05) 48%, rgba(255, 255, 255, 0.09) 52%, transparent 68%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/></svg>");
    background-size: cover, 140px 140px;
    mix-blend-mode: overlay;
    border-radius: inherit;
    pointer-events: none;
}
.farmgate-panel-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.farmgate-panel-close svg { width: 15px; height: 15px; }
.farmgate-panel-close:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    transform: scale(1.08);
}
.farmgate-panel-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}
.farmgate-panel-icon {
    position: relative;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--color-footer-accent, #f0c869) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-footer-accent, #f0c869) 40%, transparent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-footer-accent, #f0c869) 6%, transparent), 0 6px 16px color-mix(in srgb, var(--color-footer-accent, #f0c869) 18%, transparent);
    color: var(--color-footer-accent, #f0c869);
}
.farmgate-panel-icon svg { width: 23px; height: 23px; }
.farmgate-panel-text { flex: 1; min-width: 0; }
.farmgate-panel-badge {
    display: inline-block;
    font-family: 'Satoshi', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--color-footer-accent, #f0c869);
    margin-bottom: 4px;
}
.farmgate-panel-text h2 {
    font-family: 'Recoleta', serif;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 3px;
}
.farmgate-panel-text p {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
    max-width: 720px;
}
.farmgate-panel-actions { flex-shrink: 0; }
.farmgate-panel-btn {
    display: inline-block;
    font-family: 'Satoshi', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 11px 22px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.farmgate-panel-btn-primary {
    background: linear-gradient(135deg, var(--color-footer-accent, #f0c869) 0%, color-mix(in srgb, var(--color-footer-accent, #f0c869) 85%, black) 100%);
    color: var(--color-primary-deep, #1c2e3d);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--color-footer-accent, #f0c869) 28%, transparent);
}
.farmgate-panel-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px color-mix(in srgb, var(--color-footer-accent, #f0c869) 36%, transparent); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .beam-ray { width: 180px; filter: blur(30px); }

    .wave-divider { height: 32px; }

    .farmgate-panel { width: calc(100% - 24px); margin: 0 12px 20px; padding: 20px 46px 20px 20px; border-radius: 16px; }
    .farmgate-panel-close { top: 12px; right: 12px; width: 26px; height: 26px; }
    .farmgate-panel-close svg { width: 13px; height: 13px; }
    .farmgate-panel-inner { flex-wrap: wrap; text-align: left; }
    .farmgate-panel-text { flex-basis: 100%; order: 1; }
    .farmgate-panel-icon { order: 0; }
    .farmgate-panel-actions { order: 2; margin-left: 66px; }
    .farmgate-panel-btn { padding: 9px 18px; font-size: 12px; }

    .quick-actions { margin-top: -24px; padding: 0 16px; }
    .quick-actions-wrapper {
        grid-template-columns: 1fr;
        border-radius: var(--radius-sm, 12px);
    }
    .quick-action-card {
        padding: 18px 20px;
        border-left: none;
        border-top: 1px solid var(--color-border, #DED4C7);
    }
    .quick-action-card:first-child { border-top: none; }

    .popular-products-wrapper::before { margin-bottom: 30px; }

    .locator-preview { padding: 56px 20px; }
    .locator-preview-wrapper { grid-template-columns: 1fr; gap: 28px; }
    .locator-preview-map-card { height: 220px; order: -1; }
    .locator-preview-content h2 { font-size: 30px; }
    .locator-preview-content p { max-width: none; }

    .trust-cards { grid-template-columns: 1fr 1fr; gap: 0; margin-top: 30px; }
    .trust-card {
        padding: 20px 14px;
        border-left: 1px solid var(--color-border, #DED4C7);
        border-top: 1px solid var(--color-border, #DED4C7);
    }
    .trust-card:nth-child(odd) { border-left: none; }
    .trust-card:nth-child(-n+2) { border-top: none; }
}
