/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --jade-deep:  #0E241B;
  --jade:       #16362A;
  --jade-soft:  #26493B;
  --ivory:      #F4EFE4;
  --paper:      #FBF8F0;
  --ink:        #17150F;
  --ink-soft:   #4A473E;
  --brass:      #B98A3E;
  --brass-soft: #E1C083;
  --chili:      #A63A2E;
  --sage:       #7C9481;
  --line:       rgba(23, 21, 15, 0.14);
  --line-on-jade: rgba(244, 239, 228, 0.22);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius: 3px;
  --shadow-ticket: 0 18px 40px -20px rgba(14, 36, 27, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; font-weight: 600; }
p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--jade-deep);
  color: var(--ivory);
  border-bottom: 1px solid var(--line-on-jade);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ivory);
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-icon {
  height: 40px;
  width: 40px;
  display: block;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-tagline {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-soft);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brass-soft);
  letter-spacing: 0.03em;
}
.verify-order-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--ivory);
  text-decoration: none;
  border: 1px solid var(--line-on-jade);
  padding: 9px 14px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.verify-order-link:hover { border-color: var(--brass-soft); color: var(--brass-soft); }
.cart-button {
  position: relative;
  background: var(--brass);
  color: var(--jade-deep);
  border: none;
  border-radius: var(--radius);
  padding: 9px 16px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease;
}
.cart-button:hover { background: var(--brass-soft); }
.cart-count {
  background: var(--jade-deep);
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 11px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--jade-deep);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
  padding: 64px 0 72px;
}
.hero .wrap { display: block; }
.hero-content { max-width: 640px; }
.hero-eyebrow {
  color: var(--brass-soft);
  margin-bottom: 18px;
  display: block;
}
.hero h1 {
  font-size: clamp(40px, 5.6vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: italic;
  color: var(--brass-soft);
}
.hero-sub {
  margin-top: 20px;
  max-width: 42ch;
  font-size: 17px;
  color: rgba(244, 239, 228, 0.82);
}
.hero-meta {
  margin-top: 28px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-meta div {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: rgba(244, 239, 228, 0.7);
}
.hero-meta strong {
  display: block;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.hero-cta {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--brass);
  color: var(--jade-deep);
  border: none;
  padding: 15px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-primary:hover { background: var(--brass-soft); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary:disabled:hover { background: var(--brass); }
.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border: 1px solid var(--line-on-jade);
  padding: 15px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
}
.btn-ghost:hover { border-color: var(--brass-soft); color: var(--brass-soft); }

/* ============================================================
   MENU — order-ticket motif
   ============================================================ */
.menu-section { padding: 88px 0 60px; }
.menu-heading { text-align: center; margin-bottom: 44px; }
.menu-heading .eyebrow { color: var(--chili); justify-content: center; display: flex; }
.menu-heading h2 { font-size: 34px; margin-top: 10px; }

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0 14px;
  margin-bottom: 8px;
  scrollbar-width: none;
  position: sticky;
  top: 68px;
  z-index: 30;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}
.category-tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: all 0.15s ease;
}
.tab.active, .tab:hover {
  background: var(--jade);
  border-color: var(--jade);
  color: var(--ivory);
}

.ticket {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-ticket);
  position: relative;
  padding: 8px 0 0;
}
.ticket::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 26px;
  background-image: radial-gradient(circle, var(--ivory) 3.5px, transparent 3.6px);
  background-size: 100% 22px;
  background-position: 13px 0;
}
.ticket-body { padding: 28px 32px 28px 52px; }

.menu-category { margin-bottom: 6px; }
.menu-category:not(:first-child) { margin-top: 34px; padding-top: 30px; border-top: 1px dashed var(--line); }
.menu-category h3 {
  font-size: 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.menu-category h3 .cat-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--sage);
}

.dish {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.dish:last-child { border-bottom: none; }
.dish-info { flex: 1; min-width: 0; }
.dish-name {
  font-weight: 600;
  font-size: 15.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dish-desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.dish-price-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.dish-price {
  font-family: var(--font-mono);
  font-size: 14.5px;
  white-space: nowrap;
}
.dish-no {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--sage);
  margin-right: 2px;
}
.price-todo {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--chili);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 700;
}
.tag-spicy { background: rgba(166, 58, 46, 0.12); color: var(--chili); }
.tag-veg   { background: rgba(124, 148, 129, 0.16); color: #4E6E53; }
.tag-gf    { background: rgba(185, 138, 62, 0.14); color: #8A6526; }
.tag-house { background: rgba(23, 21, 15, 0.08); color: var(--ink-soft); }
.tag-mod { background: rgba(185, 138, 62, 0.16); color: #8A6526; }

/* ============================================================
   MODIFIER PICKER MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 36, 27, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 52;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modifier-modal {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-ticket);
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.96);
  transition: transform 0.2s ease;
}
.modal-overlay.open .modifier-modal { transform: scale(1); }
.modifier-head {
  padding: 20px 22px 14px;
  border-bottom: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  position: sticky;
  top: 0;
  background: var(--paper);
}
.modifier-head h2 { font-size: 18px; }
.modifier-body { padding: 6px 22px; }
.modifier-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.modifier-option:last-child { border-bottom: none; }
.modifier-option input[type="radio"] { margin-top: 3px; accent-color: var(--jade); flex-shrink: 0; }
.modifier-option-label { font-size: 14px; flex: 1; }
.modifier-option-price { font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.modifier-foot { padding: 16px 22px 20px; border-top: 1px dashed var(--line); }
.cart-line-modifier { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }

.add-btn {
  align-self: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--jade);
  background: transparent;
  color: var(--jade);
  font-size: 17px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s ease;
}
.add-btn:hover { background: var(--jade); color: var(--ivory); }
.add-btn.added {
  background: var(--chili);
  border-color: var(--chili);
  color: var(--ivory);
  transform: scale(0.92) rotate(-8deg);
}

/* ============================================================
   CART DRAWER — receipt motif
   ============================================================ */
.overlay {
  position: fixed; inset: 0;
  background: rgba(14, 36, 27, 0.45);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 50;
}
.overlay.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 92vw);
  background: var(--paper);
  z-index: 51;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 40px rgba(14,36,27,0.25);
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  padding: 22px 24px 16px;
  border-bottom: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-head h2 { font-size: 20px; }
.drawer-close {
  background: none; border: none;
  font-size: 22px; line-height: 1;
  color: var(--ink-soft);
}
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-empty {
  padding: 60px 10px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
}
.cart-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 4px 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.qty-control {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
}
.qty-control button {
  width: 22px; height: 22px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 3px;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.cart-line-name { font-weight: 600; font-size: 14px; }
.cart-line-price { font-family: var(--font-mono); font-size: 13.5px; text-align: right; }
.cart-line-remove {
  grid-column: 3 / 4;
  background: none; border: none;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--chili);
  justify-self: end;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.drawer-foot {
  border-top: 1px dashed var(--line);
  padding: 18px 24px 24px;
}
.totals-row {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 13.5px;
  margin-bottom: 6px;
  color: var(--ink-soft);
}
.totals-row.grand {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.drawer-foot .btn-primary { width: 100%; margin-top: 16px; text-align: center; }

/* ============================================================
   CHECKOUT
   ============================================================ */
.checkout-section { display: none; padding: 64px 0 100px; }
.checkout-section.open { display: block; }
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}
.form-card, .summary-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.form-card h2, .summary-card h2 { font-size: 22px; margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--ivory);
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 70px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 12.5px; color: var(--ink-soft); margin-top: -8px; margin-bottom: 18px; }

.summary-card { position: sticky; top: 90px; }
.summary-line {
  display: flex; justify-content: space-between;
  font-size: 13.5px; padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.summary-line span:first-child { color: var(--ink-soft); }
.pay-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
  background: rgba(185,138,62,0.1);
  border: 1px solid rgba(185,138,62,0.25);
  border-radius: var(--radius);
  padding: 12px 14px;
}

/* ============================================================
   CONFIRMATION
   ============================================================ */
.confirm-section { display: none; padding: 100px 0; text-align: center; }
.confirm-section.open { display: block; }
.confirm-stamp {
  width: 92px; height: 92px;
  border: 2px solid var(--chili);
  border-radius: 50%;
  color: var(--chili);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  transform: rotate(-8deg);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1.3;
}
.confirm-section h2 { font-size: 30px; margin-bottom: 12px; }
.confirm-section p { color: var(--ink-soft); max-width: 46ch; margin: 0 auto; }
.confirm-order-id {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--jade);
  color: var(--ivory);
  padding: 8px 14px;
  border-radius: var(--radius);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--jade-deep);
  color: rgba(244,239,228,0.65);
  padding: 40px 0;
  font-size: 13px;
}
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .summary-card { position: static; }
}
@media (max-width: 600px) {
  .site-header .wrap { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; row-gap: 8px; }
  .brand { font-size: 17px; flex: 1 1 auto; min-width: 0; }
  .header-status { display: none; }
  .verify-order-link { display: none; }
  .header-actions { gap: 10px; }
  .cart-button { padding: 10px 14px; font-size: 13px; }
  .add-btn { width: 36px; height: 36px; font-size: 19px; }
  .qty-control button { width: 30px; height: 30px; font-size: 15px; }
  .cart-line-remove { padding: 6px 0; }
  .hero { padding: 48px 0 64px; }
  .hero h1 { font-size: clamp(32px, 9vw, 44px); }
  .category-tabs { top: 58px; }
}
@media (max-width: 520px) {
  .ticket-body { padding: 24px 18px 24px 40px; }
  .field-row { grid-template-columns: 1fr; }
}
