/* ══════════════════════════════════════════════════════════════════════════
   VANMENU · SHARK CLUB · DARK + LIGHT PREMIUM THEME
   Mobile-first · 390px base · 640px tablet · 860px desktop
   ══════════════════════════════════════════════════════════════════════════ */

/* ── TOKENS — DARK (default) ────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:        #0C0C0C;
  --surface:   #161616;
  --surface-2: #202020;
  --surface-3: #282828;

  /* Borders */
  --border:    #2A2A2A;
  --border-2:  #333333;

  /* Brand */
  --gold:      #C8922A;
  --gold-2:    #E8B84B;
  --gold-dim:  rgba(200, 146, 42, 0.12);
  --gold-glow: rgba(200, 146, 42, 0.22);

  /* Text */
  --text:      #F2EDE4;
  --text-2:    #9B9489;
  --text-3:    #524E49;

  /* Radii */
  --radius:    16px;
  --radius-sm: 10px;
  --radius-xs: 6px;

  /* Fonts */
  --display-font: "Cormorant Garamond", Georgia, serif;
  --body-font: Inter, "Noto Naskh Arabic", system-ui, sans-serif;

  /* Bottom nav height + topbar height */
  --nav-h:     64px;
  --topbar-h:  60px;
}

/* ── TOKENS — LIGHT override ────────────────────────────────────────────── */
[data-theme="light"] {
  --bg:        #FFFFFF;
  --surface:   #F5F5F5;
  --surface-2: #EBEBEB;
  --surface-3: #E0E0E0;
  --border:    #DEDEDE;
  --border-2:  #CACACA;
  --gold:      #A87420;
  --gold-2:    #C8922A;
  --gold-dim:  rgba(168, 116, 32, 0.10);
  --gold-glow: rgba(168, 116, 32, 0.18);
  --text:      #111111;
  --text-2:    #555555;
  --text-3:    #999999;
}

/* ── RESET ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body[dir="rtl"] { direction: rtl; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
svg { display: block; flex-shrink: 0; }

/* ── PAGE SHELL ─────────────────────────────────────────────────────────── */
.page-shell {
  min-height: 100vh;
  /* space for bottom nav + safe area */
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}

/* ════════════════════════════════════════════════════════════════════════
   TOPBAR — sticky, always visible
   ════════════════════════════════════════════════════════════════════════ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: var(--topbar-h);
  background: rgba(10,10,10,0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 200ms, border-color 200ms;
}

/* Light mode topbar */
[data-theme="light"] .topbar {
  background: rgba(255,255,255,0.94);
  border-bottom-color: rgba(0,0,0,0.08);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Brand logo */
.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 10px 4px 4px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(8,8,8,0.6);
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  transition: border-color 160ms;
  -webkit-tap-highlight-color: transparent;
}

[data-theme="light"] .brand-chip {
  border-color: rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.7);
  color: #111;
}

.brand-logo {
  height: 28px;
  width: auto;
  display: block;
  /* Site logo is likely white on dark — keep as-is in dark mode */
}

/* In light mode, the logo (white) needs to be made dark */
[data-theme="light"] .brand-logo { filter: brightness(0); }

.brand-logo-fallback {
  display: none; /* shown via onerror JS */
  align-items: center;
  gap: 8px;
}

.brand-chip__mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  flex-shrink: 0;
}

/* Language button */
.language-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(8,8,8,0.6);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: border-color 160ms;
  -webkit-tap-highlight-color: transparent;
}

[data-theme="light"] .language-button {
  border-color: rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.7);
  color: #111;
}

.language-button:focus-visible { outline: 2px solid var(--gold); }

/* Theme toggle */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(8,8,8,0.6);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 160ms, background 160ms;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

[data-theme="light"] .theme-toggle {
  border-color: rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.7);
  color: #111;
}

.theme-toggle:focus-visible { outline: 2px solid var(--gold); }

/* Sun/Moon icon swap */
.theme-toggle .icon-sun  { display: block; }   /* visible in dark mode */
.theme-toggle .icon-moon { display: none; }    /* hidden in dark mode */

[data-theme="light"] .theme-toggle .icon-sun  { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ── DEMO DISCLAIMER ───────────────────────────────────────────────────── */
.demo-disclaimer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  background:
    linear-gradient(135deg, rgba(200,146,42,0.16), rgba(255,255,255,0.03)),
    rgba(12,12,12,0.96);
  color: rgba(242,237,228,0.82);
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1.4;
}

.demo-disclaimer[hidden] { display: none; }

.demo-disclaimer p {
  max-width: 860px;
}

.demo-disclaimer button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: rgba(242,237,228,0.78);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
}

.demo-disclaimer button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

[data-theme="light"] .demo-disclaimer {
  border-bottom-color: rgba(0,0,0,0.08);
  background:
    linear-gradient(135deg, var(--gold-dim), rgba(0,0,0,0.02)),
    rgba(255,255,255,0.96);
  color: #443B2D;
}

[data-theme="light"] .demo-disclaimer button {
  border-color: rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.04);
  color: #443B2D;
}

/* ════════════════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  background: #080808;
  /* No fixed height — height driven by content + padding-top below.
     This eliminates the blank dark space above the title on mobile. */
}

.hero__media {
  position: absolute;
  inset: 0;
  background-image:
    var(--restaurant-cover-image, none),
    var(--restaurant-cover-fallback-1, none),
    var(--restaurant-cover-fallback-2, none);
  background-size: cover;
  background-position: var(--restaurant-cover-position, center center);
  opacity: 0.60;
  /* Bokeh / depth-of-field effect — scale up slightly so blurred edges
     don't reveal the background colour behind the image */
  filter: blur(5px);
  transform: scale(1.08);
}

/* Vignette: clear at top (topbar readable), heavy at bottom (text over photo) */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,8,8,0.55) 0%,
    rgba(8,8,8,0.0)  30%,
    rgba(8,8,8,0.0)  50%,
    rgba(8,8,8,0.82) 85%,
    rgba(8,8,8,0.97) 100%
  );
}

/* ── HERO CONTENT ───────────────────────────────────────────────────────── */
/* Hero text is always warm-white — it sits on the dark photo overlay.
   padding-top controls how much photo is visible above the text block.
   Using clamp() so it scales gracefully between small & large phones. */
.hero__content {
  position: relative;
  z-index: 1;
  padding: clamp(80px, 22vw, 180px) 20px 28px;
  color: #F2EDE4; /* always light, regardless of theme */
}

.hero__location {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.45); /* always light muted */
  margin-bottom: 10px;
}

.hero__name {
  font-family: var(--display-font);
  font-size: clamp(3.8rem, 18vw, 8.5rem);
  font-weight: 600;
  line-height: 0.88;
  color: #F2EDE4; /* always light */
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.hero__subtitle {
  font-family: var(--display-font);
  font-size: clamp(1.1rem, 5vw, 2.4rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(242,237,228,0.65); /* always light muted */
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.hero__tagline {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 18px;
}

.hero__status-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.hero__badge {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__address {
  font-size: 0.82rem;
  color: rgba(242,237,228,0.45); /* always light muted */
  font-weight: 500;
}

.keep-ltr { direction: ltr; unicode-bidi: isolate; }

/* Hero CTA row */
.hero__actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

/* ── BUTTONS ────────────────────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  border-radius: var(--radius-sm);
  padding: 0 22px;
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: none;
  transition: transform 130ms, opacity 130ms;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  cursor: pointer;
}

.button:active { transform: scale(0.97); opacity: 0.9; }

/* Solid gold */
.button--gold {
  background: var(--gold);
  color: #fff;
  letter-spacing: 0.02em;
}
.button--gold:hover { background: #d9a030; }

/* Ghost (white border) */
.button--ghost {
  border: 1.5px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  padding: 0 18px;
}
.button--ghost:hover { border-color: rgba(255,255,255,0.4); }

/* Hero ghost button: always warm-white — hero is always on dark photo
   regardless of light/dark theme toggle. Context-based override. */
.hero__actions .button--ghost {
  color: #F2EDE4;
  border-color: rgba(255,255,255,0.38);
}
.hero__actions .button--ghost:hover {
  border-color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.12);
}

/* Gold outline (map section) */
.button--outline {
  border: 1.5px solid var(--gold);
  background: transparent;
  color: var(--gold-2);
  width: 100%;
  letter-spacing: 0.02em;
}
.button--outline:hover { background: var(--gold-dim); }

/* ════════════════════════════════════════════════════════════════════════
   MAP SECTION
   ════════════════════════════════════════════════════════════════════════ */
.map-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.map-eyebrow {
  padding: 20px 20px 12px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
}

.map-iframe-wrap {
  /* Card-style on mobile: margins, rounded corners, border */
  margin: 0 16px;
  width: calc(100% - 32px);
  height: 310px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 32px rgba(0,0,0,0.45), 0 1px 0 rgba(255,255,255,0.04) inset;
}

.map-iframe-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  /* Dark mode: darken + desaturate Google Maps' bright default palette */
  filter: brightness(0.80) saturate(0.62) contrast(1.06);
}

.map-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.map-info h3 {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.map-info p {
  font-size: 0.84rem;
  color: var(--text-2);
  line-height: 1.5;
}

/* Travel pills */
.travel-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.travel-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}

.travel-item svg { color: var(--gold); }

/* ════════════════════════════════════════════════════════════════════════
   SEARCH / CONTROL PANEL
   ════════════════════════════════════════════════════════════════════════ */
main { max-width: 860px; margin: 0 auto; }

.control-panel {
  position: sticky;
  top: var(--topbar-h); /* sits just below sticky topbar */
  z-index: 10;
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  background: rgba(12,12,12,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 160ms, box-shadow 160ms;
}

.search-wrap:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.search-icon { color: var(--text-3); flex-shrink: 0; }

.search-wrap input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.94rem;
}
.search-wrap input::placeholder { color: var(--text-3); }

.currency-note {
  padding: 10px 16px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.01em;
  line-height: 1.4;
  border-bottom: 1px solid var(--border);
}

/* ════════════════════════════════════════════════════════════════════════
   TABS
   ════════════════════════════════════════════════════════════════════════ */
.menu-section { padding-bottom: 32px; }

.tabs {
  position: sticky;
  /* topbar (60px) + control panel search-only (~76px) */
  top: calc(var(--topbar-h) + 76px);
  z-index: 9;
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: rgba(12,12,12,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex-shrink: 0;
  min-height: 38px;
  padding: 0 16px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font: inherit;
  font-weight: 700;
  font-size: 0.84rem;
  white-space: nowrap;
  transition: border-color 140ms, background 140ms, color 140ms;
  -webkit-tap-highlight-color: transparent;
}

.tab:active { transform: scale(0.96); }

.tab.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

/* ════════════════════════════════════════════════════════════════════════
   MENU GRID + SECTION DIVIDERS
   ════════════════════════════════════════════════════════════════════════ */
.menu-grid {
  display: flex;
  flex-direction: column;
}

/* Section header */
.section-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px 16px 12px;
  background: var(--bg);
}

.section-divider__accent {
  width: 36px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-divider h3 {
  font-family: var(--display-font);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.01em;
  line-height: 1;
}

/* Happy hour banner */
.happy-hour-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 16px 4px;
  padding: 14px 16px;
  background: var(--gold-dim);
  border: 1px solid rgba(200,146,42,0.22);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
}

.happy-hour-icon { font-size: 1.25rem; line-height: 1; flex-shrink: 0; }

.happy-hour-banner strong {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--gold-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.happy-hour-banner span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
}

/* ════════════════════════════════════════════════════════════════════════
   MENU CARD
   ════════════════════════════════════════════════════════════════════════ */
.menu-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

/* Subtle alternating surface on even cards */
.menu-card:nth-child(even) { background: var(--surface); }

@media (hover: hover) {
  .menu-card:hover { background: var(--surface-2); }
}

.menu-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.menu-card__name { flex: 1; min-width: 0; }

.menu-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.translated-name {
  margin-top: 3px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.3;
}

/* Price block */
.price { text-align: right; flex-shrink: 0; }

.price strong {
  display: block;
  font-size: 0.97rem;
  font-weight: 800;
  color: var(--gold-2);
}

.price span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-3);
  margin-top: 2px;
}

/* Description */
.menu-desc {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.55;
}

/* Add-on lines — inset card */
.menu-addons {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
}

.menu-addons span {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.86rem;
  color: var(--text-2);
  line-height: 1.4;
}

.menu-addons span strong {
  color: var(--gold-2);
  font-weight: 700;
  flex-shrink: 0;
  margin-left: 8px;
}

/* Flavors — 2-col grid for compactness */
.menu-flavors {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.flavors-label {
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
}

.flavors-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 10px;
}

.flavors-list span {
  font-size: 0.84rem;
  color: var(--text-2);
  line-height: 1.4;
  padding-left: 12px;
  position: relative;
}

.flavors-list span::before {
  content: "·";
  position: absolute;
  left: 2px;
  color: var(--gold);
  font-weight: 900;
}

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 5px; }

.tag {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Empty state */
.empty-state {
  padding: 56px 24px;
  text-align: center;
  color: var(--text-3);
  font-size: 0.95rem;
}

/* ════════════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════════════ */
.footer {
  padding: 32px 20px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
}

.footer__brand svg { color: var(--gold); }

.footer strong { font-size: 0.82rem; font-weight: 700; color: var(--text-2); }
.footer span   { font-size: 0.8rem; color: var(--text-3); }
.footer small  { font-size: 0.72rem; color: var(--text-3); line-height: 1.5; }

/* ════════════════════════════════════════════════════════════════════════
   BOTTOM NAVIGATION
   ════════════════════════════════════════════════════════════════════════ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(10,10,10,0.97);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  /* notch / home indicator safe area */
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: var(--nav-h);
  color: var(--text-3);
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 160ms;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.bottom-nav__item svg { transition: stroke 160ms; }

.bottom-nav__item.is-active {
  color: var(--gold-2);
}

.bottom-nav__item.is-active svg { stroke: var(--gold-2); }

/* Reserve item — always gold pill icon */
.bottom-nav__item--reserve {
  position: relative;
}

.bottom-nav__item--reserve .reserve-pip {
  position: absolute;
  top: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background 140ms;
}

/* Active indicator dot above icon */
.bottom-nav__item.is-active::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-2);
}

/* Reserve item should not show the dot (it has the pill) */
.bottom-nav__item--reserve::before { display: none; }

/* ════════════════════════════════════════════════════════════════════════
   LANGUAGE MODAL
   ════════════════════════════════════════════════════════════════════════ */
.language-modal {
  /*
   * RTL-safe centering via inset + margin: auto.
   * Avoids `left: 50%` which flips under dir="rtl" in some browsers.
   * `inset: 0` + `margin: auto` centres the dialog in both LTR and RTL.
   */
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(92vw, 440px);
  height: fit-content;
  max-height: 90svh;
  overflow-y: auto;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  animation: modalIn 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.language-modal::backdrop {
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Fade + rise — translateY only; centering is done by inset+margin, not transform */
@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-eyebrow {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.language-modal h2 {
  font-family: var(--display-font);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--text);
}

.modal-copy {
  font-size: 0.84rem;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 18px;
}

.language-modal__art {
  position: relative;
  height: 60px;
  margin-bottom: 18px;
  border-radius: var(--radius-xs);
  /* pitch green gradient */
  background: linear-gradient(160deg, #1a3a1a 0%, #2d5a2d 40%, #1e4a1e 100%);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Field line — centre circle hint */
.language-modal__art::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.15);
}

/* Field centre spot */
.language-modal__art::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}

.ball {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 36px;
  height: 36px;
  animation: kickoff 3.8s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
  /* Cast a small shadow on the pitch */
  filter: drop-shadow(1px 3px 4px rgba(0,0,0,0.55));
}

@keyframes kickoff {
  0%   { transform: translateX(0) rotate(0deg); }
  50%  { transform: translateX(300px) rotate(720deg); }
  100% { transform: translateX(0) rotate(1080deg); }
}

.language-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.language-option {
  min-height: 48px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 140ms, background 140ms;
  -webkit-tap-highlight-color: transparent;
}

.language-option:active { transform: scale(0.97); }

.language-option.is-active {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold-2);
}

/* ── UTILITIES ──────────────────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ════════════════════════════════════════════════════════════════════════
   LIGHT MODE — component overrides
   (tokens already handled by [data-theme="light"] :root block above)
   ════════════════════════════════════════════════════════════════════════ */

/* Map section */
[data-theme="light"] .map-section  { border-color: var(--border); }
[data-theme="light"] .map-eyebrow  { color: var(--text-3); }
[data-theme="light"] .map-info h3  { color: var(--text); }
[data-theme="light"] .map-info p   { color: var(--text-2); }
[data-theme="light"] .map-iframe-wrap iframe { filter: saturate(0.82) contrast(1.02); }

/* Control panel */
[data-theme="light"] .control-panel {
  background: rgba(255,255,255,0.96);
  border-bottom-color: var(--border);
}

[data-theme="light"] .search-wrap {
  background: #fff;
  border-color: var(--border);
}

[data-theme="light"] .search-wrap input { color: var(--text); }
[data-theme="light"] .search-wrap input::placeholder { color: var(--text-3); }

/* Tabs */
[data-theme="light"] .tabs {
  background: rgba(255,255,255,0.96);
  border-bottom-color: var(--border);
}

[data-theme="light"] .tab {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text-2);
}

[data-theme="light"] .tab.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

/* Section dividers */
[data-theme="light"] .section-divider { background: #fafafa; }
[data-theme="light"] .section-divider h3 { color: var(--text); }

/* Bottom nav */
[data-theme="light"] .bottom-nav {
  background: rgba(255,255,255,0.96);
  border-top-color: var(--border);
}

[data-theme="light"] .bottom-nav__item { color: var(--text-3); }
[data-theme="light"] .bottom-nav__item.is-active { color: var(--gold); }
[data-theme="light"] .bottom-nav__item.is-active svg { stroke: var(--gold); }
[data-theme="light"] .bottom-nav__item.is-active::before { background: var(--gold); }

/* Language modal */
[data-theme="light"] .language-modal {
  background: #fff;
  border-color: var(--border);
  box-shadow: 0 24px 80px rgba(0,0,0,0.15);
}

[data-theme="light"] .language-modal::backdrop { background: rgba(0,0,0,0.4); }
[data-theme="light"] .language-modal h2       { color: var(--text); }
[data-theme="light"] .modal-copy              { color: var(--text-2); }
[data-theme="light"] .language-modal__art     { background: linear-gradient(160deg, #1a3a1a 0%, #2d5a2d 40%, #1e4a1e 100%); border-color: rgba(0,0,0,0.1); }
/* SVG ball is self-coloured — no override needed for light mode */

[data-theme="light"] .language-option {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}

/* ════════════════════════════════════════════════════════════════════════
   TABLET+ (640px+)
   ════════════════════════════════════════════════════════════════════════ */
@media (min-width: 640px) {
  /* Topbar padding */
  .topbar { padding: 0 32px; }

  /* Hero full screen at tablet+: restore fixed height, content back to bottom */
  .hero { height: 90svh; height: 90vh; display: flex; flex-direction: column; }
  .hero__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 48px 48px;
  }

  /* Hero actions: auto sizing */
  .hero__actions { grid-template-columns: auto auto; }

  /* Map side by side */
  .map-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: auto auto 1fr;
  }

  .map-eyebrow { grid-column: 1; }

  .map-iframe-wrap {
    grid-column: 1;
    grid-row: 2 / 4;
    height: auto;
    min-height: 320px;
  }

  .map-body {
    grid-column: 2;
    grid-row: 1 / 4;
    padding: 24px 28px;
    justify-content: center;
  }

  /* Map iframe: reset card styles for grid */
  .map-iframe-wrap {
    margin: 0;
    width: 100%;
    height: auto;
    min-height: 340px;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }

  /* Control panel inline */
  .control-panel {
    flex-direction: row;
    align-items: center;
    padding: 12px 24px;
  }

  /* Tabs offset — topbar(60) + control-panel row (~72px) */
  .tabs { top: calc(var(--topbar-h) + 72px); padding: 10px 24px; }

  /* Menu 2-column grid */
  .menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 0 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
  }

  /* Section dividers span full width */
  .section-divider { grid-column: 1 / -1; padding-left: 24px; padding-right: 24px; }
  .happy-hour-banner { grid-column: 1 / -1; margin: 0; border-radius: 0; border-left-width: 3px; border-right: none; border-top: none; }

  /* Even/odd right border for 2-col */
  .menu-card { border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); }
  .menu-card:nth-child(even) { border-right: none; }

  /* Flavors 3-col at this size */
  .flavors-list { grid-template-columns: repeat(3, 1fr); }

  /* Bottom nav wider items */
  .bottom-nav__item { font-size: 0.7rem; }
}

/* ════════════════════════════════════════════════════════════════════════
   DESKTOP (860px+)
   ════════════════════════════════════════════════════════════════════════ */
@media (min-width: 860px) {
  .hero__content { padding: 0 64px 56px; justify-content: flex-end; }

  .topbar { padding: 22px 48px; }

  .control-panel { padding: 14px 32px; }

  .tabs { padding: 12px 32px; }

  .menu-grid { margin: 0 32px; }

  .map-body { padding: 32px 40px; }

  .map-section { max-width: 1100px; margin: 0 auto; }

  /* Bottom nav max-width centered on very wide screens */
  .bottom-nav { max-width: 860px; left: 50%; transform: translateX(-50%); border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
}

/* ════════════════════════════════════════════════════════════════════════
   VANMENU HOMEPAGE
   Shown at root URL (/). The .page-shell is hidden; #vanmenu-home is shown.
   Editorial, minimal, text-first. Uses existing CSS tokens throughout.
   ════════════════════════════════════════════════════════════════════════ */

#vanmenu-home {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  display: flex;
  flex-direction: column;
}

/* ── Layout container ───────────────────────────────────────────────────── */
.home-inner {
  width: 100%;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}

/* ── Nav ────────────────────────────────────────────────────────────────── */
.home-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}

.home-nav__brand {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--text-3);
  font-family: var(--body-font);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 200ms ease;
}

.home-nav__brand svg { flex-shrink: 0; color: var(--gold); }
.home-nav__brand:hover { color: var(--text); }

/* theme toggle inherits .theme-toggle from main CSS; just size tweak */
.home-theme-toggle { opacity: 0.55; transition: opacity 200ms ease; }
.home-theme-toggle:hover { opacity: 1; }

/* ── Animate-in ─────────────────────────────────────────────────────────── */
.home-animate {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.home-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.home-hero {
  padding: 72px 28px 80px;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
  border-bottom: 1px solid var(--border);
}

.home-kicker {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 28px;
}

.home-heading {
  font-family: var(--display-font);
  font-size: clamp(2.8rem, 9vw, 4.4rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 32px;
}

.home-sub {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-2);
  margin: 0;
  max-width: 420px;
}

/* ── Features ────────────────────────────────────────────────────────────── */
.home-features {
  padding: 0 28px;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
  border-bottom: 1px solid var(--border);
}

.home-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.home-feature-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.home-feature-item:last-child { border-bottom: none; }

.home-feature-num {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gold);
  padding-top: 3px;         /* aligns with strong baseline */
}

.home-feature-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-feature-body strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.005em;
}

.home-feature-body span {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-2);
}

/* ── Demo ────────────────────────────────────────────────────────────────── */
.home-demo {
  padding: 56px 28px;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
  border-bottom: 1px solid var(--border);
}

.home-demo-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 16px;
}

.home-demo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--display-font);
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color 250ms ease, gap 250ms ease;
}

.home-demo-link svg {
  color: var(--text-3);
  transition: color 250ms ease, transform 250ms ease;
}

.home-demo-link:hover {
  color: var(--gold);
  gap: 16px;
}

.home-demo-link:hover svg {
  color: var(--gold);
  transform: translateX(3px);
}

.home-demo-disclaimer {
  margin: 14px 0 0;
  font-size: 0.75rem;
  color: var(--text-3);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.home-footer {
  padding: 56px 28px 64px;
  max-width: 680px;
  margin: 0 auto auto;  /* auto bottom pushes down on short viewports */
  width: 100%;
}

.home-footer-q {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  margin: 0 0 20px;
}

.home-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 40px;
}

.home-contact-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  width: fit-content;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 200ms ease, border-color 200ms ease;
}

.home-contact-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.home-copyright {
  font-size: 0.75rem;
  color: var(--text-3);
  margin: 0;
  letter-spacing: 0.02em;
}

/* ── Wider screens ───────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .home-nav    { padding-left: 48px; padding-right: 48px; }
  .home-hero   { padding-left: 48px; padding-right: 48px; }
  .home-features { padding-left: 48px; padding-right: 48px; }
  .home-demo   { padding-left: 48px; padding-right: 48px; }
  .home-footer { padding-left: 48px; padding-right: 48px; }
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .home-animate,
  .home-animate.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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