/* =====================================================================
   RESTAURANT TEMPLATE — STYLES
   Mobile-first. Every colour and font comes from a CSS variable that is
   set at runtime from CONFIG.theme in script.js, so you can rebrand
   without editing this file.
   ===================================================================== */

:root {
  /* Defaults — overridden at runtime by CONFIG.theme */
  --color-primary: #c9a96a;
  --color-primary-contrast: #16130f;
  --color-bg: #0f0e0c;
  --color-surface: #1a1815;
  --color-surface-2: #242019;
  --color-text: #f5f0e8;
  --color-muted: #a79f92;
  --color-hero-text: #ffffff;           /* text on top of the hero photo */
  --color-wa: #25d366;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Derived tokens (fallback first, then color-mix for modern browsers) */
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border: color-mix(in srgb, var(--color-text) 10%, transparent);
  --color-footer: var(--color-bg);
  --color-footer: color-mix(in srgb, var(--color-bg) 85%, black);

  /* Surfaces for the nested "double-bezel" frames (outer shell + inner core) */
  --color-shell: rgba(255, 255, 255, 0.04);
  --color-shell: color-mix(in srgb, var(--color-text) 4%, transparent);
  --color-hairline: rgba(255, 255, 255, 0.09);
  --color-hairline: color-mix(in srgb, var(--color-text) 9%, transparent);
  --highlight: inset 0 1px 0 rgba(255, 255, 255, 0.06);

  --radius: 26px;                                     /* outer shells */
  --bezel: 6px;                                       /* shell-to-core gap */
  --radius-inner: calc(var(--radius) - var(--bezel)); /* concentric inner corners */
  --radius-sm: 12px;
  --shadow: 0 30px 60px -28px rgba(10, 6, 2, 0.8);    /* warm-tinted, light from above */
  --banner-h: 0px;                                    /* demo banner height (30px when shown) */
  --header-h: calc(66px + var(--banner-h));           /* floating header: 10px offset + 56px pill */
  --container: 1200px;
  --section-y: clamp(88px, 12vw, 152px);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --control-h: 40px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
/* Film grain: a fixed, non-interactive texture that takes the digital flatness off the dark surfaces */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 85;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, textarea { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 500; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
address { font-style: normal; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Skip link for keyboard users */
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 90;
  padding: 10px 16px; border-radius: 999px;
  background: var(--color-primary); color: var(--color-primary-contrast);
  font-size: 14px; font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.4s var(--ease);
}
.skip-link:focus { transform: none; }

/* Demo notice (CONFIG.demoBanner): a slim strip above the floating header */
html.has-demo { --banner-h: 30px; }
.demo-banner { display: none; }
html.has-demo .demo-banner {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 51;
  height: var(--banner-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-hairline);
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
html.has-demo .demo-banner::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

/* ---------- Typography ---------- */
/* Eyebrow tag: a microscopic pill that precedes each major heading */
.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(201, 169, 106, 0.35);
  border: 1px solid color-mix(in srgb, var(--color-primary) 35%, transparent);
  background: color-mix(in srgb, var(--color-primary) 8%, transparent);
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 20px;
}
.section-title { font-size: clamp(34px, 7vw, 60px); letter-spacing: -0.025em; line-height: 1.04; }
.section-title em { font-style: italic; color: var(--color-primary); font-weight: 400; }
.section-sub { color: var(--color-muted); margin-top: 18px; max-width: 58ch; }
.section-head { margin-bottom: 44px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  border: 1.5px solid transparent;
  transition: transform 0.5s var(--ease), background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.5s var(--ease), filter 0.4s var(--ease);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--color-primary) 30%, transparent);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
/* Tertiary action: a quiet text link instead of a second outlined pill */
.btn-ghost {
  color: var(--color-hero-text);
  background: none;
  border-color: transparent;
  padding-inline: 10px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-decoration-color: color-mix(in srgb, var(--color-hero-text) 40%, transparent);
}
.btn-ghost:hover { text-decoration-color: currentColor; }
.hero .btn-ghost { padding-inline: 6px; }
.btn-outline { border-color: var(--color-border); color: var(--color-text); }
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-wa { background: var(--color-wa); color: #052e16; }   /* dark text: white on this green is only ~2:1 contrast */
.btn-wa:hover { filter: brightness(1.05); }
.btn-wa .icon { fill: currentColor; stroke: none; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }
/* Button-in-button: the trailing arrow lives in its own circle, flush with the inner padding */
.btn-arrow { gap: 14px; padding: 6px 6px 6px 22px; }
.btn-arrow.btn-lg { padding: 7px 7px 7px 28px; }
.btn-arrow::after {
  content: '\2197';
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  background: color-mix(in srgb, currentColor 13%, transparent);
  font-size: 15px;
  line-height: 1;
  transition: transform 0.5s var(--ease);
}
.btn-arrow.btn-lg::after { width: 40px; height: 40px; font-size: 17px; }
.btn-arrow.btn-block { justify-content: space-between; }
.btn-arrow.is-down::after { content: '\2193'; }
.btn-arrow.is-next::after { content: '\2192'; }
.btn-arrow:hover::after { transform: translate(2px, -1px) scale(1.05); }
.btn-arrow.is-down:hover::after { transform: translateY(2px) scale(1.05); }
.btn-arrow.is-next:hover::after { transform: translateX(2px) scale(1.05); }
.link-btn { color: var(--color-muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; padding: 10px 14px; }
.link-btn:hover { color: var(--color-text); }
.icon-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-text) 6%, transparent);
  border: 1px solid var(--color-border);
  transition: background 0.2s;
}
.icon-btn:hover { background: color-mix(in srgb, var(--color-text) 12%, transparent); }

/* ---------- Header ---------- */
/* Floating "island" header: a glass pill detached from the top edge */
.site-header {
  position: fixed;
  top: calc(10px + var(--banner-h));
  left: 0;
  right: 0;
  z-index: 50;
  width: min(calc(100% - 20px), 1080px);
  height: 56px;
  margin-inline: auto;
}
.site-header .container { max-width: none; padding: 0 8px 0 20px; }
/* The blurred backdrop lives on a pseudo-element: putting backdrop-filter on
   the header itself would turn it into the containing block for the fixed
   mobile nav and break the overlay. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 999px;
  background: rgba(15, 14, 12, 0.6);
  background: color-mix(in srgb, var(--color-bg) 58%, transparent);
  border: 1px solid var(--color-hairline);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--highlight), 0 18px 40px -22px rgba(10, 6, 2, 0.9);
  transition: background-color 0.5s var(--ease);
}
.site-header.scrolled::before, .site-header.nav-open::before { background: color-mix(in srgb, var(--color-bg) 82%, transparent); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%; }
.brand {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--color-text);
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s;
}
.site-header.scrolled .brand, .site-header.nav-open .brand { color: var(--color-text); }
/* Phones: a screen-filling glass overlay that sits behind the header pill */
.nav-links {
  position: fixed;
  inset: 0;
  z-index: -2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: calc(var(--header-h) + 24px) 32px 48px;
  background: rgba(15, 14, 12, 0.9);
  background: color-mix(in srgb, var(--color-bg) 86%, transparent);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s;
}
.nav-links.open { opacity: 1; visibility: visible; transition: opacity 0.5s var(--ease), visibility 0s; }
.nav-links a {
  font-family: var(--font-heading);
  font-size: clamp(34px, 10vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  padding: 10px 0;
  color: var(--color-text);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), color 0.3s var(--ease);
}
.nav-links.open a { opacity: 1; transform: none; }
.nav-links.open a:nth-child(2) { transition-delay: 0.05s, 0.05s, 0s; }
.nav-links.open a:nth-child(3) { transition-delay: 0.1s, 0.1s, 0s; }
.nav-links.open a:nth-child(4) { transition-delay: 0.15s, 0.15s, 0s; }
.nav-links.open a:nth-child(5) { transition-delay: 0.2s, 0.2s, 0s; }
.nav-links a:hover, .nav-links a.active { color: var(--color-primary); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-order { position: relative; }
.nav-order .icon { width: 18px; height: 18px; }
.nav-badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px;
  background: var(--color-bg);
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav-toggle {
  width: 40px; height: 40px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 20px; height: 1.5px; background: var(--color-text); border-radius: 2px;
  transition: transform 0.5s var(--ease), opacity 0.3s var(--ease);
}
.site-header.scrolled .nav-toggle span, .site-header.nav-open .nav-toggle span { background: var(--color-text); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (max-width: 359px) {
  .nav-order > span:not(.nav-badge) { display: none; }
  .nav-order { padding: 9px 11px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 56px) 0 96px;
  overflow: hidden;
  color: var(--color-hero-text);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--color-surface);
  transform: scale(1.06);
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  animation: heroZoom 14s var(--ease) forwards;
}
.hero-bg.loaded { opacity: 1; }
@keyframes heroZoom { to { transform: scale(1); } }
/* Dark scrim so the (light) hero text is always readable, plus a short fade
   into the page background at the very bottom so the hero blends in. */
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--color-bg) 0%, transparent 10%),
    linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.42) 50%, rgba(0, 0, 0, 0.22) 100%);
  /* Warm ember glow rising from the lower left, so the scrim is not a flat, even fade */
  background:
    radial-gradient(90% 60% at 0% 100%, color-mix(in srgb, var(--color-primary) 16%, transparent), transparent 62%),
    linear-gradient(to top, var(--color-bg) 0%, transparent 10%),
    linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.44) 50%, rgba(0, 0, 0, 0.24) 100%);
}
.hero-content { position: relative; z-index: 1; }
.hero .eyebrow {
  background: rgba(10, 8, 6, 0.4);
  border-color: color-mix(in srgb, var(--color-primary) 45%, transparent);
  animation: rise 0.9s var(--ease) both;
}
.hero-title {
  font-size: clamp(46px, 12.5vw, 112px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.96;
  max-width: 12ch;
  animation: rise 1s 0.08s var(--ease) both;
}
.hero-tagline {
  font-size: clamp(17px, 2.4vw, 21px);
  color: rgba(255, 255, 255, 0.82);
  color: color-mix(in srgb, var(--color-hero-text) 82%, transparent);
  margin-top: 22px;
  max-width: 36ch;
  font-weight: 300;
  animation: rise 1s 0.18s var(--ease) both;
}
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 36px; animation: rise 1s 0.28s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-color: color-mix(in srgb, var(--color-hero-text) 40%, transparent);
  display: none;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 3px; background: var(--color-primary);
  animation: hint 1.8s infinite;
}
@keyframes hint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Sections ---------- */
/* Bottom padding runs slightly larger than the top so sections sit optically even */
.section { padding: var(--section-y) 0 calc(var(--section-y) + 8px); }
.section-alt { background: var(--color-surface); }
/* Ambient warm light from the top right, the same direction the shadows assume */
#menu, #about { background: radial-gradient(60% 45% at 100% 0%, color-mix(in srgb, var(--color-primary) 6%, transparent), transparent 70%); }

/* ---------- Menu ---------- */
/* Course selector: chips sit in a single recessed tray */
.category-bar {
  display: flex;
  width: fit-content;
  max-width: 100%;
  gap: 4px;
  overflow-x: auto;
  padding: 5px;
  margin-bottom: 40px;
  border-radius: 999px;
  background: var(--color-shell);
  border: 1px solid var(--color-hairline);
  box-shadow: var(--highlight);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.category-bar::-webkit-scrollbar { display: none; }
/* Phones: the tray runs full width and fades at the right edge to show it scrolls */
@media (max-width: 639px) {
  .category-bar {
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
  }
  .category-bar::after { content: ''; flex: 0 0 32px; }
}
.chip {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.5s var(--ease), color 0.4s var(--ease), box-shadow 0.5s var(--ease);
}
.chip:hover { color: var(--color-text); }
.chip[aria-pressed="true"] { background: var(--color-primary); color: var(--color-primary-contrast); box-shadow: 0 8px 18px -10px rgba(10, 6, 2, 0.9); }

.menu-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.menu-category-title {
  grid-column: 1 / -1;
  font-size: clamp(26px, 5vw, 34px);
  letter-spacing: -0.02em;
  margin-top: 40px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-hairline);
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.menu-category-title small { font-family: var(--font-body); font-size: 13px; color: var(--color-muted); font-weight: 400; letter-spacing: 0; }
.menu-category-title:first-child { margin-top: 0; }

/* Dish card, double-bezel: the photo is a plate resting in a tray */
.menu-card {
  display: flex;
  flex-direction: column;
  padding: var(--bezel);
  background: var(--color-shell);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius);
  box-shadow: var(--highlight);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.6s var(--ease);
}
.menu-card:hover { transform: translateY(-4px); box-shadow: var(--highlight), var(--shadow); border-color: color-mix(in srgb, var(--color-primary) 24%, transparent); }
.menu-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-inner); background: var(--color-surface-2); }
.menu-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.menu-card:hover .menu-card-media img { transform: scale(1.04); }
.menu-tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
/* Square flags rather than pill badges */
.tag {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1;
  padding: 6px 8px; border-radius: 6px;
  background: rgba(12, 10, 8, 0.8); color: #fff;
}
.tag-veg { color: #7fdc9c; }
.tag-spicy { color: #ff8a6c; }
.tag-popular { background: var(--color-primary); color: var(--color-primary-contrast); }
.menu-card-body { padding: 18px 14px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.menu-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.menu-card-name { font-size: 21px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
.menu-card-price { font-family: var(--font-heading); font-weight: 500; color: var(--color-primary); white-space: nowrap; font-size: 20px; font-variant-numeric: lining-nums tabular-nums; }
.menu-card-desc { color: var(--color-muted); font-size: 14.5px; line-height: 1.6; flex: 1; }
.menu-card-foot { display: flex; justify-content: flex-end; margin-top: 8px; min-height: var(--control-h); }
.add-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: var(--control-h);
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 600; font-size: 14px; line-height: 1;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.5s var(--ease);
}
.add-btn:active { transform: scale(0.97); }
.add-btn:hover { background: var(--color-primary); color: var(--color-primary-contrast); }
.add-btn .icon { width: 16px; height: 16px; stroke-width: 2.2; }
.stepper {
  display: inline-flex; align-items: center;
  height: var(--control-h);
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  overflow: hidden;
}
.stepper button {
  width: var(--control-h); height: var(--control-h);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 600; line-height: 1;
  transition: background-color 0.3s var(--ease);
}
.stepper button:hover { background: rgba(0, 0, 0, 0.12); }
.stepper button:focus-visible { outline-offset: -3px; }
.stepper output { min-width: 28px; text-align: center; font-weight: 700; font-size: 15px; }
.menu-empty { grid-column: 1 / -1; color: var(--color-muted); text-align: center; padding: 40px 0; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 160px;
  grid-auto-flow: dense;
  gap: 16px;
}
/* Bento tiles with a double-bezel ring: image core, shell ring, hairline edge (concentric by construction) */
.gallery-item {
  position: relative; overflow: hidden; border-radius: 20px; background: var(--color-surface-2);
  box-shadow: 0 0 0 5px var(--color-shell), 0 0 0 6px var(--color-hairline);
  cursor: zoom-in;
  display: block; width: 100%; height: 100%; padding: 0; border: 0;
  transition: box-shadow 0.6s var(--ease);
}
.gallery-item:hover { box-shadow: 0 0 0 5px var(--color-shell), 0 0 0 6px color-mix(in srgb, var(--color-primary) 35%, transparent), var(--shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.6s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 60%);
  opacity: 0; transition: opacity 0.6s var(--ease);
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

/* ---------- About ---------- */
.about-wrap { display: grid; gap: 56px; }
/* Photo in a double-bezel frame: shell tray + inner core with concentric corners */
.about-media {
  position: relative;
  padding: 8px;
  background: var(--color-shell);
  border: 1px solid var(--color-hairline);
  border-radius: 32px;
  box-shadow: var(--highlight), var(--shadow);
}
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; background: var(--color-surface-2); }
.about-copy p + p { margin-top: 16px; }
#aboutText { color: var(--color-muted); margin-top: 22px; font-size: 16px; max-width: 60ch; }
#aboutText p:first-child { color: var(--color-text); font-size: 19px; line-height: 1.6; }
.about-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 16px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--color-hairline); }
.stat-value { font-family: var(--font-heading); font-size: 38px; font-weight: 500; letter-spacing: -0.02em; color: var(--color-primary); line-height: 1; font-variant-numeric: lining-nums; }
.stat-label { font-size: 13.5px; color: var(--color-muted); margin-top: 8px; line-height: 1.4; }

/* ---------- Visit: Hours + Map ---------- */
.visit-wrap { display: grid; gap: 28px; }
/* Double-bezel via rings: core panel, 6px shell, hairline edge */
.hours-card, .map-card {
  background: var(--color-bg);
  border-radius: var(--radius-inner);
  box-shadow: 0 0 0 6px var(--color-shell), 0 0 0 7px var(--color-hairline), var(--shadow);
}
.hours-card { padding: 30px 24px; display: flex; flex-direction: column; gap: 20px; }
.hours-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hours-head h3 { font-size: 26px; letter-spacing: -0.01em; }
.status-pill {
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  padding: 6px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--color-text) 6%, transparent); color: var(--color-muted);
  display: inline-flex; align-items: center; gap: 7px;
}
.status-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill.open { color: #4fbf74; background: rgba(79, 191, 116, 0.14); }
.status-pill.closed { color: #e8694a; background: rgba(232, 105, 74, 0.14); }
.hours-list li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--color-hairline);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.hours-list li:last-child { border-bottom: 0; }
.hours-list li.today { color: var(--color-primary); font-weight: 600; }
.hours-list li .closed-text { color: var(--color-muted); font-weight: 400; }
.hours-address { display: flex; gap: 10px; color: var(--color-muted); font-size: 15px; }
.hours-address .icon { color: var(--color-primary); margin-top: 2px; }
.map-card { overflow: hidden; min-height: 320px; }
.map-card iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; filter: grayscale(0.3) sepia(0.12) contrast(1.03); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-footer); border-top: 1px solid var(--color-hairline); padding: 88px 0 32px; color: var(--color-muted); font-size: 15px; }
.site-footer .brand { color: var(--color-text); white-space: normal; font-size: 30px; }
.footer-grid { display: grid; gap: 44px; }
.footer-brand p { margin-top: 14px; max-width: 34ch; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-col h4 { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--color-text); margin-bottom: 6px; }
.footer-col a { transition: color 0.4s var(--ease); }
.footer-col a:hover { color: var(--color-primary); }
.social-row { display: flex; gap: 10px; margin-top: 22px; }
.social-row a {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-hairline);
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.5s var(--ease);
}
.social-row a:hover { border-color: var(--color-primary); color: var(--color-primary); transform: translateY(-2px); }
.social-row .icon { width: 18px; height: 18px; }
.footer-bottom {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--color-hairline);
  font-size: 13px;
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 40;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--color-wa);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s var(--ease), bottom 0.3s var(--ease);
}
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
.wa-float:hover { transform: scale(1.06); }
.wa-float::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--color-wa);
  animation: pulse 2.2s infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.6); opacity: 0; } }
body.has-cart .wa-float { bottom: 92px; }
body.has-cart { padding-bottom: 84px; }   /* keep footer content clear of the cart bar */

/* ---------- Cart bar ---------- */
.cart-bar {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 45;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 7px 7px 7px 22px;
  background: rgba(36, 32, 25, 0.85);
  background: color-mix(in srgb, var(--color-surface-2) 84%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--color-hairline);
  border-radius: 999px;
  box-shadow: var(--highlight), var(--shadow);
  animation: barIn 0.7s var(--ease) both;
}
@keyframes barIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.cart-bar-info { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.cart-bar-info strong { font-size: 14px; font-weight: 600; }
.cart-bar-info span { font-family: var(--font-heading); font-size: 16px; color: var(--color-primary); font-variant-numeric: lining-nums; }

/* ---------- Drawer ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.drawer-backdrop.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 61;
  max-height: 92vh;
  max-height: 92dvh;
  background: var(--color-surface);
  border-radius: 28px 28px 0 0;
  border: 1px solid var(--color-hairline);
  box-shadow: var(--highlight), 0 -30px 60px -30px rgba(10, 6, 2, 0.8);
  display: flex; flex-direction: column;
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.45s var(--ease), visibility 0s linear 0.45s;
}
.drawer.open { transform: none; visibility: visible; transition: transform 0.45s var(--ease), visibility 0s; }
.drawer-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--color-border);
}
.drawer-head h3 { font-size: 27px; letter-spacing: -0.015em; }
.drawer-sub { color: var(--color-muted); font-size: 13px; margin-top: 2px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.cart-empty { text-align: center; padding: 30px 0; color: var(--color-muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cart-empty svg { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 1.5; opacity: 0.6; }
.cart-list { display: flex; flex-direction: column; gap: 14px; }
.cart-item { display: flex; gap: 12px; align-items: center; }
.cart-item img { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: 13px; color: var(--color-muted); }
.order-form { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 14px; }
.field-row { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; font-weight: 500; color: var(--color-muted); }
.field-label .optional { font-weight: 400; }
.field-error { font-size: 13px; color: #e8694a; }
.order-form input, .order-form textarea {
  width: 100%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 16px;   /* 16px stops iOS Safari zooming into the field on focus */
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  resize: vertical;
}
.order-form input:focus, .order-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35), 0 0 0 4px color-mix(in srgb, var(--color-primary) 16%, transparent);
}
.order-form input[aria-invalid="true"] { border-color: #e8694a; }
.segmented { display: flex; background: var(--color-bg); border: 1px solid var(--color-hairline); border-radius: 999px; padding: 4px; gap: 4px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35); }
.segmented button { flex: 1; padding: 10px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--color-muted); transition: background-color 0.5s var(--ease), color 0.4s var(--ease); }
.segmented button[aria-pressed="true"] { background: var(--color-primary); color: var(--color-primary-contrast); }
.drawer-foot {
  padding: 16px 22px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-border);
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  background: var(--color-surface);
}
.total-row { display: flex; justify-content: space-between; align-items: baseline; width: 100%; font-size: 15px; color: var(--color-muted); margin-bottom: 4px; }
.total-row strong { font-size: 26px; font-weight: 500; color: var(--color-text); font-family: var(--font-heading); font-variant-numeric: lining-nums; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(5, 5, 4, 0.94);
  display: flex; align-items: center; justify-content: center;
  padding: 60px 16px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s, visibility 0s linear 0.25s;
}
.lightbox.open { opacity: 1; visibility: visible; transition: opacity 0.25s, visibility 0s; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: var(--shadow); }
.lightbox .icon-btn { color: #fff; background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); }
.lightbox .icon-btn:hover { background: rgba(255, 255, 255, 0.2); }
.lb-close { position: absolute; top: 16px; right: 16px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-caption { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, 0.7); font-size: 14px; padding: 0 60px; }

/* ---------- Toast (top of screen, clear of the floating controls) ---------- */
.toast {
  position: fixed; left: 50%; top: calc(var(--header-h) + 12px); transform: translate(-50%, -12px);
  z-index: 80;
  background: var(--color-text); color: var(--color-bg);
  padding: 11px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  max-width: calc(100vw - 32px); text-align: center;
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal on scroll ---------- */
/* Heavy fade-up that resolves from a soft blur. Large image blocks skip the blur (GPU cost). */
.reveal { opacity: 0; transform: translateY(40px); filter: blur(10px); transition: opacity 0.9s var(--ease), transform 1s var(--ease), filter 0.9s var(--ease); }
.reveal:is(.gallery-grid, .map-card, .about-media) { filter: none; }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* Dish cards rise in as they scroll into view (browsers without scroll timelines show them as-is).
   Uses the individual `translate`/`scale` properties so the hover `transform` still works. */
@supports (animation-timeline: view()) {
  .menu-card { animation: cardIn linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  @keyframes cardIn { from { opacity: 0; translate: 0 40px; scale: 0.98; } to { opacity: 1; translate: 0 0; scale: 1; } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .hero-bg { animation: none; transform: none; }
  .hero .eyebrow, .hero-title, .hero-tagline, .hero-cta, .cart-bar, .menu-card { animation: none; }
  .wa-float::before, .scroll-hint span { animation: none; }
  .menu-card, .menu-card-media img, .gallery-item, .gallery-item img, .btn, .btn-arrow::after, .chip, .drawer, .nav-links, .nav-links a, .lightbox, .toast { transition: none; }
}

/* =====================================================================
   RESPONSIVE — tablet and up
   ===================================================================== */
@media (min-width: 640px) {
  .container { padding: 0 28px; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 190px; gap: 18px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .cart-bar { left: auto; right: 18px; bottom: 18px; min-width: 320px; }
  .scroll-hint { display: block; }
}

@media (min-width: 900px) {
  :root { --header-h: calc(76px + var(--banner-h)); }
  .site-header { top: calc(16px + var(--banner-h)); height: 60px; width: min(calc(100% - 48px), 1080px); }
  .site-header .container { padding: 0 8px 0 26px; }
  .nav-links {
    position: static; inset: auto; z-index: auto; opacity: 1; visibility: visible;
    flex-direction: row; gap: 30px; padding: 0;
    background: none; backdrop-filter: none; -webkit-backdrop-filter: none; transition: none;
  }
  .nav-links a {
    font-family: var(--font-body); font-size: 14px; font-weight: 500; letter-spacing: 0.01em; line-height: 1;
    padding: 8px 1px; position: relative;
    opacity: 1; transform: none;
    color: rgba(245, 240, 232, 0.72);
    color: color-mix(in srgb, var(--color-text) 72%, transparent);
    transition: color 0.4s var(--ease);
  }
  .nav-links a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
    background: var(--color-primary);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.5s var(--ease);
  }
  .nav-links a:hover, .nav-links a.active { color: var(--color-text); }
  .nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
  .nav-toggle { display: none; }
  .hero { align-items: center; padding-bottom: 80px; }
  .menu-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 20px; }
  .about-wrap { grid-template-columns: 0.95fr 1.05fr; align-items: center; gap: 96px; }
  .visit-wrap { grid-template-columns: 1fr 1.4fr; gap: 32px; }
  .map-card { min-height: 100%; }
  /* Desktop drawer floats as its own panel, inset from the screen edge */
  .drawer {
    left: auto; top: 12px; right: 12px; bottom: 12px;
    width: 440px; max-height: none;
    border-radius: 28px;
    transform: translateX(calc(100% + 24px));
  }
  .drawer.open { transform: none; }
  .wa-float { right: 28px; bottom: 28px; }
  .cart-bar { right: 28px; bottom: 28px; }
  body.has-cart .wa-float { bottom: 104px; }
  body.has-cart { padding-bottom: 96px; }
}

@media (min-width: 1200px) {
  .hero-title { font-size: 112px; }
}
