/* Pandava's — The Dining Estate · digital Bhojpatra menu (mobile first) */
:root {
  --paper: #f3e3c0;
  --paper-2: #ead4a6;
  --ink: #2a1c0f;
  --muted: #6b5434;
  --gold: #8c5d17;
  --gold-hi: #7a4f12;
  --accent: #9b2c1c;
  --rule: rgba(140, 93, 23, .42);
  --veg: #2e7a31;
  --nv: #8f3a16;
  --egg: #a86a12;
  --leather: #5a1c16;
  --leather-2: #3f120e;
  --brass: #d9b562;
  --brass-hi: #ecd08a;
  --cream: #f1dfb8;
  --wa: #1f7a4d;
  --card: rgba(255, 248, 232, .55);
  --shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 6px 18px -10px rgba(60, 30, 5, .45);
  --r: 14px;
  --bar-h: 0px;
  --f-title: 'Rozha One', 'Rozha', Georgia, serif;
  --f-caps: 'Cinzel', 'Times New Roman', serif;
  --f-body: 'Cormorant Garamond', 'Corm', Georgia, serif;
  --f-hi: 'Tiro Devanagari Hindi', 'Tiro', serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 10px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 18px/1.42 var(--f-body);
  font-feature-settings: "lnum" 1;
  min-height: 100vh;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--paper) url("assets/bhoj.jpg") center / cover; }
img, svg { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--leather); color: var(--cream); padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--leather-2) url("assets/leather.jpg") center / cover;
  color: var(--cream);
  text-align: center;
  padding: calc(28px + env(safe-area-inset-top)) 16px 26px;
  border-bottom: 3px double var(--brass);
  position: relative;
}
.hero-in { max-width: 560px; margin: 0 auto; }
.hero-logo { width: 104px; height: 104px; margin: 0 auto 6px; color: var(--brass); }
.hero-logo svg { width: 100%; height: 100%; }
.hero-name { font: 400 clamp(44px, 13vw, 64px)/1 var(--f-title); color: var(--brass-hi); margin: 4px 0 2px; letter-spacing: .01em; }
.hero-sub { font: 600 13px/1.3 var(--f-caps); letter-spacing: .32em; text-transform: uppercase; color: var(--brass); margin: 6px 0 2px; }
.hero-hi { font: 400 17px/1.5 var(--f-hi); color: var(--cream); opacity: .9; margin: 2px 0; }
.hero-tag { font: italic 500 19px/1.3 var(--f-body); color: var(--cream); margin: 6px 0 4px; }
.hero-mtn { color: var(--brass); opacity: .75; margin: 6px auto 0; max-width: 420px; height: 52px; overflow: hidden; }
.hero-mtn svg { width: 100%; height: 100%; }
.inhouse {
  margin: 12px auto 0; max-width: 420px;
  border: 1px solid rgba(217,181,98,.6); border-radius: 12px;
  background: rgba(0,0,0,.22); padding: 10px 14px; font-size: 17px;
}
.inhouse b { font: 600 13px/1.4 var(--f-caps); letter-spacing: .14em; color: var(--brass-hi); display: block; text-transform: uppercase; }
.inhouse .ic-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
.inhouse .ic-row span { white-space: nowrap; }
.inhouse .ic-row strong { color: var(--brass-hi); font-weight: 700; }
.hero-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: 999px;
  font: 600 14px/1.1 var(--f-caps); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; transition: background .15s, color .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn-gold { background: var(--brass); color: #3a110d; border-color: var(--brass-hi); }
.btn-gold:hover { background: var(--brass-hi); }
.btn-ghost { background: transparent; color: var(--brass-hi); border-color: rgba(217,181,98,.65); }
.btn-ghost:hover { background: rgba(217,181,98,.12); }
.card .btn-ghost { color: var(--gold-hi); border-color: var(--rule); }
.card .btn-ghost:hover { background: rgba(140,93,23,.08); }
.card .btn-gold { background: var(--leather); color: var(--brass-hi); border-color: var(--leather); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #18663f; }
.btn.wide { width: 100%; margin-top: 12px; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: 16px; padding: 10px; display: block; margin: 4px auto 0; }

/* ---------- Sticky bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(243, 227, 192, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 6px 14px -12px rgba(60,30,5,.6);
}
.bar-in { max-width: 760px; margin: 0 auto; padding: 8px 16px 0; }
.search input {
  width: 100%; height: 42px; padding: 0 14px 0 40px; border-radius: 12px;
  border: 1px solid var(--rule); background: rgba(255,250,238,.85) no-repeat 13px 50% / 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b5434' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E");
  font-size: 18px; font-weight: 600;
}
.search input::placeholder { color: var(--muted); font-weight: 500; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--rule);
  background: rgba(255,250,238,.7); font: 600 13px/1 var(--f-caps); letter-spacing: .06em; color: var(--ink);
}
.chip.on { background: var(--leather); color: var(--brass-hi); border-color: var(--leather); }
.chip .dm { width: 14px; height: 14px; }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 4px -16px 0; padding: 0 12px; }
.tabs a {
  flex: none; padding: 10px 10px 11px; text-decoration: none; color: var(--muted);
  font: 600 12.5px/1 var(--f-caps); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.tabs a.on { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Legend ---------- */
.legend {
  display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center;
  margin: 18px 0 4px; font-size: 15.5px; color: var(--muted);
}
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Marks & badges ---------- */
.dm { display: inline-block; width: 15px; height: 15px; flex: none; }
.dm svg { width: 100%; height: 100%; display: block; }
.dm.veg { color: var(--veg); }
.dm.nv { color: var(--nv); }
.dm.egg { color: var(--egg); }
.bd { display: inline-flex; align-items: center; vertical-align: middle; color: var(--gold); }
.bd svg { display: block; height: 100%; width: auto; }
.bd-s { height: 24px; width: 17px; }
.bd-k { height: 15px; width: 21px; }
.pill {
  display: inline-block; font: 600 10.5px/1 var(--f-caps); letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-hi); border: 1px solid var(--rule); border-radius: 999px; padding: 4px 8px 3px; vertical-align: 2px;
  background: rgba(255,250,238,.55);
}
.pill.sig { color: var(--accent); border-color: rgba(155,44,28,.4); }

/* ---------- Sections ---------- */
.sec { padding: 26px 0 8px; }
.sec-hd { text-align: center; margin: 0 auto 10px; max-width: 560px; }
.sec-ic { width: 54px; height: 44px; margin: 0 auto 4px; color: var(--gold); }
.sec-ic svg { width: 100%; height: 100%; }
.kick { font: 600 12px/1.3 var(--f-caps); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin: 0; }
.sec-hd h2 { font: 400 clamp(32px, 9vw, 42px)/1.08 var(--f-title); color: var(--accent); margin: 4px 0 2px; }
.sec-hd .hi { font: 400 16px/1.5 var(--f-hi); color: var(--muted); margin: 0; }
.lore { font: italic 500 18px/1.42 var(--f-body); color: var(--muted); margin: 10px auto 0; max-width: 520px; }
.divider { color: var(--gold); opacity: .8; height: 18px; margin: 12px auto 0; max-width: 300px; }
.divider svg { width: 100%; height: 100%; display: block; }

.cat { margin-top: 18px; }
.cat-t {
  display: flex; align-items: center; gap: 10px; margin: 0 0 6px;
  font: 600 14px/1.3 var(--f-caps); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-hi);
}
.cat-t::before, .cat-t::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--rule)); }
.cat-t::after { background: linear-gradient(90deg, var(--rule), transparent); }

/* ---------- Dish ---------- */
.dish {
  padding: 13px 0 12px;
  border-bottom: 1px dashed rgba(140, 93, 23, .3);
}
.dish:last-child { border-bottom: 0; }
.d-top { display: flex; gap: 10px; align-items: flex-start; }
.d-top .dm { margin-top: 6px; }
.d-main { flex: 1; min-width: 0; }
.d-name { font: 700 21px/1.18 var(--f-body); margin: 0; color: var(--ink); }
.d-name .bd { margin-left: 4px; }
.d-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.d-desc { margin: 4px 0 0; color: var(--muted); font-size: 17px; line-height: 1.35; }
.d-lore { margin: 6px 0 0; font-style: italic; color: var(--gold-hi); font-size: 16.5px; }
.opts { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 0 25px; }
.opt.solo .opt-p { flex: 1; }
.opt { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.opt-l { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; font-size: 16.5px; color: var(--muted); }
.opt-l .dm { width: 13px; height: 13px; }
.opt-p { font: 700 19px/1 var(--f-body); color: var(--ink); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.opt-p.na { font: italic 500 16px/1.2 var(--f-body); color: var(--muted); }
.add {
  flex: none; min-width: 74px; height: 38px; border-radius: 999px;
  border: 1.5px solid var(--gold); background: rgba(255,250,238,.8); color: var(--gold-hi);
  font: 700 12.5px/1 var(--f-caps); letter-spacing: .12em;
}
.add:hover { background: #fff6e2; }
.step { flex: none; display: inline-flex; align-items: center; height: 38px; border-radius: 999px; background: var(--leather); color: var(--brass-hi); }
.step button { width: 36px; height: 38px; border: 0; background: none; color: inherit; font: 700 20px/1 var(--f-body); }
.step output { min-width: 18px; text-align: center; font: 700 17px/1 var(--f-body); }

/* thali / signature spotlight */
.dish.spot {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 14px 14px 12px; margin: 10px 0; box-shadow: var(--shadow);
}
.dish.spot .d-name { font-family: var(--f-title); font-weight: 400; font-size: 24px; color: var(--accent); }
.spot-k { font: 600 11.5px/1.2 var(--f-caps); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 6px; display: flex; align-items: center; gap: 6px; }
.spot-k .bd-s { height: 20px; width: 14px; }

.empty { text-align: center; color: var(--muted); font-style: italic; padding: 40px 0; }

/* ---------- Visit ---------- */
.visit { padding-top: 28px; }
.card {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 18px 16px; margin: 14px 0; box-shadow: var(--shadow);
}
.card h3 { font: 600 15px/1.3 var(--f-caps); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-hi); margin: 0 0 10px; text-align: center; }
.calls { display: grid; gap: 8px; }
.call {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 12px; border: 1px solid var(--rule); background: rgba(255,250,238,.7);
  text-decoration: none; color: var(--ink);
}
.call small { font: 600 11.5px/1.2 var(--f-caps); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.call strong { font: 700 20px/1 var(--f-body); color: var(--accent); white-space: nowrap; }
.addr { text-align: center; margin: 0 0 10px; font-size: 18px; }
.map { border-radius: 10px; overflow: hidden; border: 1px solid var(--rule); }
.map svg { display: block; width: 100%; height: auto; }
.muted { color: var(--muted); text-align: center; margin: 0; }

/* ---------- Footer ---------- */
.foot { text-align: center; color: var(--muted); padding: 28px 16px 20px; font-size: 15.5px; max-width: 760px; margin: 0 auto; }
.foot-ic { width: 140px; height: 44px; margin: 0 auto; color: var(--gold); opacity: .7; }
.foot-ic svg { width: 100%; height: 100%; }
.foot-t { font: 400 26px/1.2 var(--f-title); color: var(--accent); margin: 6px 0; }

/* ---------- Tray bar ---------- */
.tray {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(243,227,192,0), rgba(243,227,192,.95) 35%);
  pointer-events: none;
}
.tray-btn {
  pointer-events: auto; width: 100%; max-width: 736px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 58px; padding: 8px 10px 8px 18px; border-radius: 16px; border: 1px solid var(--brass);
  background: var(--leather) url("assets/leather.jpg") center / cover; color: var(--cream);
  box-shadow: 0 10px 24px -10px rgba(40,10,5,.7); text-align: left;
}
.tray-l { display: flex; flex-direction: column; min-width: 0; }
.tray-n { font: 600 13px/1.3 var(--f-caps); letter-spacing: .1em; text-transform: uppercase; color: var(--brass-hi); }
.tray-t { font: 700 19px/1.2 var(--f-body); }
.tray-t:empty { display: none; }
.tray-r {
  flex: none; background: var(--brass); color: #3a110d; border-radius: 12px; padding: 11px 14px;
  font: 700 12.5px/1 var(--f-caps); letter-spacing: .12em; text-transform: uppercase;
}
.tray.bump .tray-btn { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.03); } }

/* ---------- Sheet (dialog) ---------- */
.sheet {
  width: 100%; max-width: 640px; max-height: 92vh; max-height: 92dvh; margin: auto auto 0;
  padding: 0; border: 0; border-radius: 20px 20px 0 0; background: var(--paper) url("assets/bhoj.jpg") center / cover;
  color: var(--ink); box-shadow: 0 -10px 40px rgba(0,0,0,.35);
}
@media (min-width: 680px) { .sheet { margin: auto; border-radius: 20px; } }
.sheet::backdrop { background: rgba(30, 10, 5, .55); }
.sheet[open] { animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(30px); opacity: .4; } }
.sheet-in { padding: 6px 16px calc(18px + env(safe-area-inset-bottom)); }
.sheet-hd { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 2; margin: 0 -16px; padding: 12px 16px 10px; background: rgba(238, 222, 186, .97); border-bottom: 1px solid var(--rule); }
.sheet-hd h2 { font: 400 28px/1.1 var(--f-title); color: var(--accent); margin: 0; }
.x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule); background: rgba(255,250,238,.8); font-size: 26px; line-height: 1; }
#lines { margin: 4px 0 8px; }
.line { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed rgba(140,93,23,.3); }
.line-n { flex: 1; min-width: 0; font-weight: 700; font-size: 18px; line-height: 1.2; }
.line-n small { display: block; font-weight: 500; color: var(--muted); font-size: 15px; }
.line-p { font: 700 18px/1 var(--f-body); white-space: nowrap; min-width: 58px; text-align: right; }
.line .step { height: 34px; }
.line .step button { height: 34px; width: 32px; }
.total { display: flex; justify-content: space-between; padding: 10px 0 2px; font-weight: 700; font-size: 19px; }
.total small { display: block; font-weight: 500; color: var(--muted); font-size: 14.5px; }
.tray-empty { color: var(--muted); font-style: italic; margin: 6px 0 10px; }
.fld { display: block; font: 600 12px/1.3 var(--f-caps); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.fld input, .fld select {
  display: block; width: 100%; margin-top: 5px; height: 46px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--rule); background: rgba(255,250,238,.9);
  font: 600 18px/1.2 var(--f-body); letter-spacing: 0; text-transform: none; color: var(--ink);
}
.fld input.bad { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(155,44,28,.15); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.grid .full { grid-column: 1 / -1; }
.err { color: var(--accent); font-weight: 700; min-height: 1.4em; margin: 10px 0 0; font-size: 17px; }
.fine { color: var(--muted); font-size: 15px; text-align: center; margin: 8px 0 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 999px; font-size: 16px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 40; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
@media print { .bar, .tray, .hero-actions, .add, .step { display: none !important; } body { background: #fff; padding: 0; } }
