/* ============================================================
   GRAYA HOLISTIC — Design System v3 "Bamboo & Conscious Nature"
   Organic luxury: deep forest greens, warm amber, soft shadows
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ===================== DESIGN TOKENS ===================== */
:root {
  /* — Ink & surfaces — */
  --ink:            #1E2721;
  --ink-soft:       #3A4A3F;
  --cream:          #FBF8EF;
  --cream-dark:     #ECE6D6;
  --surface:        #FFFFFF;
  --surface-alt:    #FBFAF4;
  --text:           #1E2721;
  --text-secondary: #4E5A52;
  --muted:          #7C8579;

  /* — Brand anchor (lively bamboo forest green) — */
  --olive:          #2E6E4C;
  --olive-dark:     #1D4530;

  /* — Joyful, saturated accent palette — */
  --mango:          #C8823E;
  --mango-dark:     #9C6329;
  --tomato:         #D14425;
  --tomato-dark:    #A8351C;
  --basil:          #5E8028;
  --basil-dark:     #486019;
  --terracotta:     #D9B583;
  --terracotta-dark:#B8925E;
  --plum:           #6B3F63;
  --teal:           #2A7A72;

  /* — Bamboo decoration (culms, nodes, foliage) — */
  --bamboo-culm:      #9BC24A;
  --bamboo-culm-dark: #4E7A28;
  --bamboo-leaf:      #3D7D55;
  --bamboo-leaf-light:#8FBF5A;
  --bamboo-vein:      #E4F2C8;

  --shadow-flat:    0 10px 30px rgba(30,39,33,0.14);
  --shadow-flat-sm: 0 4px 14px rgba(30,39,33,0.12);
  --shadow-flat-lg: 0 20px 50px rgba(30,39,33,0.18);

  /* — Aliases matching the client's exact spec naming (same values as above) — */
  --color-primary:    var(--olive);
  --color-secondary:  var(--basil);
  --color-accent:     var(--mango);
  --color-bg-light:   var(--cream);
  --color-wood:       var(--terracotta);
  --color-text-dark:  var(--ink);
  --color-surface:    rgba(255,255,255,0.85); /* glass surface — distinct from opaque --surface */

  /* — Typography: serif for headings, clean sans everywhere else — */
  --font-serif:     'Playfair Display', Georgia, serif;
  --font-display:   'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:      'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* — Spacing — */
  --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px;
  --space-lg: 24px; --space-xl: 32px; --space-2xl: 48px; --space-3xl: 64px;
  --space-4xl: 96px; --space-5xl: 128px;

  /* — Layout — */
  --max-w: 1240px;
  --max-w-narrow: 720px;
  --max-w-wide: 1400px;
  --radius: 22px;
  --radius-sm: 14px;
  --radius-lg: 30px;
  --radius-xl: 40px;

  /* — Motion — */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.25s;
  --duration-fast: 0.15s;
}

/* ===================== RESET ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; -webkit-tap-highlight-color: transparent; }
input, select, textarea { font-family: inherit; font-size: inherit; }
::selection { background: var(--mango); color: var(--ink); }

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); color: var(--ink); line-height: 1.15; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 700; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: clamp(1.08rem, 1.5vw, 1.25rem); }
h5 { font-size: 1rem; font-weight: 700; }
p { color: var(--text-secondary); max-width: 65ch; }
.text-sm { font-size: 0.85rem; } .text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.15rem; line-height: 1.65; }
.text-muted { color: var(--muted); } .text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }
.text-white { color: #fff; } .text-white-muted { color: rgba(255,255,255,0.75); }

/* ===================== LAYOUT ===================== */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--space-lg); }
.wrap-narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 var(--space-lg); }
section { padding: var(--space-4xl) 0; position: relative; overflow: hidden; }
.section-compact { padding: var(--space-3xl) 0; }
.max-w-sm { max-width: 420px; margin-left: auto; margin-right: auto; }
.max-w-md { max-width: 680px; margin-left: auto; margin-right: auto; }
.max-w-lg { max-width: 900px; margin-left: auto; margin-right: auto; }
.mt-sm{margin-top:var(--space-sm)} .mt-md{margin-top:var(--space-md)} .mt-lg{margin-top:var(--space-lg)}
.mt-xl{margin-top:var(--space-xl)} .mt-2xl{margin-top:var(--space-2xl)} .mt-3xl{margin-top:var(--space-3xl)}
.mb-sm{margin-bottom:var(--space-sm)} .mb-md{margin-bottom:var(--space-md)} .mb-lg{margin-bottom:var(--space-lg)}
.mb-xl{margin-bottom:var(--space-xl)} .mb-2xl{margin-bottom:var(--space-2xl)}
.p-md{padding:var(--space-md)} .p-lg{padding:var(--space-lg)} .p-xl{padding:var(--space-xl)} .p-2xl{padding:var(--space-2xl)}
.justify-center{justify-content:center}

/* — Eyebrow: scalloped ticket-stub chip — */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 600;
  padding: 7px 18px; border-radius: 100px;
  background: var(--mango); color: var(--ink);
  border: 2.5px dotted var(--ink);
  margin-bottom: var(--space-md);
}
.eyebrow--light { background: #fff; }
.eyebrow--dark { background: var(--tomato); color: #fff; border-style: solid; }
/* Prevent the eyebrow chip from blending into a same-color hero (e.g. hero--warm is mango) */
.hero--warm .eyebrow:not(.eyebrow--light):not(.eyebrow--dark) { background: var(--ink); color: var(--mango); border-color: var(--ink); border-style: solid; }

.section-header { max-width: 640px; margin-bottom: var(--space-2xl); }
.section-header.centered { text-align: center; margin-left: auto; margin-right: auto; }
.section-header--light h2, .section-header--light p { color: #fff; }
.section-header p { color: var(--text-secondary); font-size: 1.05rem; }

.divider { width: 60px; height: 5px; background: var(--tomato); border-radius: 100px; margin: var(--space-lg) 0; }
.divider--center { margin-left: auto; margin-right: auto; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; border-radius: 16px; font-family: var(--font-display);
  font-weight: 600; font-size: 0.95rem; border: 2.5px solid var(--ink);
  cursor: pointer; white-space: nowrap; color: var(--ink); background: #fff;
  box-shadow: 0 5px 0 var(--ink);
  transition: transform var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.btn-primary { background: var(--terracotta); }
.btn-secondary { background: var(--basil); color: #fff; }
/* btn-outline: for use on colored/dark hero backgrounds — must not default to dark-on-dark */
.btn-outline { background: transparent; color: #fff; border-color: #fff; box-shadow: 0 5px 0 rgba(255,255,255,0.45); }
.btn-outline:hover { box-shadow: 0 7px 0 rgba(255,255,255,0.45); }
.btn-outline:active { box-shadow: 0 2px 0 rgba(255,255,255,0.45); }
.btn-outline-dark { background: #fff; }
.btn-coral { background: var(--tomato); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn-ghost:hover { transform: none; box-shadow: none; text-decoration: underline; }
.btn-sm { padding: 10px 20px; font-size: 0.82rem; box-shadow: 0 4px 0 var(--ink); }
.btn-lg { padding: 18px 38px; font-size: 1.05rem; }

/* ===================== HEADER / NAV ===================== */
.site-header {
  position: static; width: 100%; z-index: 160;
  background: var(--cream); box-shadow: 0 4px 0 var(--olive);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 8px var(--space-lg); max-width: var(--max-w-wide); margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-weight: 700; font-size: 1.3rem; color: var(--ink); flex-shrink: 0; transition: color var(--duration) var(--ease); }
.logo-mark { height: 68px; width: 68px; object-fit: cover; border-radius: 50%; flex-shrink: 0; transition: transform var(--duration) var(--ease); }
.logo:hover .logo-mark, .logo:focus-visible .logo-mark { transform: scale(1.08) rotate(-4deg); }
.logo-text span { color: var(--tomato); transition: color var(--duration) var(--ease); }
.nav-links { display: flex; align-items: center; gap: 2px; font-family: var(--font-display); font-size: 0.86rem; font-weight: 600; }
.nav-links li { position: relative; }
.nav-links a { display: block; padding: 9px 15px; border-radius: 12px; color: var(--ink); position: relative; transition: color var(--duration) var(--ease); }
.nav-links a::after { content:''; position:absolute; left:15px; right:15px; bottom:2px; height:3px; background:var(--tomato); border-radius:3px; transform:scaleX(0); transition:transform var(--duration) var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { background: var(--cream-dark); }
.nav-cta { margin-left: 8px; }
.nav-cta .btn { padding: 10px 22px; font-size: 0.82rem; }

/* margin-top, not transform: a transform on .site-header (even a settled translateY(0))
   creates a new containing block, which traps the fixed-position mobile nav panel
   inside the header's own box instead of the viewport. Scoped to .header-enter (added
   by JS, then removed once the animation finishes) rather than applied unconditionally:
   any element with a running/filled animation on opacity or transform also establishes
   a stacking context for as long as the animation is in effect, and with
   animation-fill-mode:both that "in effect" state never ends on its own — it would trap
   the nav panel permanently, not just for the 0.5s the animation plays. */
@keyframes headerDrop { from { margin-top: -12px; opacity: 0; } to { margin-top: 0; opacity: 1; } }
.site-header.header-enter { animation: headerDrop 0.5s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .site-header.header-enter { animation: none; } }

@keyframes navItemIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
.nav-links.open li { animation: navItemIn 0.45s var(--ease) both; }
.nav-links.open li:nth-child(1) { animation-delay: 0.05s; }
.nav-links.open li:nth-child(2) { animation-delay: 0.1s; }
.nav-links.open li:nth-child(3) { animation-delay: 0.15s; }
.nav-links.open li:nth-child(4) { animation-delay: 0.2s; }
.nav-links.open li:nth-child(5) { animation-delay: 0.25s; }
@media (prefers-reduced-motion: reduce) { .nav-links.open li { animation: none; } }

.burger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 46px; height: 46px; background: var(--mango); border: 2.5px solid var(--ink); border-radius: 50%; cursor: pointer; padding: 0; z-index: 200; }
.burger span { width: 18px; height: 3px; background: var(--ink); border-radius: 2px; display: block; transition: all var(--duration) var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(43,27,14,0.5); z-index: 149; opacity: 0; transition: opacity var(--duration) ease; }
.nav-mobile-overlay.visible { display: block; opacity: 1; }

/* ===================== HERO ===================== */
.hero { position: relative; padding: 90px 0 90px; min-height: 540px; display: flex; align-items: center; background: var(--olive); color: #fff; }
.hero--tall { min-height: 620px; padding-top: 60px; }
.hero--short { min-height: 360px; padding: 60px 0 70px; }
.hero-inner > .breadcrumbs { margin-bottom: var(--space-lg); }
.hero--dark { background: var(--ink); }
.hero--warm { background: var(--mango); color: var(--ink); }
.hero--coral { background: var(--tomato); }
.hero--default { background: var(--olive); }
.hero--centered .hero-inner { max-width: 800px; text-align: center; margin: 0 auto; }
.hero-inner { position: relative; z-index: 2; max-width: 700px; }

/* — Split hero: copy on one side, rotating photo panel on the other — */
.hero-inner.hero-inner--split { max-width: none; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-3xl); align-items: center; }
.hero-photo-frame {
  position: relative; aspect-ratio: 4/5; max-width: 380px; margin: 0 auto;
  border-radius: var(--radius-lg); border: 3px solid var(--mango-dark); box-shadow: var(--shadow-flat-lg);
  overflow: hidden; background: var(--cream-dark);
}
.hero-photo-frame picture { position: absolute; inset: 0; display: block; }
.hero-photo-frame img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: opacity 0.8s ease; }
.hero-photo-frame img.fading { opacity: 0; }
.hero-photo-caption {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px; white-space: nowrap;
  background: var(--cream); color: var(--ink); text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; padding: 9px 22px 7px;
  border-radius: 100px; box-shadow: var(--shadow-flat-sm); opacity: 0; transition: opacity 0.8s ease;
}
.hero-photo-caption::after { content: '🌿'; font-size: 0.7rem; line-height: 1; }
.hero-photo-caption.visible { opacity: 1; }
.hero-photo-brand-logo { display: block; width: 100%; max-width: 380px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow-flat-lg); margin: var(--space-lg) auto 0; }
.hero-photo-brand-logo--top { max-width: 560px; margin: 0 auto var(--space-lg); }
@media (max-width: 880px) {
  .hero-inner.hero-inner--split { grid-template-columns: 1fr; text-align: center; }
  .hero-photo-panel { margin-top: var(--space-xl); }
  .hero-photo-brand-logo { max-width: 110px; margin-top: var(--space-md); }
  .hero-photo-brand-logo--top { max-width: 240px; margin: 0 auto var(--space-lg); }
  .hero-photo-frame { max-width: 240px; }
}
.hero h1 { color: inherit; margin-bottom: var(--space-lg); }
.hero h1 em { font-style: normal; color: var(--mango); text-decoration: wavy underline; text-decoration-thickness: 3px; text-underline-offset: 6px; animation: em-line-bob 2.4s ease-in-out infinite; }
@keyframes em-line-bob { 0%, 100% { text-underline-offset: 4px; } 50% { text-underline-offset: 9px; } }
@media (prefers-reduced-motion: reduce) { .hero h1 em { animation: none; } }
/* Prevent em text from matching hero--warm's mango background (same bug as BMT's fix) */
.hero--warm h1 em { color: var(--tomato); text-decoration-color: var(--ink); }
.hero .lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: inherit; opacity: 0.95; max-width: 560px; margin-bottom: var(--space-2xl); }
.hero--centered .hero .lead { margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero--centered .hero-actions { justify-content: center; }
.hero-quote { margin-top: var(--space-2xl); padding: var(--space-lg) var(--space-xl); background: rgba(0,0,0,0.16); border: 2.5px dashed var(--mango); border-radius: var(--radius); color: inherit; font-family: var(--font-display); font-style: italic; font-size: 1rem; max-width: 540px; }

/* — Homepage hero brand badge: cream capsule, dashed gold border, stacked lines — */
.hero-brand-badge {
  display: inline-flex; flex-direction: column; align-items: center; gap: 3px;
  background: var(--cream); color: var(--ink);
  border: 2.5px dashed var(--mango-dark);
  border-radius: 999px;
  padding: var(--space-sm) var(--space-xl);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-flat-sm);
}
.hero-brand-badge-name { font-family: var(--font-serif); font-weight: 800; font-size: 1.4rem; line-height: 1.1; white-space: nowrap; }
.hero-brand-badge-sub { font-family: var(--font-display); font-weight: 600; font-size: 0.78rem; color: var(--ink-soft); white-space: nowrap; }
.hero-brand-badge-sub::before, .hero-brand-badge-sub::after { content: '—'; margin: 0 8px; color: var(--mango-dark); }
.hero-brand-badge-city { font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hero-brand-badge-city::before, .hero-brand-badge-city::after { content: '—'; margin: 0 6px; color: var(--mango-dark); }
@media (max-width: 560px) {
  .hero-brand-badge { padding: var(--space-xs) var(--space-lg); }
  .hero-brand-badge-name { font-size: 1.15rem; }
  .hero-brand-badge-sub { font-size: 0.9rem; white-space: normal; text-align: center; }
  .hero-brand-badge-city { font-size: 0.7rem; }
}

/* — Plate-spot decoration (circular, food-plate motif) — */
.hero-blob { position: absolute; z-index: 0; pointer-events: none; border-radius: 50%; }
.hero-blob.b1 { width: 320px; height: 320px; background: rgba(255,255,255,0.12); top: -100px; right: -80px; animation: blob-float 10s ease-in-out infinite; }
.hero-blob.b2 { width: 200px; height: 200px; border: 8px dashed rgba(255,255,255,0.18); bottom: -50px; left: -30px; animation: blob-spin 22s linear infinite; }
.hero-watermark { display: none; }
@keyframes blob-float { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-18px,22px) scale(1.06); } }
@keyframes blob-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-blob { animation: none; } }

/* — Scalloped plate-rim divider (replaces a plain wave) — */
.hero-wave {
  position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 26px; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 12px -8px, transparent 14px, var(--scallop-color, var(--cream)) 15px) 0 0/28px 26px repeat-x;
}

/* ===================== CARDS (ticket style) ===================== */
.card { background: #fff; border-radius: var(--radius); border: 2.5px solid var(--ink); box-shadow: var(--shadow-flat); transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease); position: relative; }
.card:hover { transform: translate(-2px,-4px) rotate(-0.6deg); box-shadow: var(--shadow-flat-lg); }
.card-body { padding: var(--space-xl); }
.card--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.card--dark h4 { color: #fff; } .card--dark p { color: rgba(255,255,255,0.8); }
.card--bordered { box-shadow: none; }
.card--bordered:hover { box-shadow: var(--shadow-flat-sm); }
.card--flat { border: none; box-shadow: none; background: var(--surface-alt); border-radius: var(--radius); padding: var(--space-lg); }
.card h3, .card h4 { margin-bottom: var(--space-xs); }
.card p { font-size: 0.94rem; }

/* Color-tile variants — food-coded */
.tile-green { background: var(--basil); color: #fff; } .tile-green h4 { color: #fff; }
.tile-gold { background: var(--mango); color: var(--ink); }
.tile-coral { background: var(--tomato); color: #fff; } .tile-coral h4 { color: #fff; }
.tile-teal { background: var(--teal); color: #fff; } .tile-teal h4 { color: #fff; }
.tile-purple { background: var(--plum); color: #fff; } .tile-purple h4 { color: #fff; }
.tile-pink { background: var(--terracotta); color: #fff; } .tile-pink h4 { color: #fff; }
.tile-green p, .tile-coral p, .tile-teal p, .tile-purple p, .tile-pink p { color: rgba(255,255,255,0.88); }

.card-tag { display: inline-block; padding: 5px 14px; border-radius: 100px; font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; border: 2px dashed var(--ink); background: #fff; margin-bottom: var(--space-sm); }

/* — Pulsing "favorite" ribbon badge for spotlighting a card — */
.card-badge {
  position: absolute; top: -12px; right: 16px; z-index: 3;
  background: var(--tomato); color: #fff; font-family: var(--font-display); font-weight: 700;
  font-size: 0.7rem; padding: 6px 16px; border-radius: 100px; border: 2px solid var(--ink);
  box-shadow: var(--shadow-flat-sm); animation: badge-pulse 2.4s ease-in-out infinite;
}
@keyframes badge-pulse { 0%, 100% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(1.08) rotate(-2deg); } }
.icon-circle { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; background: var(--cream-dark); border: 2.5px solid var(--ink); margin: 0 auto var(--space-md); }

/* ===================== GRIDS ===================== */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--space-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-xl); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--space-lg); }

/* ===================== SECTION BACKGROUNDS ===================== */
.bg-cream { background: var(--cream); }
.bg-ivory { background: var(--surface-alt); }
.bg-surface { background: var(--surface); }
.bg-dark { background: var(--ink); color: #fff; }
.bg-dark h2, .bg-dark h3, .bg-dark h4 { color: #fff; } .bg-dark p { color: rgba(255,255,255,0.78); }
.bg-primary { background: var(--olive); color: #fff; }
.bg-primary h2, .bg-primary h3, .bg-primary h4 { color: #fff; } .bg-primary p { color: rgba(255,255,255,0.85); }

/* — Ambient gradient-mesh "wallpaper": a slow transform-driven drift, not
   background-position (which repaints every frame) — cheap on mobile.
   --mesh-px/--mesh-py are nudged by pointer/touch/scroll in main.js, so the
   drift also answers to the visitor instead of just looping blindly. — */
:root { --mesh-px: 0; --mesh-py: 0; }
.hero::after, .bg-primary::after, .bg-dark::after, .cta-band::after,
.bg-cream::after, .bg-ivory::after, .bg-surface::after {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  top: -20%; left: -20%; width: 140%; height: 140%;
  animation: mesh-drift 22s ease-in-out infinite alternate;
}
.hero::after, .bg-primary::after, .bg-dark::after, .cta-band::after {
  background-image:
    radial-gradient(circle at 22% 22%, rgba(200,130,62,0.28), transparent 42%),
    radial-gradient(circle at 80% 28%, rgba(209,68,37,0.24), transparent 45%),
    radial-gradient(circle at 55% 85%, rgba(255,255,255,0.13), transparent 40%);
}
.bg-cream::after, .bg-ivory::after, .bg-surface::after {
  background-image:
    radial-gradient(circle at 18% 28%, rgba(94,128,40,0.13), transparent 42%),
    radial-gradient(circle at 84% 74%, rgba(209,68,37,0.11), transparent 46%),
    radial-gradient(circle at 50% 12%, rgba(46,110,76,0.10), transparent 38%);
}

/* — Film-grain texture: a touch of noise over the saturated sections so flat
   color reads as a richer surface instead of a plain fill — */
.hero::before, .bg-primary::before, .bg-dark::before, .cta-band::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes mesh-drift {
  0% { transform: translate(calc(var(--mesh-px) * 1px), calc(var(--mesh-py) * 1px)); }
  100% { transform: translate(calc(6% + var(--mesh-px) * 1px), calc(8% + var(--mesh-py) * 1px)); }
}

.bg-primary > .wrap, .bg-dark > .wrap, .cta-band > .wrap,
.bg-cream > .wrap, .bg-ivory > .wrap, .bg-surface > .wrap { position: relative; z-index: 1; }

/* — Animated dot pattern (also transform-driven, on its own layer) — */
.bg-pattern { position: relative; }
.bg-pattern::before {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  top: -15%; left: -15%; width: 130%; height: 130%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Crect x='11' y='2' width='6' height='24' rx='3' fill='%23708238' opacity='0.16'/%3E%3Crect x='9' y='9' width='10' height='3' rx='1.5' fill='%232E6E4C' opacity='0.16'/%3E%3Crect x='9' y='18' width='10' height='3' rx='1.5' fill='%232E6E4C' opacity='0.16'/%3E%3C/svg%3E");
  background-size: 28px 28px;
  animation: pattern-drift 50s linear infinite;
}
@keyframes pattern-drift { from { transform: translate(0,0); } to { transform: translate(-26px,-26px); } }

@media (max-width: 640px) {
  /* Skip the mesh drift on small screens — mobile GPUs, more sections in view per scroll */
  .hero::after, .bg-primary::after, .bg-dark::after, .cta-band::after,
  .bg-cream::after, .bg-ivory::after, .bg-surface::after, .bg-pattern::before { animation: none; }
}

/* ===================== BREADCRUMBS ===================== */
.breadcrumbs { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; color: var(--muted); padding: var(--space-md) 0; }
.breadcrumbs a { color: var(--muted); } .breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs .sep { opacity: 0.5; } .breadcrumbs .current { color: var(--ink); }
.hero .breadcrumbs, .hero .breadcrumbs a, .hero .breadcrumbs .current { color: rgba(255,255,255,0.85); }

/* ===================== FOOTER ===================== */
.site-footer { position: relative; overflow: hidden; background: var(--ink); color: rgba(255,255,255,0.75); padding: var(--space-4xl) 0 0; border-top: 6px solid var(--mango); }
.site-footer > .wrap { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--space-2xl); padding-bottom: var(--space-3xl); }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: var(--space-md); }
.footer-logo-mark { height: 190px; width: 190px; object-fit: cover; border-radius: 50%; }
.footer-brand h4 { color: #fff; font-size: 1.15rem; }
.footer-brand p { font-size: 0.9rem; max-width: 300px; color: rgba(255,255,255,0.62); }
.footer-col h5 { color: var(--mango); font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; margin-bottom: var(--space-lg); }
.footer-col a, .footer-col p { display: block; font-size: 0.9rem; color: rgba(255,255,255,0.62); margin-bottom: 10px; }
.footer-col a:hover { color: var(--mango); }
.footer-social { display: flex; gap: var(--space-sm); margin-top: var(--space-lg); }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--mango); border-color: var(--mango); color: var(--ink); }
.footer-bottom { border-top: 2px solid rgba(255,255,255,0.15); padding: var(--space-lg) 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-md); font-size: 0.8rem; }
.footer-bottom a { color: rgba(255,255,255,0.7); }

/* ===================== SCROLL PROGRESS / TO-TOP ===================== */
.scroll-progress { position: fixed; top: 0; left: 0; height: 5px; width: 0%; background: var(--tomato); z-index: 200; }
.to-top { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 150; width: 50px; height: 50px; border-radius: 50%; background: var(--mango); color: var(--ink); display: flex; align-items: center; justify-content: center; border: 2.5px solid var(--ink); box-shadow: var(--shadow-flat-sm); opacity: 0; pointer-events: none; transform: translateY(12px); transition: all var(--duration) var(--ease); font-size: 1.2rem; font-weight: 700; }
.to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { transform: translate(-2px,-3px); }

.whatsapp-fab {
  position: fixed; left: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 150;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center; border: 2.5px solid var(--ink);
  box-shadow: var(--shadow-flat-sm); opacity: 0; pointer-events: none;
  transform: translateY(16px) scale(0.6); transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease), background var(--duration-fast) var(--ease);
}
.whatsapp-fab.visible { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.whatsapp-fab:hover { background: #1EBE57; transform: translate(2px,-3px) scale(1.05); }
.whatsapp-fab::before {
  content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #25D366; pointer-events: none;
  animation: pulse-ring 2.2s ease-out infinite;
}
.whatsapp-fab:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (max-width: 560px) { .whatsapp-fab { width: 50px; height: 50px; left: 16px; } }

/* ===================== STICKY MOBILE ACTION BAR ===================== */
.mobile-action-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 190;
  background: var(--color-primary); border-top: 2.5px solid var(--ink);
  padding: 8px max(8px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
  box-shadow: 0 -8px 24px rgba(30,39,33,0.18);
}
.mobile-action-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: none; border: none; color: #fff; font-family: var(--font-display);
  font-size: 0.68rem; font-weight: 600; padding: 6px 4px; cursor: pointer;
}
.mobile-action-btn span:first-child { font-size: 1.25rem; line-height: 1; }
.mobile-action-btn:active { opacity: 0.7; }
@media (max-width: 880px) {
  .mobile-action-bar { display: flex; }
  .whatsapp-fab { display: none; }
  .to-top { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .cart-bar { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* — Confetti burst (WhatsApp CTA click) — */
.confetti-piece {
  position: fixed; width: 8px; height: 8px; border-radius: 2px; pointer-events: none; z-index: 400;
  transform: translate(-50%, -50%); animation: confetti-burst 0.7s ease-out forwards;
}
@keyframes confetti-burst {
  0% { transform: translate(-50%,-50%) translate(0,0) rotate(0); opacity: 1; }
  100% { transform: translate(-50%,-50%) translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; }
}

/* ===================== REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal-left.is-visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.94); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }
.reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1){transition-delay:.02s} .reveal-stagger.is-visible > *:nth-child(2){transition-delay:.08s}
.reveal-stagger.is-visible > *:nth-child(3){transition-delay:.14s} .reveal-stagger.is-visible > *:nth-child(4){transition-delay:.20s}
.reveal-stagger.is-visible > *:nth-child(5){transition-delay:.26s} .reveal-stagger.is-visible > *:nth-child(6){transition-delay:.32s}

/* ===================== SKIP LINK ===================== */
.skip-link { position: absolute; top: -100%; left: var(--space-md); z-index: 999; padding: 14px 24px; background: var(--mango); color: var(--ink); font-weight: 700; border: 2.5px solid var(--ink); border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.skip-link:focus { top: 0; }

/* ===================== ACCRED BADGE ===================== */
.accred-badge { display: inline-flex; gap: var(--space-md); align-items: center; background: #fff; color: var(--ink); border: 2.5px dotted var(--ink); border-radius: 100px; padding: 12px 26px; font-size: 0.85rem; box-shadow: var(--shadow-flat-sm); }
.accred-badge::before { content: ''; width: 64px; height: 64px; flex-shrink: 0; background-image: url('../img/eco-bmt-badge.jpg'); background-size: cover; background-repeat: no-repeat; background-position: center; border-radius: 50%; }
@supports (background-image: image-set(url('a.jpg') type('image/jpeg'))) {
  .accred-badge::before { background-image: image-set(url('../img/eco-bmt-badge.webp') type('image/webp'), url('../img/eco-bmt-badge.jpg') type('image/jpeg')); }
}
.accred-badge strong { color: var(--olive-dark); }
.accred-badge--light { background: var(--cream-dark); }

/* ===================== FOUNDER / QUOTE CARDS ===================== */
.founder-card { background: #fff; border-radius: var(--radius-lg); padding: var(--space-2xl); border: 2.5px solid var(--ink); box-shadow: var(--shadow-flat); }
.founder-card h3 { margin-bottom: var(--space-sm); } .founder-card p { font-size: 0.94rem; margin-bottom: var(--space-sm); }
.founder-diplomas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-md); }
.founder-diplomas span { font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; padding: 6px 14px; background: var(--mango); border: 2px solid var(--ink); border-radius: 100px; }

.quote-block { position: relative; padding: var(--space-2xl); background: var(--mango); border-radius: var(--radius-lg); border: 2.5px solid var(--ink); }
.quote-block blockquote { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); font-weight: 500; }
.quote-block cite { display: block; margin-top: var(--space-md); font-size: 0.85rem; font-weight: 700; }

/* ===================== SPLIT LAYOUT ===================== */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3xl); align-items: center; }

/* ===================== FEATURE LIST ===================== */
.feature-list { display: flex; flex-direction: column; gap: var(--space-md); }
.feature-item { display: flex; align-items: flex-start; gap: var(--space-md); background: #fff; border: 2.5px solid var(--ink); border-radius: var(--radius); padding: var(--space-lg); box-shadow: var(--shadow-flat-sm); }
.feature-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--cream-dark); border: 2.5px solid var(--ink); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.feature-text h5 { margin-bottom: 2px; } .feature-text p { font-size: 0.9rem; }

/* ===================== MENU (dish rows, ticket style) ===================== */
.menu-list { display: flex; flex-direction: column; gap: var(--space-md); }
.menu-row { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-lg); background: #fff; border: 2.5px solid var(--ink); border-radius: var(--radius); padding: var(--space-lg) var(--space-xl); box-shadow: var(--shadow-flat-sm); transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease); }
.menu-row:hover { transform: translate(-2px,-3px); box-shadow: var(--shadow-flat); }
.menu-row-info h4 { margin-bottom: 4px; }
.menu-row-info h4 .text-muted { font-family: var(--font-body); font-weight: 500; font-size: 0.8em; }
.menu-row-info p { font-size: 0.9rem; margin: 0; }
.menu-price { flex-shrink: 0; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; padding: 8px 18px; border-radius: 100px; border: 2px solid var(--color-accent); background: var(--color-accent); color: var(--color-text-dark); white-space: nowrap; }
.menu-price-note { display: flex; gap: var(--space-md); flex-wrap: wrap; justify-content: center; margin-bottom: var(--space-xl); }
@media (max-width: 560px) {
  .menu-row { flex-direction: column; gap: var(--space-sm); }
  .menu-price { align-self: flex-start; }
}

/* — Accompagnement cards: branded photo cards with name/price baked into the image — */
.accomp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.accomp-card { display: block; border: 2.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-flat-sm); transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease); }
.accomp-card:hover { transform: translate(-2px,-3px); box-shadow: var(--shadow-flat); }
.accomp-card img { display: block; width: 100%; height: auto; }
.accomp-card:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - var(--space-lg) / 2); margin: 0 auto; }
@media (max-width: 640px) {
  .accomp-grid { grid-template-columns: 1fr; }
  .accomp-card:last-child:nth-child(odd) { max-width: none; }
}

/* ===================== CTA BAND ===================== */
.cta-band { position: relative; background: var(--tomato); color: #fff; padding: var(--space-4xl) 0; text-align: center; border-top: 4px dashed var(--ink); border-bottom: 4px dashed var(--ink); }
.cta-band h2 { color: #fff; margin-bottom: var(--space-md); }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 480px; margin: 0 auto var(--space-xl); }
.cta-band--green { background: var(--basil); }
.cta-band--dark { background: var(--ink); }

/* ===================== FORMS ===================== */
.contact-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-3xl); align-items: start; }
.contact-item { display: flex; align-items: flex-start; gap: var(--space-md); padding: var(--space-md) 0; }
.contact-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--cream-dark); border: 2.5px solid var(--ink); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-item h5 { font-size: 0.9rem; } .contact-item p, .contact-item a { font-size: 0.9rem; }
.form-field { margin-bottom: var(--space-lg); }
.form-field label { display: block; font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; margin-bottom: var(--space-xs); }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 14px 18px; border: 2.5px solid var(--ink); border-radius: var(--radius-sm); font-size: 16px; background: #fff; outline: none; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { box-shadow: var(--shadow-flat-sm); }
.form-field textarea { resize: vertical; min-height: 130px; }

/* ===================== BAMBOO GLASS CARD & ÉCO BMT BADGE ===================== */
.bamboo-card {
  background: var(--color-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 163, 89, 0.25);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(43, 68, 54, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative; overflow: hidden;
}
.bamboo-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(43, 68, 54, 0.14); }

.eco-bmt-badge {
  background-color: var(--color-primary);
  color: var(--color-bg-light);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Subtle SVG bamboo leaf watermark — tuck into a card/section-header corner */
.leaf-watermark {
  position: absolute; top: -10px; right: -10px; width: 72px; height: 72px;
  opacity: 0.08; pointer-events: none; z-index: 0;
}
.section-header { position: relative; }

/* ===================== COVERAGE MAP (contact.html) ===================== */
.map-frame {
  position: relative; width: 100%; aspect-ratio: 16/7; border-radius: var(--radius-lg);
  border: 2.5px solid var(--ink); box-shadow: var(--shadow-flat); overflow: hidden;
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) { .map-frame { aspect-ratio: 4/5; } }

/* ===================== ORDER BUILDER (menu.html cart) ===================== */
.menu-row-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.menu-add-btn {
  font-family: var(--font-display); font-weight: 600; font-size: 0.78rem; padding: 6px 14px;
  border-radius: 100px; border: 2px solid var(--ink); background: var(--basil); color: #fff;
  cursor: pointer; white-space: nowrap; transition: transform var(--duration-fast) var(--ease);
}
.menu-add-btn:hover { transform: translateY(-1px); }
@media (max-width: 640px) { .menu-row-actions { flex-direction: row; align-self: flex-start; } }
.accomp-card-actions { display: flex; align-items: center; justify-content: flex-end; padding: 10px 14px; background: var(--surface); border-top: 2.5px solid var(--ink); }
.jus-brand-logo { width: 120px; height: auto; display: block; margin: 0 auto var(--space-sm); mix-blend-mode: multiply; }

.cart-bar {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 180;
  display: flex; align-items: center; gap: var(--space-md);
  background: var(--ink); color: #fff; border-radius: 100px; padding: 10px 12px 10px 22px;
  box-shadow: var(--shadow-flat-lg); max-width: calc(100% - 32px);
}
.cart-bar[hidden] { display: none; }
.cart-bar-summary { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
.cart-bar #cart-count, .cart-bar #cart-total { color: var(--mango); }

.cart-modal {
  position: fixed; inset: 0; z-index: 300; background: rgba(20,24,21,0.7);
  display: flex; align-items: center; justify-content: center; padding: var(--space-lg);
  opacity: 0; pointer-events: none; transition: opacity var(--duration) var(--ease);
}
.cart-modal.open { opacity: 1; pointer-events: auto; }
.cart-modal-inner {
  background: var(--color-surface); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg); border: 2.5px solid var(--ink);
  box-shadow: var(--shadow-flat-lg); padding: var(--space-xl); max-width: 460px; width: 100%;
  max-height: 85vh; overflow-y: auto; position: relative;
}
.cart-modal-close {
  position: absolute; top: var(--space-md); right: var(--space-md); width: 36px; height: 36px;
  border-radius: 50%; border: 2px solid var(--ink); background: var(--cream); font-size: 1.3rem;
  line-height: 1; cursor: pointer;
}
.cart-items { margin: var(--space-lg) 0; display: flex; flex-direction: column; gap: var(--space-sm); }
.cart-item { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); font-size: 0.9rem; }
.cart-item-name { flex: 1; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; }
.cart-qty-btn {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ink); background: var(--cream);
  cursor: pointer; font-weight: 700; line-height: 1;
}
.cart-item-price { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.cart-total-row { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; border-top: 2px dashed var(--ink); padding-top: var(--space-md); margin-bottom: var(--space-lg); display: flex; justify-content: space-between; }
.cart-total-row--sub { font-weight: 500; font-size: 0.85rem; border-top: none; padding-top: 0; margin-bottom: 4px; color: var(--muted); }
.cart-modal .btn { width: 100%; }

/* ===================== 404 ===================== */
.error-page { min-height: 60vh; padding-top: 60px; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--plum); color: #fff; }
.error-page h1 { font-size: clamp(5rem, 12vw, 10rem); color: #fff; -webkit-text-stroke: 4px var(--ink); }

/* ===================== STATS ===================== */
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--space-lg); }
.stat-item { text-align: center; padding: var(--space-lg); background: #fff; border: 2.5px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-flat-sm); }
.stat-number { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: var(--ink); line-height: 1; margin-bottom: var(--space-xs); }
.stat-label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }

/* — Legacy aliases — */
.card--elevated { }
.section-dark { padding: var(--space-4xl) 0; }
.mark { background: var(--mango); padding: 2px 10px; border-radius: 8px; border: 2.5px dashed var(--ink); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.card-tag--green { background: var(--basil); color: #fff; border-style: solid; }
.card-tag--gold { background: var(--mango); border-style: solid; }
.card-tag--coral { background: var(--tomato); color: #fff; border-style: solid; }
.bg-pattern { background-color: var(--cream); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
  .contact-split, .split-layout { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  section { padding: var(--space-3xl) 0; }
  .nav-links { position: fixed; top: 0; right: 0; width: min(320px,85vw); height: 100vh; height: 100dvh; background: var(--cream); border-left: 2.5px solid var(--ink); flex-direction: column; align-items: stretch; gap: 8px; padding: 90px var(--space-lg) var(--space-lg); transform: translateX(100%); transition: transform var(--duration) var(--ease); z-index: 150; overflow-y: auto; }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 14px 16px; }
  .burger { display: flex; }
  .hero { min-height: auto; padding: 60px 0 50px; }
  .hero--tall { min-height: auto; padding: 50px 0 50px; }
  .hero--short { padding-top: 50px; }
  .error-page { padding-top: 50px; }
  .hero h1 { font-size: clamp(1.9rem, 6vw, 2.4rem); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .hero-blob.b1 { width: 200px; height: 200px; top: -60px; right: -60px; }
  .hero-blob.b2 { width: 130px; height: 130px; bottom: -30px; left: -20px; }
}
@media (max-width: 560px) {
  /* Compact header: crest only, no wordmark, so the CTA + burger keep breathing room */
  .logo-text { display: none; }
  .logo-mark { height: 52px; width: 52px; }
  .nav-cta .btn { padding: 9px 16px; font-size: 0.76rem; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 var(--space-md); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

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

/* ============================================================
   MOTION & LIFE — ambient orbs, ticker, glow, gallery, lightbox
   ============================================================ */

/* — Ambient floating orbs (JS-injected into every .hero, see main.js) — */
.hero-orb {
  position: absolute; z-index: 0; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.85), rgba(255,255,255,0) 70%);
  filter: blur(1px); opacity: 0.55; animation: orb-float ease-in-out infinite;
}
.hero-orb.o1 { width: 90px; height: 90px; top: 16%; right: 14%; animation-duration: 9s; }
.hero-orb.o2 { width: 46px; height: 46px; top: 58%; right: 30%; animation-duration: 12s; animation-delay: -3s; }
.hero-orb.o3 { width: 130px; height: 130px; bottom: 8%; left: 6%; animation-duration: 15s; animation-delay: -7s; }
@keyframes orb-float { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(16px,-20px) scale(1.08); } }
@media (max-width: 880px) {
  .hero-orb.o1 { width: 60px; height: 60px; }
  .hero-orb.o2 { width: 32px; height: 32px; }
  .hero-orb.o3 { width: 90px; height: 90px; }
}
@media (prefers-reduced-motion: reduce) { .hero-orb { animation: none; } }

/* — Scroll-down hint under a tall hero — */
.scroll-hint {
  position: absolute; z-index: 2; left: 50%; bottom: 24px; transform: translateX(-50%);
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.14);
  border: 2px solid rgba(255,255,255,0.5); color: #fff; display: flex; align-items: center;
  justify-content: center; cursor: pointer; animation: scroll-hint-bob 1.8s ease-in-out infinite;
}
.scroll-hint:hover { background: rgba(255,255,255,0.24); }
.scroll-hint:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@keyframes scroll-hint-bob { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }
@media (max-width: 880px) { .scroll-hint { display: none; } }
@media (prefers-reduced-motion: reduce) { .scroll-hint { animation: none; } }

/* — Decorative bamboo stalks (JS-injected into hero/error-page corners, CTA bands and the footer, see main.js) — */
.bamboo-deco {
  position: absolute; z-index: 0; pointer-events: none; bottom: 0;
  width: 112px; opacity: 0.92; transform-origin: bottom center;
  animation: bamboo-sway 7s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(20,30,10,0.35));
}
.bamboo-deco svg { display: block; width: 100%; height: auto; }
.bamboo-stalk rect:not(.bamboo-node) { fill: url(#bamboo-culm-grad); }
.bamboo-stalk .bamboo-node { fill: var(--bamboo-culm-dark); }
.bamboo-leaf { fill: var(--bamboo-leaf); }
.bamboo-leaf--light { fill: var(--bamboo-leaf-light); }
.bamboo-vein { fill: none; stroke: var(--bamboo-vein); stroke-width: 1.1; stroke-linecap: round; opacity: 0.75; }
.bamboo-deco--bl { left: -8px; }
.bamboo-deco--tr { top: 0; bottom: auto; right: -8px; left: auto; transform: scaleY(-1); transform-origin: center; animation-name: bamboo-sway-top; }
.bamboo-deco--br { right: -8px; left: auto; }
.bamboo-deco--tl { top: 0; bottom: auto; left: -8px; transform: scaleY(-1); transform-origin: center; animation-name: bamboo-sway-top; }
@keyframes bamboo-sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2.5deg); } }
@keyframes bamboo-sway-top { 0%, 100% { transform: scaleY(-1) rotate(-2deg); } 50% { transform: scaleY(-1) rotate(2.5deg); } }
@media (max-width: 880px) { .bamboo-deco { width: 76px; opacity: 0.85; } }
@media (prefers-reduced-motion: reduce) { .bamboo-deco { animation: none; } }

/* — Homepage hero wallpaper: the client's own reference bamboo image, tiled
   the full height of the hero so it never runs out. The tile itself is
   pre-blended (offset + feathered) so the repeat seam is invisible without
   needing a bar to mask it. — */
.hero--default.hero--tall {
  background-image: url('../img/bamboo/bamboo-wallpaper-edge.jpg');
  background-repeat: repeat-y;
  background-position: top center;
  background-size: 100% var(--bamboo-tile-h, 800px);
}
@supports (background-image: image-set(url('a.jpg') type('image/jpeg'))) {
  .hero--default.hero--tall {
    background-image: image-set(url('../img/bamboo/bamboo-wallpaper-edge.webp') type('image/webp'), url('../img/bamboo/bamboo-wallpaper-edge.jpg') type('image/jpeg'));
  }
}

/* — Marquee ticker strip (sits under the header) — */
.marquee-strip { background: #2A1C10; overflow: hidden; white-space: nowrap; border-top: 3px solid var(--mango); border-bottom: 3px solid var(--mango); }
.marquee-track {
  display: inline-flex; width: max-content; align-items: center; gap: 16px; padding: 9px 0;
  font-family: var(--font-display); font-weight: 600; font-size: 0.76rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--mango); animation: marquee-scroll 30s linear infinite;
}
.marquee-track .dot { color: var(--mango); }
.marquee-strip:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* — Notification pulse on the header's reserve CTA — */
.nav-cta { position: relative; }
.nav-cta::after {
  content: ''; position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--tomato); border: 2px solid var(--cream); pointer-events: none;
}
.nav-cta::before {
  content: ''; position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--tomato); pointer-events: none; animation: pulse-ring 1.8s ease-out infinite;
}
@keyframes pulse-ring { 0% { transform: scale(0.7); opacity: 0.9; } 100% { transform: scale(2.4); opacity: 0; } }

/* — Breathing glow on the key call-to-action buttons — */
.nav-cta .btn, .hero-actions .btn-primary { animation: btn-glow 2.6s ease-in-out infinite; }
@keyframes btn-glow {
  0%, 100% { box-shadow: 0 5px 0 var(--ink); }
  50% { box-shadow: 0 5px 0 var(--ink), 0 0 20px 2px rgba(200,130,62,0.55); }
}

/* — "Surprends-moi" random dish picker — */
.surprise-widget { position: relative; max-width: 340px; margin: 0 auto; }
.surprise-card {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg); border: 3px solid var(--ink);
  box-shadow: var(--shadow-flat); overflow: hidden; background: var(--cream-dark);
}
.surprise-card img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: filter 0.12s linear; }
.surprise-card.spinning img { filter: blur(4px) brightness(0.8) saturate(1.3); }
.surprise-card.landed img { animation: surprise-land 0.5s var(--ease); }
@keyframes surprise-land { 0% { transform: scale(1.15); } 100% { transform: scale(1); } }
.surprise-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; background: rgba(43,27,14,0.85);
  color: #fff; font-family: var(--font-display); font-weight: 600; text-align: center;
}
#surprise-btn:disabled { opacity: 0.7; cursor: wait; }

/* — Panda mascot: an original character (not the reference site's), peeking off
   the surprise card and nibbling a bamboo leaf; bounces when you click the button — */
.panda-mascot { position: absolute; top: -30px; left: -26px; width: 84px; z-index: 3; pointer-events: none; animation: panda-bob 3.2s ease-in-out infinite; }
.panda-mascot svg { display: block; width: 100%; height: auto; overflow: visible; }
.panda-body, .panda-head { fill: #fff; stroke: var(--ink); stroke-width: 3; }
.panda-ear, .panda-patch, .panda-eye, .panda-nose { fill: var(--ink); }
.panda-mouth { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.panda-arm { fill: var(--ink); }
.panda-leaf { fill: var(--basil); stroke: var(--basil-dark); stroke-width: 1.5; }
#panda-leaf-arm { transform-box: fill-box; transform-origin: 70% 65%; animation: panda-nibble 1.6s ease-in-out infinite; }
@keyframes panda-bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
@keyframes panda-nibble { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-10deg); } }
.panda-mascot.excited { animation: panda-excited 0.7s ease; }
@keyframes panda-excited {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  25% { transform: translateY(-16px) rotate(-10deg); }
  50% { transform: translateY(0) rotate(8deg); }
  75% { transform: translateY(-9px) rotate(-6deg); }
}
@media (max-width: 480px) { .panda-mascot { width: 64px; top: -22px; left: -18px; } }
@media (prefers-reduced-motion: reduce) { .panda-mascot, #panda-leaf-arm { animation: none; } }

/* — Gallery category filter tabs — */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: var(--space-2xl); }
.gallery-filter {
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; padding: 9px 22px;
  border-radius: 100px; border: 2.5px solid rgba(255,255,255,0.35); background: transparent;
  color: rgba(255,255,255,0.85); cursor: pointer; transition: all var(--duration) var(--ease);
}
.gallery-filter:hover { border-color: #fff; color: #fff; }
.gallery-filter.active { background: var(--mango); color: var(--ink); border-color: var(--ink); }
.gallery-filter:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* — Gallery: ticket / Polaroid photo cards, fed by assets/img/gallery/manifest.json — */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); align-items: start; }
.gallery-card {
  position: relative; background: #fff; border: 2.5px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-flat-sm); overflow: hidden; cursor: zoom-in; display: flex; flex-direction: column;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.gallery-card[hidden] { display: none; }
.gallery-card:nth-child(3n+1) { transform: rotate(-1.4deg); }
.gallery-card:nth-child(3n+2) { transform: rotate(1deg); }
.gallery-card:nth-child(3n+3) { transform: rotate(-0.6deg); }
.gallery-card:hover { transform: scale(1.04) rotate(0deg); box-shadow: var(--shadow-flat); z-index: 2; }
.gallery-card:focus-visible { outline: 3px solid var(--tomato); outline-offset: 3px; transform: scale(1.04) rotate(0deg); z-index: 2; }
.gallery-card .gallery-media { aspect-ratio: 4/5; overflow: hidden; line-height: 0; position: relative; }
.gallery-card picture { position: absolute; inset: 0; display: block; }
.gallery-card img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-card:hover img { transform: scale(1.08); }
.gallery-card .gallery-caption {
  display: block; background: var(--mango); color: var(--ink); border-top: 2.5px solid var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: 0.78rem; text-align: center;
  padding: 9px 10px;
}
.gallery-more-btn { display: flex; margin: var(--space-2xl) auto 0; }
.gallery-empty {
  grid-column: 1 / -1; text-align: center; padding: var(--space-3xl) var(--space-lg);
  border: 2.5px dashed var(--muted); border-radius: var(--radius); color: var(--muted);
  font-family: var(--font-display); font-weight: 600;
}
@media (max-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } .gallery-card { transform: none !important; } }

/* — Lightbox — */
.lightbox {
  position: fixed; inset: 0; background: rgba(20,12,6,0.92); z-index: 300;
  display: flex; align-items: center; justify-content: center; padding: var(--space-lg);
  opacity: 0; pointer-events: none; transition: opacity var(--duration) var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { display: block; max-width: min(90vw, 900px); max-height: 82vh; border-radius: var(--radius); border: 3px solid #fff; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-caption { color: #fff; text-align: center; margin-top: var(--space-md); font-family: var(--font-display); font-weight: 600; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: var(--mango); color: var(--ink); border: 2.5px solid #fff; border-radius: 50%;
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 700; cursor: pointer;
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover, .lightbox-next:hover, .lightbox-close:hover { background: var(--tomato); color: #fff; }
.lightbox-prev:focus-visible, .lightbox-next:focus-visible, .lightbox-close:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 560px) {
  .lightbox-prev { left: 6px; } .lightbox-next { right: 6px; } .lightbox-close { top: 10px; right: 10px; }
}

/* — Decorative photo strip (non-interactive accent row) — */
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.photo-strip picture { display: block; line-height: 0; }
.photo-strip img { display: block; width: 100%; height: 150px; object-fit: cover; border-radius: var(--radius-sm); border: 2.5px solid var(--ink); box-shadow: var(--shadow-flat-sm); }
.photo-strip picture:nth-child(2n) img { transform: rotate(-1deg); }
.photo-strip picture:nth-child(2n+1) img { transform: rotate(1deg); }
@media (max-width: 640px) { .photo-strip { grid-template-columns: repeat(2, 1fr); } }

/* — Photo-backed sections (a textured backdrop behind a themed section) — */
.section-photo { position: relative; background-size: cover; background-position: center; background-attachment: scroll; }
.section-photo::before { content: ''; position: absolute; inset: 0; z-index: 0; background: var(--photo-overlay, rgba(56,67,28,0.88)); }
.section-photo > .wrap { position: relative; z-index: 1; }

/* WebP-first backgrounds via @supports (not a duplicate background-image
   declaration) so unsupporting browsers never fetch the webp, and supporting
   ones never fetch the jpg. */
.bg-photo-sunlit-path { background-image: url('../img/bamboo/bamboo-sunlit-path.jpg'); }
.bg-photo-grove-golden { background-image: url('../img/bamboo/bamboo-grove-golden.jpg'); }
@supports (background-image: image-set(url('a.jpg') type('image/jpeg'))) {
  .bg-photo-sunlit-path { background-image: image-set(url('../img/bamboo/bamboo-sunlit-path.webp') type('image/webp'), url('../img/bamboo/bamboo-sunlit-path.jpg') type('image/jpeg')); }
  .bg-photo-grove-golden { background-image: image-set(url('../img/bamboo/bamboo-grove-golden.webp') type('image/webp'), url('../img/bamboo/bamboo-grove-golden.jpg') type('image/jpeg')); }
}

/* — Bamboo photo frame: two illustrated stalks flanking a centered message —
   the source photos have a plain white backdrop, so multiply blends it into
   any light section background instead of showing a white box. Light
   sections only — multiply would muddy a dark background. — */
.bamboo-frame-layout { display: flex; align-items: center; justify-content: center; gap: var(--space-2xl); }
.bamboo-frame-content { max-width: 560px; }

/* — Real bamboo photography, blended into the page like a soft wallpaper rather
   than a bordered card: no border/shadow/rotation, edges faded via mask so the
   photo dissolves into the surrounding section background. — */
.bamboo-frame-photo { width: 160px; max-width: 160px; flex-shrink: 0; }
@media (max-width: 768px) { .bamboo-frame-photo { display: none; } }
.bamboo-photo-frame { width: 100%; max-width: 320px; margin: 0; }
.bamboo-wallpaper-photo {
  position: relative; aspect-ratio: 4/5; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 78% 82% at center, black 52%, transparent 100%);
  mask-image: radial-gradient(ellipse 78% 82% at center, black 52%, transparent 100%);
}
.bamboo-wallpaper-photo picture { position: absolute; inset: 0; display: block; }
.bamboo-wallpaper-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }

/* — A large illustration bleeding off one corner of a section, behind the content — */
.bamboo-corner-accent { position: absolute; bottom: -30px; right: -30px; width: 240px; opacity: 0.95; mix-blend-mode: multiply; pointer-events: none; z-index: 0; }
@media (max-width: 768px) { .bamboo-corner-accent { width: 140px; bottom: -15px; right: -15px; } }

/* — Bamboo-segment rule: a small decorative divider between menu categories — */
.bamboo-rule { width: 120px; margin: var(--space-2xl) auto; }
.bamboo-rule svg { display: block; width: 100%; height: auto; }
