@font-face {
  font-family: "Baloo Bhai 2";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/baloo-bhai-2-gujarati.woff2) format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0A80-0AFF, U+200C-200D, U+20B9, U+25CC, U+A830-A839;
}
@font-face {
  font-family: "Baloo Bhai 2";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/baloo-bhai-2-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand: #17433d;
  --brand-deep: #10332e;
  --cream: #fbeea0;
  --orange: #ef6a24;

  --bg: #f5f2e9;
  --card: #ffffff;
  --ink: #1d2b28;
  --muted: #687671;
  --line: #ece7da;
  --price: #17433d;
  --head-bg: #fbeea0;
  --head-ink: #17433d;
  --jain: #23744a;
  --jain-bg: #e4f2e8;
  --out-bg: #fdeceb;
  --out-bar: #d92d20;
  --out-ink: #b42318;
  --out-tag: #fbd5d1;
  --shadow: 0 1px 2px rgba(23, 67, 61, .06), 0 4px 16px rgba(23, 67, 61, .06);
  --title: var(--price);
  /* search field, steppers, main buttons, cart bar and sheet (dark mode sets its own) */
  --field-bg: rgba(255, 255, 255, .95);
  --field-ink: #1d2b28;
  --field-muted: #687671;
  --field-hint: #8a9692;
  --clear-bg: #eceae2;
  --step-bg: var(--brand);
  --step-ink: var(--cream);
  --cta-bg: var(--brand);
  --cta-ink: var(--cream);
  --obar-bg: var(--brand-deep);
  --obar-ink: var(--cream);
  --obar-edge: transparent;
  --sheet-bg: var(--card);
  --sheet-edge: transparent;
  --overlay: rgba(0, 0, 0, .45);
  --ocard-bg: var(--brand);
  --ocard-ink: var(--cream);
  --ocard-edge: transparent;
  --logo-bg: #fffaf0;

  --bar-h: 112px;
  color-scheme: light;
}
/* dark: calm charcoal-green surfaces; gold only for prices and actions; the cart sheet sits a step above the page */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #12322d;
    --brand-deep: #0e2824;
    --bg: #0b1412;
    --card: #121e1b;
    --ink: #eef3f0;
    --muted: #98aba5;
    --line: rgba(255, 255, 255, .07);
    --price: #f1dd8a;
    --title: #eef3f0;
    --head-bg: #17251f;
    --head-ink: #f1dd8a;
    --jain: #8ed7a7;
    --jain-bg: rgba(142, 215, 167, .12);
    --out-bg: rgba(240, 68, 56, .12);
    --out-bar: #f04438;
    --out-ink: #fda29b;
    --out-tag: rgba(240, 68, 56, .22);
    --shadow: none;
    --field-bg: #1a2925;
    --field-ink: #eef3f0;
    --field-muted: #8ea19b;
    --field-hint: #8ea19b;
    --clear-bg: #263833;
    --step-bg: #24372f;
    --step-ink: #f1dd8a;
    --cta-bg: #f1dd8a;
    --cta-ink: #10302b;
    --obar-bg: #1a2a26;
    --obar-ink: #eef3f0;
    --obar-edge: rgba(255, 255, 255, .08);
    --sheet-bg: #15221f;
    --sheet-edge: rgba(255, 255, 255, .08);
    --overlay: rgba(0, 0, 0, .62);
    --ocard-bg: #16403a;
    --ocard-ink: #f1dd8a;
    --ocard-edge: transparent;
    --logo-bg: #f1ead6;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #12322d;
  --brand-deep: #0e2824;
  --bg: #0b1412;
  --card: #121e1b;
  --ink: #eef3f0;
  --muted: #98aba5;
  --line: rgba(255, 255, 255, .07);
  --price: #f1dd8a;
  --title: #eef3f0;
  --head-bg: #17251f;
  --head-ink: #f1dd8a;
  --jain: #8ed7a7;
  --jain-bg: rgba(142, 215, 167, .12);
  --out-bg: rgba(240, 68, 56, .12);
  --out-bar: #f04438;
  --out-ink: #fda29b;
  --out-tag: rgba(240, 68, 56, .22);
  --shadow: none;
  --field-bg: #1a2925;
  --field-ink: #eef3f0;
  --field-muted: #8ea19b;
  --field-hint: #8ea19b;
  --clear-bg: #263833;
  --step-bg: #24372f;
  --step-ink: #f1dd8a;
  --cta-bg: #f1dd8a;
  --cta-ink: #10302b;
  --obar-bg: #1a2a26;
  --obar-ink: #eef3f0;
  --obar-edge: rgba(255, 255, 255, .08);
  --sheet-bg: #15221f;
  --sheet-edge: rgba(255, 255, 255, .08);
  --overlay: rgba(0, 0, 0, .62);
  --ocard-bg: #16403a;
  --ocard-ink: #f1dd8a;
  --ocard-edge: transparent;
  --logo-bg: #f1ead6;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 8px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Baloo Bhai 2", "Noto Sans Gujarati", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(255, 255, 255, .09), transparent 60%),
    var(--brand);
  color: var(--cream);
  padding: calc(18px + env(safe-area-inset-top)) 16px 4px;
  text-align: center;
}
.hero { position: relative; }
.hero-inner { max-width: 760px; margin: 0 auto; }
/* light / dark switch (js/theme.js): moon in light mode, sun in dark mode */
.theme-btn {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  right: 12px;
  width: 42px; height: 42px;
  border: 0; border-radius: 13px;
  background: rgba(255, 255, 255, .12);
  color: var(--cream);
  display: grid; place-items: center;
  z-index: 1;
}
.theme-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .sun, .theme-btn.is-dark .moon { display: none; }
.theme-btn.is-dark .sun { display: block; }
/* the event's logos, in their own colours on a light badge (the maroon lettering needs a light ground) */
.event-logos {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 auto 12px;
  padding: 8px 18px;
  border-radius: 16px;
  background: var(--logo-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.event-logos img { display: block; height: 70px; width: auto; }
.event-logos img.dbf { height: 34px; }
.event-logos .sep { width: 1px; align-self: stretch; margin: 4px 0; background: rgba(89, 12, 12, .16); }
.title {
  margin: 0;
  font-size: clamp(44px, 13vw, 64px);
  font-weight: 800;
  line-height: 1.25;
}
html[lang="en"] .title { text-transform: uppercase; letter-spacing: .04em; }
.subtitle {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(251, 238, 160, .7);
}
.subtitle:lang(gu) { margin-top: 4px; font-size: 16px; letter-spacing: .02em; }
html[lang="en"] .title { line-height: 1.1; }
.plates {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(6px, 3vw, 22px);
  margin: 14px auto 0;
  max-width: 520px;
}
.plates img {
  width: clamp(66px, 21vw, 104px);
  height: auto;
  filter: drop-shadow(0 6px 0 var(--orange));
}

/* ---------- Sticky bar ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--brand);
  padding: 10px 0 0;
  transition: box-shadow .2s;
}
.bar.stuck { box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.bar-inner { max-width: 760px; margin: 0 auto; }
.bar-row { display: flex; gap: 8px; align-items: center; padding: 0 16px; }

.search {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 44px;
  border-radius: 22px;
  background: var(--field-bg);
  color: var(--field-ink);
  padding: 0 4px 0 14px;
}
.search > svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--field-muted); stroke-width: 2.2; stroke-linecap: round; }
.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: inherit;
  padding: 2px 8px 0;
  outline: none;
}
.search input::-webkit-search-cancel-button { display: none; }
.search input::placeholder { color: var(--field-hint); }
.search:focus-within { box-shadow: 0 0 0 3px var(--orange); }
.clear {
  width: 36px; height: 36px; flex: none;
  border: 0; border-radius: 50%;
  background: var(--clear-bg);
  display: grid; place-items: center;
}
.clear svg { width: 16px; height: 16px; fill: none; stroke: var(--field-ink); stroke-width: 2.4; stroke-linecap: round; }

.jain-toggle {
  flex: none;
  height: 44px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 13px 0 11px;
  border-radius: 22px;
  border: 1.5px solid rgba(251, 238, 160, .45);
  background: transparent;
  color: var(--cream);
  font-weight: 700;
  font-size: 15px;
}
.jain-toggle .box {
  width: 18px; height: 18px; flex: none;
  border-radius: 5px;
  border: 2px solid currentColor;
  margin-top: -2px;
  display: grid; place-items: center;
}
.jain-toggle .box svg { width: 12px; height: 12px; fill: none; stroke: var(--cream); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.jain-toggle[aria-pressed="true"] { background: var(--cream); border-color: var(--cream); color: var(--brand); }
.jain-toggle[aria-pressed="true"] .box { background: #23744a; border-color: #23744a; }
.jain-toggle[aria-pressed="true"] .box svg { visibility: visible; }

.lang {
  flex: none;
  display: flex;
  height: 44px;
  padding: 3px;
  border-radius: 22px;
  background: rgba(0, 0, 0, .22);
}
.lang button {
  border: 0;
  background: transparent;
  color: rgba(251, 238, 160, .8);
  font-weight: 700;
  font-size: 15px;
  min-width: 46px;
  padding: 2px 10px 0;
  border-radius: 19px;
}
.lang button[aria-pressed="true"] { background: var(--cream); color: var(--brand); }

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 16px 12px;
  scrollbar-width: none;
  scroll-padding: 0 16px;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chips.dragging { cursor: grabbing; }
.chips.dragging .chip { pointer-events: none; }
/* Edge fades sit on top of the row (not a mask on it), so scrolling stays on
   the GPU instead of repainting every frame. */
.chips-wrap { position: relative; }
.chips-wrap::before, .chips-wrap::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 28px;
  pointer-events: none;
  transition: opacity .2s;
  z-index: 1;
}
.chips-wrap::before { left: 0; background: linear-gradient(90deg, var(--brand), transparent); }
.chips-wrap::after { right: 0; background: linear-gradient(270deg, var(--brand), transparent); }
.chips-wrap.at-start::before, .chips-wrap.at-end::after { opacity: 0; }
.chip {
  flex: none;
  height: 38px;
  padding: 3px 15px 0;
  border-radius: 19px;
  border: 0;
  background: rgba(255, 255, 255, .1);
  color: rgba(251, 238, 160, .92);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.chip.active { background: var(--cream); color: var(--brand); font-weight: 700; }
.chip:disabled { opacity: .35; cursor: default; }

/* ---------- Menu ---------- */
.menu {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 12px 8px;
}
.filter-note {
  margin: 0 4px 12px;
  font-size: 15px;
  color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.section {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin: 0 0 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 16px 8px;
  background: var(--head-bg);
  color: var(--head-ink);
}
.section-head .text { flex: 1; min-width: 0; }
.section-head h2 { margin: 0; font-size: 21px; font-weight: 800; line-height: 1.2; }
.section-head .sub { display: block; font-size: 14px; font-weight: 600; opacity: .75; }
.section-head img { width: 62px; height: 44px; object-fit: contain; margin: -6px -4px -6px 0; }

.items { list-style: none; margin: 0; padding: 2px 0 4px; }
.item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 16px 10px;
}
.item + .item { border-top: 1px solid var(--line); }
.item .name { flex: 1; min-width: 0; font-weight: 600; font-size: 17.5px; line-height: 1.3; }
.item .note { font-weight: 500; font-size: 14.5px; color: var(--muted); white-space: nowrap; }
.item .price {
  flex: none;
  font-weight: 800;
  font-size: 17.5px;
  color: var(--price);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.item.soldout {
  background: var(--out-bg);
  box-shadow: inset 4px 0 0 var(--out-bar);
}
.item.soldout .name { opacity: .6; }
.soldout-tag {
  flex: none;
  align-self: center;
  padding: 2px 10px 0;
  border-radius: 999px;
  background: var(--out-tag);
  color: var(--out-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 22px;
  white-space: nowrap;
}
.item .price.mrp { font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }

.badge {
  display: inline-block;
  vertical-align: 2px;
  margin-left: 4px;
  padding: 1px 7px 0;
  border-radius: 6px;
  background: var(--jain-bg);
  color: var(--jain);
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
}

.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty p { margin: 0 0 14px; font-size: 18px; }
.empty button {
  border: 0;
  height: 44px;
  padding: 2px 20px 0;
  border-radius: 22px;
  background: var(--cta-bg);
  color: var(--cta-ink);
  font-weight: 700;
}

.foot {
  max-width: 760px;
  margin: 0 auto;
  padding: 4px 16px calc(28px + env(safe-area-inset-bottom));
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}
.foot p { margin: 0; }
.foot .badge { margin: 0 2px 0 0; }

@media (min-width: 600px) {
  .menu { padding: 22px 16px 8px; }
  .item { padding: 12px 20px 11px; }
  .section-head { padding: 12px 20px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- online ordering (js/order.js) ---------- */
.item.orderable { align-items: center; }
.oq { flex: none; display: inline-flex; }
.oadd {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--price); background: var(--card); color: var(--price);
  font-size: 25px; font-weight: 600; line-height: 1; padding: 0 0 3px;
  display: grid; place-items: center;
}
.ostep {
  display: inline-flex; align-items: center; height: 40px; border-radius: 20px;
  background: var(--step-bg); color: var(--step-ink); font-weight: 800;
}
.ostep button {
  width: 36px; height: 100%; border: 0; background: transparent; color: inherit;
  font-size: 22px; font-weight: 600; line-height: 1; padding: 0 0 3px;
}
.ostep button.max { opacity: .35; }
.ostep i { font-style: normal; min-width: 18px; text-align: center; font-size: 17px; padding-top: 2px; }
.ostep.sm { height: 36px; }
.ostep.sm button { width: 32px; font-size: 20px; }
.ojain { display: flex; gap: 6px; margin-top: 6px; }
.ojain button {
  font-size: 13px; font-weight: 700; padding: 2px 11px 0; border-radius: 999px; line-height: 24px;
  border: 1.5px solid var(--line); background: transparent; color: var(--muted);
}
.ojain button.on { background: var(--jain-bg); border-color: var(--jain); color: var(--jain); }

body.has-obar .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
body.osheet-open { overflow: hidden; }
#obar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 0 12px calc(12px + env(safe-area-inset-bottom)); pointer-events: none; }
.obar-in {
  pointer-events: auto; width: 100%; max-width: 736px; margin: 0 auto; height: 58px; border: 0; border-radius: 29px;
  background: var(--obar-bg); color: var(--obar-ink); text-align: left; box-shadow: 0 0 0 1px var(--obar-edge), 0 8px 24px rgba(0, 0, 0, .25);
  display: flex; align-items: center; justify-content: space-between; padding: 2px 8px 0 22px;
  font-size: 16px;
}
.obar-in .go { background: var(--cream); color: var(--brand); font-weight: 800; height: 42px; border-radius: 21px; padding: 3px 18px 0; display: flex; align-items: center; }
.obar-in.after { background: var(--orange); color: #fff; }
.obar-in.after .go { color: var(--orange); background: #fff; }

.osheet-wrap { position: fixed; inset: 0; z-index: 30; background: var(--overlay); display: flex; align-items: flex-end; }
.osheet {
  width: 100%; max-width: 760px; max-height: 88vh; overflow-y: auto; margin: 0 auto; background: var(--sheet-bg); color: var(--ink);
  border-radius: 22px 22px 0 0; box-shadow: 0 -1px 0 var(--sheet-edge); padding: 12px 18px calc(18px + env(safe-area-inset-bottom));
}
.ohead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.ohead h3 { margin: 0; font-size: 22px; font-weight: 800; color: var(--title); }
.oclose { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--line); color: var(--ink); font-size: 24px; line-height: 1; padding: 0 0 3px; }
.olines { list-style: none; margin: 0; padding: 0; }
.olines li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.olines .n { flex: 1; min-width: 0; font-weight: 600; font-size: 17px; }
.olines .n small { display: block; font-size: 13px; color: var(--out-ink); font-weight: 600; }
.olines li.out .n { opacity: .8; }
.olines .p { flex: none; font-weight: 800; min-width: 52px; text-align: right; color: var(--price); }
.olines.ro .q { flex: none; color: var(--muted); font-weight: 700; min-width: 30px; }
.oremove { flex: none; height: 34px; border: 1.5px solid var(--out-bar); color: var(--out-ink); background: transparent; border-radius: 17px; padding: 2px 12px 0; font-weight: 700; font-size: 14px; }
.ototal { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 4px; font-size: 16px; color: var(--muted); }
.ototal b { font-size: 24px; color: var(--price); }
.onote { margin: 4px 0 14px; color: var(--muted); font-size: 15px; }
.oerr { margin: 6px 0 14px; padding: 10px 12px 8px; border-radius: 12px; background: var(--out-bg); color: var(--out-ink); font-weight: 600; box-shadow: inset 4px 0 0 var(--out-bar); }
.oplace { width: 100%; height: 56px; border: 0; border-radius: 28px; background: var(--cta-bg); color: var(--cta-ink); font-size: 19px; font-weight: 800; padding-top: 3px; }
.oplace:disabled { opacity: .45; }

.oconfirm { position: fixed; inset: 0; z-index: 40; background: var(--bg); overflow: auto; }
.oc-in { max-width: 520px; margin: 0 auto; padding: calc(28px + env(safe-area-inset-top)) 20px 28px; text-align: center; }
.tick { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto; background: #23744a; color: #fff; font-size: 30px; line-height: 58px; }
.oc-in h2 { margin: 12px 0 16px; font-size: 26px; font-weight: 800; color: var(--title); }
.ocard { display: flex; flex-direction: column; align-items: center; background: var(--ocard-bg); color: var(--ocard-ink); box-shadow: inset 0 0 0 1px var(--ocard-edge); border-radius: 22px; padding: 18px 16px 14px; }
.ocard .lbl { font-size: 16px; opacity: .85; }
.ocard .big { font-size: 84px; font-weight: 800; line-height: 1.05; letter-spacing: .02em; }
.ocard .valid { font-size: 14px; opacity: .75; }
.oc-in .show { font-size: 17px; font-weight: 600; margin: 16px 4px 10px; }
.oc-in .olines { text-align: left; }
.oback { margin-top: 18px; height: 50px; padding: 3px 26px 0; border-radius: 25px; border: 1.5px solid var(--price); background: transparent; color: var(--price); font-weight: 800; font-size: 17px; }

.opaid { display: block; margin: 14px auto 0; border: 0; background: transparent; color: var(--muted); font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 8px 12px; }

.menu-wait { text-align: center; color: var(--muted); font-size: 18px; padding: 56px 20px; margin: 0; }
