/* =====================================================================
   Daily Dish Restaurant — design tokens
   Char + paper + pepper-ember + turmeric-gold, drawn from the brand's
   own signboard, posters and dish photography — not a generic palette.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Work+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Fraunces:opsz,wght@9..144,500;9..144,600&display=swap');

:root {
  --char: #201510;
  --char-soft: #2b1d16;
  --paper: #F7EFE1;
  --paper-warm: #F2E4C9;
  --ember: #C8391B;
  --ember-dark: #96280f;
  --gold: #E3A419;
  --leaf: #4B5E33;
  --ink: #2A1D14;
  --ink-soft: #6b5c4d;
  --line: rgba(42, 29, 20, 0.14);
  --line-on-char: rgba(247, 239, 225, 0.16);

  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 600; line-height: 1.15; }

.h-display {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-weight: 400;
}

.h-serif { font-family: var(--font-serif); font-weight: 600; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--ember);
}

p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }

/* Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }

.btn-ember { background: var(--ember); color: var(--paper); }
.btn-ember:hover { background: var(--ember-dark); }

.btn-outline { background: transparent; color: var(--paper); border-color: var(--line-on-char); }
.btn-outline:hover { border-color: var(--paper); }

.btn-outline-dark { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline-dark:hover { border-color: var(--ink); }

.btn-gold { background: var(--gold); color: var(--char); }
.btn-gold:hover { filter: brightness(0.94); }

.btn-block { width: 100%; }
.btn-sm { padding: .5em 1em; font-size: .85rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Header --------------------------------------------------------------- */
.site-header {
  background: var(--char);
  color: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--ember);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--paper);
}
.brand svg { width: 40px; height: 40px; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand-name span { color: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  text-decoration: none;
  color: var(--paper);
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.86;
  position: relative;
  padding: 4px 0;
}
.main-nav a:hover, .main-nav a.active { opacity: 1; }
.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  background: var(--ember);
}

.nav-cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
  border: 2px solid var(--line-on-char);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}
.nav-cart:hover { border-color: var(--gold); }
.cart-badge {
  background: var(--ember);
  color: var(--paper);
  border-radius: 999px;
  font-size: 0.72rem;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .main-nav { position: fixed; inset: 76px 0 0 0; background: var(--char); flex-direction: column; align-items: flex-start; padding: 28px 24px; gap: 22px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 1.1rem; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; background: transparent; border: 2px solid var(--line-on-char);
    border-radius: var(--radius-sm); color: var(--paper); cursor: pointer;
  }
  .nav-primary-wrap { display: flex; align-items: center; gap: 12px; }
}

/* Info strip ------------------------------------------------------------ */
.info-strip {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}
.info-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding: 10px 24px;
  align-items: center;
  justify-content: center;
}
.info-strip .item { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); }
.info-strip svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--ember); }
.info-strip strong { color: var(--ink); }

/* Hero ------------------------------------------------------------------ */
.hero {
  background: var(--char);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  padding: 76px 0 0;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero-copy { padding-bottom: 70px; }
.hero-copy .eyebrow { color: var(--gold); }
.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  color: var(--paper);
  margin: 0.1em 0 0.28em;
}
.hero-title .accent { color: var(--ember); }
.hero-sub { color: rgba(247,239,225,0.78); font-size: 1.12rem; max-width: 46ch; margin-bottom: 1.6em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 420px;
}
.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: 140px;
}
.steam { position: absolute; top: -10px; right: 14%; width: 60px; height: 90px; pointer-events: none; opacity: .85; }
.steam path { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; opacity: 0; animation: steamRise 4.5s ease-in infinite; }
.steam path:nth-child(2) { animation-delay: 1.1s; }
.steam path:nth-child(3) { animation-delay: 2.3s; }
@keyframes steamRise {
  0% { opacity: 0; transform: translateY(6px) scaleY(0.85); }
  18% { opacity: .9; }
  75% { opacity: .35; }
  100% { opacity: 0; transform: translateY(-34px) scaleY(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .steam path { animation: none; opacity: .5; }
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { min-height: 260px; order: -1; }
  .hero-visual img { border-radius: 0; }
  .hero-copy { padding-bottom: 44px; }
}

/* Sections ---------------------------------------------------------------- */
section { padding: 84px 0; }
.section-head { max-width: 60ch; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-dark { background: var(--char); color: var(--paper); }
.section-dark .eyebrow { color: var(--gold); }
.section-dark h2 { color: var(--paper); }
.section-tight { padding: 56px 0; }

.rule {
  height: 6px;
  background: var(--gold);
  width: 64px;
  margin: 18px 0 0;
}

/* Featured dish grid -------------------------------------------------------- */
.dish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 26px;
}
.dish-card {
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.dish-photo { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--paper-warm); }
.dish-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.dish-card:hover .dish-photo img { transform: scale(1.045); }
.dish-tag {
  position: absolute; top: 10px; left: 10px;
  background: var(--ember); color: var(--paper);
  font-size: 0.7rem; font-weight: 700; letter-spacing: .04em;
  padding: 4px 9px; border-radius: 3px;
}
.dish-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.dish-body h3 { font-size: 1.08rem; margin: 0; }
.dish-body p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; flex-grow: 1; }
.dish-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 10px; }
.dish-price { font-weight: 700; font-family: var(--font-serif); font-size: 1.05rem; color: var(--ember-dark); }
.dish-price.poa { font-family: var(--font-body); font-size: 0.82rem; color: var(--ink-soft); font-weight: 600; }

/* About split --------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.split img { width: 100%; height: 100%; object-fit: cover; }
.split-photo { aspect-ratio: 3/4; overflow: hidden; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-photo { aspect-ratio: 16/10; }
}
.feature-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--ember); }

/* Category grid --------------------------------------------------------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.cat-tile {
  background: var(--paper);
  padding: 30px 24px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background-color .15s ease;
}
.cat-tile:hover { background: var(--paper-warm); }
.cat-tile .num { font-family: var(--font-serif); color: var(--ember); font-size: .82rem; }
.cat-tile h3 { margin: 0; font-size: 1.1rem; }
.cat-tile span.arrow { margin-top: auto; font-weight: 700; color: var(--ember); }

/* Gallery scroller -------------------------------------------------------- */
.gallery-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}
.gallery-scroll img {
  height: 300px;
  width: auto;
  scroll-snap-align: start;
  flex-shrink: 0;
  object-fit: cover;
}
.gallery-scroll::-webkit-scrollbar { height: 8px; }
.gallery-scroll::-webkit-scrollbar-thumb { background: var(--line-on-char); border-radius: 8px; }

/* CTA band ------------------------------------------------------------------ */
.cta-band { background: var(--ember); color: var(--paper); text-align: center; }
.cta-band h2 { color: var(--paper); }
.cta-band .lede { color: rgba(247,239,225,0.9); margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.cta-band .btn-outline { border-color: rgba(247,239,225,.5); }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--char); color: rgba(247,239,225,0.82); padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: var(--paper); font-size: 0.95rem; letter-spacing: .04em; }
.footer-grid p, .footer-grid a { color: rgba(247,239,225,0.72); font-size: 0.92rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand svg { width: 30px; height: 30px; }
.footer-brand span { font-family: var(--font-display); text-transform: uppercase; font-size: 1.1rem; color: var(--paper); }
.footer-bottom {
  margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line-on-char);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.82rem; color: rgba(247,239,225,0.55);
}
.footer-bottom a { color: rgba(247,239,225,0.7); text-decoration: none; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; } }

/* Page header (menu/about/contact) ----------------------------------------- */
.page-header {
  background: var(--char);
  color: var(--paper);
  padding: 56px 0 44px;
  border-bottom: 3px solid var(--ember);
}
.page-header h1 { color: var(--paper); }
.page-header .eyebrow { color: var(--gold); }
.breadcrumb { font-size: 0.85rem; color: rgba(247,239,225,0.6); margin-bottom: 10px; }
.breadcrumb a { color: rgba(247,239,225,0.85); text-decoration: none; }

/* Menu page --------------------------------------------------------------- */
.menu-layout { display: grid; grid-template-columns: 220px 1fr; gap: 44px; align-items: start; }
.menu-jump { position: sticky; top: 96px; display: grid; gap: 4px; }
.menu-jump a {
  text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 0.9rem;
  padding: 8px 12px; border-left: 3px solid transparent;
}
.menu-jump a:hover, .menu-jump a.active { color: var(--ember); border-color: var(--ember); background: var(--paper-warm); }
@media (max-width: 900px) {
  .menu-layout { grid-template-columns: 1fr; }
  .menu-jump { position: static; display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; }
  .menu-jump a { flex-shrink: 0; border-left: none; border-bottom: 3px solid transparent; }
}

.menu-category { margin-bottom: 56px; scroll-margin-top: 96px; }
.menu-category h2 { font-family: var(--font-serif); font-size: 1.7rem; border-bottom: 2px solid var(--ink); padding-bottom: 14px; margin-bottom: 26px; }
.menu-list { display: grid; gap: 22px; }
.menu-row {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 16px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--line);
}
.menu-row:last-child { border-bottom: none; }
.menu-thumb { width: 84px; height: 84px; border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-warm); flex-shrink: 0; }
.menu-thumb img { width: 100%; height: 100%; object-fit: cover; }
.menu-thumb.empty { display: flex; align-items: center; justify-content: center; }
.menu-thumb.empty svg { width: 30px; height: 30px; color: var(--ember); opacity: .5; }
.menu-info h3 { font-size: 1.05rem; margin: 0 0 4px; }
.menu-info p { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }
.menu-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.menu-actions .dish-price { font-size: 1rem; }
.qty-form { display: flex; align-items: center; gap: 8px; }
.qty-input {
  width: 46px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 6px 4px; font-family: var(--font-body); font-size: 0.9rem;
}
.unavailable-badge { font-size: .75rem; font-weight: 700; color: #a35; background: #f3d9d9; padding: 3px 8px; border-radius: 3px; }

@media (max-width: 560px) {
  .menu-row { grid-template-columns: 60px 1fr; }
  .menu-thumb { width: 60px; height: 60px; }
  .menu-actions { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; margin-top: 6px; }
}

/* Cart & checkout ------------------------------------------------------ */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 2px solid var(--ink); padding: 0 10px 12px; }
.cart-table td { padding: 16px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-item-name { font-weight: 700; }
.cart-item-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-line { display: flex; gap: 12px; align-items: center; }
.remove-link { color: var(--ember-dark); font-size: .82rem; font-weight: 600; text-decoration: none; }
.cart-summary {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  padding: 26px;
  display: grid;
  gap: 10px;
  align-self: start;
}
.cart-summary .row { display: flex; justify-content: space-between; font-size: 0.95rem; }
.cart-summary .row.total { font-size: 1.2rem; font-weight: 700; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 6px; }
.cart-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .cart-grid { grid-template-columns: 1fr; } }
.empty-state { text-align: center; padding: 70px 20px; color: var(--ink-soft); }
.empty-state svg { width: 56px; height: 56px; color: var(--ember); opacity: .5; margin-bottom: 14px; }

.form-grid { display: grid; gap: 18px; }
.form-row { display: grid; gap: 6px; }
.form-row label { font-weight: 700; font-size: 0.88rem; }
.form-row input, .form-row select, .form-row textarea {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.95rem; background: #fff; color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--ember); outline-offset: 1px;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row-2 { grid-template-columns: 1fr; } }
.radio-tabs { display: flex; gap: 10px; }
.radio-tabs label {
  flex: 1; text-align: center; padding: 12px; border: 2px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; font-weight: 700; font-size: 0.9rem;
}
.radio-tabs input { display: none; }
.radio-tabs input:checked + span { color: var(--ember); }
.radio-tabs label:has(input:checked) { border-color: var(--ember); background: var(--paper-warm); }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 22px; }
.alert-success { background: #e7f0df; color: var(--leaf); border: 1px solid #cfe0bf; }
.alert-error { background: #f7dede; color: #96280f; border: 1px solid #eec2c2; }

/* Confirmation ---------------------------------------------------------- */
.confirm-box { text-align: center; padding: 70px 0; max-width: 620px; margin: 0 auto; }
.confirm-box .order-code {
  display: inline-block; background: var(--char); color: var(--gold); font-family: var(--font-serif);
  font-size: 1.4rem; padding: 12px 26px; margin: 18px 0 26px; letter-spacing: .05em;
}

/* Utility ----------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack { display: grid; gap: 10px; }
.tag-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
