/* ============================================================
   MONSOON THAI — design system
   Palette sampled directly from the printed carta and drinks menu:
   deep navy ground, amber dish names, six pastel accent chips.
   Navy anchors the hero, hours, gallery and footer; the reading
   surfaces stay on a cool off-white tinted toward the same hue.
   All color in OKLCH.
   ============================================================ */

:root {
  /* --- Neutrals: cool paper, tinted to the brand navy hue ----- */
  --paper:        oklch(97.5% 0.006 271);    /* off-white canvas         */
  --paper-2:      oklch(95% 0.009 271);      /* slightly deeper surface  */
  --ink:          oklch(27% 0.045 271);      /* navy-black text          */
  --ink-soft:     oklch(48% 0.030 271);      /* muted body text          */
  --line:         oklch(89% 0.012 271);      /* hairline borders         */
  --line-strong:  oklch(80% 0.018 271);

  /* --- Navy: the menu ground (#2d3655) ----------------------- */
  --navy:         oklch(34% 0.056 271);      /* brand ground             */
  --navy-deep:    oklch(26% 0.050 270);      /* deeper panel             */
  --navy-soft:    oklch(42% 0.050 271);      /* lifted navy              */
  --navy-tint:    oklch(94% 0.016 271);      /* faint navy wash on paper */

  /* --- Amber: dish names and primary accent (#f79346) --------- */
  --amber:        oklch(75.5% 0.151 55);     /* brand amber, use on navy */
  --amber-deep:   oklch(53% 0.150 45);       /* AA-safe amber on paper   */

  /* --- The six cover chips, in strip order -------------------- */
  --chip-cyan:     oklch(74.2% 0.094 213);   /* #5cbbcf */
  --chip-lavender: oklch(65.0% 0.073 302);   /* #9785b5 */
  --chip-coral:    oklch(77.5% 0.106 21);    /* #f29a98 */
  --chip-peach:    oklch(82.1% 0.073 54);    /* #ebb898 */
  --chip-sky:      oklch(74.9% 0.072 256);   /* #90b0db */
  --chip-jade:     oklch(76.5% 0.082 169);   /* #7cc4aa */

  /* text on navy surfaces */
  --on-navy:      oklch(97% 0.006 271);
  --on-navy-soft: oklch(84% 0.020 271);

  /* the six chips as one band, in cover order. Used for the strip that
     runs under the hero and along the top of every footer. */
  --chip-strip: linear-gradient(90deg,
    var(--chip-cyan)     0      16.667%,
    var(--chip-lavender) 16.667% 33.333%,
    var(--chip-coral)    33.333% 50%,
    var(--chip-peach)    50%     66.667%,
    var(--chip-sky)      66.667% 83.333%,
    var(--chip-jade)     83.333% 100%);

  /* shadows tinted to the navy, never neutral grey */
  --shadow-sm: 0 2px 8px oklch(26% 0.05 270 / 0.12);
  --shadow-md: 0 14px 34px oklch(26% 0.05 270 / 0.18);
  --shadow-lg: 0 28px 64px oklch(20% 0.045 270 / 0.26);

  /* --- Type -------------------------------------------------- */
  /* Montserrat is the typeface used throughout the printed menus. */
  --font-display: "Montserrat", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-logo: "Montserrat", "Trebuchet MS", system-ui, sans-serif;

  /* --- Compatibility aliases ---------------------------------
     The previous palette (jungle green + clay) is referenced by
     inline styles across the contact, review and breakfast pages.
     Mapping the old names onto the new palette keeps every page
     on-brand without editing each file. Prefer the new names in
     any new work. */
  --green:         var(--navy);
  --green-deep:    var(--navy-deep);
  --green-dark:    var(--navy-deep);
  --green-tint:    var(--navy-tint);
  --on-green:      var(--on-navy);
  --on-green-soft: var(--on-navy-soft);
  --clay:          var(--amber);
  --clay-deep:     var(--amber-deep);
  --lime:          var(--chip-peach);
  --logo-teal:     var(--chip-cyan);
  --logo-pink:     var(--chip-coral);

  --t-xs:   clamp(0.78rem, 0.74rem + 0.2vw, 0.86rem);
  --t-sm:   clamp(0.9rem, 0.86rem + 0.25vw, 1rem);
  --t-base: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  --t-lg:   clamp(1.2rem, 1.05rem + 0.7vw, 1.55rem);
  --t-xl:   clamp(1.6rem, 1.25rem + 1.6vw, 2.6rem);
  --t-2xl:  clamp(2.4rem, 1.7rem + 3.4vw, 5rem);
  --t-3xl:  clamp(3.2rem, 2rem + 6vw, 8rem);

  /* --- Space ------------------------------------------------- */
  --s-1: 0.25rem; --s-2: 0.5rem;  --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;    --s-7: 3rem;    --s-8: 4.5rem;
  --s-9: 7rem;

  --radius: 14px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  /* --- Motion (emil-style strong curves) --------------------- */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-fast: 140ms;
  --dur: 220ms;
  --dur-slow: 520ms;

  --maxw: 1240px;
}

/* ============================================================
   Reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip; /* contains the section slide-in offset without clipping shadows or breaking sticky */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* amber is a light accent: it always carries dark navy text, never white */
::selection { background: var(--amber); color: var(--navy-deep); }

:focus-visible {
  outline: 2.5px solid var(--clay);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--clay-deep);
}

.skip-link {
  position: absolute; left: -999px; top: auto;
}
.skip-link:focus {
  left: 1rem; top: 1rem; z-index: 100;
  background: var(--green-dark); color: var(--on-green);
  padding: 0.7rem 1rem; border-radius: 10px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 54px;
  padding: 0.85rem 1.7rem;
  border: 1.5px solid var(--bd);
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
}
.btn:active { transform: scale(0.97); }

.btn--solid { --bg: var(--navy); --fg: var(--on-navy); --bd: var(--navy); }
.btn--solid:hover { --bg: var(--navy-deep); --bd: var(--navy-deep); }
/* amber fill keeps dark navy text so the label stays legible (WCAG AA) */
.btn--clay  { --bg: var(--amber); --fg: var(--navy-deep); --bd: var(--amber); }
.btn--clay:hover { --bg: oklch(70% 0.155 50); --bd: oklch(70% 0.155 50); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line-strong); }
.btn--ghost:hover { --bd: var(--navy); --fg: var(--navy-deep); }
.btn--on-dark { --bg: transparent; --fg: var(--on-navy); --bd: oklch(84% 0.02 271 / 0.5); }
.btn--on-dark:hover { --bg: oklch(97% 0.006 271 / 0.12); --bd: var(--amber); }

.btn .arrow { transition: transform var(--dur) var(--ease-out); }
@media (hover: hover) { .btn:hover .arrow { transform: translateX(4px); } }

/* ============================================================
   Spice indicator (replaces 🌶 emojis — meaning preserved)
   ============================================================ */
.spice {
  display: inline-flex; gap: 2px; vertical-align: middle;
  margin-right: 0.5rem; transform: translateY(-1px);
}
/* chili red, matching the marker printed on the carta */
.spice svg { width: 13px; height: 13px; display: block; color: oklch(54% 0.17 25); }
.spice[hidden] { display: none; }

/* ============================================================
   Scroll-reveal primitives
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity;
}
.reveal.is-in { opacity: 1; transform: none; }

/* clip-reveal for color blocks / images — pure CSS load animation.
   (Must NOT depend on IntersectionObserver: a zero-area initial clip
   makes IO report 0% intersection and never fire, deadlocking the reveal.) */
.clip-reveal {
  animation: clipReveal var(--dur-slow) var(--ease-out) both;
  animation-delay: var(--reveal-delay, 0ms);
}
@keyframes clipReveal {
  from { clip-path: inset(0 0 100% 0); }
  to   { clip-path: inset(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: opacity var(--dur) ease; }
  .clip-reveal { animation: none; clip-path: none; }
  .btn:hover { transform: none; }
}

/* ============================================================
   The cover colour strip
   Both printed menus carry a six-chip band across the foot of the
   cover. Reused here as a section divider and along the top of the
   footer, which is the closest thing the site has to a back cover.
   ============================================================ */
.chip-strip { height: 6px; background: var(--chip-strip); }

/* ============================================================
   Footer (shared)
   ============================================================ */
.site-footer {
  position: relative;
  background: var(--green-dark);
  color: var(--on-green-soft);
  padding: var(--s-8) 0 var(--s-6);
}
.site-footer::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: var(--chip-strip);
}
/* rotate the chips through the footer column headings */
.site-footer .foot-grid > div:nth-child(2) h4 { color: var(--chip-jade); }
.site-footer .foot-grid > div:nth-child(3) h4 { color: var(--chip-cyan); }
.site-footer a:hover { color: var(--lime); }
.site-footer .foot-nav { margin-top: var(--s-4); }
.site-footer .foot-nav a { color: var(--chip-peach); font-weight: 600; font-size: var(--t-sm); }
.site-footer .foot-nav a:hover { color: var(--amber); }
.site-footer .foot-grid {
  display: grid; gap: var(--s-6);
  grid-template-columns: 1.4fr 1fr 1fr;
}
.site-footer h4 {
  font-family: var(--font-body); font-size: var(--t-xs);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--lime); margin-bottom: var(--s-3); font-weight: 700;
}
.site-footer .brandmark {
  font-family: var(--font-logo); font-weight: 800;
  font-size: var(--t-lg); color: var(--on-green); letter-spacing: 0;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.site-footer .socials { display: flex; gap: 0.8rem; margin-top: var(--s-4); }
.site-footer .socials a {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid oklch(84% 0.02 271 / 0.35);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.site-footer .socials a:hover { transform: translateY(-3px); border-color: var(--amber); background: oklch(97% 0.006 271 / 0.08); }
.site-footer .socials svg { width: 18px; height: 18px; }
.site-footer .legal {
  margin-top: var(--s-7); padding-top: var(--s-5);
  border-top: 1px solid oklch(84% 0.02 271 / 0.18);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  font-size: var(--t-xs); color: oklch(80% 0.02 271 / 0.75);
}
@media (max-width: 760px) {
  .site-footer .foot-grid { grid-template-columns: 1fr; gap: var(--s-5); }
}

/* ============================================================
   MENU PAGES — sticky header, category nav, dish rows
   ============================================================ */
.menu-header {
  position: sticky; top: 0; z-index: 30;
  background: oklch(97.5% 0.006 271 / 0.86);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.menu-header .bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 0; min-height: 62px;
}
.menu-header .mark { display: inline-flex; align-items: center; gap: 0.55rem; }

/* logo wordmark images (extracted + recoloured from the brand logo) */
.markimg { height: 1.6rem; width: auto; display: block; }
.topbar .markimg { height: 1.7rem; }
.wordmark-h1 { margin: 0; line-height: 0; }
.wordmark-h1 img { width: min(82%, 540px); height: auto; display: block; }
.site-footer .brandmark { line-height: 0; }
.site-footer .brandmark img { height: 1.9rem; width: auto; display: block; }
@media (max-width: 560px) { .wordmark-h1 img { width: min(86%, 380px); } }
.menu-header .mark svg { width: 26px; height: 26px; color: var(--green-deep); }
.menu-header .head-actions { display: flex; align-items: center; gap: 0.5rem; }
.lang-switch { display: inline-flex; border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill); overflow: hidden; }
.lang-switch a { padding: 0.4rem 0.85rem; font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.08em; color: var(--ink-soft); transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out); }
.lang-switch a.is-active { background: var(--green); color: var(--on-green); }
.lang-switch a:not(.is-active):hover { background: var(--green-tint); color: var(--green-deep); }
.head-actions .home-link { font-size: var(--t-sm); color: var(--ink-soft); }
.head-actions .home-link:hover { color: var(--green-deep); }

/* category chip nav */
.catnav {
  position: sticky; top: 62px; z-index: 25;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.catnav .scroller {
  display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none;
  padding: 0.7rem 0; -webkit-overflow-scrolling: touch;
}
.catnav .scroller::-webkit-scrollbar { display: none; }
.catnav .scroller { scroll-padding-inline: 1.25rem; }
/* trailing spacer so the last chips (Beers/Coffee) are never clipped at the edge */
.catnav .scroller::after { content: ""; flex: 0 0 1rem; }
.catnav a {
  flex: 0 0 auto; padding: 0.45rem 0.95rem; border-radius: var(--radius-pill);
  font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.04em; white-space: nowrap;
  color: var(--ink-soft); border: 1.5px solid var(--line);
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.catnav a:hover { border-color: var(--green); color: var(--green-deep); }
.catnav a.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* menu hero */
.menu-hero {
  padding: var(--s-8) 0 var(--s-6);
  display: grid; align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: 1.1fr 0.9fr;
}
.menu-hero .mh-art { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow-lg); }
.menu-hero .mh-art img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .menu-hero { grid-template-columns: 1fr; }
  .menu-hero .mh-art { order: -1; aspect-ratio: 16 / 9; }
}
.menu-hero .eyebrow { display: block; margin-bottom: var(--s-3); }
/* scaled down from --t-2xl so the headline holds two lines beside the
   photo instead of spilling to three */
.menu-hero h1 { font-size: clamp(2rem, 1.35rem + 2.4vw, 3.4rem); }
.menu-hero h1 .accent { color: var(--amber-deep); }
.menu-hero .intro { margin-top: var(--s-4); max-width: 54ch; color: var(--ink-soft); font-size: var(--t-lg); }
.spice-legend {
  margin-top: var(--s-5); display: inline-flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  padding: 0.7rem 1.1rem; border-radius: var(--radius); background: var(--green-tint);
  font-size: var(--t-sm); color: var(--green-deep);
}

/* category sections — inset content toward centre so the disc shadows
   have room (no longer clipped); body overflow-x:clip contains the slide. */
.menu-section { scroll-margin-top: 8.5rem; padding: var(--s-7) clamp(0.75rem, 3.5vw, 3rem); border-top: 1px solid var(--line); }
.menu-section h2 { font-size: var(--t-xl); }
/* Each section carries one of the six cover chips, echoing the coloured
   side-tabs printed down the edge of the carta. Set --sec-accent per
   section in the markup; it falls back to amber. */
.menu-section { --sec-accent: var(--amber-deep); }
.menu-section .sec-num {
  font-family: var(--font-display); font-weight: 800; font-size: var(--t-lg);
  color: var(--navy); position: relative; padding-left: 0.85rem;
}
.menu-section .sec-num::before {
  content: ""; position: absolute; left: 0; top: 0.1em; bottom: 0.1em; width: 4px;
  border-radius: 2px; background: var(--sec-accent);
}
.menu-section .sec-note { color: var(--ink-soft); font-size: var(--t-sm); margin-top: 0.2rem; }

/* sec-head becomes an alternating image + text row */
.menu-section .sec-head { margin-bottom: var(--s-5); display: flex; align-items: center; gap: clamp(1rem, 4vw, 2.4rem); }
.menu-section .sec-head.has-art { display: grid; }
.sec-head.art-left  { grid-template-columns: clamp(84px, 20vw, 210px) 1fr; }
.sec-head.art-right { grid-template-columns: 1fr clamp(84px, 20vw, 210px); }
.sec-head.art-right .sec-art { order: 2; }
.sec-head.art-right .sec-textwrap { order: 1; }
.sec-textwrap { display: flex; align-items: baseline; gap: 1rem; min-width: 0; }

/* the circular "plate" that slides in */
.sec-art { position: relative; aspect-ratio: 1; border-radius: 50%; box-shadow: var(--shadow-md); }
.sec-art.is-photo { overflow: hidden; }
.sec-art.is-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sec-art.is-cut { background: radial-gradient(circle at 50% 42%, var(--navy-tint), oklch(89% 0.022 271)); }
.sec-art.is-cut img {
  position: absolute; inset: 9%; width: 82%; height: 82%; object-fit: contain;
  filter: drop-shadow(0 10px 14px oklch(26% 0.05 270 / 0.32));
}
/* slide-in motion (alternating sides) */
.sec-art { opacity: 0; transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.art-left  .sec-art { transform: translateX(-46px); }
.art-right .sec-art { transform: translateX(46px); }
.sec-art.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .sec-art { opacity: 1; transform: none; } }

/* dishes: two-column on wide, single on narrow */
.dish-list { display: grid; gap: var(--s-5) var(--s-7); grid-template-columns: repeat(2, 1fr); }
.dish-list.single { grid-template-columns: 1fr; max-width: 760px; }
.subgroup { grid-column: 1 / -1; margin-top: var(--s-4); }
.subgroup h3 {
  font-family: var(--font-body); font-weight: 700; font-size: var(--t-xs);
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--clay-deep);
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--line);
}
.subgroup + .dish, .subgroup ~ .dish { }

.dish { display: grid; gap: 0.25rem; }
.dish .top { display: flex; align-items: baseline; gap: 0.5rem; }
.dish .name { font-family: var(--font-display); font-weight: 700; font-size: var(--t-base); letter-spacing: -0.01em; }
.dish .leader { flex: 1; border-bottom: 1.5px dotted var(--line-strong); transform: translateY(-3px); }
.dish .price { font-family: var(--font-body); font-weight: 700; color: var(--green-deep); white-space: nowrap; }
.dish .desc { color: var(--ink-soft); font-size: var(--t-sm); line-height: 1.55; max-width: 60ch; }
.dish .tags { color: var(--clay-deep); font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.04em; }

@media (max-width: 720px) {
  .dish-list, .dish-list.single { grid-template-columns: 1fr; }
}

/* "more info" + contact CTA */
.info-band { background: var(--green-tint); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); margin-top: var(--s-7); }
.info-band h2 { font-size: var(--t-lg); color: var(--green-deep); }
.info-band p { margin-top: 0.5rem; color: var(--ink-soft); }
.info-band .pills { margin-top: var(--s-4); display: flex; flex-wrap: wrap; gap: 0.6rem; }
.info-band .pill { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-pill); padding: 0.5rem 1rem; font-size: var(--t-sm); font-weight: 600; }

.menu-cta { padding: var(--s-8) 0; text-align: center; }
.menu-cta h2 { font-size: var(--t-xl); }
.menu-cta p { margin: var(--s-3) auto 0; max-width: 48ch; color: var(--ink-soft); }
.menu-cta .row { margin-top: var(--s-5); display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* nav-locked helper (mobile) */
body.nav-locked { overflow: hidden; }

/* ============================================================
   NAVY MENU PAGES
   The carta and drinks list are printed on navy, so the menu
   pages run navy end to end. Add class="theme-navy" to <body>.
   Dish names take the printed amber, descriptions the soft white.
   ============================================================ */
body.theme-navy { background: var(--navy); color: var(--on-navy); }

/* header + category nav */
.theme-navy .menu-header {
  background: oklch(34% 0.056 271 / 0.88);
  border-bottom-color: oklch(84% 0.02 271 / 0.16);
}
.theme-navy .menu-header .mark svg { color: var(--chip-jade); }
.theme-navy .lang-switch { border-color: oklch(84% 0.02 271 / 0.35); }
.theme-navy .lang-switch a { color: var(--on-navy-soft); }
.theme-navy .lang-switch a.is-active { background: var(--amber); color: var(--navy-deep); }
.theme-navy .lang-switch a:not(.is-active):hover { background: oklch(97% 0.006 271 / 0.1); color: var(--on-navy); }
.theme-navy .head-actions .home-link { color: var(--on-navy-soft); }
.theme-navy .head-actions .home-link:hover { color: var(--amber); }

.theme-navy .catnav { background: var(--navy); border-bottom-color: oklch(84% 0.02 271 / 0.16); }
/* each chip carries its section's colour, so the nav previews the
   palette and the active state matches the section you land in */
.theme-navy .catnav a { color: var(--on-navy-soft); border-color: oklch(84% 0.02 271 / 0.25); }
.theme-navy .catnav a:hover { border-color: var(--sec-accent, var(--amber)); color: var(--sec-accent, var(--amber)); }
.theme-navy .catnav a.is-active {
  background: var(--sec-accent, var(--amber));
  color: var(--navy-deep);
  border-color: var(--sec-accent, var(--amber));
}

/* hero */
.theme-navy .eyebrow { color: var(--amber); }
.theme-navy .menu-hero h1 { color: var(--on-navy); }
.theme-navy .menu-hero h1 .accent { color: var(--amber); }
.theme-navy .menu-hero .intro { color: var(--on-navy-soft); }
.theme-navy .spice-legend { background: oklch(97% 0.006 271 / 0.08); color: var(--on-navy-soft); }

/* sections */
.theme-navy .menu-section { border-top-color: oklch(84% 0.02 271 / 0.14); }
.theme-navy .menu-section h2 { color: var(--on-navy); }
.theme-navy .menu-section .sec-num { color: var(--on-navy-soft); }
.theme-navy .menu-section .sec-note { color: var(--on-navy-soft); }
.theme-navy .sec-art.is-cut { background: radial-gradient(circle at 50% 42%, var(--navy-soft), var(--navy-deep)); }
/* the circular section photo picks up a ring in that section's chip,
   standing in for the coloured tab printed down the page edge */
.theme-navy .sec-art.is-photo {
  box-shadow: 0 0 0 4px var(--navy), 0 0 0 7px var(--sec-accent), var(--shadow-md);
}

/* dish rows, styled after the printed carta */
.theme-navy .dish .name { color: var(--amber); }
.theme-navy .dish .price { color: var(--on-navy); }
.theme-navy .dish .desc { color: var(--on-navy-soft); }
.theme-navy .dish .leader { border-bottom-color: oklch(84% 0.02 271 / 0.3); }
.theme-navy .dish .tags { color: var(--chip-peach); }
/* subgroup rules take the section chip, so Wine reads coral throughout,
   Cocktails lavender, and so on */
.theme-navy .subgroup h3 { color: var(--sec-accent); border-bottom-color: oklch(84% 0.02 271 / 0.18); }

/* info band + closing CTA */
.theme-navy .info-band {
  background: oklch(97% 0.006 271 / 0.07);
  border-left: 4px solid var(--sec-accent);
}
.theme-navy .info-band h2 { color: var(--on-navy); }
.theme-navy .info-band p { color: var(--on-navy-soft); }
.theme-navy .info-band .pill {
  background: transparent; border-color: oklch(84% 0.02 271 / 0.3); color: var(--on-navy);
}
.theme-navy .info-band .pill a:hover { color: var(--amber); }
.theme-navy .menu-cta h2 { color: var(--on-navy); }
.theme-navy .menu-cta p { color: var(--on-navy-soft); }
.theme-navy .menu-cta .btn--ghost { --fg: var(--on-navy); --bd: oklch(84% 0.02 271 / 0.45); }
.theme-navy .menu-cta .btn--ghost:hover { --bd: var(--amber); --fg: var(--amber); }

/* the footer stays a shade deeper so it still reads as its own band */
.theme-navy .site-footer { background: var(--navy-deep); }

/* ============================================================
   FORMS + CONTACT / FEEDBACK pages
   ============================================================ */
.page-hero { padding: var(--s-8) 0 var(--s-6); }
.page-hero h1 { font-size: var(--t-2xl); }
.page-hero h1 .accent { color: var(--green); }
.page-hero .intro { margin-top: var(--s-4); max-width: 52ch; color: var(--ink-soft); font-size: var(--t-lg); }

.contact-grid {
  display: grid; gap: var(--s-7); grid-template-columns: 1.2fr 0.8fr;
  padding-bottom: var(--s-9); align-items: start;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: var(--s-6); } }

.form-card {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.4rem, 4vw, 2.4rem);
}
.form-field { display: grid; gap: 0.45rem; margin-bottom: var(--s-5); }
.form-field label {
  font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft);
}
.form-field input, .form-field textarea {
  font-family: var(--font-body); font-size: var(--t-base); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line-strong);
  border-radius: var(--radius); padding: 0.85rem 1rem; width: 100%;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.form-field textarea { resize: vertical; min-height: 150px; }
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 4px oklch(34% 0.056 271 / 0.16);
}
.form-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: var(--s-2); }
.form-actions input[type="submit"], .form-actions input[type="reset"] {
  font: inherit; cursor: pointer;
}

.contact-side { display: grid; gap: var(--s-5); }
.contact-method {
  display: grid; gap: 0.2rem; padding: var(--s-5);
  background: var(--green-tint); border-radius: var(--radius);
}
.contact-method .ic { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--green-deep); font-weight: 700; font-size: var(--t-xs); letter-spacing: 0.16em; text-transform: uppercase; }
.contact-method .ic svg { width: 17px; height: 17px; }
.contact-method a, .contact-method span { color: var(--ink); font-size: var(--t-base); }
.contact-method a:hover { color: var(--green-deep); }
.note-row { display: inline-flex; gap: 0.6rem; align-items: flex-start; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1.1rem; color: var(--ink-soft); font-size: var(--t-sm); margin-bottom: var(--s-5); }

/* feedback chooser */
.feedback-grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(3, 1fr); padding-bottom: var(--s-9); }
@media (max-width: 720px) { .feedback-grid { grid-template-columns: 1fr; } }
.feedback-card {
  display: grid; gap: 0.6rem; justify-items: center; text-align: center;
  padding: var(--s-7) var(--s-5); border-radius: var(--radius-lg);
  border: 1.5px solid var(--line); background: var(--paper-2);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .feedback-card:hover { transform: translateY(-4px); border-color: var(--green); box-shadow: var(--shadow-md); }
}
.feedback-card:active { transform: scale(0.98); }
.feedback-card .face { width: 64px; height: 64px; }
.feedback-card.great .face { color: var(--green); }
.feedback-card.okay .face { color: var(--clay); }
.feedback-card.meh .face { color: var(--ink-soft); }
.feedback-card h3 { font-size: var(--t-lg); }
.feedback-card p { color: var(--ink-soft); font-size: var(--t-sm); }

/* centred confirmation (thanks) */
.confirm { min-height: 70dvh; display: grid; place-items: center; text-align: center; padding: var(--s-8) 0; }
.confirm .inner { max-width: 52ch; }
.confirm .check { width: 84px; height: 84px; color: var(--green); margin: 0 auto var(--s-5); }
.confirm h1 { font-size: var(--t-2xl); }
.confirm p { margin-top: var(--s-4); color: var(--ink-soft); font-size: var(--t-lg); }
.confirm .row { margin-top: var(--s-6); display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   LANDING gallery band — mosaic marquee
   Tiles drift right to left forever. Hovering anywhere freezes
   the drift; the hovered tile lifts and scales up.
   ============================================================ */
/* the marquee carries its own vertical breathing room, so the section
   only needs padding above the heading and a little below the tiles */
.gallery { background: var(--navy-deep); color: var(--on-navy); padding: var(--s-8) 0 var(--s-6); overflow: clip; }
.gallery .g-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; margin-bottom: var(--s-6); }
.gallery h2 { color: var(--on-navy); font-size: var(--t-xl); }
.gallery .g-head .eyebrow { color: var(--chip-peach); }

/* viewport: full-bleed, with head-room so a scaled tile is never clipped */
.g-marquee {
  position: relative;
  overflow: hidden;
  /* headroom so a hovered/scaled tile is never clipped top or bottom */
  padding-block: clamp(2rem, 4vw, 3.5rem);
  /* soften both edges so tiles enter and leave instead of popping */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.g-track {
  display: flex;
  width: max-content;
  /* no flex gap here on purpose: spacing between the two sets comes
     solely from .g-set margin-right, so the track is exactly twice one
     set and the -50% keyframe lands on a perfect seam */
  animation: g-scroll 64s linear infinite;
  will-change: transform;
}
@keyframes g-scroll {
  from { transform: translate3d(0, 0, 0); }
  /* the track holds two identical sets; -50% lands exactly on the seam */
  to   { transform: translate3d(-50%, 0, 0); }
}

/* One set = a row of columns. Each column is a vertical stack whose tile
   heights add up to exactly three rows, and every tile in a column shares
   the column width — so the wall packs solid with no gaps. Both sets are
   identical, so the -50% seam still lands perfectly. */
.g-set {
  --g-row: clamp(94px, 11.5vw, 148px);   /* one row's height          */
  --g-gap: var(--s-4);                    /* gap between tiles/columns  */
  display: flex;
  gap: var(--g-gap);
  margin-right: var(--g-gap);             /* keeps the gap even across the seam */
}
.g-col {
  display: flex;
  flex-direction: column;
  gap: var(--g-gap);
  flex: none;
  /* three rows tall, including the two inner gaps */
  height: calc(3 * var(--g-row) + 2 * var(--g-gap));
}
/* column widths give the mosaic its varied rhythm */
.g-col.w-s { width: clamp(122px, 15vw, 186px); }
.g-col.w-m { width: clamp(150px, 19vw, 240px); }
.g-col.w-l { width: clamp(210px, 26vw, 330px); }

.g-item {
  margin: 0;
  flex: none;
  width: 100%;
  height: var(--g-row);                   /* r1: one row               */
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow-md);
  cursor: zoom-in;
  transition: transform var(--dur-slow) var(--ease-out),
              box-shadow var(--dur-slow) var(--ease-out);
}
.g-item.r2 { height: calc(2 * var(--g-row) + var(--g-gap)); }
.g-item.r3 { height: calc(3 * var(--g-row) + 2 * var(--g-gap)); }
.g-item img { width: 100%; height: 100%; object-fit: cover; }

/* columns cycle through the six chips, revealed as a ring on hover */
.g-col:nth-child(6n+1) { --tile-accent: var(--chip-cyan); }
.g-col:nth-child(6n+2) { --tile-accent: var(--chip-lavender); }
.g-col:nth-child(6n+3) { --tile-accent: var(--chip-coral); }
.g-col:nth-child(6n+4) { --tile-accent: var(--chip-peach); }
.g-col:nth-child(6n+5) { --tile-accent: var(--chip-sky); }
.g-col:nth-child(6n)   { --tile-accent: var(--chip-jade); }

@media (hover: hover) and (pointer: fine) {
  .g-marquee:hover .g-track { animation-play-state: paused; }
  .g-item:hover {
    transform: scale(1.08);
    box-shadow: 0 0 0 3px var(--tile-accent), var(--shadow-lg);
    position: relative;
    z-index: 2;
  }
}

/* keyboard parity: focusing a tile freezes and lifts it too */
.g-marquee:focus-within .g-track { animation-play-state: paused; }
.g-item:focus-within {
  transform: scale(1.08);
  box-shadow: 0 0 0 3px var(--tile-accent), var(--shadow-lg);
  position: relative; z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .g-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .g-track { animation: none; }
  .g-item:hover, .g-item:focus-within { transform: none; }
}

/* the track is wide, so keep the drift gentle */
.g-track { animation-duration: 88s; }

@media (max-width: 700px) {
  .g-set { --g-row: clamp(84px, 22vw, 118px); }
  .g-track { animation-duration: 60s; }
}

/* ============================================================
   Lightbox — click any Fotos tile to view it large
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: oklch(18% 0.04 270 / 0.93);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  opacity: 0; transition: opacity var(--dur) var(--ease-out);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lb-stage { margin: 0; display: flex; flex-direction: column; gap: 0.75rem; max-width: min(1100px, 92vw); }
.lb-stage img {
  max-width: 100%; max-height: 82vh; width: auto; height: auto; object-fit: contain;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--navy);
}
.lb-cap { color: var(--on-navy-soft); font-size: var(--t-sm); text-align: center; margin: 0; }

.lb-btn {
  position: fixed; z-index: 2; display: grid; place-items: center; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid oklch(84% 0.02 271 / 0.4);
  background: oklch(26% 0.05 270 / 0.6); color: var(--on-navy);
  font-size: 1.6rem; line-height: 1;
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.lb-btn:hover { background: var(--amber); color: var(--navy-deep); border-color: var(--amber); }
.lb-close { top: clamp(1rem, 3vw, 1.6rem); right: clamp(1rem, 3vw, 1.6rem); }
.lb-prev { left: clamp(0.5rem, 2vw, 1.6rem); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(0.5rem, 2vw, 1.6rem); top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%); }
.lb-next:hover { transform: translateY(-50%); }
.lb-prev:active, .lb-next:active { transform: translateY(-50%) scale(0.94); }
.lb-close:active { transform: scale(0.94); }
.lb-count {
  position: fixed; bottom: clamp(1rem, 3vw, 1.6rem); left: 50%; transform: translateX(-50%);
  color: var(--on-navy-soft); font-size: var(--t-xs); letter-spacing: 0.12em;
}
/* while the lightbox is open, lock the page and freeze the marquee */
body.lb-open { overflow: hidden; }
body.lb-open .g-track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) { .lightbox { transition: none; } }
@media (max-width: 560px) {
  .lb-btn { width: 44px; height: 44px; font-size: 1.3rem; }
}

/* ============================================================
   ABOUT / NOSOTROS page
   ============================================================ */
.about { padding: var(--s-8) 0 var(--s-9); }
.about-grid {
  display: grid; gap: clamp(1.5rem, 5vw, 4rem);
  grid-template-columns: 0.9fr 1.1fr; align-items: start;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-media {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  position: sticky; top: 6rem;
}
.about-media img { width: 100%; height: auto; display: block; }
@media (max-width: 860px) { .about-media { position: static; } }
.about-copy .eyebrow { display: block; margin-bottom: var(--s-3); color: var(--amber); }
.about-copy h1 { font-size: var(--t-2xl); color: var(--on-navy); }
.about-lang { margin-top: var(--s-6); }
.about-lang + .about-lang {
  margin-top: var(--s-7); padding-top: var(--s-6);
  border-top: 1px solid oklch(84% 0.02 271 / 0.16);
}
.about-lang h2 {
  font-family: var(--font-display); font-size: var(--t-lg); letter-spacing: 0.02em;
  color: var(--amber); margin-bottom: var(--s-3);
}
.about-lang p { color: var(--on-navy-soft); margin-bottom: var(--s-3); max-width: 62ch; }
