/* Soroco House ordering. Tokens from the Soroco House design system
   (Branding/soroco-house-design-system/tokens.json). Urbanist only. */
@font-face { font-family: Urbanist; src: url(/fonts/Urbanist-Variable.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: Urbanist; src: url(/fonts/Urbanist-Variable-Italic.woff2) format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Noto Sans Tamil"; src: url(/fonts/NotoSansTamil-Variable.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --cream: #faebd4;
  --cream-sunk: #f3dcba;
  --surface: #ffffff;
  --sunk: #f2f2f2;
  --ink: #0c0c0c;
  --ink-soft: #3a3a32;
  --muted: #6a6a60;
  --rule: #3a3a3229;
  --brand: #d98d37;
  --veg: #1f8a4c;
  --nonveg: #a5432b;
  --egg: #c99a1b;
  --danger: #b3261e;
  --sans: Urbanist, system-ui, sans-serif;
  --tamil: "Noto Sans Tamil", Urbanist, system-ui, sans-serif;
  --r-sm: 4px;
  --r-md: 12px;
  --shadow: 0 8px 28px rgba(12, 12, 12, 0.14);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink-soft); font: 400 15px/1.47 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.tamil { font-family: var(--tamil); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- header ---------- */
.top { background: var(--cream); }
.top-inner { max-width: 1120px; margin: 0 auto; padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { height: 40px; width: auto; }
.top-links { display: flex; align-items: center; gap: 18px; }
.top-links > a { font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--brand); padding-bottom: 1px; }
.outlet-chip { text-align: right; line-height: 1.15; border: 0; background: none; padding: 4px 0; }
.outlet-chip[hidden] { display: none; }
.outlet-chip .eyebrow { display: block; }
.outlet-chip strong { display: block; color: var(--ink); font-weight: 700; letter-spacing: .02em; }
.outlet-chip .change { font-size: 12px; color: var(--muted); text-decoration: underline; }
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.hero[hidden] { display: none; }
.outlet-bar { max-width: 1120px; margin: 0 auto; padding: 0 16px 20px; }
.outlet-bar .eyebrow { display: block; margin-bottom: 8px; }
.outlet-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.outlet-tab { border: 1.5px solid var(--ink); background: transparent; border-radius: var(--r-sm); padding: 10px 12px; text-align: left; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.outlet-tab strong { color: var(--ink); font-size: 16px; font-weight: 700; overflow-wrap: anywhere; line-height: 1.15; }
.outlet-tab small { color: var(--ink-soft); font-size: 12px; }
.outlet-tab[aria-pressed="true"] { background: var(--ink); }
.outlet-tab[aria-pressed="true"] strong, .outlet-tab[aria-pressed="true"] small { color: #fff; }
.outlet-tab:hover:not([aria-pressed="true"]):not(:disabled) { background: var(--cream-sunk); }
.outlet-tab:disabled { opacity: .45; cursor: not-allowed; }
.hero { max-width: 1120px; margin: 0 auto; padding: 8px 16px 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hero h1 { margin: 0; color: var(--ink); font-size: clamp(28px, 6vw, 44px); line-height: 1.05; font-weight: 700; letter-spacing: -.01em; }
.hero p { margin: 6px 0 0; font-size: clamp(16px, 3.6vw, 20px); font-weight: 300; font-style: italic; color: var(--ink-soft); max-width: 34ch; }
.hero .sogo { width: 84px; flex: none; margin-bottom: -28px; }
.banner { max-width: 1120px; margin: 12px auto 0; padding: 12px 16px; border-left: 3px solid var(--brand); background: var(--surface); color: var(--ink); }
.banner[hidden] { display: none; }

/* ---------- menu nav ---------- */
.menu-nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule); }
.menu-nav-inner { max-width: 1120px; margin: 0 auto; padding: 10px 16px 0; }
.nav-row { display: flex; align-items: center; gap: 10px; }
.section-toggle { display: inline-flex; border: 1px solid var(--ink); border-radius: 999px; overflow: hidden; flex: none; }
.section-toggle button { border: 0; background: none; padding: 6px 16px; font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.section-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.search { flex: 1; min-width: 0; border: 1px solid var(--rule); border-radius: 999px; padding: 7px 14px; background: var(--sunk); }
.veg-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; flex: none; white-space: nowrap; }
.veg-toggle input { accent-color: var(--veg); width: 16px; height: 16px; }
.cat-strip { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; padding: 10px 0 0; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.cat-strip::-webkit-scrollbar { display: none; }
.cat-strip a { flex: none; text-decoration: none; padding-bottom: 9px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid transparent; }
.cat-strip a.active { color: var(--ink); border-color: var(--brand); }

/* ---------- menu ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 8px 16px 140px; }
.cat { padding-top: 28px; scroll-margin-top: 100px; }
.cat h2 { margin: 0; color: var(--ink); font-size: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
.cat .blurb { margin: 8px 0 0; font-size: 14px; font-style: italic; font-weight: 300; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; margin-top: 16px; }
.card { display: flex; flex-direction: column; background: var(--sunk); border-radius: var(--r-sm); overflow: hidden; }
.card .photo { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 10px; }
.card .photo img { width: 100%; height: 100%; object-fit: contain; }
.card .photo.none { aspect-ratio: auto; padding: 0; }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--ink); display: flex; gap: 8px; align-items: baseline; }
.card .desc { margin: 0; font-size: 13px; font-weight: 300; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 500; color: var(--ink); white-space: nowrap; }
.tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 2px 6px; border-radius: 2px; background: var(--brand); color: var(--ink); margin-right: 4px; }
.tag.fav { background: var(--ink); color: #fff; }
.tag.new { background: var(--surface); color: var(--ink); outline: 1px solid var(--ink); }
.tags { min-height: 0; }
.card.off, .row.off { opacity: .55; }

/* menu list rows: items without their own photo */
.rows { margin-top: 8px; }
.rows.two { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.grid + .rows { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; line-height: 1.3; }
.row h3 .tag { margin: 0; position: relative; top: -1px; }
.row .desc { margin: 0; font-size: 13px; font-weight: 300; color: var(--ink-soft); }
.row .price { font-size: 14px; }

/* split: one photo for the section, the list beside it */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; margin-top: 16px; }
.split.right { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.right .split-photos { order: 2; }
.split .rows { margin-top: 0; }
.split-photos { background: var(--sunk); border-radius: var(--r-sm); padding: 20px; display: grid; gap: 12px; position: sticky; top: 112px; }
.split-photos.n2 { grid-template-columns: 1fr 1fr; }
.split-photos.n3 { grid-template-columns: 1fr 1fr 1fr; }
.split-photos figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.split-photos img { width: 100%; aspect-ratio: 1; object-fit: contain; max-height: 380px; }
.split-photos figcaption { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.card.off .add { pointer-events: none; }

.diet { flex: none; width: 13px; height: 13px; border: 1.5px solid currentColor; display: inline-grid; place-items: center; position: relative; top: 1px; }
.diet::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.diet.veg { color: var(--veg); }
.diet.nonveg { color: var(--nonveg); }
.diet.nonveg::after { border-radius: 0; width: 0; height: 0; background: none; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; border-bottom: 6px solid currentColor; }
.diet.egg { color: var(--egg); }

.btn { border: 1.5px solid var(--ink); background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 18px; font-weight: 600; letter-spacing: .02em; }
.btn:hover { background: var(--ink-soft); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--sunk); }
.btn.small { padding: 6px 14px; font-size: 14px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.wide { width: 100%; padding: 14px 18px; font-size: 16px; }

/* ---------- cart bar ---------- */
.cart-bar { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: 16px; width: min(560px, calc(100% - 32px)); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 12px 12px 12px 22px; box-shadow: var(--shadow); text-align: left; }
.cart-bar[hidden] { display: none; }
.cart-bar .go { background: var(--brand); color: var(--ink); border-radius: 999px; padding: 8px 16px; font-weight: 700; }

/* ---------- sheets ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(12, 12, 12, .45); display: flex; align-items: flex-end; justify-content: center; }
.scrim[hidden] { display: none; }
.sheet { background: var(--surface); width: min(640px, 100%); max-height: 92vh; overflow-y: auto; border-radius: var(--r-md) var(--r-md) 0 0; box-shadow: var(--shadow); }
@media (min-width: 720px) { .scrim { align-items: center; } .sheet { border-radius: var(--r-md); max-height: 88vh; } }
.sheet-head { position: sticky; top: 0; background: var(--surface); padding: 16px 16px 12px; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; z-index: 1; }
.sheet-head h2 { margin: 0; font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.sheet-head p { margin: 4px 0 0; font-size: 14px; font-weight: 300; }
.close { border: 0; background: var(--sunk); width: 36px; height: 36px; border-radius: 50%; font-size: 20px; line-height: 1; flex: none; }
.sheet-body { padding: 4px 16px 16px; }
.sheet-foot { position: sticky; bottom: 0; background: var(--surface); padding: 12px 16px 16px; border-top: 1px solid var(--rule); }
.sheet-photo { background: var(--sunk); display: grid; place-items: center; padding: 12px; }
.sheet-photo img { max-height: 220px; object-fit: contain; }

fieldset { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); display: flex; gap: 8px; align-items: baseline; width: 100%; }
legend .req { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); font-size: 12px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.choice input { width: 18px; height: 18px; accent-color: var(--ink); flex: none; margin: 0; }
.choice .grow { flex: 1; }
.choice small { display: block; color: var(--muted); font-size: 13px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--ink); border-radius: 999px; }
.qty button { border: 0; background: none; width: 34px; height: 34px; font-size: 18px; }
.qty span { min-width: 22px; text-align: center; font-weight: 600; }
.field { display: block; margin-top: 14px; }
.field span { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; border: 1px solid #3a3a3255; border-radius: var(--r-sm); padding: 11px 12px; background: var(--surface); }
.field textarea { resize: vertical; min-height: 60px; }
.field .hint { font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 4px; }
.err { color: var(--danger); font-size: 14px; margin: 10px 0 0; }
.err:empty { display: none; }

/* ---------- checkout ---------- */
.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.line .name { color: var(--ink); font-weight: 600; display: flex; gap: 8px; align-items: baseline; }
.line .meta { grid-column: 1; font-size: 13px; color: var(--muted); }
.line .right { grid-row: 1 / span 2; grid-column: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.how { display: grid; gap: 8px; }
.how label { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 12px; }
.how label:has(input:checked) { border-color: var(--ink); background: var(--sunk); }
.how input { margin-top: 3px; accent-color: var(--ink); }
.how strong { color: var(--ink); display: block; }
.how small { color: var(--muted); }
.how .table-no { margin-top: 8px; width: 120px; border: 1px solid #3a3a3255; border-radius: var(--r-sm); padding: 8px 10px; }
.totals { margin-top: 18px; }
.totals div { display: flex; justify-content: space-between; padding: 3px 0; }
.totals .grand { border-top: 1px solid var(--ink); margin-top: 6px; padding-top: 8px; font-weight: 700; color: var(--ink); font-size: 18px; }
.fine { font-size: 12px; color: var(--muted); margin: 10px 0 0; }

/* ---------- status page ---------- */
.status-wrap { max-width: 640px; margin: 0 auto; padding: 24px 16px 64px; }
.status-card { background: var(--sunk); border-radius: var(--r-sm); padding: 20px; }
.status-big { font-size: 28px; font-weight: 700; color: var(--ink); margin: 6px 0 4px; line-height: 1.15; }
.steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.steps li { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.steps li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.steps li.done { color: var(--ink); }
.steps li.done::before { background: var(--brand); border-color: var(--brand); }
.steps li.now { color: var(--ink); font-weight: 700; }
.steps li.now::before { border-color: var(--brand); }

.site-foot { max-width: 1120px; margin: 0 auto; padding: 24px 16px 120px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.empty { padding: 48px 0; text-align: center; color: var(--muted); }

@media (max-width: 760px) {
  .rows.two, .grid + .rows { grid-template-columns: 1fr; }
  .split, .split.right { grid-template-columns: 1fr; gap: 8px; }
  .split.right .split-photos { order: 0; }
  .split-photos { position: static; padding: 12px; }
  .split-photos.n1 img { max-height: 220px; }
}

@media (max-width: 560px) {
  .outlet-tabs { gap: 6px; }
  .outlet-tab { padding: 8px 7px; }
  .outlet-tab strong { font-size: clamp(12px, 3.5vw, 14px); overflow-wrap: normal; letter-spacing: -.01em; }
  .outlet-tab small { font-size: 11px; }
  .grid { gap: 10px; }
  .card { flex-direction: row; }
  .card .photo { aspect-ratio: 1; width: 112px; flex: none; padding: 6px; align-self: stretch; }
  .card .body { padding: 10px 12px 12px; }
  .card h3 { font-size: 15px; }
  .card .foot { padding-top: 6px; }
  .veg-toggle span { display: none; }
  .hero .sogo { width: 64px; }
  .logo { height: 32px; }
}

/* ---------- outlet picker ---------- */
.picker { max-width: 1120px; margin: 0 auto; padding: 28px 16px 48px; }
.picker[hidden], .menu-nav[hidden], .section-toggle[hidden] { display: none; }
.picker-title { margin: 0 0 16px; color: var(--ink); font-size: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
.picker-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.outlet-card { text-align: left; border: 0; border-radius: var(--r-sm); background: var(--sunk); padding: 20px; display: flex; flex-direction: column; gap: 4px; min-height: 220px; transition: background .15s, transform .15s; }
.outlet-card:hover:not(:disabled) { background: var(--cream); transform: translateY(-2px); }
.outlet-card:disabled { opacity: .55; cursor: not-allowed; }
.outlet-name { font-size: clamp(26px, 3.4vw, 34px); overflow-wrap: anywhere; font-weight: 800; letter-spacing: -.015em; line-height: 1; color: var(--ink); margin-top: 6px; }
.outlet-card .tamil { font-size: 14px; color: var(--muted); }
.outlet-serves { margin-top: 12px; font-weight: 600; color: var(--ink); }
.outlet-locality { font-size: 13px; font-weight: 300; }
.outlet-go { margin-top: auto; padding-top: 14px; font-weight: 700; color: var(--ink); }
.picker-foot { margin: 20px 0 0; font-size: 14px; color: var(--muted); }



/* Preview deployments (SITE_MODE=preview) */
.preview-banner { background: #b3261e; color: #fff; text-align: center; font-size: 14px; padding: 8px 16px; position: sticky; top: 0; z-index: 100; }

/* Delivery address in checkout */
.how .addr { display: grid; gap: 8px; margin-top: 10px; }
.how .addr[hidden] { display: none; }
.how .addr input { width: 100%; border: 1px solid #3a3a3255; border-radius: var(--r-sm); padding: 9px 10px; font: inherit; }

/* Delivery on the order page; /track */
.rider-card { background: var(--sunk); border-radius: var(--r-md); padding: 14px 16px; margin: 16px 0 0; }
.rider-card strong { display: block; }
.rider-card a { color: var(--ink); font-weight: 600; }
.track-list { display: grid; gap: 10px; margin: 16px 0; }
.track-list a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: var(--r-md); color: inherit; text-decoration: none; background: var(--surface); }
.track-list a:hover { border-color: var(--ink); }
.track-form { display: grid; gap: 10px; max-width: 420px; margin-top: 8px; }
.track-form input { padding: 12px; font: inherit; border: 1px solid #3a3a3255; border-radius: var(--r-sm); }
