/* SeeOurMenu — public menu. Mobile first: 1 column, 2 on tablets, 3 on desktops. */

:root {
  --accent: #c2410c;
  --on-accent: #fff;
  --bg: #faf7f2;
  --surface: #ffffff;
  --text: #1f1c18;
  --muted: #6d675e;
  --line: #e6dfd3;
  --leader: #cfc6b6;
  --sold: #9a3412;
  --ok: #15803d;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-head: "Playfair Display", Georgia, "Songti SC", "Noto Serif SC", serif;
  --head-case: none;
  --head-space: -0.01em;
  --tabs-h: 54px;
}
[data-mode="dark"] {
  --bg: #0f1114;
  --surface: #181b20;
  --text: #f4f1ea;
  --muted: #a8a59d;
  --line: #2a2e35;
  --leader: #3b4048;
  --sold: #fca5a5;
  --ok: #4ade80;
}
[data-font="poster"] {
  --font-head: "Oswald", "Arial Narrow", Impact, "PingFang SC", "Microsoft YaHei", sans-serif;
  --head-case: uppercase;
  --head-space: 0.03em;
}
[data-font="modern"] {
  --font-head: var(--font-body);
  --head-space: -0.02em;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 18px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  color: var(--on-accent);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.16), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(0,0,0,.28), transparent 60%),
    var(--accent);
  padding: max(14px, env(safe-area-inset-top)) 0 30px;
}
.hero.has-cover {
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.72)), var(--cover) center/cover no-repeat, #111;
}
.hero-top { display: flex; justify-content: space-between; align-items: center; min-height: 36px; }
.langs { display: inline-flex; background: rgba(0,0,0,.22); border-radius: 999px; padding: 3px; backdrop-filter: blur(6px); }
.langs a {
  min-width: 44px; padding: 7px 12px; border-radius: 999px; text-align: center;
  font-size: 13px; font-weight: 600; text-decoration: none; color: #fff; opacity: .85;
}
.langs a[aria-current] { background: #fff; color: #111; opacity: 1; }
.chip { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(0,0,0,.22); color: #fff; }
.hero-body { text-align: center; padding-top: 22px; }
.logo { width: 96px; height: 96px; object-fit: contain; margin: 0 auto 14px; border-radius: 20px; background: #fff; padding: 6px; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.hero h1 {
  font-family: var(--font-head); text-transform: var(--head-case); letter-spacing: var(--head-space);
  font-size: clamp(2.1rem, 9vw, 3.6rem); line-height: 1.05; font-weight: 700; text-wrap: balance;
}
.tagline { margin-top: 8px; font-size: 1.02rem; opacity: .92; text-wrap: balance; }
.status { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 7px 14px; border-radius: 999px; background: rgba(0,0,0,.24); font-size: 14px; color: #fff; }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.25); }
.status.is-closed .dot { background: #fca5a5; box-shadow: 0 0 0 4px rgba(252,165,165,.22); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none;
  color: #fff; background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.55);
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-solid { background: #fff; color: #111; border-color: #fff; }
.btn:active { transform: scale(.98); }

/* ---------- category tabs ---------- */
.tabs {
  position: sticky; top: 0; z-index: 20; background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.tabs.stuck { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.tabs-scroll {
  display: flex; gap: 8px; overflow-x: auto; padding-block: 9px; scrollbar-width: none;
  scroll-padding-inline: 18px; -webkit-overflow-scrolling: touch;
}
.tabs-scroll::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; padding: 8px 15px; border-radius: 999px; white-space: nowrap;
  font-size: 14.5px; font-weight: 600; text-decoration: none;
  color: var(--muted); background: var(--surface); border: 1px solid var(--line);
}
.tabs a.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---------- search ---------- */
.search { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 0 16px; height: 48px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.search svg { width: 20px; height: 20px; fill: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.no-results, .empty p { text-align: center; color: var(--muted); padding: 48px 0; }

/* ---------- categories & items ---------- */
.cat { padding-top: 34px; scroll-margin-top: calc(var(--tabs-h) + 6px); }
.cat-head { margin-bottom: 6px; padding-bottom: 12px; border-bottom: 2px solid var(--text); }
.cat-head h2 {
  font-family: var(--font-head); text-transform: var(--head-case); letter-spacing: var(--head-space);
  font-size: clamp(1.55rem, 5.2vw, 2rem); line-height: 1.15; font-weight: 700;
}
.cat-head h2::after { content: ""; display: block; width: 44px; height: 4px; margin-top: 8px; border-radius: 2px; background: var(--accent); }
.cat-head p { margin-top: 8px; color: var(--muted); font-size: .95rem; }

.items { display: grid; grid-template-columns: 1fr; column-gap: 44px; }
.item { display: flex; gap: 14px; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.item.has-photo { cursor: pointer; }
.item.has-photo:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.thumb { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; flex: none; background: var(--line); }
.item-main { flex: 1; min-width: 0; }
.item-line { display: flex; align-items: baseline; gap: 8px; }
.item h3, .dish h3 { font-size: 1.06rem; font-weight: 600; line-height: 1.3; text-wrap: pretty; }
.leader { flex: 1; min-width: 14px; border-bottom: 2px dotted var(--leader); transform: translateY(-4px); }
.price { font-weight: 700; font-size: 1.06rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.item-desc { margin-top: 3px; color: var(--muted); font-size: .94rem; line-height: 1.45; }
.sold { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--sold); border: 1.5px solid currentColor; border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.item.is-sold h3, .item.is-sold .item-desc { opacity: .5; }
.item.is-sold .thumb { filter: grayscale(1); opacity: .6; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.tag { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--surface); }
.tag-popular { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tag-spicy { color: #dc2626; border-color: color-mix(in srgb, #dc2626 45%, transparent); }
.tag-vegetarian, .tag-vegan { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.item[hidden], .cat[hidden] { display: none; }

/* featured (popular + photo) cards */
.item.is-feature { flex-wrap: wrap; padding: 0 0 16px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); margin: 14px 0 6px; align-items: center; }
.item.is-feature .thumb { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 0; flex: 0 0 100%; }
.item.is-feature .item-main { padding: 0 0 0 16px; }
.item.is-feature .add { margin-right: 14px; }
.item.is-feature:not(.is-buyable) .item-main { padding-right: 16px; }


/* ---------- info ---------- */
.info { margin-top: 48px; padding: 36px 0; background: var(--surface); border-top: 1px solid var(--line); }
.info-grid { display: grid; gap: 28px; }
.info-card h2 { font-family: var(--font-head); text-transform: var(--head-case); letter-spacing: var(--head-space); font-size: 1.4rem; margin-bottom: 12px; }
.hours { width: 100%; border-collapse: collapse; font-size: .98rem; }
.hours th { text-align: left; font-weight: 500; padding: 7px 0; color: var(--muted); }
.hours td { text-align: right; padding: 7px 0; font-variant-numeric: tabular-nums; }
.hours tr + tr th, .hours tr + tr td { border-top: 1px solid var(--line); }
.hours .today th, .hours .today td { color: var(--text); font-weight: 700; }
.addr { font-size: 1.02rem; }
.info-card p + p { margin-top: 6px; }
.map { margin-top: 14px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px !important; }
.socials a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 14px; }

.foot { text-align: center; padding: 26px 18px calc(26px + env(safe-area-inset-bottom)); font-size: 13.5px; color: var(--muted); }
.foot a { text-decoration: none; }
.foot strong { color: var(--text); }

/* ---------- dish dialog ---------- */
.dish { width: min(92vw, 520px); padding: 0; border: 0; border-radius: 20px; background: var(--surface); color: var(--text); overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,.5); }
.dish::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(3px); }
.dish img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); }
.dish-body { padding: 18px 20px 22px; }
.dish h3 { font-size: 1.25rem; flex: 1; }
.dish-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }

/* ---------- unavailable page ---------- */
.gone { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 32px 22px; }
.gone h1 { font-family: var(--font-head); font-size: clamp(1.9rem, 8vw, 2.8rem); line-height: 1.1; }
.gone p { margin-top: 12px; color: var(--muted); max-width: 30ch; margin-inline: auto; }
.gone .mark { width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 18px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font: 700 28px var(--font-head); }

/* ---------- larger screens ---------- */
@media (min-width: 720px) {
  .wrap { padding-inline: 32px; }
  .hero { padding-bottom: 44px; }
  .items { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .tabs-scroll { padding-block: 11px; }
  .cat { padding-top: 44px; }
}
@media (min-width: 1080px) {
  .items { grid-template-columns: repeat(3, 1fr); column-gap: 48px; }
  .hero-body { padding-top: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  .tabs, .search, .langs, .actions, .map, .foot { display: none; }
  .hero { color: #000; background: none; padding: 0 0 12px; }
  body { background: #fff; color: #000; }
}
