:root {
  --ink: #24170d;
  --cream: #f7f0df;
  --paper: #fffdf8;
  --gold: #f2b51d;
  --gold-deep: #c88a05;
  --green: #168447;
  --line: #dfd2b7;
  --muted: #766957;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 12%, rgba(242, 181, 29, 0.12), transparent 24rem),
    var(--cream);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 24px 4px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand img {
  width: 210px;
  height: 118px;
  object-fit: contain;
}

.food-preview {
  display: grid;
  grid-template-columns: minmax(280px, .75fr) 1.25fr;
  align-items: center;
  max-width: 1120px;
  min-height: 430px;
  margin: 0 auto 18px;
  padding: 20px 24px 28px;
  overflow: hidden;
}
.preview-copy { position: relative; z-index: 2; max-width: 430px; }
.preview-copy h2 {
  margin: 8px 0 12px;
  font: 900 clamp(2.7rem, 7vw, 5.8rem)/.86 Georgia, serif;
  letter-spacing: -.055em;
}
.preview-copy > p:not(.eyebrow) {
  max-width: 360px;
  color: var(--muted);
  line-height: 1.65;
}
.preview-copy a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  padding: 13px 16px;
  font-size: .82rem;
  font-weight: 900;
  text-decoration: none;
}
.btn-pulse {
  animation: pulse 1.5s ease-in-out infinite;
  transform-origin: center;
  will-change: transform;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-pulse { animation: none; }
}
.preview-grid {
  grid-template-columns: 1fr;
  grid-template-rows: 420px;
  gap: 10px;
  transform: rotate(-2deg);
}
.preview-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(145deg, #e6cba0, #fff8e8);
  box-shadow: 0 16px 35px rgba(65, 42, 18, .12);
}
.preview-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.08) rotate(2deg);
  filter: drop-shadow(0 18px 12px rgba(69, 42, 16, .22));
}
.preview-card-large {
  border-radius: 140px 24px 24px 24px;
  background: linear-gradient(145deg, #eecf91, #fff7df);
}
.preview-card-large figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--gold);
  padding: 9px 12px;
  font-size: .72rem;
  font-weight: 900;
}

.delivery-ad {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 132px;
  margin: 0 0 18px;
  padding: 8px clamp(14px, 4vw, 48px);
  overflow: hidden;
  border-bottom: 3px solid #d10b18;
  background: #21180e;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}
.delivery-ad > img {
  align-self: center;
  width: 150px;
  height: 116px;
  object-fit: contain;
  background: #fff;
}
.delivery-marquee {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 18px;
  padding: 0 24px;
  font-size: clamp(.68rem, 1.3vw, 1rem);
  font-weight: 900;
  white-space: nowrap;
}
.delivery-marquee span:nth-child(2) { color: #fff; }
.delivery-marquee span:not(:nth-child(2)) { color: #dce0df; }
.delivery-ad-cta {
  margin-right: 18px;
  border-radius: 8px;
  background: #e32b32;
  padding: 13px 16px;
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
}

.checkout-shell { max-width: 1120px; margin: 0 auto; padding: 18px 24px 96px; }
.order-flow { max-width: 920px; margin: 0 auto; }

.stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.stepper li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}
.stepper b {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: #ddd1b8;
  color: #fff;
  font-size: 0.78rem;
}
.stepper li.is-current {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}
.stepper li.is-current b { background: var(--ink); color: var(--gold); }
.stepper li.is-done b { background: var(--green); }

.flow-panel {
  min-height: 480px;
  border: 1px solid rgba(66, 48, 24, 0.08);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: 0 18px 48px rgba(76, 52, 20, 0.09);
  padding: 24px;
  backdrop-filter: blur(8px);
}
.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.panel-heading h1 { margin: 3px 0 0; font: 900 clamp(1.65rem, 4vw, 2.5rem)/1 Georgia, serif; }
.eyebrow { margin: 0; color: var(--gold-deep); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; }
.pick-count {
  flex: none;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.menu-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 178px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.menu-card.is-picked {
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(200, 138, 5, 0.14);
  transform: translateY(-2px);
}
.menu-card-copy { align-self: center; padding: 16px 18px 58px; }
.menu-card-copy h2 { margin: 0 0 7px; font: 900 1.02rem/1.15 Georgia, serif; }
.menu-card-copy p { margin: 0 0 10px; color: var(--muted); font-size: 0.76rem; line-height: 1.45; }
.card-price { color: var(--gold-deep); font-size: 1.1rem; }
.quantity-control {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  grid-template-columns: 38px 34px 38px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  text-align: center;
}
.quantity-control button, .review-quantity button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 900;
}
.quantity-control button:last-child, .review-quantity button:last-child { background: var(--gold); }
.quantity-control span, .review-quantity span { font-weight: 900; }

.review-list { display: grid; gap: 10px; }
.review-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  min-height: 96px;
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}
.review-item h2 { margin: 0 0 4px; font: 900 1rem Georgia, serif; }
.review-item p { margin: 0; color: var(--muted); font-size: 0.78rem; }
.review-item > strong { min-width: 58px; text-align: right; }
.review-quantity { display: grid; grid-template-columns: 34px 26px 34px; align-items: center; text-align: center; }
.review-quantity button { width: 34px; height: 34px; }

.details-form { display: grid; gap: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.78rem; font-weight: 900; }
.field label span { color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
  padding: 13px 14px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(242,181,29,.18); }
.form-error { min-height: 20px; color: #a42b20; font-size: 0.82rem; font-weight: 800; }
.whatsapp-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  padding: 15px 18px;
  font-weight: 900;
}
.checkout-note { margin: -4px 0 0; color: var(--muted); font-size: 0.72rem; text-align: center; }

.flow-nav {
  position: sticky;
  z-index: 10;
  bottom: 14px;
  display: grid;
  grid-template-columns: 100px 1fr 190px;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 30px rgba(36,23,13,.24);
}
.nav-back, .nav-next {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  font-weight: 900;
}
.nav-back { background: #493822; color: #fff; }
.nav-next { display: flex; align-items: center; justify-content: space-between; background: var(--gold); color: var(--ink); padding: 0 16px; }
.nav-next:disabled { opacity: .42; cursor: not-allowed; }
.nav-total { display: flex; align-items: center; justify-content: center; gap: 12px; }
.nav-total span { color: #d8cbb4; font-size: 0.78rem; }
.nav-total strong { color: var(--gold); font-size: 1.12rem; }

@media (max-width: 760px) {
  .site-header { padding: 8px 16px 2px; }
  .brand img { width: 170px; height: 96px; }
  .food-preview {
    grid-template-columns: 1fr;
    min-height: 0;
    margin-bottom: 12px;
    padding: 12px 16px 20px;
  }
  .preview-copy { max-width: 520px; }
  .preview-copy h2 { font-size: clamp(2.5rem, 14vw, 4.5rem); }
  .preview-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 300px;
    margin-top: 22px;
  }
  .delivery-ad {
    grid-template-columns: 86px 1fr;
    min-height: 84px;
    margin-bottom: 12px;
    padding: 0 8px;
  }
  .delivery-ad > img { width: 86px; height: 84px; }
  .delivery-marquee {
    justify-content: flex-start;
    overflow: hidden;
    padding: 0 12px;
  }
  .delivery-marquee span:not(:first-child) { display: none; }
  .delivery-ad-cta { display: none; }
  .checkout-shell { padding: 6px 12px 92px; }
  .flow-panel { min-height: 420px; padding: 14px; border-radius: 18px; }
  .stepper li { gap: 5px; }
  .stepper li span { font-size: 0.78rem; }
  .menu-grid { grid-template-columns: 1fr; }
  .menu-card { grid-template-columns: 1fr; min-height: 160px; }
  .review-item { grid-template-columns: 1fr auto; }
  .review-item > strong { grid-column: 3; }
  .review-quantity { grid-row: 1; grid-column: 3; }
  .review-item > strong { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .flow-nav { grid-template-columns: 78px 1fr 150px; border-radius: 14px; }
}

@media (max-width: 430px) {
  .brand small, .header-help { display: none; }
  .panel-heading { align-items: center; }
  .panel-heading h1 { font-size: 1.55rem; }
  .menu-card { grid-template-columns: 1fr; }
  .stepper li { min-height: 42px; }
  .stepper b { width: 22px; height: 22px; }
  .flow-nav { grid-template-columns: 70px 1fr 135px; }
  .nav-total { display: grid; gap: 0; text-align: center; }
  .nav-next { padding: 0 10px; font-size: 0.82rem; }
}
