/* ============================================================
   SAMUDRA — Fine Coastal Indian Cuisine
   Shared design system. Built to the v1.0 brand guidelines:
   ivory + deep teal dominate, gold is a precious accent,
   cinnamon rarer still. Marcellus / Cormorant Garamond / Jost.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Palette (exact brand hexes) */
  --teal:        #0d3a40;   /* primary surface / text */
  --midnight:    #082327;   /* darkest surface, hero */
  --teal-line:   #16484e;   /* hairlines on dark */
  --gold:        #c2a05a;   /* precious accent */
  --sandalwood:  #d9c08a;   /* soft accent on dark */
  --gold-ink:    #9a7e3e;   /* darker gold for text on light */
  --ivory:       #f5efe3;   /* light background / paper */
  --ivory-pure:  #fbf7ef;   /* lifted ivory for cards */
  --shell:       #e7ddc9;   /* borders, dividers, fields */
  --cinnamon:    #b9764a;   /* spice accent — sparingly */
  --ink:         #13282b;   /* body text on light */
  --ink-soft:    #4f4a42;   /* secondary text on light */
  --ink-mute:    #6c6354;   /* tertiary / captions on light */
  --cream-on-dk: #efe7d6;   /* body text on dark (warm ivory) */
  --mute-on-dk:  #a9bdb9;   /* secondary text on dark */

  /* Type families */
  --font-display: 'Marcellus', 'Times New Roman', serif;
  --font-accent:  'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', -apple-system, 'Segoe UI', sans-serif;

  /* Fluid type scale (~1.28 ratio) */
  --t-hero:  clamp(3.25rem, 2.1rem + 5.6vw, 5.75rem);
  --t-h1:    clamp(2.35rem, 1.7rem + 2.9vw, 3.6rem);
  --t-h2:    clamp(1.85rem, 1.45rem + 1.8vw, 2.6rem);
  --t-h3:    clamp(1.3rem, 1.15rem + 0.7vw, 1.6rem);
  --t-lead:  clamp(1.18rem, 1.05rem + 0.6vw, 1.5rem);
  --t-body:  clamp(1rem, 0.97rem + 0.16vw, 1.08rem);
  --t-small: 0.8125rem;
  --t-label: 0.72rem;

  /* Spacing */
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --section-y: clamp(4.5rem, 3rem + 7vw, 9rem);
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 3rem);
  --measure: 65ch;
  --maxw: 1200px;

  /* Form */
  --radius: 3px;
  --radius-lg: 6px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);     /* ease-out-expo-ish */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --dur-fast: 0.25s;
  --dur: 0.5s;
  --dur-slow: 0.9s;

  /* Z-index scale (semantic) */
  --z-base: 0;
  --z-raised: 10;
  --z-sticky: 100;
  --z-scrim: 150;
  --z-header: 200;
  --z-nav-panel: 250;
  --z-overlay: 300;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--teal);
  color: var(--cream-on-dk);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--t-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ivory);
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

.display {
  font-family: var(--font-display);
  font-size: var(--t-hero);
  letter-spacing: 0.16em;
  line-height: 1;
  font-weight: 400;
}

.lead {
  font-family: var(--font-accent);
  font-size: var(--t-lead);
  font-style: italic;
  line-height: 1.45;
  font-weight: 400;
}

.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1.1em; }

/* Small tracked label — used sparingly, NOT above every heading */
.label {
  font-family: var(--font-body);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 880px; }
.section { padding-block: var(--section-y); position: relative; }

/* Surface themes — Ocean Teal is now the primary ground. The former "ivory"
   reading surface is rendered in ocean teal, with the on-light semantic tokens
   remapped to their on-dark equivalents so every token-driven component within
   (story, menu, cart, reviews, account) flips to light-on-dark automatically.
   Midnight surfaces stay darker for the designed rhythm. */
.surface-ivory {
  background: var(--teal);
  color: var(--cream-on-dk);
  --ink:        var(--cream-on-dk);   /* primary text */
  --ink-soft:   var(--mute-on-dk);    /* secondary text */
  --ink-mute:   var(--mute-on-dk);    /* tertiary / captions */
  --gold-ink:   var(--sandalwood);    /* labels, fine accents */
  --cinnamon:   var(--sandalwood);    /* leads read as sandalwood on dark */
  --shell:      var(--teal-line);     /* borders, dividers, fields */
  --ivory-pure: #11454c;              /* lifted teal panel for cards/inputs */
}
.surface-teal    { background: var(--teal); color: var(--cream-on-dk); }
.surface-midnight{ background: var(--midnight); color: var(--cream-on-dk); }
.surface-ivory h1, .surface-ivory h2, .surface-ivory h3,
.surface-teal h1, .surface-teal h2, .surface-teal h3,
.surface-midnight h1, .surface-midnight h2, .surface-midnight h3 { color: var(--ivory); }

/* On-dark text that previously hard-coded teal (not caught by token remap) */
.surface-ivory .story__sign,
.surface-ivory .menu-group__head h2,
.surface-ivory .checkout__heading,
.surface-ivory .review-card__name { color: var(--ivory); }
.surface-ivory .info-item a:hover { color: var(--gold); }

/* btn--ink is tuned for ivory grounds (teal-on-teal would vanish); on the teal
   surface fall back to the gold-outline default so it stays legible. */
.surface-ivory .btn--ink { --btn-fg: var(--ivory); --btn-bd: var(--gold); }
.surface-ivory .btn--ink::after { background: var(--gold); }
.surface-ivory .btn--ink:hover { color: var(--midnight); border-color: var(--gold); }

/* Quiet ghost button on the teal ground */
.surface-ivory .btn--ghost { --btn-fg: var(--cream-on-dk); --btn-bd: var(--teal-line); }
.surface-ivory .btn--ghost::after { background: var(--sandalwood); }
.surface-ivory .btn--ghost:hover { color: var(--midnight); border-color: var(--sandalwood); }

/* Veg glyph green needs lifting to read on teal */
.surface-ivory .glyph--veg { color: #7faf6f; }

/* ---------- Engraved ornament (the recurring section motif) ---------- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: var(--space-6);
}
.ornament::before, .ornament::after {
  content: "";
  height: 1px;
  width: clamp(28px, 7vw, 64px);
  background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament::after { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament svg { width: 20px; height: 20px; flex: none; color: var(--gold); }
.ornament--start { justify-content: flex-start; }
.ornament--start::before { display: none; }

.ornament-label {
  font-family: var(--font-body);
  font-size: var(--t-label);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-ink);
  font-weight: 500;
}
.surface-teal .ornament-label,
.surface-midnight .ornament-label { color: var(--sandalwood); }

/* ---------- Buttons ---------- */
.btn {
  --btn-fg: var(--ivory);
  --btn-bd: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--btn-fg);
  padding: 0.95em 1.9em;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
  z-index: -1;
}
.btn:hover { color: var(--midnight); border-color: var(--gold); }
.btn:hover::after { transform: scaleX(1); }
.btn:active { transform: translateY(1px); }

/* Solid gold button (for ivory surfaces) */
.btn--solid {
  --btn-fg: var(--midnight);
  background: var(--gold);
  border-color: var(--gold);
}
.btn--solid::after { background: var(--midnight); }
.btn--solid:hover { color: var(--ivory); }

/* Dark-ink button on ivory */
.btn--ink {
  --btn-fg: var(--teal);
  --btn-bd: var(--teal);
}
.btn--ink::after { background: var(--teal); }
.btn--ink:hover { color: var(--ivory); }

/* Quiet ghost button on ivory — for secondary/destructive actions (e.g. Remove) */
.btn--ghost {
  --btn-fg: var(--ink-soft);
  --btn-bd: var(--shell);
}
.btn--ghost::after { background: var(--ink-soft); }
.btn--ghost:hover { color: var(--ivory); border-color: var(--ink-soft); }

/* Compact button for inline list controls */
.btn--sm { padding: 0.5em 1.05em; font-size: 0.7rem; letter-spacing: 0.14em; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-4); }

/* Quiet text link with animated underline */
.link-underline {
  position: relative;
  font-weight: 400;
  letter-spacing: 0.02em;
  padding-bottom: 2px;
}
.link-underline::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.link-underline:hover::after { transform: scaleX(1); transform-origin: left; }

/* ============================================================
   SITE HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  transition: background var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              backdrop-filter var(--dur) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 76px;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--midnight) 92%, transparent);
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom-color: var(--teal-line);
  height: 64px;
}
.site-header.is-scrolled .site-header__inner { height: 64px; }

/* Interior pages (no dark hero behind the header) keep the header solid
   at all times so the cream nav links, brand mark and hamburger stay legible. */
.site-header[data-solid] {
  background: color-mix(in srgb, var(--midnight) 92%, transparent);
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom-color: var(--teal-line);
}
/* Offset the page content so it clears the fixed solid header. */
.main--offset { padding-top: 76px; }

.brand-mark { display: flex; align-items: center; height: 40px; }
.brand-mark svg { height: 38px; width: auto; }
.brand-mark .brand-fallback {
  font-family: var(--font-display);
  letter-spacing: 0.28em;
  font-size: 1.25rem;
  color: var(--ivory);
}

.nav { display: flex; align-items: center; }
.nav__panel { display: flex; align-items: center; gap: clamp(1.5rem, 2.6vw, 2.8rem); }
.nav__links { display: flex; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.4rem); }
.nav__link {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--cream-on-dk);
}
.nav__link.is-active { color: var(--sandalwood); }
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { padding: 0.7em 1.45em; }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: var(--ivory);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 1.5px;
  background: currentColor; transition: transform var(--dur-fast) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after  { transform: translateY(4.5px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-1.5px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; z-index: var(--z-overlay); position: relative; }
  .nav__panel {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(84vw, 380px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: var(--space-8);
    padding: var(--space-24) var(--gutter) var(--space-16);
    background: var(--midnight);
    border-left: 1px solid var(--teal-line);
    transform: translateX(100%);
    transition: transform var(--dur) var(--ease-out);
    z-index: var(--z-nav-panel);
  }
  .nav__links { flex-direction: column; align-items: flex-start; gap: var(--space-6); }
  .nav__panel .nav__link { font-size: 1.15rem; letter-spacing: 0.2em; }
  .nav__panel .btn { padding: 0.95em 1.9em; }
  body.nav-open .nav__panel { transform: translateX(0); }
  .nav-scrim {
    position: fixed; inset: 0; background: rgba(8,35,39,0.55);
    backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease-out);
    z-index: var(--z-scrim);
  }
  body.nav-open .nav-scrim { opacity: 1; visibility: visible; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--midnight); color: var(--mute-on-dk); padding-block: var(--space-24) var(--space-12); }
.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}
.site-footer__brand svg { width: 188px; height: auto; margin-left: -6px; }
.site-footer__brand p { margin-top: var(--space-4); max-width: 34ch; font-size: 0.95rem; }
.footer-col h4 { color: var(--sandalwood); font-size: 1.05rem; margin-bottom: var(--space-4); letter-spacing: 0.03em; }
.footer-col p, .footer-col a { font-size: 0.95rem; line-height: 1.9; }
.footer-col a:hover { color: var(--ivory); }
.footer-rule { height: 1px; background: var(--teal-line); margin-block: var(--space-12); }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-8);
  justify-content: space-between; align-items: center;
  font-size: 0.8rem; letter-spacing: 0.04em;
}
.site-footer__bottom .label { color: var(--gold-ink); }
@media (max-width: 760px) {
  .site-footer__top { grid-template-columns: 1fr; gap: var(--space-8); }
}

/* ============================================================
   REVEAL / MOTION SCAFFOLD
   Content is visible by default. Animation only applies when JS
   is present (html.js), and is disabled under reduced-motion.
   ============================================================ */
.reveal { will-change: opacity, transform; }
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }
html.js .reveal[data-reveal="scale"] { transform: translateY(26px) scale(0.985); }
html.js .reveal[data-reveal="left"]  { transform: translateX(-32px); }
html.js .reveal[data-reveal="right"] { transform: translateX(32px); }
html.js .reveal.is-visible[data-reveal] { transform: none; }

/* stagger children */
html.js [data-stagger] > * { opacity: 0; transform: translateY(20px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
html.js [data-stagger].is-visible > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal,
  html.js [data-stagger] > * {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ivory);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: -8% 0 0 0;
  z-index: -2;
  background-size: cover;
  background-position: center 38%;
  will-change: transform;
}
.hero__bg::after { /* engraved tonal grade so emblem + type read */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 28%, rgba(8,35,39,0.30), rgba(8,35,39,0.80) 78%),
    linear-gradient(180deg, rgba(8,35,39,0.55) 0%, rgba(8,35,39,0.35) 38%, rgba(8,35,39,0.92) 100%);
}
.hero__inner { position: relative; z-index: 1; padding: 7rem var(--gutter) 8rem; max-width: 880px; }
.hero__emblem { width: clamp(132px, 20vw, 184px); margin: 0 auto var(--space-6); }
.hero__emblem svg { width: 100%; height: auto; }
.hero__title {
  font-family: var(--font-display);
  color: var(--ivory);
  font-size: var(--t-hero);
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  line-height: 1;
  margin-bottom: var(--space-4);
}
.hero__tag {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.25rem, 1rem + 1.4vw, 1.9rem);
  color: var(--sandalwood);
  letter-spacing: 0.01em;
}
.hero__sub {
  margin: var(--space-6) auto var(--space-8);
  max-width: 48ch;
  color: var(--cream-on-dk);
  font-size: var(--t-body);
}
.hero__cta { justify-content: center; }

/* Hero entrance choreography (JS-gated; visible by default without JS) */
html.js .hero__emblem,
html.js .hero__title,
html.js .hero__tag,
html.js .hero__sub,
html.js .hero__cta,
html.js .hero__scroll {
  opacity: 0;
  transform: translateY(20px);
}
html.js .hero__emblem { transform: translateY(0) scale(0.92); }
html.is-loaded .hero__emblem,
html.is-loaded .hero__title,
html.is-loaded .hero__tag,
html.is-loaded .hero__sub,
html.is-loaded .hero__cta,
html.is-loaded .hero__scroll {
  opacity: 1;
  transform: none;
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
}
html.is-loaded .hero__emblem { transition-delay: 0.05s; }
html.is-loaded .hero__title  { transition-delay: 0.45s; }
html.is-loaded .hero__tag    { transition-delay: 0.65s; }
html.is-loaded .hero__sub    { transition-delay: 0.82s; }
html.is-loaded .hero__cta    { transition-delay: 0.98s; }
html.is-loaded .hero__scroll { transition-delay: 1.2s; }
@media (prefers-reduced-motion: reduce) {
  html.js .hero__emblem, html.js .hero__title, html.js .hero__tag,
  html.js .hero__sub, html.js .hero__cta, html.js .hero__scroll {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}
.hero__scroll {
  position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%);
  z-index: 1; display: inline-flex; flex-direction: column; align-items: center; gap: 0.6rem;
  color: var(--sandalwood); font-size: var(--t-label); letter-spacing: 0.3em; text-transform: uppercase;
}
.hero__scroll .dash { width: 1px; height: 40px; background: linear-gradient(var(--sandalwood), transparent); }
@media (prefers-reduced-motion: no-preference) {
  .hero__scroll .dash { animation: scrollPulse 2.4s var(--ease-out) infinite; transform-origin: top; }
}
@keyframes scrollPulse { 0%,100% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ============================================================
   STORY
   ============================================================ */
.story__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center;
}
.story__media { position: relative; }
.story__media-img { position: relative; }
.story__media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-lg);
}
.story__media .frame {
  position: absolute; inset: 14px; border: 1px solid rgba(194,160,90,0.55);
  border-radius: var(--radius-lg); pointer-events: none;
}
.story__media figcaption {
  margin-top: var(--space-3); font-family: var(--font-accent); font-style: italic;
  color: var(--ink-mute); font-size: 1.05rem;
}
.story h2 { font-size: var(--t-h1); margin-bottom: var(--space-4); }
.story .lead { color: var(--cinnamon); margin-bottom: var(--space-6); }
.story .prose p { color: var(--ink-soft); }
.story__sign {
  margin-top: var(--space-8);
  font-family: var(--font-accent); font-style: italic; font-size: 1.35rem; color: var(--teal);
}
.story__sign span { display: block; font-family: var(--font-body); font-style: normal;
  font-size: var(--t-label); letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-ink); margin-top: 0.4rem; }
@media (max-width: 820px) {
  .story__grid { grid-template-columns: 1fr; gap: var(--space-12); }
  .story__media { order: -1; max-width: 460px; }
}

/* ============================================================
   SIGNATURE DISHES  (asymmetric, alternating — not a card grid)
   ============================================================ */
.dishes__head { text-align: center; max-width: 640px; margin: 0 auto var(--space-16); }
.dishes__head h2 { font-size: var(--t-h1); }
.dishes__head .lead { color: var(--sandalwood); margin-top: var(--space-3); }

.dish {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 4.5rem);
  align-items: center;
  margin-bottom: clamp(3.5rem, 6vw, 6.5rem);
}
.dish:last-child { margin-bottom: 0; }
.dish__media { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.dish__media img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.dish:hover .dish__media img { transform: scale(1.045); }
.dish__index {
  font-family: var(--font-accent); font-style: italic; font-size: 1.4rem;
  color: var(--gold); margin-bottom: var(--space-2);
}
.dish__name { font-size: var(--t-h3); color: var(--ivory); margin-bottom: var(--space-3); }
.dish__desc { color: var(--mute-on-dk); max-width: 42ch; }
.dish__meta {
  margin-top: var(--space-4); display: flex; gap: var(--space-4); align-items: baseline;
  font-size: var(--t-small); letter-spacing: 0.04em; color: var(--sandalwood);
}
.dish:nth-child(even) .dish__media { order: 2; }
@media (max-width: 720px) {
  .dish, .dish:nth-child(even) .dish__media { grid-template-columns: 1fr; order: 0; }
  .dish__media { order: -1 !important; }
  .dish__body { padding-inline: 0; }
}

/* ============================================================
   THE VENUE  (full-bleed atmosphere)
   ============================================================ */
.venue {
  position: relative; isolation: isolate; color: var(--ivory);
  min-height: 78vh; display: flex; align-items: center;
  padding-block: var(--section-y);
}
.venue__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.venue__bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,35,39,0.92) 0%, rgba(8,35,39,0.72) 45%, rgba(8,35,39,0.32) 100%); }
.venue__quote { max-width: 620px; }
.venue__quote .label { color: var(--sandalwood); display: block; margin-bottom: var(--space-6); }
.venue__quote blockquote {
  font-family: var(--font-accent); font-style: italic;
  font-size: clamp(1.6rem, 1.2rem + 2.2vw, 2.9rem); line-height: 1.28; color: var(--ivory);
}
.venue__quote cite { display: block; margin-top: var(--space-6); font-style: normal;
  font-family: var(--font-body); font-size: var(--t-label); letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--sandalwood); }

/* ============================================================
   VISIT + RESERVATION
   ============================================================ */
.visit__grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: start;
}
.visit__info h2 { font-size: var(--t-h1); margin-bottom: var(--space-6); }
.visit__info .lead { color: var(--cinnamon); margin-bottom: var(--space-8); }
.info-list { display: grid; gap: var(--space-6); }
.info-item { display: grid; grid-template-columns: 26px 1fr; gap: var(--space-4); align-items: start; }
.info-item svg { width: 22px; height: 22px; color: var(--gold-ink); margin-top: 3px; }
.info-item h4 { font-family: var(--font-body); font-weight: 500; font-size: var(--t-label);
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 0.3rem; }
.info-item p { color: var(--ink-soft); line-height: 1.7; }
.info-item a:hover { color: var(--teal); }

/* Reservation card */
.reserve {
  background: var(--midnight); color: var(--cream-on-dk);
  border-radius: var(--radius-lg); padding: clamp(1.75rem, 3.5vw, 3rem);
  position: relative; overflow: hidden;
}
.reserve::before { /* fine gold inner keyline, like a seal */
  content: ""; position: absolute; inset: 12px; border: 1px solid rgba(194,160,90,0.4);
  border-radius: var(--radius-lg); pointer-events: none;
}
.reserve h3 { color: var(--ivory); font-size: var(--t-h3); margin-bottom: 0.4rem; }
.reserve__hint { font-family: var(--font-accent); font-style: italic; color: var(--sandalwood);
  margin-bottom: var(--space-8); font-size: 1.15rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-4); }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--t-label); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sandalwood); font-weight: 500; }
.field input, .field select, .field textarea {
  background: rgba(245,239,227,0.04);
  border: 1px solid var(--teal-line);
  border-radius: var(--radius);
  padding: 0.85em 0.95em;
  color: var(--ivory);
  font-size: 0.98rem; font-weight: 300;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.field input::placeholder, .field textarea::placeholder { color: #7d908c; }
.field select { appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23d9c08a' stroke-width='1.3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.95em center; background-size: 12px; padding-right: 2.4em; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: rgba(245,239,227,0.07); }
/* Open dropdown list: dark teal text on ivory so options stay legible
   (the select's own ivory text is only right against the dark field). */
.field select option { color: var(--teal); background: var(--ivory); }
.field select option:disabled { color: var(--ink-mute); }
.field textarea { resize: vertical; min-height: 84px; }
.reserve .btn { margin-top: var(--space-6); width: 100%; }
.reserve__note { margin-top: var(--space-4); font-size: var(--t-small); color: var(--mute-on-dk); text-align: center; }
.form-status { margin-top: var(--space-4); font-size: 0.95rem; min-height: 1.2em; }
.form-status[data-state="ok"] { color: var(--sandalwood); }
.form-status[data-state="err"] { color: #e0a07f; }

/* ---------- Reservation confirmation modal ----------
   Native <dialog> in the brand's "midnight seal card" idiom (see .reserve),
   opened by main.js on a successful request. Animated via an .is-open class,
   mirroring the mobile-nav scrim convention. */
.reserve-modal {
  margin: auto;                                  /* centred by showModal + margin auto */
  width: 100%;
  max-width: min(440px, calc(100vw - 2 * var(--space-6)));
  padding: 0; border: none; background: transparent;
  color: var(--cream-on-dk); overflow: visible;
}
.reserve-modal::backdrop {
  background: rgba(8, 35, 39, 0.55);             /* --midnight at 55%, as .nav-scrim */
  backdrop-filter: blur(3px);
  opacity: 0; transition: opacity var(--dur) var(--ease-out);
}
.reserve-modal.is-open::backdrop { opacity: 1; }

.reserve-modal__panel {
  position: relative;
  background: var(--midnight);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.5rem) clamp(1.75rem, 4vw, 2.25rem);
  text-align: center; overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7);
  opacity: 0; transform: translateY(14px) scale(0.96);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out-quart);
}
.reserve-modal.is-open .reserve-modal__panel { opacity: 1; transform: none; }
.reserve-modal__panel::before {               /* inset gold keyline, like .reserve::before */
  content: ""; position: absolute; inset: 12px;
  border: 1px solid rgba(194, 160, 90, 0.4);
  border-radius: var(--radius-lg); pointer-events: none;
}

.reserve-modal__close {
  position: absolute; top: 0.85rem; right: 0.85rem; z-index: 1;
  width: 2rem; height: 2rem; display: grid; place-items: center;
  background: none; border: 0; border-radius: 50%; cursor: pointer;
  color: var(--mute-on-dk);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.reserve-modal__close svg { width: 18px; height: 18px; }
.reserve-modal__close:hover { color: var(--ivory); background: rgba(245, 239, 227, 0.06); }
.reserve-modal__close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.reserve-modal__seal {
  display: grid; place-items: center;
  width: 74px; height: 74px; margin: 0 auto var(--space-6);
  color: var(--gold); border: 1px solid rgba(194, 160, 90, 0.5); border-radius: 50%;
  opacity: 0;                                    /* revealed by the stamp when opened */
}
.reserve-modal__seal svg { width: 40px; height: 40px; }
.reserve-modal.is-open .reserve-modal__seal { animation: sealStamp 0.7s var(--ease-out) 0.15s both; }
@keyframes sealStamp {
  0%   { opacity: 0; transform: scale(1.5); }
  60%  { opacity: 1; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1); }
}

.reserve-modal__title {
  font-family: var(--font-display); color: var(--ivory);
  font-size: var(--t-h2); line-height: 1.15; margin-bottom: 0.5rem; text-wrap: balance;
}
.reserve-modal__sub {
  font-family: var(--font-accent); font-style: italic; color: var(--sandalwood);
  font-size: 1.15rem; line-height: 1.4; max-width: 30ch; margin: 0 auto var(--space-8);
}

.reserve-modal__details { margin: 0 auto var(--space-8); text-align: left; border-top: 1px solid var(--teal-line); }
.reserve-modal__row {
  display: flex; align-items: baseline; gap: var(--space-3);
  padding: 0.7rem 0.25rem; border-bottom: 1px solid var(--teal-line);
}
.reserve-modal__row dt {
  flex: 0 0 auto; font-size: var(--t-label); letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--sandalwood); font-weight: 500;
}
.reserve-modal__row dd { margin: 0 0 0 auto; text-align: right; color: var(--ivory); font-size: 1rem; font-weight: 300; }
.reserve-modal__done { width: 100%; margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .reserve-modal__panel { transition: opacity var(--dur-fast) linear; transform: none; }
  .reserve-modal.is-open .reserve-modal__panel { transform: none; }
  .reserve-modal.is-open .reserve-modal__seal { animation: none; opacity: 1; }
  .reserve-modal::backdrop { transition: none; }
}

/* ---------- Reservation processing overlay ----------
   Fades over the .reserve card (position:relative; overflow:hidden) while the
   request is in flight, cleared as the confirmation modal opens. Class-toggled
   via .is-loading on the card, mirroring the .is-open convention. */
.reserve-loader {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  background: rgba(8, 35, 39, 0.82);             /* --midnight wash */
  backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}
.reserve.is-loading .reserve-loader {
  opacity: 1; visibility: visible;
  transition: opacity var(--dur) var(--ease-out);
}
.reserve-loader__inner { display: grid; justify-items: center; gap: var(--space-4); }
.reserve-loader__mark { display: block; width: 76px; height: 76px; }
.reserve-loader__mark svg { display: block; width: 100%; height: 100%; }
.reserve-loader__rays {
  transform-box: fill-box; transform-origin: center;
  animation: reserveSpin 1.6s linear infinite;
}
.reserve-loader__caption {
  font-family: var(--font-accent); font-style: italic; color: var(--sandalwood);
  font-size: 1.05rem; letter-spacing: 0.01em;
}
@keyframes reserveSpin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .reserve-loader { transition: opacity var(--dur-fast) linear; backdrop-filter: none; }
  .reserve.is-loading .reserve-loader { transition: opacity var(--dur-fast) linear; }
  .reserve-loader__rays { animation: none; }
}

@media (max-width: 920px) {
  .visit__grid { grid-template-columns: 1fr; }
}

/* Map */
.visit__map { position: relative; margin-top: clamp(2.5rem, 5vw, 4rem); }
.visit__map .map-shell {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--shell); background: var(--shell);
}
.visit__map iframe {
  display: block; width: 100%; height: clamp(320px, 40vw, 460px); border: 0;
  filter: grayscale(0.18) contrast(0.96) saturate(0.9);
}
.visit__map .frame {
  position: absolute; inset: 12px; border: 1px solid rgba(194,160,90,0.5);
  border-radius: var(--radius-lg); pointer-events: none;
}
.visit__map figcaption {
  margin-top: var(--space-3); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  align-items: baseline; justify-content: space-between;
  font-family: var(--font-accent); font-style: italic; color: var(--ink-mute); font-size: 1.05rem;
}
.visit__map figcaption a {
  font-family: var(--font-body); font-style: normal; font-size: var(--t-label);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink);
}
@media (max-width: 480px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PAGE INTRO (menu hero band)
   ============================================================ */
.page-intro {
  position: relative; color: var(--ivory); text-align: center;
  padding: clamp(8rem, 12vw, 12rem) var(--gutter) clamp(3.5rem, 6vw, 5rem);
  background: var(--midnight); isolation: isolate; overflow: hidden;
}
.page-intro::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.16;
  background-size: cover; background-position: center;
  background-image: var(--intro-img);
}
.page-intro::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,35,39,0.55), var(--midnight)); }
.page-intro h1 { color: var(--ivory); font-size: var(--t-h1);
  letter-spacing: 0.14em; text-indent: 0.14em; margin-bottom: var(--space-3); }
.page-intro .lead { color: var(--sandalwood); max-width: 52ch; margin-inline: auto; }
.page-intro .ornament { margin-top: var(--space-6); margin-bottom: 0; }

/* ============================================================
   MENU PAGE
   ============================================================ */
.menu-legend {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-6);
  padding-block: var(--space-8); border-bottom: 1px solid var(--shell);
  font-size: var(--t-small); letter-spacing: 0.06em; color: var(--ink-mute);
}
.menu-legend span { display: inline-flex; align-items: center; gap: 0.5rem; }
.glyph { font-family: var(--font-display); color: var(--gold-ink); font-size: 1rem;
  display: inline-block; text-align: center; white-space: nowrap; }
.glyph--veg { color: #4f7a4a; }
.glyph--chef { color: var(--cinnamon); }

/* Spice scale: filled diamonds carry the heat, hollow ones the remainder of three */
.spice { font-family: var(--font-display); color: var(--cinnamon); letter-spacing: 0.08em; white-space: nowrap; }
.spice__off { color: var(--shell); }
.menu-item__name .spice { font-size: 0.78rem; margin-left: 0.35rem; }
.legend-spice .spice { font-size: 0.9rem; }

.menu-layout { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2.5rem, 5vw, 5rem) clamp(3rem, 6vw, 6rem); }
.menu-group { break-inside: avoid; }
.menu-group__head { display: flex; align-items: baseline; gap: var(--space-4); margin-bottom: var(--space-6); }
.menu-group__head h2 { font-size: var(--t-h3); color: var(--teal); white-space: nowrap; }
.menu-group__head .rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.menu-group__sub { font-family: var(--font-accent); font-style: italic; color: var(--ink-mute);
  margin-top: -0.4rem; margin-bottom: var(--space-6); font-size: 1.05rem; }

.menu-item { padding-block: var(--space-4); border-bottom: 1px dotted var(--shell); }
.menu-item:last-child { border-bottom: none; }
.menu-item__top { display: flex; align-items: baseline; gap: var(--space-3); }
.menu-item__name { font-family: var(--font-display); font-size: 1.18rem; color: var(--ink); letter-spacing: 0.01em; }
.menu-item__name .glyph { font-size: 0.85rem; margin-left: 0.35rem; }
.menu-item__dots { flex: 1; border-bottom: 1px dotted var(--shell); transform: translateY(-4px); min-width: 18px; }
.menu-item__price { font-family: var(--font-body); font-weight: 500; color: var(--gold-ink); font-size: 1rem; letter-spacing: 0.03em; white-space: nowrap; font-feature-settings: "tnum"; }
.menu-item__desc { margin-top: 0.4rem; color: var(--ink-soft); font-size: 0.96rem; line-height: 1.6; max-width: 52ch; }

/* Visually hidden, still available to assistive tech. */
.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;
}

/* Add-to-cart: compact quantity box, row aligned to the right for a tidy edge. */
.add-to-cart {
  display: flex; align-items: center; justify-content: flex-end;
  gap: var(--space-3); margin-top: var(--space-4);
}
.add-to-cart__qty { display: inline-flex; align-items: center; }
.add-to-cart__qty input[type="number"] {
  width: 3.75rem;
  background: var(--ivory-pure);
  border: 1px solid var(--shell);
  border-radius: var(--radius);
  padding: 0.5em 0.55em;
  color: var(--ink);
  text-align: center;
  font-feature-settings: "tnum";
  transition: border-color var(--dur-fast) var(--ease-out);
}
.add-to-cart__qty input[type="number"]:focus { outline: none; border-color: var(--gold-ink); }

.menu-note {
  margin-top: var(--space-16); padding-top: var(--space-8); border-top: 1px solid var(--shell);
  text-align: center; color: var(--ink-mute); font-size: 0.95rem;
}
.menu-note .lead { color: var(--cinnamon); margin-bottom: var(--space-3); }

@media (max-width: 760px) {
  .menu-layout { grid-template-columns: 1fr; }
}

/* ============================================================
   CHECKOUT / CART
   Order summary on the ivory reading ground; the checkout form
   in a midnight seal card, mirroring the reservation card.
   ============================================================ */
.checkout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  margin-top: var(--space-12);
}
@media (max-width: 920px) {
  .checkout { grid-template-columns: 1fr; gap: var(--space-12); }
}

/* Order summary (left) */
.checkout__heading { font-size: var(--t-h3); color: var(--teal); margin-bottom: var(--space-6); }

.cart-line__controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6);
  margin-top: var(--space-3);
}
.cart-line__qty { display: inline-flex; align-items: center; gap: var(--space-3); }
.cart-line__qty input[type="number"] {
  width: 4.25rem;
  background: var(--ivory-pure);
  border: 1px solid var(--shell);
  border-radius: var(--radius);
  padding: 0.5em 0.55em;
  color: var(--ink);
  text-align: center;
  font-feature-settings: "tnum";
  transition: border-color var(--dur-fast) var(--ease-out);
}
.cart-line__qty input[type="number"]:focus { outline: none; border-color: var(--gold-ink); }

/* Totals */
.cart-totals {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--shell);
  display: grid;
  gap: var(--space-3);
}
.cart-totals__row {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4);
}
.cart-totals__row > span:last-child { color: var(--ink); font-feature-settings: "tnum"; }
.cart-totals__min {
  font-family: var(--font-accent); font-style: italic;
  color: var(--ink-mute); font-size: 0.98rem;
}

/* Checkout form — reuses .reserve (midnight seal card). Native date/time
   pickers render in dark mode so typed ivory text and icons stay legible. */
.checkout-card { color-scheme: dark; }
/* Card titles sit on the midnight ground, so override the global teal h2 */
.reserve h2 { color: var(--ivory); font-size: var(--t-h3); margin-bottom: 0.4rem; }
.checkout-card > .field { margin-bottom: var(--space-8); }

/* Grouped choices (fulfilment / timing / address) */
.choice-group { border: 0; padding: 0; margin-bottom: var(--space-8); }
.choice-group:last-of-type { margin-bottom: 0; }
.choice-group > legend {
  font-family: var(--font-body); font-size: var(--t-label);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sandalwood); font-weight: 500;
  margin-bottom: var(--space-4); padding: 0;
}
.choice-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Custom radio "chip" on dark */
.choice {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.7em 1.05em;
  border: 1px solid var(--teal-line);
  border-radius: var(--radius);
  color: var(--cream-on-dk);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.choice:hover { border-color: var(--gold); }
.choice:has(input:checked) { border-color: var(--gold); background: rgba(194,160,90,0.08); }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice__mark {
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 1px solid var(--sandalwood);
  display: inline-grid; place-content: center;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.choice__mark::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); transform: scale(0);
  transition: transform var(--dur-fast) var(--ease-out);
}
.choice input:checked ~ .choice__mark { border-color: var(--gold); }
.choice input:checked ~ .choice__mark::after { transform: scale(1); }
.choice input:focus-visible ~ .choice__mark { outline: 2px solid var(--gold); outline-offset: 2px; }
.choice em { font-style: normal; color: var(--sandalwood); font-size: 0.92em; }

/* Time picker sits under the timing choices */
.checkout__time { margin-top: var(--space-4); }

/* ============================================================
   AUTH  (sign in / register / password reset)
   The brand's form language is the midnight seal card, so auth
   forms use it too — centred on the ivory ground. This keeps the
   .field treatment on the dark ground it was designed for.
   ============================================================ */
.auth-card {
  max-width: 460px;
  margin-inline: auto;
  color-scheme: dark;
  accent-color: var(--gold);
}
.auth-card .reserve__hint { font-size: 1.1rem; margin-bottom: var(--space-8); }

/* Alternate sign-in (external providers) */
.auth-alt { margin-top: var(--space-4); }
.auth-alt__sep {
  display: flex; align-items: center; gap: var(--space-4);
  margin-bottom: var(--space-2);
  font-size: var(--t-label); letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--mute-on-dk);
}
.auth-alt__sep::before, .auth-alt__sep::after {
  content: ""; height: 1px; flex: 1; background: var(--teal-line);
}

/* Footer links inside the card (forgot password / switch to sign-up) */
.auth-foot {
  margin-top: var(--space-8); padding-top: var(--space-6);
  border-top: 1px solid var(--teal-line);
  font-size: 0.95rem;
}
.auth-foot p + p { margin-top: var(--space-2); }
.auth-foot a { color: var(--sandalwood); }

/* ============================================================
   UTILITIES
   ============================================================ */
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* [hidden] must win over component display rules (e.g. .field { display:flex }) */
[hidden] { display: none !important; }

/* Status text on the ocean-teal ground uses the warm light tones. */
.surface-ivory .form-status[data-state="err"] { color: #e0a07f; }
.surface-ivory .form-status[data-state="ok"]  { color: var(--sandalwood); }
/* …but a seal card inside an ivory section is dark again — restore light tones
   (this rule follows the one above, so it wins for elements inside .reserve). */
.reserve .form-status[data-state="err"] { color: #e0a07f; }
.reserve .form-status[data-state="ok"]  { color: var(--sandalwood); }
/* Honeypot: kept in the layout but pushed off-screen (not display:none, so naive
   bots still fill it) and hidden from assistive tech via aria-hidden on the wrapper. */
.hp {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0; pointer-events: none;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: var(--z-overlay);
  background: var(--gold); color: var(--midnight); padding: 0.7em 1.2em; border-radius: var(--radius);
  font-size: 0.85rem; letter-spacing: 0.08em; transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* ============================================================
   CUSTOMER REVIEWS
   The public page reads as Samudra's guest book: each approved
   review is a testimonial opened by a single oversized gold
   quotation glyph (Cormorant italic). That glyph is the one bold
   move — the surrounding card stays quiet and disciplined.
   ============================================================ */

/* Star rating — display only (read-only on the public + admin views) */
.star-rating { display: inline-flex; gap: 0.18em; line-height: 0; }
.star-rating svg { width: 1.05em; height: 1.05em; flex: none; }
.star-rating .star { fill: #d8cdb4; }                 /* empty: a touch darker than ivory so it still reads */
.star-rating .star.is-on { fill: var(--gold); }
.surface-ivory .star-rating .star,
.surface-teal .star-rating .star,
.surface-midnight .star-rating .star,
.reserve .star-rating .star { fill: rgba(217,192,138,0.28); }  /* empty on dark grounds */

/* Reviews list page */
.reviews-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-12);
}
.reviews-bar p { color: var(--ink-soft); max-width: 46ch; }

.reviews-grid {
  display: grid; gap: var(--space-6);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

.review-card {
  position: relative;
  background: var(--ivory-pure);
  border: 1px solid var(--shell);
  border-radius: var(--radius);
  padding: var(--space-8) var(--space-6) var(--space-6);
  display: flex; flex-direction: column;
  overflow: hidden;
}
/* The signature: an oversized opening quote mark set in the accent serif */
.review-card::before {
  content: "\201C";
  position: absolute; top: -0.22em; right: 0.32em;
  font-family: var(--font-accent);
  font-size: 6.5rem; line-height: 1;
  color: var(--gold); opacity: 0.16;
  pointer-events: none;
}
.review-card .star-rating { margin-bottom: var(--space-4); }
.review-card__body {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: var(--t-lead);
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: var(--space-6);
}
.review-card__foot {
  margin-top: auto; padding-top: var(--space-4);
  border-top: 1px solid var(--shell);
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--space-3); flex-wrap: wrap;
}
.review-card__name {
  font-family: var(--font-display);
  font-size: 1.05rem; letter-spacing: 0.02em; color: var(--teal);
}
.review-card__date {
  font-size: var(--t-label); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute);
}

/* Empty state — an invitation, not a dead end */
.reviews-empty {
  text-align: center; padding: var(--space-16) var(--gutter);
  border: 1px dashed var(--shell); border-radius: var(--radius);
  color: var(--ink-soft);
}
.reviews-empty .lead { margin-bottom: var(--space-6); }

/* Interactive star picker on the submission form (CSS-only, accessible).
   Inputs are DOM-ordered 5→1 and laid out row-reverse, so :hover/:checked
   light up the hovered star and every star to its left. */
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; align-self: flex-start; gap: 0.2em; }
.star-input input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.star-input label {
  cursor: pointer; line-height: 0; color: rgba(217,192,138,0.3);
  transition: color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.star-input label svg { width: 2rem; height: 2rem; fill: currentColor; }
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label { color: var(--gold); }
.star-input label:hover { transform: scale(1.08); }
.star-input input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
