/* css/components.css — buttons, tickets, the pass rail, cards, forms, FAQ. */

/* ---- buttons ---- */
.btn {
  display: inline-block; font-family: var(--font-body); font-size: var(--t-sm); font-weight: 600;
  letter-spacing: 0.01em; padding: 0.85rem 1.7rem; border-radius: var(--radius);
  border: 1px solid transparent; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ember); color: #fff; }
.btn-primary:hover { background: var(--ember-deep); color: #fff; }
.btn-ghost { border-color: var(--rule-strong); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--ember); color: var(--accent); }
.btn-light { border-color: var(--rule-strong); color: var(--fg); background: var(--bg); }
.btn-light:hover { border-color: var(--ember); color: var(--accent); }
.kitchen .btn-ghost, .kitchen .btn-light { border-color: var(--rule-strong); color: var(--ghee); background: transparent; }
.kitchen .btn-ghost:hover, .kitchen .btn-light:hover { border-color: var(--turmeric); color: var(--turmeric); }

/* ---- hero ---- */
.hero { position: relative; min-height: 88svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; opacity: 0.75; z-index: 0; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(22,16,13,0.25) 0%, rgba(22,16,13,0.6) 55%, var(--coal) 100%); }
.hero .wrap { position: relative; z-index: 2; padding-top: var(--s-9); padding-bottom: var(--s-8); width: 100%; }
.hero h1 { max-width: 14ch; margin-bottom: var(--s-5); }
.hero h1 em { font-style: italic; color: var(--turmeric); }
.hero .lede { color: var(--ghee); opacity: 0.92; }
.hero-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-6); }
.hero-facts { display: flex; gap: var(--s-6); flex-wrap: wrap; margin-top: var(--s-7); font-family: var(--font-data); font-size: var(--t-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ash); }
.hero-facts b { display: block; color: var(--ghee); font-size: var(--t-lg); font-family: var(--font-display); font-weight: 400; letter-spacing: 0; text-transform: none; }
.hero-small { min-height: 0; }
.hero-small .wrap { padding-top: var(--s-8); padding-bottom: var(--s-7); }
.hero-small h1 { font-size: var(--t-2xl); max-width: 20ch; }

/* ---- THE PASS — the signature ------------------------------------------------
   The rail above a kitchen pass, tickets clipped along it: one ticket per
   cuisine, and every ticket names its own chef seat. Static HTML; it scrolls
   sideways on a phone and is still a plain list to a crawler. */
.pass { position: relative; padding: var(--s-6) 0 var(--s-7); border-top: 3px solid var(--turmeric); }
.pass-rail { display: flex; gap: var(--s-3); overflow-x: auto; scroll-snap-type: x proximity; padding: var(--s-2) 0 var(--s-4); scrollbar-width: thin; }
.ticket {
  flex: 0 0 auto; width: 200px; scroll-snap-align: start; background: #fbf6ec; color: var(--ink);
  text-decoration: none; padding: var(--s-4) var(--s-4) var(--s-3); position: relative;
  border-radius: 2px; transform: rotate(-0.4deg); transition: transform 0.18s var(--ease);
  --perf: radial-gradient(circle at 6px 6px, transparent 4px, #fbf6ec 4.5px);
  mask: radial-gradient(circle at 50% 100%, transparent 5px, #000 5.5px);
  -webkit-mask: radial-gradient(circle at 50% 100%, transparent 5px, #000 5.5px);
}
.ticket:nth-child(even) { transform: rotate(0.5deg); }
.ticket:hover { transform: rotate(0) translateY(-4px); color: var(--ink); }
.ticket::before { content: ''; position: absolute; top: -6px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--turmeric); box-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.ticket .t-no { font-family: var(--font-data); font-size: var(--t-xs); color: var(--smoke); letter-spacing: 0.1em; }
.ticket .t-name { font-family: var(--font-display); font-size: 1.25rem; margin: var(--s-1) 0 var(--s-2); line-height: 1.1; }
.ticket .t-chef { font-family: var(--font-data); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ember-deep); border-top: 1px dashed var(--rule-strong); padding-top: var(--s-2); }
.ticket .t-dish { font-size: var(--t-xs); color: var(--smoke); margin: 0 0 var(--s-2); font-style: italic; }
.pass-note { font-size: var(--t-sm); color: var(--ash); max-width: 60ch; }

/* ---- cards ---- */
.card {
  display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: var(--s-5); text-decoration: none; color: var(--fg);
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.card:hover { border-color: var(--ember); transform: translateY(-2px); color: var(--fg); box-shadow: var(--shadow); }
.card h3 { margin: 0 0 var(--s-2); }
.card p { margin: 0; font-size: var(--t-sm); color: var(--muted); }
.card-media { margin: calc(-1 * var(--s-5)) calc(-1 * var(--s-5)) var(--s-4); background: var(--linen-3); aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card-media img { transform: scale(1.03); }
.card-meta { font-size: var(--t-xs); color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 var(--s-3); }
.card .facts { margin-top: auto; padding-top: var(--s-4); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-size: var(--t-xs); color: var(--muted); border-top: 1px solid var(--rule); }
.kitchen .card { background: var(--soot); border-color: var(--iron); color: var(--ghee); }
.kitchen .card p { color: var(--ash); }

/* ---- split feature (photo + text) ---- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-8); align-items: center; }
.split img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; border-radius: var(--radius); }
.split.rev > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: var(--s-6); } .split.rev > :first-child { order: 0; } .split img { aspect-ratio: 4/3; } }

/* ---- the answer block (AEO) ----------------------------------------------------
   The first thing on a page after the H1: a two-to-four sentence answer an
   assistant can lift whole. Linen mat, ember rule. */
.answer { background: var(--linen-2); border-left: 3px solid var(--ember); padding: var(--s-5) var(--s-6); margin: var(--s-6) 0; max-width: 72ch; }
.answer p:last-child { margin-bottom: 0; }
.kitchen .answer { background: var(--soot); border-left-color: var(--turmeric); }

/* ---- rate ledger ---- */
.ledger { border-top: 2px solid var(--fg); font-variant-numeric: tabular-nums; }
.ledger-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--fg); align-items: baseline; }
a.ledger-row:hover { background: var(--linen-2); color: var(--fg); }
.ledger-row .l-name { font-family: var(--font-body); font-weight: 600; }
.ledger-row .l-note { font-size: var(--t-xs); color: var(--muted); }
.ledger-row .l-rate { text-align: right; color: var(--accent); font-weight: 600; }
.ledger-head { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.ledger-note { font-size: var(--t-xs); color: var(--muted); margin-top: var(--s-3); max-width: 70ch; }
@media (max-width: 560px) { .ledger-row { grid-template-columns: 1fr auto; } .ledger-row .l-note { grid-column: 1 / -1; } }

/* ---- stat strip ---- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--s-5); margin: var(--s-6) 0; }
.stats div { border-top: 2px solid var(--ember); padding-top: var(--s-3); }
.stats b { display: block; font-family: var(--font-display); font-size: var(--t-xl); font-weight: 400; line-height: 1; }
.stats span { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-family: var(--font-data); }

/* ---- menu card ---- */
.menu-card { background: #fbf6ec; border: 1px solid var(--rule); padding: var(--s-6); }
.menu-card h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--t-lg); text-align: center; margin-bottom: var(--s-2); }
.menu-card .m-sub { text-align: center; font-family: var(--font-data); font-size: var(--t-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-5); }
.menu-card h4 { font-family: var(--font-data); font-weight: 500; font-size: var(--t-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: var(--s-5) 0 var(--s-2); border-bottom: 1px dashed var(--rule-strong); padding-bottom: var(--s-1); }
.menu-card ul { list-style: none; padding: 0; margin: 0; }
.menu-card li { padding: 0.2rem 0; font-size: var(--t-sm); }
.menu-card li small { color: var(--muted); }
.veg::before { content: ''; display: inline-block; width: 8px; height: 8px; border: 1px solid var(--leaf); background: var(--leaf); margin-right: 0.5rem; vertical-align: 1px; }
.nonveg::before { content: ''; display: inline-block; width: 8px; height: 8px; border: 1px solid #8a2b1f; background: #8a2b1f; margin-right: 0.5rem; vertical-align: 1px; }

/* ---- forms: the order ticket ---- */
.enquire { background: #fbf6ec; border: 1px solid var(--rule); padding: var(--s-7); position: relative; max-width: 860px; }
.enquire::before { content: 'ORDER TICKET · ' attr(data-ticket); position: absolute; top: 0; right: var(--s-5); transform: translateY(-50%); background: var(--coal); color: var(--turmeric); font-family: var(--font-data); font-size: var(--t-xs); letter-spacing: 0.12em; padding: 0.35rem 0.8rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-5); }
.field { display: flex; flex-direction: column; gap: var(--s-1); }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--t-xs); font-family: var(--font-data); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.field label small { text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--t-base); padding: 0.75rem 0.85rem; background: #fff; color: var(--ink);
  border: 1px solid var(--rule-strong); border-radius: var(--radius); width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ember); outline: none; box-shadow: 0 0 0 3px rgba(217,101,31,0.18); }
#form-status { margin: var(--s-3) 0 0; font-size: var(--t-sm); }
#form-status[data-state="error"] { color: #8a2b1f; }
.after-strip { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px dashed var(--rule-strong); font-size: var(--t-sm); }
.after-strip ol { padding-left: 1.2em; margin: 0; }
.after-strip li { margin-bottom: var(--s-2); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .enquire { padding: var(--s-5); } }

/* ---- FAQ ---- */
.faq { max-width: 74ch; }
.faq details { border-bottom: 1px solid var(--rule); padding: var(--s-3) 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: var(--t-md); list-style: none; display: flex; justify-content: space-between; gap: var(--s-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-data); color: var(--accent); flex: none; }
.faq details[open] summary::after { content: '−'; }
.faq details > div { padding: var(--s-3) 0 var(--s-2); color: var(--ink-2); max-width: 66ch; }
.faq details > div p:last-child { margin: 0; }

/* ---- chip list, breadcrumbs, read-next ---- */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; margin: 0 0 var(--s-5); }
.chips a { display: inline-block; padding: 0.35rem 0.8rem; border: 1px solid var(--rule-strong); border-radius: 999px; font-size: var(--t-xs); text-decoration: none; color: var(--fg); }
.chips a:hover { border-color: var(--ember); color: var(--accent); }
.crumbs { font-family: var(--font-data); font-size: var(--t-xs); color: var(--muted); margin: var(--s-4) 0 0; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.read-next { border-top: 1px solid var(--rule); padding-top: var(--s-6); margin-top: var(--s-8); }
.read-next ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-3); }
.read-next a { display: block; padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--fg); font-weight: 500; font-size: var(--t-sm); }
.read-next a:hover { color: var(--accent); }

/* ---- gallery strip ---- */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); }
.strip img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.strip img:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; height: 100%; }
@media (max-width: 700px) { .strip { grid-template-columns: repeat(2, 1fr); } .strip img:nth-child(1) { grid-column: span 2; grid-row: auto; aspect-ratio: 16/10; } }

/* ---- the tasting strip (client-injected) ---- */
.ttc-check { margin: var(--s-5) 0 var(--s-7); padding: var(--s-4) var(--s-5); background: #fbf6ec; border: 1px solid var(--rule-strong); border-left: 3px solid var(--ember); color: var(--ink); }
.ttc-check form { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; }
.ttc-check input { flex: 1 1 150px; min-width: 0; padding: 10px 12px; border: 1px solid var(--rule-strong); border-radius: var(--radius); font: inherit; font-size: 0.9rem; background: #fff; color: var(--ink); }
.ttc-check button { flex: 0 1 auto; padding: 10px 22px; background: var(--ember); color: #fff; font-weight: 600; border: none; border-radius: var(--radius); font: inherit; font-size: 0.9rem; cursor: pointer; }
.ttc-check .more { display: none; width: 100%; }
.ttc-check .done { width: 100%; margin: 6px 0 0; font-weight: 600; color: var(--ember-deep); }
.kitchen .ttc-check { background: var(--soot); color: var(--ghee); border-color: var(--iron); }
.kitchen .ttc-check input { background: var(--coal); color: var(--ghee); border-color: var(--iron); }

/* ---- sadya pages ----
   A sadya is a sequence, so the page is built as one: a two-column order table
   and grouped item lists that keep the leaf's structure visible rather than
   flattening it into prose. */
.ledger-table { width: 100%; border-collapse: collapse; font-size: var(--t-base); }
.ledger-table th { text-align: left; font-family: var(--font-data); font-size: var(--t-xs);
  text-transform: uppercase; letter-spacing: var(--track-caps); color: var(--smoke);
  font-weight: 400; padding: var(--s-3) var(--s-4) var(--s-3) 0; border-bottom: 1px solid var(--rule-strong); }
.ledger-table td { padding: var(--s-3) var(--s-4) var(--s-3) 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ledger-table .mono-cell { font-family: var(--font-data); font-size: var(--t-sm); color: var(--ink-2); white-space: nowrap; }
@media (max-width: 560px) { .ledger-table .mono-cell { white-space: normal; } }

.course-group { border-top: 1px solid var(--rule-strong); padding-top: var(--s-4); }
.course-group h3 { font-family: var(--font-data); font-size: var(--t-xs); text-transform: uppercase;
  letter-spacing: var(--track-caps); color: var(--smoke); font-weight: 400; margin: 0 0 var(--s-3); }

ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
ul.plain li { padding-left: 1.1rem; position: relative; max-width: 62ch; }
ul.plain li::before { content: '·'; position: absolute; left: .25rem; color: var(--ember-deep); font-weight: 700; }
.kitchen ul.plain li::before { color: var(--turmeric); }

/* numbered process list — used on /tasting/ where the order is the information */
ol.sequence-list { counter-reset: st; list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); }
ol.sequence-list li { counter-increment: st; display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--s-4); max-width: 72ch; }
ol.sequence-list li::before { content: counter(st, decimal-leading-zero); font-family: var(--font-data); font-size: var(--t-sm); color: var(--ash); }
