/* ═══════════════════════════════════════════════════════════════
   Sapovnela — /menu, the QR target.
   A printed menu card on a dark table: cream sheet, plum ink,
   Chango wordmark, dot leaders to the price. Phone first.

   Spacing uses margins, not flex gap — the cafe's own POS tablets
   run an older engine without flex-gap / min() / clamp(), and the
   same restraint keeps cheap guest phones honest.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --red: #81180F;
  --red-dark: #520e08;
  --star: #9A4540;
  --plum: #562736;
  --night: #33121d;
  --cream: #F4DE9A;
  --cream-bright: #FEF9B9;
  --ink-soft: rgba(86, 39, 54, 0.62);
  --rule: rgba(86, 39, 54, 0.22);
  --display: "Chango", "Noto Sans Georgian", sans-serif;
  --body: "Baloo 2", "Noto Sans Georgian", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--body);
  color: var(--plum);
  line-height: 1.45;
  background-color: var(--night);
  /* Two soft pools of warmth so the sheet sits on a lit table, not a slab. */
  background-image:
    radial-gradient(60% 45% at 18% 0%, rgba(154, 69, 64, 0.55) 0%, rgba(154, 69, 64, 0) 70%),
    radial-gradient(50% 40% at 92% 12%, rgba(129, 24, 15, 0.5) 0%, rgba(129, 24, 15, 0) 70%);
  background-repeat: no-repeat;
  -webkit-text-size-adjust: 100%;
}

html[lang="ka"] .l-en { display: none; }
html:not([lang="ka"]) .l-ka { display: none; }

a { color: inherit; }

/* ── top bar ───────────────────────────────────────────────── */

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1rem;
  background: var(--red);
  color: var(--cream-bright);
  box-shadow: 0 2px 0 var(--red-dark);
}

.bar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.bar-brand .star { margin-right: 0.45rem; }

.star {
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
  fill: currentColor;
}

.lang {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--cream-bright);
  background: transparent;
  border: 1.5px solid rgba(254, 249, 185, 0.55);
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.lang:hover,
.lang:focus-visible { background: rgba(254, 249, 185, 0.14); border-color: var(--cream-bright); }

/* ── the sheet ─────────────────────────────────────────────── */

.sheet {
  width: 100%;
  max-width: 34rem;
  margin: 1.1rem auto 2.5rem;
  padding: 1.6rem 1.25rem 1.1rem;
  background: var(--cream);
  border-radius: 4px;
  /* A hairline plum frame inset from the edge: the printed-card tell. */
  box-shadow:
    0 0 0 1px rgba(86, 39, 54, 0.3),
    inset 0 0 0 4px var(--cream),
    inset 0 0 0 5px rgba(86, 39, 54, 0.3),
    0 18px 40px rgba(20, 6, 11, 0.45);
}

.sheet-top { text-align: center; padding-bottom: 0.2rem; }

.eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.wordmark {
  font-family: var(--display);
  font-size: 2.1rem;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--red);
  margin: 0.35rem 0 0.3rem;
}

.tagline {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
}

/* ── section tabs ──────────────────────────────────────────── */

.tabs {
  display: flex;
  margin: 1.25rem 0 0.4rem;
  border-top: 1.5px solid var(--rule);
  border-bottom: 1.5px solid var(--rule);
}

.tab {
  flex: 1 1 50%;
  /* The bar tab carries no hours line — centre both so the labels still
     sit on the same optical line as each other. */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.6rem 0.4rem 0.55rem;
  font-family: var(--body);
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.tab + .tab { border-left: 1.5px solid var(--rule); }

.tab-icon { display: block; font-size: 0.95rem; line-height: 1; }

.tab-text {
  display: block;
  font-family: var(--display);
  font-size: 1.02rem;
  margin-top: 0.22rem;
}

.tab-hours {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-top: 0.1rem;
  opacity: 0.8;
}

.tab[aria-selected="true"] {
  color: var(--red);
  border-bottom-color: var(--red);
}

.tab:focus-visible { outline: 2px solid var(--red); outline-offset: -3px; }

/* ── a course ──────────────────────────────────────────────── */

.course {
  margin-top: 1.6rem;
  animation: rise 0.5s ease both;
  animation-delay: calc(var(--step, 1) * 60ms);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.course-name {
  font-family: var(--display);
  font-size: 1.02rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--red);
  text-align: center;
  padding-bottom: 0.4rem;
  margin-bottom: 0.75rem;
  border-bottom: 1.5px solid var(--rule);
}

/* Georgian caps are not a thing — let the KA heading keep its own case. */
html[lang="ka"] .course-name { text-transform: none; letter-spacing: 0.02em; }

.dishes { list-style: none; }

.dish + .dish { margin-top: 0.85rem; }

/* The classic menu row: name, leader dots, price. Flex keeps the dots
   filling whatever space is left after the name and the price. */
.dish-head {
  display: flex;
  align-items: baseline;
  width: 100%;
}

.dish-name {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.005em;
}

.leader {
  flex: 1 1 auto;
  min-width: 1.2rem;
  height: 0.45em;
  margin: 0 0.4rem;
  border-bottom: 1.5px dotted rgba(86, 39, 54, 0.38);
}

.dish-price {
  flex: 0 0 auto;
  font-family: var(--display);
  font-size: 0.92rem;
  color: var(--red);
  white-space: nowrap;
}

.dish-price b { font-weight: inherit; }

.dish-desc {
  font-size: 0.855rem;
  line-height: 1.4;
  color: var(--ink-soft);
  margin-top: 0.1rem;
  padding-right: 3.2rem;
}

.empty {
  margin: 2rem 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ── foot of the sheet ─────────────────────────────────────── */

.sheet-foot {
  margin-top: 2.1rem;
  padding-top: 1.1rem;
  border-top: 1.5px solid var(--rule);
  text-align: center;
  color: var(--ink-soft);
}

.sheet-foot .star {
  width: 1.3rem;
  height: 1.3rem;
  fill: var(--star);
  margin-bottom: 0.4rem;
}

.foot-addr {
  font-family: var(--display);
  font-size: 0.9rem;
  color: var(--plum);
}

.foot-links {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.3rem;
}

.foot-links a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.foot-links a:hover { color: var(--red); border-bottom-color: var(--red); }
.foot-links .dot { margin: 0 0.4rem; }

.foot-note {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  margin-top: 0.55rem;
  opacity: 0.85;
}

/* ── wider screens: the sheet stays a card, never a wall ───── */

@media (min-width: 40rem) {
  .sheet { margin-top: 2rem; padding: 2.2rem 2.4rem 1.4rem; }
  .wordmark { font-size: 2.6rem; }
  .dish-name { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  .course { animation: none; }
}

/* ── print: a guest asking for a paper menu gets a clean one ─ */

@media print {
  body { background: #fff; }
  .bar, .tabs { display: none; }
  .sheet {
    max-width: none;
    margin: 0;
    padding: 0;
    background: #fff;
    box-shadow: none;
  }
  .pane[hidden] { display: block !important; }
  .course { animation: none; break-inside: avoid; }
}
