/* ==========================================================================
   Bamyan in-store menu (opened from the table QR codes)
   Phone-first and light: same green plaster, gold and type as the website.
   ========================================================================== */

:root {
  --green-950: #04130b;
  --green-900: #0d3120;
  --green-800: #0c3322;
  --gold: #c9a24e;
  --gold-light: #e6c67c;
  --cream: #f4eddc;
  --soft: rgba(244,237,220,.74);
  --rule: rgba(230,198,124,.22);
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --serif: "Cormorant Garamond", Garamond, Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --green-bg: #0d3120 url("assets/img/tex-green.webp") 50% 0 / 1536px auto repeat;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 118px; }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--serif); font-size: 18px; font-weight: 500; line-height: 1.45;
  color: var(--cream); background: var(--green-bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
abbr { text-decoration: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Header ---------- */
.top { display: flex; justify-content: center; padding: calc(18px + env(safe-area-inset-top)) 16px 14px; }
.brand { display: flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; font-size: 30px; }
.brand-word {
  font-family: var(--display); font-weight: 500; letter-spacing: .2em; padding-left: .2em;
  background: linear-gradient(180deg, #fbe7ad 0%, #e2bb63 50%, #b78a3a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-sub { margin-top: .4em; font-size: .3em; font-weight: 600; letter-spacing: .42em; padding-left: .42em; text-transform: uppercase; color: var(--soft); }

/* ---------- Sticky bar: menu tabs + section chips ---------- */
.bar {
  position: sticky; top: 0; z-index: 10;
  background: var(--green-bg);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  box-shadow: 0 10px 22px -16px rgba(0,0,0,.8);
}
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px 12px 6px; max-width: 720px; margin: 0 auto; }
.tabs button {
  min-height: 40px; padding: 0 8px; border-radius: 999px; cursor: pointer;
  font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-light); background: transparent; border: 1px solid rgba(230,198,124,.45);
}
.tabs button[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--green-950); }
.chips { display: flex; gap: 4px; overflow-x: auto; padding: 4px 8px 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; max-width: 720px; margin: 0 auto; }
.chips::-webkit-scrollbar { display: none; }
.chips a {
  flex: none; padding: 9px 10px 10px; border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none;
  font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft);
}
.chips a.is-active { color: var(--gold-light); border-color: var(--gold); }
.chips a[hidden], .chips[hidden] { display: none; }

/* ---------- Search + vegetarian filter ---------- */
.tools { display: flex; gap: 8px; padding: 14px 14px 4px; max-width: 720px; margin: 0 auto; }
.search { flex: 1; position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 12px; width: 18px; height: 18px; color: var(--gold-light); pointer-events: none; }
.search input {
  width: 100%; min-height: 42px; padding: 0 12px 0 38px; border-radius: 10px;
  font: 500 17px var(--serif); color: var(--cream);
  background: rgba(4,19,11,.35); border: 1px solid rgba(230,198,124,.35);
}
.search input::placeholder { color: rgba(244,237,220,.55); }
.search input:focus { outline: none; border-color: var(--gold); }
.veg {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 12px; border-radius: 10px; cursor: pointer;
  font-family: var(--sans); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--soft); background: rgba(4,19,11,.35); border: 1px solid rgba(230,198,124,.35);
}
.veg[aria-pressed="true"] { color: var(--green-950); background: #8fd19e; border-color: #8fd19e; }
.veg[aria-pressed="true"] .d-v { color: var(--green-950); }

/* ---------- Dishes ---------- */
main { max-width: 720px; margin: 0 auto; padding: 4px 14px 10px; }
.group[hidden], .sec[hidden], .d[hidden], .d-sub[hidden] { display: none; }
.sec { padding-top: 22px; }
.sec h2 { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: .06em; color: var(--gold-light); }
.sec-sub { margin-top: 2px; font-style: italic; color: var(--soft); }
.sec ul { list-style: none; margin: 8px 0 0; padding: 0; }
.d { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.d img { flex: none; width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0,0,0,.35)); }
.d-body { flex: 1; min-width: 0; }
.d-head { display: flex; align-items: baseline; gap: 8px; }
.d-num { flex: none; font-family: var(--sans); font-size: 11px; color: var(--gold-light); opacity: .85; min-width: 1.6em; }
.d h3 { flex: 1; min-width: 0; font-family: var(--display); font-weight: 500; font-size: 16px; letter-spacing: .03em; line-height: 1.3; }
.d-price { flex: none; font-weight: 700; font-size: 18px; color: var(--gold-light); white-space: nowrap; }
.d p { margin-top: 3px; font-size: 16px; line-height: 1.4; color: var(--soft); }
.d-v { display: inline-grid; place-items: center; width: 17px; height: 17px; border: 1px solid currentColor; border-radius: 50%; font-family: var(--sans); font-size: 9px; font-weight: 600; font-style: normal; color: #8fd19e; vertical-align: 2px; }
.d-sub { padding: 16px 0 6px; }
.d-sub h4 { font-family: var(--display); font-weight: 500; font-size: 17px; letter-spacing: .05em; color: var(--gold-light); }
.d-sub p { margin-top: 2px; font-style: italic; font-size: 16px; color: var(--soft); }
.d-head { flex-wrap: wrap; row-gap: 0; }
.d-price--multi { flex-basis: 100%; padding-left: calc(1.6em + 8px); white-space: normal; font-size: 17px; }
@media (max-width: 400px) { .tabs button { font-size: 11px; letter-spacing: .06em; } }
.empty { padding: 40px 0; text-align: center; font-style: italic; color: var(--soft); }

/* ---------- Footer ---------- */
.foot { max-width: 720px; margin: 0 auto; padding: 22px 14px calc(30px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
.note { font-size: 16px; font-style: italic; color: var(--soft); text-align: center; }
.cta {
  display: block; padding: 14px 16px; border-radius: 12px; text-decoration: none; text-align: center;
  background: linear-gradient(180deg, rgba(255,237,213,.07), rgba(255,237,213,.02)); border: 1px solid rgba(201,162,78,.4);
}
.cta strong { display: block; font-family: var(--display); font-weight: 500; font-size: 17px; letter-spacing: .05em; color: var(--gold-light); }
.cta span { display: block; margin-top: 2px; font-size: 16px; color: var(--soft); }
.cta--gold { background: var(--gold); border-color: var(--gold); }
.cta--gold strong { color: var(--green-950); }
.cta--gold span { color: rgba(4,19,11,.75); }
.addr { margin-top: 6px; text-align: center; font-family: var(--sans); font-size: 12px; letter-spacing: .06em; color: rgba(244,237,220,.55); }
.addr a { text-decoration: none; }
