/* Hallmark · macrostructure: Marquee Hero (redesign of liked delivery template)
 * tone: atmospheric-editorial · smoky BBQ · anchor hue: ember-orange
 * pre-emit critique: P5 H4 E4 S5 R4 V4
 */
:root {
  --ink: #f4e8dc;
  --char-900: #100b09;
  --char-850: #17110d;
  --char-800: #1e1611;
  --panel: #241a14;
  --panel-2: #2c211a;
  --cream: #f6ece0;
  --cream-dim: #d9c7b6;
  --muted: #a08c7c;
  --ember: #c0562b;
  --ember-bright: #d8712f;
  --amber: #e0a24a;
  --line: rgba(246, 236, 224, 0.12);
  --line-strong: rgba(246, 236, 224, 0.22);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--cream);
  background:
    radial-gradient(circle at 82% -8%, rgba(192, 86, 43, 0.22), transparent 34rem),
    radial-gradient(circle at 5% 4%, rgba(224, 162, 74, 0.08), transparent 30rem),
    var(--char-900);
  font-family: var(--font-body);
  line-height: 1.55;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 10px 12px 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 11, 9, 0.72);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 38px;
  width: 38px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.desktop-nav {
  display: flex;
  gap: 4px;
}

.desktop-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--cream-dim);
  font-weight: 600;
  font-size: 0.94rem;
}

.desktop-nav a:hover {
  background: rgba(246, 236, 224, 0.08);
  color: var(--cream);
}

.header-cta,
.primary-action,
.secondary-action,
.sticky-cart button,
.order-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.16s ease-out, background 0.16s ease-out;
}

.header-cta,
.primary-action,
.sticky-cart button,
.order-submit {
  color: #fff;
  background: var(--ember);
  box-shadow: 0 12px 28px rgba(192, 86, 43, 0.32);
}

.header-cta:hover,
.primary-action:hover,
.sticky-cart button:hover,
.order-submit:hover {
  background: var(--ember-bright);
  transform: translateY(-1px);
}

.header-cta {
  min-width: 118px;
  padding: 0 22px;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(340px, 1.02fr);
  gap: 40px;
  align-items: center;
  min-height: calc(100vh - 92px);
  padding: 46px 0 40px;
}

.hero-copy {
  max-width: 620px;
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.proof-row span {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(246, 236, 224, 0.04);
  color: var(--cream-dim);
  font-size: 0.85rem;
  font-weight: 600;
}

h1 {
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.9rem, 6.4vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
  min-width: 0;
}

.hero-copy p {
  max-width: 560px;
  color: var(--cream-dim);
  font-size: 1.14rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 20px;
}

.primary-action,
.secondary-action {
  min-width: 178px;
  padding: 0 24px;
}

.secondary-action {
  color: var(--cream);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.secondary-action:hover {
  background: rgba(246, 236, 224, 0.06);
}

.deal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: center;
  width: fit-content;
  padding: 12px 18px;
  border: 1px solid rgba(192, 86, 43, 0.45);
  border-radius: 14px;
  background: rgba(192, 86, 43, 0.1);
}

.deal-strip strong {
  color: var(--amber);
}

.deal-strip span {
  color: var(--cream-dim);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--char-850);
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: 640px;
  object-fit: cover;
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 42%, rgba(8, 5, 4, 0.78) 100%);
  pointer-events: none;
}

.floating-order {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(16, 11, 9, 0.7);
  backdrop-filter: blur(12px);
}

.floating-order span {
  grid-column: 1 / -1;
  color: var(--amber);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.floating-order strong {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
}

.floating-order button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--ember);
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.16s ease-out;
}

.floating-order button:hover {
  background: var(--ember-bright);
}

/* ---------- Section heading ---------- */
.section-heading {
  margin-bottom: 26px;
}

.section-heading span,
.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--ember-bright);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading h2,
.process-band h2,
.delivery-card h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.menu-section {
  padding: 40px 0 20px;
}

/* ---------- Menu grid ---------- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.dish-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.18s ease-out, border-color 0.18s ease-out;
}

.dish-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.dish-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.dish-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
}

.badge {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--ember);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge.ember {
  color: var(--char-900);
  background: var(--amber);
}

.dish-body h3 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.05;
}

.dish-body p {
  margin-bottom: 12px;
  color: var(--cream-dim);
  font-size: 0.95rem;
}

.dish-portion {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.dish-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.dish-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
}

.dish-buy button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--ember);
  font-size: 1.4rem;
  font-weight: 700;
  transition: background 0.16s ease-out, transform 0.16s ease-out;
}

.dish-buy button:hover {
  background: var(--ember-bright);
  transform: scale(1.06);
}

.dish-buy button.added {
  width: auto;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  background: var(--amber);
  color: var(--char-900);
}

/* ---------- Process band ---------- */
.process-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  margin: 44px 0;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(150deg, rgba(36, 26, 20, 0.94), rgba(20, 14, 11, 0.96)),
    url("assets/food-truck.jpg");
  background-position: center;
  background-size: cover;
}

.process-lead {
  margin-top: 18px;
  color: var(--cream-dim);
  font-size: 1.05rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-self: center;
}

.process-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(16, 11, 9, 0.5);
  backdrop-filter: blur(6px);
}

.process-grid span {
  display: block;
  margin-bottom: 12px;
  color: var(--ember-bright);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
}

.process-grid h3 {
  margin-bottom: 8px;
  font-size: 1.12rem;
}

.process-grid p {
  margin-bottom: 0;
  color: var(--cream-dim);
  font-size: 0.9rem;
}

/* ---------- Delivery ---------- */
.delivery-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: 20px;
  padding: 40px 0 130px;
}

.delivery-card,
.order-teaser {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}

.delivery-card {
  padding: 32px;
}

.delivery-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.delivery-points div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(16, 11, 9, 0.4);
}

.delivery-points strong,
.delivery-points span {
  display: block;
}

.delivery-points strong {
  margin-bottom: 4px;
  font-size: 1.2rem;
}

.delivery-points span {
  color: var(--muted);
  font-size: 0.88rem;
}

.delivery-note {
  margin: 22px 0 0;
  color: var(--cream-dim);
  font-size: 0.95rem;
}

.order-teaser {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  align-self: start;
  padding: 32px;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
}

.order-teaser h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
}

.order-teaser p {
  margin: 0;
  color: var(--cream-dim);
  font-size: 0.98rem;
}

.order-teaser .primary-action {
  margin-top: 6px;
}

/* ---------- Footer ---------- */
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 120px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px 40px;
  border-top: 1px solid var(--line);
}

.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 380px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-contacts {
  display: grid;
  gap: 12px;
  align-content: start;
}

.footer-contacts a {
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  transition: border-color 0.16s ease-out;
}

.footer-contacts a:hover {
  border-color: var(--ember);
}

.footer-contacts span {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-contacts strong {
  font-size: 1.1rem;
}

.footer-legal {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Sticky cart ---------- */
.sticky-cart {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 300px;
  padding: 10px 10px 10px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(16, 11, 9, 0.94);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.28s ease-out, opacity 0.28s ease-out;
}

.sticky-cart.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.sticky-cart div {
  display: grid;
  flex: 1;
  padding-left: 16px;
}

.sticky-cart strong {
  font-size: 0.98rem;
}

.sticky-cart #cart-total {
  color: var(--amber);
  font-size: 0.9rem;
}

.sticky-cart button {
  min-width: 132px;
  padding: 0 20px;
}

/* ---------- Mobile nav ---------- */
.mobile-nav {
  display: none;
}

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 5, 4, 0.72);
  backdrop-filter: blur(6px);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--char-800);
  box-shadow: var(--shadow);
  animation: modal-in 0.24s ease-out;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--cream-dim);
  font-size: 1.5rem;
  line-height: 1;
  transition: background 0.16s ease-out;
}

.modal-close:hover {
  background: rgba(246, 236, 224, 0.08);
}

.order-form h2,
.order-done h2 {
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
}

.modal-sub {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.order-summary {
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(16, 11, 9, 0.4);
}

.order-summary-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-summary ul {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.order-summary li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.94rem;
}

.order-summary li span {
  color: var(--cream-dim);
}

.order-summary-total {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
}

.order-summary-total strong {
  color: var(--amber);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.field span {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--cream-dim);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(16, 11, 9, 0.5);
  color: var(--cream);
  outline: 0;
  transition: border-color 0.16s ease-out, box-shadow 0.16s ease-out;
}

.field textarea {
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(192, 86, 43, 0.22);
}

.field input:invalid:not(:placeholder-shown) {
  border-color: #c0402b;
}

.form-error {
  margin: 0 0 12px;
  color: #ef9a86;
  font-size: 0.88rem;
  font-weight: 600;
}

.order-submit {
  width: 100%;
  margin-top: 4px;
}

.form-fineprint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

/* ---------- Order done ---------- */
.order-done {
  text-align: center;
  padding: 8px 0;
}

.order-done-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(224, 162, 74, 0.16);
  color: var(--amber);
  font-size: 1.9rem;
}

.order-done p {
  max-width: 380px;
  margin: 0 auto 22px;
  color: var(--cream-dim);
}

.order-done .secondary-action {
  min-width: 160px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .site-header {
    border-radius: 20px;
  }

  .desktop-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 28px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 460px;
    height: 460px;
  }

  .menu-grid,
  .process-band,
  .process-grid,
  .delivery-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body {
    padding-bottom: 78px;
  }

  .site-header {
    width: min(100% - 20px, 1180px);
    margin-top: 10px;
    padding: 8px 8px 8px 14px;
  }

  .brand-logo {
    height: 30px;
    width: 30px;
  }

  .brand-name {
    font-size: 1.02rem;
  }

  .header-cta {
    min-width: 96px;
    min-height: 42px;
    padding: 0 16px;
  }

  main,
  .site-footer {
    width: min(100% - 20px, 1180px);
  }

  .hero {
    padding-top: 30px;
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .hero-actions a {
    flex: 1 1 180px;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 380px;
    height: 380px;
    border-radius: 20px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .process-band {
    padding: 28px 20px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .delivery-points {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding-bottom: 110px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .sticky-cart {
    right: 10px;
    bottom: 78px;
    left: 10px;
    min-width: 0;
  }

  .mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 28;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 62px;
    border-top: 1px solid var(--line);
    background: rgba(16, 11, 9, 0.96);
    backdrop-filter: blur(16px);
  }

  .mobile-nav a {
    display: grid;
    place-items: center;
    color: var(--cream-dim);
    font-size: 0.76rem;
    font-weight: 700;
  }

  .modal {
    padding: 24px 20px;
  }
}

@media (max-width: 430px) {
  .proof-row span {
    font-size: 0.78rem;
  }

  .floating-order {
    grid-template-columns: 1fr;
  }
}
