/* ==========================================================================
   CGS · COFFEE, GRILL & SHOTS
   THEME.CSS — Boho-European Design System
   --------------------------------------------------------------------------
   Architecture:
     1. Design Tokens (:root)
     2. Reset & Base Elements
     3. Global Typography
     4. Layout Primitives (container, section, grid)
     5. Animation Keyframes
     6. Components (BEM) — button, site-header, mobile-nav, hero, card,
        feature grid, story, cta-banner, site-footer, section-title
     7. Utilities (small, high-reuse helpers only)
     8. Responsive Adjustments

   Naming convention: BEM — .block, .block__element, .block--modifier
   NOTE: A handful of class names are load-bearing for js/custom.js and
   js/animations.js (state toggles, not styling hooks). They are restyled
   here but intentionally NOT renamed, to avoid breaking behaviour:
     #navbar, .scrolled, #mobileMenuBtn, #mobileMenu, #mobileMenuOverlay,
     .open, .active, body.menu-open, .reveal, .tab-btn, .tab-content,
     .accordion-trigger, .accordion-item
   ========================================================================== */


/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {

  /* ---- 1.1 Base palette — raw values, referenced only inside :root ---- */
  --palette-espresso-900:   #1B1412;
  --palette-espresso-800:   #241A16;
  --palette-espresso-700:   #2E211B;
  --palette-coffee-500:     #6F4A2F;
  --palette-terracotta-500: #B5622F;
  --palette-terracotta-400: #C97A45;
  --palette-gold-700:       #8A6530;
  --palette-gold-600:       #A67C3D;
  --palette-gold-400:       #CDA765;
  --palette-gold-200:       #E7D3AA;
  --palette-sage-600:       #5C6A4C;
  --palette-sage-500:       #6E7A5C;
  --palette-rose-500:       #A56760;
  --palette-rose-400:       #B97D74;
  --palette-linen-100:      #F6EFE4;
  --palette-linen-50:       #FBF7F0;
  --palette-cream-200:      #EEE3D1;
  --palette-neutral-700:    #4A4340;
  --palette-neutral-600:    #6B6560;
  --palette-neutral-400:    #9C948A;
  --palette-neutral-300:    #DCD2C1;
  --palette-neutral-200:    #E9E0D2;

  /* ---- 1.2 Semantic color roles — components consume these, never the palette above ---- */
  --color-bg:               var(--palette-linen-100);
  --color-bg-alt:           var(--palette-cream-200);
  --color-bg-inverse:       var(--palette-espresso-900);
  --color-bg-inverse-alt:   var(--palette-espresso-700);

  --color-surface:          var(--palette-linen-50);
  --color-surface-inverse:  var(--palette-espresso-800);

  --color-text-primary:     var(--palette-espresso-900);
  --color-text-secondary:   var(--palette-neutral-700);
  --color-text-muted:       var(--palette-neutral-600);
  --color-text-inverse:     var(--palette-linen-50);
  --color-text-inverse-muted: rgba(246, 239, 228, 0.62);

  --color-accent:           var(--palette-gold-600);
  --color-accent-hover:     var(--palette-gold-400);
  --color-accent-strong:    var(--palette-gold-700);
  --color-accent-on-dark:   var(--palette-gold-400);

  --color-secondary-accent: var(--palette-sage-500);
  --color-tertiary-accent:  var(--palette-terracotta-500);
  --color-quaternary-accent: var(--palette-rose-500);

  --color-border:           var(--palette-neutral-300);
  --color-border-strong:    var(--palette-coffee-500);
  --color-border-inverse:   rgba(230, 211, 170, 0.18);

  --color-overlay-scrim:    rgba(27, 20, 18, 0.62);

  /* The hero always sits on a dark-overlaid photo in every theme, so its
     text must never flip to a dark color the way --color-text-inverse
     does for chrome. Intentionally NOT overridden by any [data-theme]. */
  --color-hero-text:        #FFFFFF;

  /* Contrast "band" tokens — used by content-area accent bands
     (.section--inverse, .cta-banner, steps) which need to flip
     independently from chrome (header/footer always stay dark). */
  --color-band-bg:          var(--color-bg-inverse);
  --color-band-text:        var(--color-text-inverse);
  --color-band-text-muted:  var(--color-text-inverse-muted);

  /* ---- 1.3 Typography ----
     Fully self-hosted, zero CDN dependency (see /fonts/local-fonts.css).
     Exactly 2 font families site-wide:
       Italiana: large display moments only (hero, page-hero, intro splash) —
         it's a delicate high-contrast face, not meant for repeated headings.
       Poppins: everything else — headings, body, nav, buttons, labels.
     The Botanica theme reassigns --font-heading to Italiana for a softer
     editorial register, but still only draws from these same 2 files. */
  --font-display: 'Italiana', 'Georgia', serif;
  --font-heading: 'Poppins', -apple-system, sans-serif;
  --font-accent:  'Poppins', -apple-system, sans-serif;
  --font-body:    'Poppins', -apple-system, sans-serif;
  --font-brand:    'Bebas Neue', sans-serif;

  --text-2xs: 0.6875rem;  /* 11px */
  --text-xs:  0.75rem;    /* 12px */
  --text-sm:  0.875rem;   /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-md:  1.25rem;    /* 20px */
  --text-lg:  1.75rem;    /* 28px */
  --text-xl:  2.25rem;    /* 36px */
  --text-2xl: 3rem;       /* 48px */
  --text-3xl: clamp(2.5rem, 3.6vw + 1rem, 3.75rem);  /* hero, fluid */

  --leading-tight:  1.15;
  --leading-snug:   1.35;
  --leading-normal: 1.65;
  --leading-loose:  1.85;

  --tracking-normal: 0;
  --tracking-wide:   0.06em;
  --tracking-wider:  0.14em;

  /* ---- 1.4 Spacing — 4px base scale ---- */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.5rem;    /* 24px */
  --space-6: 2rem;      /* 32px */
  --space-7: 2.5rem;    /* 40px */
  --space-8: 3.5rem;    /* 56px */
  --space-9: 5rem;      /* 80px */
  --space-10: 7rem;     /* 112px */

  /* ---- 1.5 Radius — flat, sharp-cornered by default (the Botanica theme
     overrides these back to soft/organic) ---- */
  --radius-sm:   0px;
  --radius-md:   2px;
  --radius-lg:   3px;
  --radius-xl:   4px;
  --radius-full: 3px;

  /* ---- 1.6 Shadow — warm-toned, never pure black ---- */
  --shadow-sm: 0 2px 10px rgba(27, 20, 18, 0.07);
  --shadow-md: 0 10px 28px rgba(27, 20, 18, 0.11);
  --shadow-lg: 0 22px 48px rgba(27, 20, 18, 0.18);
  --shadow-inset-hairline: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow-glow-gold: 0 0 28px rgba(166, 124, 61, 0.35);

  /* ---- 1.7 Motion ---- */
  --ease-organic: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 0.25s;
  --duration-base: 0.4s;
  --duration-slow: 0.7s;

  /* ---- 1.8 Layout ---- */
  --container-max: 1200px;
  --container-pad: clamp(1.25rem, 4vw, 2.5rem);
  --header-offset: 145px; /* full header height (info bar + nav row) — used to reserve space below the fixed header */
  --header-offset-scrolled: 66px; /* collapsed header height once .scrolled — used by sticky elements below the header so they don't gap/overlap during the transition */

  /* ---- 1.9 Z-index scale ---- */
  --z-header: 1000;
  --z-mobile-overlay: 1999;
  --z-mobile-menu: 2000;
}


/* ==========================================================================
   2. RESET & BASE ELEMENTS
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img, picture, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

::selection {
  background: var(--color-accent);
  color: var(--color-text-inverse);
}


/* ==========================================================================
   3. GLOBAL TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
}

p {
  color: var(--color-text-secondary);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-accent);
}


/* ==========================================================================
   4. LAYOUT PRIMITIVES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section {
  padding: var(--space-9) 0;
}

.section--tight {
  padding: var(--space-7) 0;
}

.section--inverse {
  background-color: var(--color-band-bg);
  color: var(--color-band-text);
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: center;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

.section--inverse .section-title {
  color: var(--color-band-text);
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-7);
  line-height: var(--leading-loose);
}

.divider {
  width: 64px;
  height: 2px;
  background: var(--color-accent);
  margin: var(--space-4) auto;
  border-radius: var(--radius-full);
}


/* ==========================================================================
   5. ANIMATION KEYFRAMES
   ========================================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-up {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp var(--duration-slow) var(--ease-organic) forwards;
}

.animate-fade-up-delay-1 { animation-delay: 0.15s; }
.animate-fade-up-delay-2 { animation-delay: 0.3s; }
.animate-fade-up-delay-3 { animation-delay: 0.45s; }

/* JS-bound scroll-reveal hook — do not rename */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-organic),
              transform var(--duration-slow) var(--ease-organic);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .animate-fade-up, .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ==========================================================================
   6. COMPONENTS
   ========================================================================== */

/* ---- 6.1 Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--duration-base) var(--ease-organic),
              color var(--duration-base) var(--ease-organic),
              border-color var(--duration-base) var(--ease-organic),
              box-shadow var(--duration-base) var(--ease-organic),
              transform var(--duration-fast) var(--ease-organic);
}

.btn:active {
  transform: scale(0.98);
}

.btn--gold {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-strong) 100%);
  color: var(--color-text-inverse);
  border-color: var(--color-accent);
}

.btn--gold:hover {
  box-shadow: var(--shadow-glow-gold);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  border-color: var(--color-accent);
  color: var(--color-accent-on-dark);
}

.btn--outline:hover {
  background: var(--color-accent);
  color: var(--color-text-inverse);
}

.btn--ghost {
  background: transparent;
  border-color: var(--color-border-inverse);
  color: var(--color-text-inverse);
}

.btn--ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-on-dark);
}

.btn--block {
  width: 100%;
}


/* ---- 6.2 Site Header / Nav ----
   One fixed wrapper (.site-header) holds the info bar and the nav row as
   normal-flow children, so they collapse together cleanly on scroll —
   replacing the legacy negative-offset overlap hack. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background-color: var(--color-bg-inverse);
  /* Added a clear, elegant border and soft shadow */
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  will-change: transform;
}

/* Utility info strip (hours / location / phone) */
.info-bar {
  width: 100%;
  background-color: var(--color-bg-inverse, #1b1412);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: max-height 0.3s var(--ease-organic, ease), padding 0.3s var(--ease-organic, ease), opacity 0.3s var(--ease-organic, ease);
  max-height: 50px; /* Adjust this initial max-height if needed based on content */
  opacity: 1;
}

.info-bar__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  /* Adds breathing room on left/right so it never touches the screen edges */
  padding: 6px 0; 
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 12px;
  font-size: 11px;
  color: var(--color-text-inverse-muted);
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  transition: padding 0.3s var(--ease-organic, ease);
}

.info-bar__inner::-webkit-scrollbar {
  display: none;
}

.info-bar > div {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* When the page is scrolled, fully collapse the height, padding, and border/opacity */
body.is-scrolled .info-bar {
  max-height: 0;
  border-bottom-width: 0;
  opacity: 0;
}

body.is-scrolled .info-bar__inner {
  padding-top: 0;
  padding-bottom: 0;
}

.info-bar__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  transition: color var(--duration-base) var(--ease-organic);
  font-size: clamp(0.6rem, 0.8vw, 3rem);
}

.info-bar__item svg {
  color: var(--color-accent-on-dark);
  opacity: 0.75;
  width: 14px;
  height: 14px;
}

a.info-bar__item:hover {
  color: var(--color-accent-on-dark);
}

.info-bar__divider {
  width: 1px;
  height: 12px;
  background: var(--color-border-inverse);
}

/* JS-bound: #navbar carries .nav for structural styling, .scrolled for state */
.nav {
  transition: padding var(--duration-base) var(--ease-organic);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-3) var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-brand__wordmark, 
.logo-brand__tagline  { /* Use your exact selector for the logo text heading */
  font-size: clamp(0.9rem, 3.8vw, 1.8rem); /* Shrinks gracefully on smaller devices */
  white-space: nowrap; /* Keeps it on a single line */
  max-width: calc(100vw - 140px);
}

/* Collapse the info bar smoothly once the nav reports the page has scrolled */
.site-header:has(.nav.scrolled) .info-bar {
  grid-template-rows: 0fr;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.logo-wrapper a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.logo-wrapper img {
  height: 52px;
  width: auto;
  transition: opacity var(--duration-base) var(--ease-organic),
              height var(--duration-base) var(--ease-organic);
}

.logo-wrapper__wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-wrapper__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--color-text-inverse);
}

.logo-wrapper__tagline {
  font-family: var(--font-accent);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-on-dark);
  margin-top: 3px;
}

.logo-wrapper a:hover img {
  opacity: 0.85;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-7);
}

.nav-link {
  position: relative;
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-inverse-muted);
  padding: var(--space-2) 0;
  transition: color var(--duration-base) var(--ease-organic);
}

.nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent-on-dark);
  transition: width var(--duration-base) var(--ease-organic);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text-inverse);
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 100%;
}

/* Mobile menu toggle — JS-bound: #mobileMenuBtn, .active */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--color-border-inverse);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  transition: border-color var(--duration-base) var(--ease-organic);
}

.mobile-menu-btn:hover {
  border-color: var(--color-accent);
}

.mobile-menu-btn span {
  width: 18px;
  height: 1.5px;
  background: var(--color-accent-on-dark);
  transition: transform var(--duration-base) var(--ease-organic),
              opacity var(--duration-base) var(--ease-organic);
}

.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* JS-bound: #mobileMenuOverlay, .open */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-overlay-scrim);
  z-index: var(--z-mobile-overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-base) var(--ease-organic),
              visibility var(--duration-base) var(--ease-organic);
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* JS-bound: #mobileMenu, .open */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 360px;
  height: 100vh;
  background: var(--color-surface-inverse);
  z-index: var(--z-mobile-menu);
  padding: var(--space-9) var(--space-6) var(--space-6);
  border-left: 1px solid var(--color-border-inverse);
  overflow-y: auto;
  transition: right var(--duration-base) var(--ease-organic);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border-inverse);
  border-radius: var(--radius-sm);
  color: var(--color-text-inverse-muted);
  transition: all var(--duration-base) var(--ease-organic);
}

.mobile-menu-close:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-on-dark);
}

.mobile-nav-links {
  margin-top: var(--space-8);
}

.mobile-nav-links li {
  border-bottom: 1px solid var(--color-border-inverse);
}

.mobile-nav-links .nav-link {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-md);
  text-transform: none;
  letter-spacing: 0;
  padding: var(--space-4) 0;
  color: var(--color-text-inverse-muted);
}

.mobile-nav-links .nav-link::before {
  display: none;
}

.mobile-nav-links .nav-link:hover,
.mobile-nav-links .nav-link.active {
  color: var(--color-accent-on-dark);
  padding-left: var(--space-2);
}


/* ---- 6.3 Hero ---- */
.hero {
  position: relative;
  min-height: 92vh;
  padding-top: var(--header-offset);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-image: linear-gradient(to bottom,
    rgba(20, 14, 12, 0.6) 0%,
    rgba(20, 14, 12, 0.42) 45%,
    rgba(20, 14, 12, 0.72) 100%),
    var(--hero-image, url('/images/banner-1.webp'));
  background-size: cover;
  background-position: center;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 var(--container-pad);
  max-width: 900px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 500;
  line-height: var(--leading-tight);
  color: var(--color-hero-text);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45), 0 1px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: var(--space-4);
}

.hero__summary {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  max-width: 560px;
  margin: 0 auto var(--space-5);
  line-height: var(--leading-loose);
}

/* Scroll cue now sits in normal document flow, below the CTA button,
   instead of floating as an absolutely-positioned element that could
   visually clash with it. */
.hero__scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-5) auto 0;
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
  transition: transform var(--duration-base) var(--ease-organic);
}

.hero__scroll-cue:hover {
  transform: translateY(4px);
}

.hero__scroll-cue:hover .hero__scroll-label {
  color: rgba(255, 255, 255, 0.95);
}

.hero__scroll-label {
  font-family: var(--font-accent);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--duration-base) var(--ease-organic);
}

.hero__scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
  animation: scrollLinePulse 1.8s ease-in-out infinite;
}

@keyframes scrollLinePulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-line { animation: none; }
}


/* ---- 6.4 Cards ---- */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
  transition: transform var(--duration-base) var(--ease-organic),
              box-shadow var(--duration-base) var(--ease-organic),
              border-color var(--duration-base) var(--ease-organic);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.card--icon {
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  border-radius: var(--radius-full);
  background: var(--color-bg-alt);
  color: var(--color-accent);
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card__title {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: var(--space-2);
}

.card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}


/* ---- 6.5 Story ---- */
.story {
  max-width: 620px;
  margin: var(--space-9) auto 0;
  text-align: center;
}

.story__title {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: var(--text-lg);
  margin-bottom: var(--space-6);
}

.story__text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  text-align: left;
  color: var(--color-text-secondary);
  line-height: 1.9;
  margin-bottom: var(--space-5);
}

.story__text:first-of-type {
  font-size: 1.2rem;
  color: var(--color-text-primary);
}

.story__text strong {
  color: var(--color-accent-strong);
  font-weight: 600;
}


/* ---- 6.6 CTA banner (e.g. Quality & Hygiene teaser) ---- */
.cta-banner {
  background: var(--color-band-bg);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  margin-top: var(--space-9);
}

.cta-banner__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-band-text);
  margin-bottom: var(--space-3);
}

.cta-banner__text {
  color: var(--color-band-text-muted);
  max-width: 560px;
  margin: 0 auto var(--space-5);
  line-height: var(--leading-loose);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  color: var(--color-accent-on-dark);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-base) var(--ease-organic),
              gap var(--duration-base) var(--ease-organic);
}

.link-arrow:hover {
  border-color: var(--color-accent-on-dark);
  gap: var(--space-3);
}


/* ---- 6.7 Site Footer ---- */
footer, .site-footer {
  border-top: 1px solid var(--color-border-inverse);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 2;
}

.site-footer {
  background: var(--color-bg-inverse);
  color: var(--color-text-inverse-muted);
  padding-top: var(--space-8);
}

/* Brand block — deliberately placed at the TOP of the footer, not the
   bottom, so it never collides with the fixed WhatsApp/scroll buttons
   that live in the bottom-right corner of the viewport. */
.logo-brand {
  font-family: var(--font-brand);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.logo-brand a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

footer .logo-brand {
  padding-bottom: var(--space-7);
  margin-bottom: var(--space-7);
  border-bottom: 1px solid var(--color-border-inverse);
}

.logo-brand__mark {
  height: 52px;
  width: auto;
  transition: opacity var(--duration-base) var(--ease-organic),
              height var(--duration-base) var(--ease-organic);
}

.logo-brand__wordmark {
  font-size: clamp(1.3rem, 3.8vw, 1.8rem);
  letter-spacing: 0.08em;
  color: var(--color-text-inverse);
  line-height: 1;
}

.logo-brand__tagline {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-on-dark);
  margin-top: 3px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-1);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border-inverse);
}

.footer-column__heading {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-accent-on-dark);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid rgba(205, 167, 101, 0.35);
  display: inline-block;
}

.footer-column ul li {
  margin-bottom: var(--space-3);
}

.footer-column a {
  font-size: var(--text-sm);
  color: var(--color-text-inverse-muted);
  transition: color var(--duration-base) var(--ease-organic),
              padding-left var(--duration-base) var(--ease-organic);
}

.footer-column a:hover {
  color: var(--color-accent-on-dark);
  padding-left: var(--space-2);
}

.footer-text {
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
  color: var(--color-text-inverse-muted);
  margin-bottom: var(--space-5);
}

.footer-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-2);
}

.footer-actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-accent-on-dark);
  border: 1px solid rgba(205, 167, 101, 0.35);
  border-radius: var(--radius-full);
  padding: 7px var(--space-3);
  transition: background-color var(--duration-base) var(--ease-organic),
              border-color var(--duration-base) var(--ease-organic),
              color var(--duration-base) var(--ease-organic);
}

.footer-actions a svg {
  width: 13px;
  height: 13px;
}

.footer-actions a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text-inverse);
}

.footer-middle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-6) 0;
  flex-wrap: wrap;
}

.footer-middle__section {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 640px;
}

.copyright-infringement {
  font-size: var(--text-2xs);
  line-height: var(--leading-normal);
  color: var(--color-text-inverse-muted);
}

.copyright-infringement .label {
  font-weight: 600;
  color: var(--color-text-inverse);
}

.copyright-content {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  font-size: var(--text-xs);
  color: var(--color-text-inverse-muted);
}

.footer-credit-link {
  color: var(--color-accent-on-dark);
  border-bottom: 1px solid rgba(205, 167, 101, 0.35);
}

.footer-credit-link:hover {
  border-color: var(--color-accent-on-dark);
}


/* ---- 6.8 Floating UI & Ambient Effects ----
   Injected site-wide via components/preloader.html into #preloader on every
   page (same pattern as header/footer). These elements are fixed/absolute
   overlays; without this block they fall into normal document flow, which
   is what caused the stray content and oversized page height. Colors here
   are intentionally restricted to the brand palette — the legacy version
   used random full-spectrum rainbow hues (cursor sparkle trail, click
   confetti, an on-load confetti burst) which read as a generic template
   gimmick and clashed with the Boho-European direction. See build notes. */

/* Ambient dust-mote canvas (permanent, subtle) */
#effect-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  background: transparent !important;
}

/* Cursor trail — single warm gold dot, replaces the old duplicate
   5-color neon trail (initCustomCursor was removed; this is the only
   cursor-trail system left, see animations.js) */
.cursor-trail-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: var(--z-mobile-menu);
}

.cursor-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px 1px rgba(201, 162, 75, 0.5);
  opacity: 0.55;
  transform: translate(-50%, -50%);
  transition: opacity 0.6s ease, transform 0.6s ease;
  filter: blur(0.5px);
}

/* Dev environment badge — hidden by default, shown via JS on non-prod hosts */
#env-badge {
  position: fixed;
  top: 110px;
  left: -5px;
  transform: rotate(-30deg);
  background: rgba(181, 98, 47, 0.15);
  color: var(--color-tertiary-accent);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  padding: var(--space-1) var(--space-4);
  border: 1.5px dashed var(--color-tertiary-accent);
  border-radius: var(--radius-sm);
  z-index: 9999;
  pointer-events: none;
  display: none;
}

/* Scroll to top / bottom */
#scroll-buttons {
  position: fixed;
  bottom: 92px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  z-index: var(--z-header);
}

#scroll-buttons button {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-inverse);
  color: var(--color-accent-on-dark);
  border: 1px solid var(--color-border-inverse);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: background-color var(--duration-base) var(--ease-organic),
              color var(--duration-base) var(--ease-organic),
              transform var(--duration-fast) var(--ease-organic);
}

#scroll-buttons button:hover:not([disabled]) {
  background: var(--color-accent);
  color: var(--color-text-inverse);
  transform: translateY(-2px);
}

#scroll-buttons button[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

/* WhatsApp chat bubble — the source asset is a wide pill-shaped
   "Chat on WhatsApp" button graphic (320x72), not a square icon, so it's
   sized by width with auto height rather than forced into a square. */
.whatsapp-icon {
  position: fixed;
  z-index: 99;
  bottom: 20px;
  right: 20px;
  width: 168px;
  line-height: 0;
}

.whatsapp-icon img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-full);
  filter: drop-shadow(var(--shadow-md));
  transition: transform var(--duration-fast) var(--ease-organic);
}

.whatsapp-icon:hover img {
  transform: scale(1.05);
}

/* Share button — sits above the scroll buttons */
.share-btn {
  position: fixed;
  bottom: 208px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-inverse);
  color: var(--color-accent-on-dark);
  border: 1px solid var(--color-border-inverse);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  z-index: 99;
  transition: background-color var(--duration-base) var(--ease-organic),
              color var(--duration-base) var(--ease-organic),
              transform var(--duration-fast) var(--ease-organic);
}

.share-btn:hover {
  background: var(--color-accent);
  color: var(--color-text-inverse);
  transform: translateY(-2px);
}

/* ---- Intro splash overlay ---- */
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-inverse);
  transition: opacity 0.7s ease;
}

#intro-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.intro-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.intro-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 var(--space-5);
}

.intro-letters {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
}

.intro-letter {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 8rem);
  font-weight: 600;
  letter-spacing: 0.3em;
  background: linear-gradient(100deg,
    var(--palette-gold-700) 0%,
    var(--palette-gold-200) 16%,
    var(--palette-gold-400) 32%,
    #FFF6E0 46%,
    var(--palette-gold-600) 60%,
    var(--palette-coffee-500) 74%,
    var(--palette-gold-400) 88%,
    var(--palette-gold-700) 100%);
  background-size: 320% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  opacity: 0;
  filter: blur(12px);
  transform: translateY(30px);
  animation: introLetterForm 1.2s ease forwards, introShimmer 2.4s linear infinite;
}

.intro-tagline {
  display: block;
  margin: var(--space-5) auto 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-inverse-muted);
  opacity: 0;
  transform: translateY(10px);
  animation: introFadeUp 0.8s ease forwards;
  animation-fill-mode: forwards;
}

.brand-divider {
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--palette-gold-600), #E85D75, #6BAED6, #52C77A, var(--palette-gold-400), var(--palette-gold-600));
  background-size: 300% auto;
  margin: var(--space-4) auto;
  opacity: 0;
  border-radius: var(--radius-full);
  animation: introDividerGrow 0.8s ease forwards, introShimmer 3s linear infinite;
}

.brand-tagline {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-inverse-muted);
  opacity: 0;
  transform: translateY(10px);
  animation: introFadeUp 0.8s ease forwards;
}

.intro-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(166, 124, 61, 0.12) 0%, transparent 70%);
  animation: introGlowPulse 3s ease-in-out infinite;
}

/* Coffee-themed micro particles inside the splash screen */
.steam-particle {
  position: absolute;
  bottom: 40%;
  width: 3px;
  height: 3px;
  background: rgba(205, 167, 101, 0.45);
  border-radius: 50%;
  animation: introSteamRise 3s ease-in-out infinite;
}

.pour-drop {
  position: absolute;
  top: -10px;
  width: 4px;
  height: 16px;
  background: linear-gradient(to bottom, rgba(111, 74, 47, 0.8), rgba(111, 74, 47, 0.3));
  border-radius: 0 0 50% 50%;
  animation: introPourFall 2s ease-in infinite;
}

.sizzle-spark {
  position: absolute;
  bottom: 15%;
  width: 3px;
  height: 3px;
  background: var(--palette-terracotta-400);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(201, 122, 69, 0.7), 0 0 12px rgba(181, 98, 47, 0.35);
  animation: introSizzleRise 1.5s ease-out infinite;
}

.shot-splash {
  position: absolute;
  top: 55%;
  width: 5px;
  height: 5px;
  background: rgba(205, 167, 101, 0.7);
  border-radius: 50%;
  animation: introShotSplash 2s ease-out infinite;
}

.drizzle-line {
  position: absolute;
  top: 8%;
  width: 2px;
  height: 0;
  background: linear-gradient(to bottom, rgba(231, 211, 170, 0.7), transparent);
  border-radius: 2px;
  animation: introDrizzleFall 3s ease-in-out infinite;
}

.themed-particle {
  position: absolute;
  opacity: 0;
  animation: introThemedFloat 3s ease-in-out infinite;
}

/* Colorful confetti burst — mixed shapes, brand-adjacent hues, for a more
   festive/welcoming splash moment */
.confetti-piece {
  position: absolute;
  top: -5%;
  width: var(--confetti-size, 6px);
  height: var(--confetti-size, 6px);
  background: var(--confetti-color, var(--color-accent));
  opacity: 0;
  animation: introConfettiFall ease-in forwards;
  transform: rotate(var(--confetti-rotate, 0deg));
}

.confetti-piece--circle { border-radius: 50%; }
.confetti-piece--square { border-radius: 1px; }
.confetti-piece--diamond { border-radius: 1px; transform: rotate(45deg); }
.confetti-piece--triangle {
  width: 0;
  height: 0;
  background: transparent !important;
  border-left: calc(var(--confetti-size, 6px) / 2) solid transparent;
  border-right: calc(var(--confetti-size, 6px) / 2) solid transparent;
  border-bottom: var(--confetti-size, 6px) solid var(--confetti-color, var(--color-accent));
}
.confetti-piece--star {
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  width: calc(var(--confetti-size, 6px) * 2);
  height: calc(var(--confetti-size, 6px) * 2);
}
.confetti-piece--pentagon {
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  width: calc(var(--confetti-size, 6px) * 1.6);
  height: calc(var(--confetti-size, 6px) * 1.6);
}

/* Click feedback — brand-toned confetti (replaces old full-hue rainbow) */
.party-prop {
  position: absolute;
  width: 8px;
  height: 8px;
  pointer-events: none;
  animation: introExplode 0.9s ease-out forwards;
}

@keyframes introLetterForm {
  0%   { opacity: 0; filter: blur(16px); transform: translateY(40px) scale(0.9); }
  50%  { opacity: 0.6; filter: blur(6px); transform: translateY(-8px) scale(1.03); }
  100% { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}

@keyframes introShimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes introFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes introDividerGrow {
  to { width: 64px; opacity: 1; }
}

@keyframes introGlowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50%      { transform: translate(-50%, -50%) scale(1.15); opacity: 0.8; }
}

@keyframes introSteamRise {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  20%  { opacity: 0.4; }
  100% { transform: translateY(-200px) scale(2.5); opacity: 0; }
}

@keyframes introPourFall {
  0%   { transform: translateY(0) scaleY(1); opacity: 0; }
  10%  { opacity: 0.8; }
  70%  { opacity: 0.6; }
  100% { transform: translateY(100vh) scaleY(1.5); opacity: 0; }
}

@keyframes introSizzleRise {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translateY(-120px) translateX(var(--tx, 0px)) scale(0); opacity: 0; }
}

@keyframes introShotSplash {
  0%   { transform: translate(0, 0) scale(1); opacity: 0; }
  10%  { opacity: 0.9; }
  100% { transform: translate(var(--sx, 30px), var(--sy, -40px)) scale(0.3); opacity: 0; }
}

@keyframes introDrizzleFall {
  0%   { height: 0; opacity: 0; top: 5%; }
  20%  { opacity: 0.6; }
  50%  { height: 80px; opacity: 0.4; top: 30%; }
  100% { height: 0; opacity: 0; top: 70%; }
}

@keyframes introThemedFloat {
  0%   { opacity: 0; transform: translateY(0) scale(0.8) rotate(0deg); }
  25%  { opacity: 0.5; }
  50%  { opacity: 0.7; transform: translateY(-30px) scale(1.1) rotate(15deg); }
  75%  { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(-60px) scale(0.6) rotate(-10deg); }
}

@keyframes introExplode {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--x), var(--y)) rotate(280deg); opacity: 0; }
}

@keyframes introConfettiFall {
  0%   { opacity: 0; transform: translate(0, 0) rotate(var(--confetti-rotate, 0deg)); }
  10%  { opacity: 0.9; }
  80%  { opacity: 0.7; }
  100% { opacity: 0; transform: translate(var(--confetti-drift, 20px), 340px) rotate(calc(var(--confetti-rotate, 0deg) + 360deg)); }
}

@media (max-width: 640px) {
  .share-btn { bottom: 186px; right: 14px; }
  #scroll-buttons { bottom: 78px; right: 14px; }
  .whatsapp-icon { right: 14px; width: 140px; bottom: 16px; }

  .footer-actions a {
    padding: 6px var(--space-3);
    font-size: 9px;
  }

  .footer-actions a svg { width: 11px; height: 11px; }
}

@media (max-width: 400px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}


/* ==========================================================================
   6.9 INNER-PAGE COMPONENTS
   Shared across browse-menu, must-haves, our-story, cgs-experience, faq,
   find-us, orders, careers, join-our-team, cafe-in-indore, quality-hygiene,
   privacy-policy, terms-and-conditions, testimonials.
   ========================================================================== */

/* ---- Page hero (inner-page banner) ---- */
.page-hero {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-top: calc(var(--header-offset) + var(--space-8));
  padding-bottom: var(--space-7);
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
  text-align: center;
}

.page-hero--tight { padding-bottom: var(--space-4); }

.page-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-text-primary);
  margin: var(--space-3) 0;
}

.page-hero__subtitle {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: var(--text-md);
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: var(--leading-loose);
}

/* ---- Quote block ---- */
.quote-block {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.quote-block__text {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: var(--text-lg);
  color: var(--color-text-primary);
  line-height: var(--leading-loose);
}

.quote-block__lead {
  font-family: var(--font-body);
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
  margin-top: var(--space-5);
}

/* ---- Card grid modifiers ---- */
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.card-grid--4 .card__title {
  font-size: var(--text-base);
  line-height: 1.3;
}

.card--plain {
  box-shadow: none;
}

.card__glyph {
  display: flex;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.card__glyph svg {
  width: 32px;
  height: 32px;
}

/* ---- Timeline (Our Story journey) ---- */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--color-border-strong);
  opacity: 0.3;
  transform: translateX(-50%);
}

.timeline__item {
  position: relative;
  display: flex;
  margin-bottom: var(--space-8);
}

.timeline__item:last-child { margin-bottom: 0; }

.timeline__dot {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  border: 2px solid var(--color-bg);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.timeline__content {
  width: 50%;
}

.timeline__item--left .timeline__content {
  padding-right: var(--space-8);
  text-align: right;
  margin-left: 0;
}

.timeline__item--right {
  justify-content: flex-end;
}

.timeline__item--right .timeline__content {
  padding-left: var(--space-8);
  text-align: left;
}

.timeline__title {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  margin: var(--space-2) 0 var(--space-2);
}

.timeline__text {
  font-family: var(--font-heading);
  font-weight: 300;
  color: var(--color-text-secondary);
  line-height: var(--leading-loose);
}

/* ---- FAQ: always-visible bordered blocks (no click needed to scan) ---- */
.accordion-group { margin-bottom: var(--space-8); }

.accordion-group__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.accordion-group__header .divider { margin: 0; width: 40px; }

.accordion-group__title {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 500;
  white-space: nowrap;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.faq-block {
  display: flex;
  gap: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
  transition: border-color var(--duration-base) var(--ease-organic),
              box-shadow var(--duration-base) var(--ease-organic),
              transform var(--duration-base) var(--ease-organic);
}

.faq-block:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.faq-block__q {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.faq-block__a {
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
  font-size: var(--text-sm);
}

.link-cta {
  color: var(--color-accent-strong);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
  transition: color var(--duration-base) var(--ease-organic),
              text-decoration-color var(--duration-base) var(--ease-organic);
}

.link-cta:hover {
  color: var(--color-accent);
  text-decoration-color: var(--color-accent-strong);
}

@media (max-width: 860px) {
  .faq-list { grid-template-columns: 1fr; }
}

/* ---- CTA section (full-width, plain) ---- */
.cta-section {
  text-align: center;
  padding: var(--space-8) var(--container-pad) 0;
  max-width: 640px;
  margin: 0 auto;
}

.cta-section__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.cta-section__eyebrow {
  font-family: var(--font-heading);
  font-weight: 300;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

/* ---- Decorative marker lists ---- */
.list-marks {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.list-marks li {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  padding-left: var(--space-5);
  position: relative;
}

.list-marks li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 0.6em;
  top: 0.4em;
}

.list-marks--outline li::before { content: '◇'; }

/* ---- Legal document layout (privacy / terms) ---- */
.legal {
  max-width: 760px;
  margin: 0 auto;
}

.legal__intro {
  text-align: center;
  padding-bottom: var(--space-8);
}

.legal__quote {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: var(--text-lg);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.legal__lead {
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
}

.legal__section {
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-border);
}

.legal__section:last-child { border-bottom: none; }

.legal__section h2 {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.legal__section p {
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
  font-size: var(--text-sm);
}

/* ---- Callout note box ---- */
.callout {
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
}

.callout strong { color: var(--color-text-primary); }

/* ---- Numbered steps (Orders "How it Works") ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-7);
  text-align: center;
}

.steps__number {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-accent);
  opacity: 0.3;
}

.steps__title {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  color: var(--color-band-text);
  margin: var(--space-2) 0 var(--space-2);
}

.steps__text {
  color: var(--color-band-text-muted);
  line-height: var(--leading-normal);
  font-size: var(--text-sm);
}

/* ---- Info grid (Find Us) ---- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.info-grid .card {
  padding: var(--space-5) var(--space-4);
  transition: transform var(--duration-base) var(--ease-organic),
              box-shadow var(--duration-base) var(--ease-organic),
              border-color var(--duration-base) var(--ease-organic),
              background-color var(--duration-base) var(--ease-organic);
}

.info-grid .card:hover {
  border-color: var(--color-accent);
  background: var(--color-bg-alt);
  transform: translateY(-6px) scale(1.02);
}

.info-grid .card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-3);
  transition: transform var(--duration-base) var(--ease-organic);
}

.info-grid .card:hover .card__icon {
  transform: scale(1.12);
  background: var(--color-accent);
  color: var(--color-text-inverse);
}

.info-grid .card__title {
  font-size: var(--text-base);
}

.info-grid .card__text {
  font-size: var(--text-xs);
}

.info-grid > a {
  display: flex;
  text-decoration: none;
  color: inherit;
}

.info-grid > a .card {
  width: 100%;
}

/* ---- Menu system (Browse Menu) ---- */

/* JS-bound: .tab-btn[data-tab].active toggles which .tab-content shows */
.tab-btn {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: var(--space-3) var(--space-6);
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: border-color var(--duration-base) var(--ease-organic),
              color var(--duration-base) var(--ease-organic),
              background-color var(--duration-base) var(--ease-organic);
}

.tab-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-strong);
}

.tab-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text-inverse);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn var(--duration-base) var(--ease-organic);
}

.menu-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding: var(--space-4) var(--container-pad);
  margin: 0 calc(var(--container-pad) * -1) var(--space-6);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.menu-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.menu-note__meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border);
}

.menu-note__badge {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-text-inverse);
  border-radius: 50%;
  font-size: var(--text-xs);
}

.menu-category { margin-bottom: var(--space-8); }

.menu-category__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-2);
}

.menu-category__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  color: var(--color-tertiary-accent);
}

.menu-category__icon svg { width: 22px; height: 22px; }

.menu-category__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
}

.menu-category__subtitle {
  font-family: var(--font-heading);
  font-weight: 300;
  color: var(--color-text-muted);
  font-size: var(--text-md);
}

.menu-category__note {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  color: var(--color-accent-strong);
  margin: var(--space-2) 0 var(--space-4) 68px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.menu-item {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  transition: border-color var(--duration-base) var(--ease-organic),
              transform var(--duration-base) var(--ease-organic);
}

.menu-item:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
}

.menu-item--signature {
  background: linear-gradient(160deg, var(--color-surface) 60%, var(--palette-gold-200) 220%);
  border-color: var(--color-accent);
}

.menu-item__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.menu-item__name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-normal);
  color: var(--color-text-primary);
}

.menu-item--signature .menu-item__name { color: var(--color-accent-strong); }

.menu-item__star {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-text-inverse);
  border-radius: 50%;
  font-size: var(--text-xs);
  box-shadow: var(--shadow-sm);
}

.menu-item__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-3);
}

.menu-item__meta {
  display: inline-block;
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 2px var(--space-2);
  margin-right: var(--space-2);
}

/* ---- Product card with photo (Must-Haves / Signature Picks) ---- */
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-base) var(--ease-organic),
              box-shadow var(--duration-base) var(--ease-organic);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.product-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-organic);
}

.product-card:hover .product-card__image img {
  transform: scale(1.06);
}

.product-card__badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: rgba(27, 20, 18, 0.75);
  border: 1px solid var(--color-accent);
  color: var(--color-accent-on-dark);
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.product-card__info { padding: var(--space-5); }

.product-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: var(--space-2);
}

.product-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-3);
}

.product-card__meta {
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}


/* ==========================================================================
   7. UTILITIES
   ========================================================================== */
.text-center { text-align: center; }
.page-offset { padding-top: var(--header-offset); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ==========================================================================
   8. RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 960px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .card-grid--4, .info-grid, .product-grid, .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid--2 {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .timeline::before { left: 24px; }
  .timeline__dot { left: 24px; }
  .timeline__content,
  .timeline__item--left .timeline__content,
  .timeline__item--right .timeline__content {
    width: 100%;
    padding-left: var(--space-8);
    padding-right: 0;
    text-align: left;
  }
  .timeline__item--right { justify-content: flex-start; }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .info-bar__inner {
    font-size: 10px;
    gap: var(--space-2);
  }
}

@media (max-width: 640px) {
  .footer-middle {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo-brand {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .hero {
    align-items: flex-start;
    padding-top: calc(var(--header-offset) + var(--space-7));
    padding-bottom: var(--space-8);
    min-height: auto;
  }

  .hero__title {
    font-size: clamp(2.25rem, 9vw, 3rem);
  }

  .menu-grid, .product-grid, .info-grid, .card-grid--4 {
    grid-template-columns: 1fr;
  }

  .menu-category__note { margin-left: 0; }

  .page-hero__title { font-size: var(--text-xl); }

  .section {
    padding: var(--space-7) 0;
  }
}


/* ==========================================================================
   9. THEME VARIANTS — Roast (default) / Botanica
   Toggled via [data-theme] on <html>, persisted in localStorage by the
   floating style-clip tab (see .theme-clip + custom.js).

   Roast = the default. Warm coffee palette, but flat and sharp-cornered —
   a modern specialty-roastery register (see base :root tokens above).

   Botanica = a soft, organic, clean-beauty/coastal register: sand + sage +
   deep teal, generous rounded/arch shapes, diffused shadows, serif
   editorial headings. Structural differences (asymmetric footer grid,
   left-aligned hero, arch-topped imagery) are achieved without any
   direction:rtl trickery.
   ========================================================================== */

:root[data-theme="botanica"] {
  /* ---- Palette: warm sand + sage + deep teal ---- */
  --color-bg:               #F5F1E7;
  --color-bg-alt:           #ECE5D5;
  --color-bg-inverse:       #24413B;
  --color-bg-inverse-alt:   #1B332D;

  --color-surface:          #FBF9F3;
  --color-surface-inverse:  #24413B;

  --color-text-primary:     #2B3B36;
  --color-text-secondary:   #5C6B64;
  --color-text-muted:       #93A099;
  --color-text-inverse:     #F5F1E7;
  --color-text-inverse-muted: rgba(245, 241, 231, 0.74);

  --color-accent:           #7C9070;
  --color-accent-hover:     #94A886;
  --color-accent-strong:    #5F7355;
  --color-accent-on-dark:   #A8C09A;

  --color-secondary-accent:  #3B6B63;
  --color-tertiary-accent:   #C4A276;
  --color-quaternary-accent: #B79098;

  --color-border:           rgba(43, 59, 54, 0.10);
  --color-border-strong:    rgba(43, 59, 54, 0.22);
  --color-border-inverse:   rgba(245, 241, 231, 0.16);

  /* Content-area contrast band echoes the same teal chrome for cohesion */
  --color-band-bg:          #24413B;
  --color-band-text:        #F5F1E7;
  --color-band-text-muted:  rgba(245, 241, 231, 0.72);

  /* ---- Shape: soft, organic, generous — the opposite of Roast's flat default ---- */
  --radius-sm:   6px;
  --radius-md:   14px;
  --radius-lg:   28px;
  --radius-xl:   44px;
  --radius-full: 999px;

  /* ---- Shadow: soft and diffused ---- */
  --shadow-sm: 0 2px 14px rgba(43, 59, 54, 0.06);
  --shadow-md: 0 14px 34px rgba(43, 59, 54, 0.09);
  --shadow-lg: 0 28px 60px rgba(43, 59, 54, 0.13);
  --shadow-glow-gold: 0 0 26px rgba(124, 144, 112, 0.28);

  /* Headings use the same readable Poppins as Roast — Botanica's identity
     comes from color/shape, not a delicate display serif that hurt legibility. */
  --tracking-wider: 0.1em;
}

[data-theme="botanica"] .section-title,
[data-theme="botanica"] .story__title,
[data-theme="botanica"] .timeline__title,
[data-theme="botanica"] .accordion-group__title,
[data-theme="botanica"] .legal__section h2,
[data-theme="botanica"] .steps__title,
[data-theme="botanica"] .menu-category__title,
[data-theme="botanica"] .product-card__name,
[data-theme="botanica"] .card__title {
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.02em;
  text-transform: none;
}

/* ---- Structural alignment ---- */
[data-theme="botanica"] .hero {
  justify-content: flex-start;
  padding-left: clamp(1.5rem, 8vw, 7rem);
}

[data-theme="botanica"] .hero__content,
[data-theme="botanica"] .page-hero,
[data-theme="botanica"] .section-title,
[data-theme="botanica"] .section-subtitle,
[data-theme="botanica"] .page-hero__subtitle,
[data-theme="botanica"] .cta-section__title,
[data-theme="botanica"] .cta-section__eyebrow,
[data-theme="botanica"] .quote-block,
[data-theme="botanica"] .story__title,
[data-theme="botanica"] .story__text,
[data-theme="botanica"] .card--icon {
  text-align: left;
}

[data-theme="botanica"] .hero__scroll-cue {
  margin-left: 0;
  margin-right: auto;
}

[data-theme="botanica"] .hero__summary,
[data-theme="botanica"] .section-subtitle,
[data-theme="botanica"] .page-hero__subtitle,
[data-theme="botanica"] .quote-block__lead,
[data-theme="botanica"] .cta-section__eyebrow {
  margin-left: 0;
  margin-right: auto;
}

[data-theme="botanica"] .divider {
  margin-left: 0;
  margin-right: auto;
  border-radius: var(--radius-full);
}

[data-theme="botanica"] .card__glyph {
  margin-left: 0;
  justify-content: flex-start;
}

[data-theme="botanica"] .card {
  border: 1px solid var(--color-border-strong);
}

[data-theme="botanica"] .card__icon {
  margin-left: 0;
  background: rgba(124, 144, 112, 0.16);
  border-radius: 50%;
}

/* Product images: no radius on the card or image so photos display fully uncropped */
[data-theme="botanica"] .product-card {
  border-radius: 0;
}

[data-theme="botanica"] .product-card__image {
  border-radius: 0;
}

/* ---- Footer: asymmetric column widths instead of a uniform 4-up grid ---- */
[data-theme="botanica"] .footer-grid {
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}

/* ---- Timeline: single-sided rail ---- */
[data-theme="botanica"] .timeline::before { left: 0; }
[data-theme="botanica"] .timeline__dot { left: 0; }
[data-theme="botanica"] .timeline__item,
[data-theme="botanica"] .timeline__item--right {
  justify-content: flex-start;
}
[data-theme="botanica"] .timeline__content,
[data-theme="botanica"] .timeline__item--left .timeline__content,
[data-theme="botanica"] .timeline__item--right .timeline__content {
  width: 100%;
  padding-left: var(--space-8);
  padding-right: 0;
  text-align: left;
}

[data-theme="botanica"] .menu-category__note { margin-left: 68px; }

@media (max-width: 860px) {
  [data-theme="botanica"] .hero { padding-left: var(--container-pad); }
  [data-theme="botanica"] .footer-grid { grid-template-columns: 1fr 1fr; }
}


/* ---- Style switcher: a clip tab docked to the right edge, below header ---- */
.theme-clip {
  position: fixed;
  top: 130px;
  right: 0;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--color-surface-inverse);
  border: 1px solid var(--color-border-inverse);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.theme-clip__label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) 0;
  color: var(--color-text-inverse-muted);
  border-bottom: 1px solid var(--color-border-inverse);
}

.theme-clip__label svg {
  width: 15px;
  height: 15px;
}

.theme-clip__option {
  font-family: var(--font-accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  color: var(--color-text-inverse-muted);
  padding: var(--space-2) var(--space-4) var(--space-2) var(--space-3);
  cursor: pointer;
  border-top: 1px solid var(--color-border-inverse);
  transition: background-color var(--duration-base) var(--ease-organic),
              color var(--duration-base) var(--ease-organic);
}

.theme-clip__option:first-of-type { border-top: none; }

.theme-clip__option.active {
  background: var(--color-accent);
  color: var(--color-text-inverse);
}

.theme-clip__option:hover:not(.active) {
  color: var(--color-accent-on-dark);
}

@media (max-width: 640px) {
  .theme-clip__option { padding: 7px var(--space-3) 7px var(--space-2); font-size: 9px; }
}

/* ==========================================================================
   10. 404 PAGE
   Restored the original's animated gradient number, rising steam wisps,
   and colorful gradient card background — these were in the legacy
   custom.css but never got carried over in the first migration pass.
   ========================================================================== */
.nf-container {
  position: relative;
  min-height: 100vh;
  padding-top: var(--header-offset);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.nf-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 480px;
  height: 480px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(166, 124, 61, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

/* Rising steam wisps behind the card */
.nf-steam {
  position: absolute;
  bottom: 80px;
  left: 50%;
  width: 8px;
  height: 120px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0), rgba(200, 200, 200, 0.4));
  filter: blur(6px);
  opacity: 0.3;
  animation: nfSteamRise 5s infinite ease-in-out;
  pointer-events: none;
}

.nf-steam:nth-child(1) { margin-left: -60px; animation-delay: 0s; }
.nf-steam:nth-child(2) { margin-left: 0; animation-delay: 1.5s; }
.nf-steam:nth-child(3) { margin-left: 60px; animation-delay: 3s; }

@keyframes nfSteamRise {
  0%   { transform: translateY(0) scaleX(1); opacity: 0.3; }
  50%  { transform: translateY(-60px) scaleX(1.6); opacity: 0.15; }
  100% { transform: translateY(-120px) scaleX(2); opacity: 0; }
}

.nf-card {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: var(--space-6);
  text-align: center;
  background: linear-gradient(135deg, #EAF3F0 0%, var(--color-surface) 50%, #FBE9DD 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-7) var(--space-7);
  transition: transform 0.15s ease-out;
}

.nf-404 {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(120deg, var(--palette-gold-600), var(--palette-coffee-500), var(--palette-gold-400), var(--palette-gold-600));
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: nfGradientMove 5s ease infinite;
  margin-bottom: var(--space-3);
}

@keyframes nfGradientMove {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.nf-divider {
  width: 48px;
  height: 2px;
  background: var(--color-accent);
  margin: 0 auto var(--space-4);
  border-radius: var(--radius-full);
}

.nf-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.nf-desc {
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
}

.nf-phrase {
  font-family: var(--font-display);
  font-size: var(--text-md);
  color: var(--color-accent-strong);
  margin-bottom: var(--space-5);
  min-height: 1.5em;
}

.nf-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-strong) 100%);
  color: var(--color-text-inverse);
  transition: transform var(--duration-fast) var(--ease-organic), box-shadow var(--duration-base) var(--ease-organic);
}

.nf-cta:hover {
  box-shadow: var(--shadow-glow-gold);
  transform: translateY(-2px);
}

.nf-hint {
  margin-top: var(--space-4);
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  opacity: 0.7;
}

.wiggle {
  animation: nfWiggle 0.6s ease-in-out;
}

@keyframes nfWiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-4deg); }
  75% { transform: rotate(4deg); }
}

.nf-spark {
  position: absolute;
  z-index: 999;
  font-size: 1.5rem;
  pointer-events: none;
  animation: nfSparkFly 1s ease-out forwards;
}

@keyframes nfSparkFly {
  0%   { opacity: 1; transform: translate(0, 0) scale(1) rotate(0deg); }
  100% {
    opacity: 0;
    transform:
      translate(calc(cos(var(--angle)) * var(--dist)), calc(sin(var(--angle)) * var(--dist)))
      scale(0.3) rotate(180deg);
  }
}

@media (max-width: 640px) {
  .nf-steam { display: none; }
  .nf-card { padding: var(--space-6) var(--space-5); }
}

/* ==========================================================================
   11. IMAGE LIGHTBOX
   ========================================================================== */
.product-card__image img {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 8, 7, 0.92);
  opacity: 0;
  visibility: hidden;
  padding: var(--space-7);
  transition: opacity var(--duration-base) var(--ease-organic),
              visibility var(--duration-base) var(--ease-organic);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: min(90vw, 900px);
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  cursor: default;
  transform: scale(0.95);
  transition: transform var(--duration-base) var(--ease-organic);
}

.lightbox.open img {
  transform: scale(1);
}

.lightbox__close {
  position: fixed;
  top: var(--space-6);
  right: var(--space-6);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  color: #fff;
  cursor: pointer;
  transition: background-color var(--duration-base) var(--ease-organic);
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ---- Menu tabs clip — floating category switcher docked to the right
   edge, replacing the old sticky horizontal bar that overlapped scrolled
   content. Reuses the same .tab-btn class/JS as the inline tab bar, so
   clicking either stays in sync. ---- */
.menu-tabs-clip {
  position: fixed;
  top: 260px;
  right: 0;
  z-index: 850;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--color-surface-inverse);
  border: 1px solid var(--color-border-inverse);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.menu-tabs-clip__label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) 0;
  color: var(--color-text-inverse-muted);
  border-bottom: 1px solid var(--color-border-inverse);
}

.menu-tabs-clip__label svg {
  width: 15px;
  height: 15px;
}

.menu-tabs-clip .tab-btn {
  border: none;
  border-top: 1px solid var(--color-border-inverse);
  border-radius: 0;
  background: none;
  color: var(--color-text-inverse-muted);
  font-size: 9px;
  padding: 8px var(--space-3);
  white-space: nowrap;
}

.menu-tabs-clip .tab-btn:first-of-type { border-top: none; }

.menu-tabs-clip .tab-btn.active {
  background: var(--color-accent);
  color: var(--color-text-inverse);
  border-color: var(--color-accent);
}

@media (max-width: 860px) {
  .menu-tabs-clip { display: none; }
}

/* ---- Auto-scroll toggle — left edge, mirrors the theme-clip's docked style ---- */
.autoscroll-toggle {
  position: fixed;
  top: 160px;
  left: 0;
  z-index: 900;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-inverse);
  border: 1px solid var(--color-border-inverse);
  border-left: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-md);
  color: var(--color-text-inverse-muted);
  cursor: pointer;
  transition: color var(--duration-base) var(--ease-organic);
}

.autoscroll-toggle.active {
  color: var(--color-accent-on-dark);
}

.autoscroll-toggle.nudge {
  animation: autoscrollNudge 0.6s ease-in-out 2;
}

@keyframes autoscrollNudge {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(5px); }
  60% { transform: translateX(0); }
}

.autoscroll-toggle svg {
  animation: none;
}

.autoscroll-toggle.active svg {
  animation: autoscrollBounce 1.4s ease-in-out infinite;
}

@keyframes autoscrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(3px); opacity: 1; }
}

@media (max-width: 640px) {
  .autoscroll-toggle { width: 32px; height: 32px; }
}
