:root {
  --ember-900: #140a08;
  --ember-800: #1a0d0b;
  --ember-700: #24120f;
  --ember-600: #2f1814;
  --line: rgba(242, 197, 197, 0.12);
  --maroon: #6c1919;
  --red: #d23e3e;
  --red-hot: #e8574a;
  --blush: #f2c5c5;
  --gold: #e9a94b;
  --text: #fbefe9;
  --muted: #c9aca4;
  --radius: 20px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.7);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bar-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 100% 0%, rgba(210, 62, 62, 0.12), transparent 60%),
    radial-gradient(900px 500px at 0% 40%, rgba(108, 25, 25, 0.25), transparent 60%),
    var(--ember-800);
  min-height: 100vh;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: var(--blush); }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 99; background: var(--blush); color: var(--maroon); padding: 10px 14px; border-radius: 10px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0;
  font-weight: 700; letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease, opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: linear-gradient(180deg, var(--red-hot), var(--red));
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(210, 62, 62, 0.8), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn--primary:hover { background: linear-gradient(180deg, #f0665a, #dc4646); }
.btn--ghost { background: rgba(242, 197, 197, 0.08); color: var(--blush); border: 1px solid var(--line); }
.btn--ghost:hover { background: rgba(242, 197, 197, 0.14); }
.btn--block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.is-copied { background: #2f6b3f; color: #fff; border-color: transparent; }

.pill {
  white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 600;
}
.pill svg { width: 15px; height: 15px; }
.pill--notice { background: rgba(20, 10, 8, 0.6); color: var(--blush); border: 1px solid rgba(242,197,197,.25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding-bottom: 56px; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,10,8,.55) 0%, rgba(20,10,8,.35) 30%, rgba(26,13,11,.92) 78%, var(--ember-800) 100%),
    url("images/hero.webp") center 40% / cover no-repeat;
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: calc(16px + env(safe-area-inset-top)); padding-bottom: 16px; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 800; font-size: 1.125rem; letter-spacing: .01em; }
.brand__mark { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #100e0f; box-shadow: 0 0 0 1.5px rgba(242,197,197,.35), 0 6px 16px rgba(0,0,0,.5); }
.hero__content { padding-top: 22vh; max-width: 1080px; }
.eyebrow {
  display: inline-block; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px;
  background: var(--blush); color: var(--maroon); font-weight: 700; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase;
}
.hero h1 {
  font-family: var(--serif); font-weight: 800; font-size: clamp(2.1rem, 8.5vw, 4rem); line-height: 1.04;
  letter-spacing: -0.015em; margin: 0 0 14px; max-width: 14ch; text-shadow: 0 4px 30px rgba(0,0,0,.45);
}
.lede { font-size: 1.0625rem; color: #f3dcd5; max-width: 46ch; margin: 0 0 24px; }

/* ---------- Sections ---------- */
.section { padding-top: 32px; padding-bottom: 16px; }
.section__head h2 { font-family: var(--serif); font-size: clamp(1.75rem, 6vw, 2.5rem); margin: 0 0 6px; letter-spacing: -0.01em; }
.section__head h2::after { content: ""; display: block; width: 48px; height: 4px; margin-top: 10px; border-radius: 4px; background: linear-gradient(90deg, #e3241b 0 33%, #f6c933 33% 66%, #4f8a1c 66%); }
.section__head p { margin: 0 0 22px; }

.card {
  background: linear-gradient(180deg, rgba(47,24,20,.85), rgba(36,18,15,.85));
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ---------- Menu ---------- */
.menu-grid { display: grid; gap: 18px; }
.dish { overflow: hidden; display: grid; }
.dish__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ember-700); }
.dish__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.dish:hover .dish__img img { transform: scale(1.04); }
.dish__body { padding: 18px 16px 16px; }
.dish h3 { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 4px; }
.dish__body > p { margin: 0 0 14px; font-size: .9375rem; }

.sizes { display: grid; gap: 10px; }
.size {
  display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 4px; border-radius: 16px;
  background: rgba(20,10,8,.45); border: 1.5px solid transparent; transition: border-color .2s, background-color .2s;
}
.size.is-on { border-color: var(--red); background: rgba(210,62,62,.12); }
.size__tap {
  flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 0; text-align: left;
  background: none; border: 0; padding: 8px 10px; min-height: 52px; cursor: pointer; border-radius: 12px;
  -webkit-tap-highlight-color: transparent;
}
.size__name { font-weight: 700; font-size: 1rem; }
.size__detail { font-weight: 500; color: var(--muted); font-size: .875rem; margin-left: 4px; }
.size__price { font-weight: 700; color: var(--gold); font-size: 1.0625rem; }

.stepper { display: inline-flex; align-items: center; gap: 4px; background: rgba(20,10,8,.6); border-radius: 999px; padding: 4px; border: 1px solid var(--line); }
.stepper__btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(242,197,197,.1); color: var(--blush); transition: background-color .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.stepper__btn svg { width: 20px; height: 20px; }
.stepper__btn:active { transform: scale(.9); }
.stepper__btn--add { background: var(--red); color: #fff; }
.stepper__btn--add:hover { background: var(--red-hot); }
.stepper__btn:disabled { opacity: .35; cursor: default; transform: none; }
.stepper__qty { min-width: 28px; text-align: center; font-weight: 800; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }

.notice-banner { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: rgba(233,169,75,.14); border: 1px solid rgba(233,169,75,.4); color: #ffe2b5; font-weight: 600; }

/* ---------- Form ---------- */
.form { padding: 18px 16px 6px; display: grid; gap: 4px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9375rem; }
.req { color: var(--red-hot); }
.optional { color: var(--muted); font-weight: 400; }
.field input {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 14px; font-size: 1rem;
  background: rgba(20,10,8,.6); border: 1.5px solid rgba(242,197,197,.18); color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: rgba(201,172,164,.6); }
.field input:focus { outline: none; border-color: var(--blush); box-shadow: 0 0 0 4px rgba(242,197,197,.15); }
.field input[aria-invalid="true"] { border-color: var(--red-hot); }
.err { min-height: 1.25em; margin: 0 0 6px; color: #ff9c90; font-size: .875rem; font-weight: 500; }
.err:empty { min-height: 10px; }
.err--form { text-align: center; }

.footer { padding: 28px 20px 24px; text-align: center; }
.footer p { margin: 2px 0; }

/* ---------- Sticky cart bar ---------- */
.cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(20, 10, 8, 0.88); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 30px -12px rgba(0,0,0,.6);
}
.cartbar__inner { display: flex; align-items: center; gap: 14px; min-height: var(--bar-h); }
.cartbar__sum { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.cartbar__count { font-size: .8125rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.cartbar__total { font-family: var(--serif); font-weight: 800; font-size: 1.625rem; font-variant-numeric: tabular-nums; }
.btn--cta { flex: 1; min-height: 54px; padding: 0 16px; font-size: .9375rem; }
body:not(.has-items) .btn--cta { background: rgba(242,197,197,.12); color: var(--blush); box-shadow: none; }
.btn.is-loading .btn__label::before {
  content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.has-items .cartbar__total { animation: pop .25s ease; }
@keyframes pop { 50% { transform: scale(1.06); } }

/* ---------- Payment screen ---------- */
.pay { padding: calc(32px + env(safe-area-inset-top)) 0 40px; }
body:has(#pay-view:not([hidden])) { padding-bottom: 0; }
.pay__wrap { max-width: 560px; display: grid; gap: 16px; }
.pay__check { position: relative; width: 84px; height: 84px; margin: 0 auto; }
.pay__logo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: #100e0f; box-shadow: 0 0 0 2px rgba(242,197,197,.35), 0 12px 30px -10px rgba(0,0,0,.8); }
.pay__tick { position: absolute; right: -4px; bottom: -2px; width: 32px; height: 32px; padding: 6px; border-radius: 50%; background: #3f8f2a; color: #fff; box-shadow: 0 0 0 3px var(--ember-800); }
.pay h1 { font-family: var(--serif); font-size: clamp(1.75rem, 7vw, 2.4rem); text-align: center; margin: 4px 0 0; line-height: 1.1; }
.pay h1:focus { outline: none; }
#pay-sub { text-align: center; margin: 0; }
.warn { margin: 0; padding: 14px 16px; border-radius: 14px; background: rgba(233,169,75,.14); border: 1px solid rgba(233,169,75,.45); color: #ffe2b5; }
.warn a { color: #ffd38a; font-weight: 700; }
.label { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.pay__amount, .pay__to { padding: 20px; display: grid; gap: 8px; justify-items: center; text-align: center; }
.pay__total { font-family: var(--serif); font-weight: 800; font-size: 3.25rem; line-height: 1; color: var(--blush); font-variant-numeric: tabular-nums; }
.pay__name { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; }
.pay__handle { font-size: 1.25rem; font-weight: 700; color: var(--gold); letter-spacing: .02em; word-break: break-all; user-select: all; -webkit-user-select: all; }
.pay__amount .btn, .pay__to .btn { width: 100%; margin-top: 6px; }
.qr { margin: 10px 0 0; display: grid; justify-items: center; gap: 8px; }
.qr img { width: 200px; height: 200px; border-radius: 14px; background: #fff; padding: 10px; }

.steps { list-style: none; margin: 0; padding: 18px; display: grid; gap: 12px; }
.steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.steps li p { margin: 4px 0 0; }
.steps li span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--blush); color: var(--maroon); font-weight: 800; }

.summary { padding: 18px; }
.summary h2 { font-family: var(--serif); font-size: 1.25rem; margin: 0 0 10px; }
.summary ul { list-style: none; margin: 0; padding: 0; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.summary__total { border-bottom: 0; font-weight: 800; font-size: 1.125rem; padding-top: 12px; }
.summary .muted.small { margin: 8px 0 0; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  background: var(--blush); color: var(--maroon); font-weight: 700; padding: 12px 18px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Larger screens ---------- */
@media (min-width: 720px) {
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
  .dish { grid-template-rows: auto 1fr; }
  .hero__content { padding-top: 18vh; }
  .hero { padding-bottom: 80px; }
  .form { grid-template-columns: 1fr 1fr; gap: 4px 16px; padding: 22px 22px 8px; }
  .form .field:first-child { grid-column: 1 / -1; }
  .err--form { grid-column: 1 / -1; }
  .cartbar__inner { justify-content: space-between; }
  .btn--cta { flex: 0 0 auto; min-width: 320px; padding: 0 28px; font-size: 1rem; }
  #details { max-width: 760px; }
}
@media (max-width: 420px) {
  .brand { font-size: 1rem; }
  .brand__mark { width: 64px; height: 64px; }
  .pill--notice { padding: 6px 10px; font-size: .75rem; }
}
@media (max-width: 359px) {
  .stepper__btn { width: 40px; height: 40px; }
  .btn--cta { font-size: .875rem; }
  .pill--notice { font-size: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.pickup-note { margin: -8px 0 18px; padding: 12px 14px; border-radius: 14px; background: rgba(242,197,197,.08); border: 1px solid var(--line); color: #f3dcd5; font-size: .9375rem; }
.pickup-note--pay { margin: 0; }
