/* ============================================================
   Forklift — Atlanta  |  TWC ACE Roadshow demo
   Atlanta-forward food-delivery marketplace
   ============================================================ */

:root {
  --peach: #ff9e6d;
  --peach-deep: #f4794e;
  --peach-dark: #d85a2f;
  --plum: #3d2b3e;
  --ink: #2a1f2b;
  --cream: #fff8f2;
  --cream-2: #fdeee2;
  --paper: #ffffff;
  --leaf: #4c9a6a;
  --gold: #f2b134;
  --muted: #8a7a80;
  --line: #f0e2d8;
  --shadow: 0 10px 30px rgba(61, 43, 62, 0.10);
  --shadow-sm: 0 4px 14px rgba(61, 43, 62, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--peach), var(--peach-deep));
  display: grid; place-items: center; color: #fff; flex: none;
  box-shadow: var(--shadow-sm);
}
.brand-name {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  letter-spacing: -0.02em; color: var(--plum);
}
.brand-city {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--peach-deep);
  background: var(--cream-2); padding: 3px 8px; border-radius: 999px;
  margin-left: 2px;
}
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { font-weight: 500; color: var(--ink); font-size: 15px; transition: color .15s; }
.nav a:hover { color: var(--peach-deep); }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  background: var(--plum); color: #fff; padding: 10px 16px;
  border-radius: 999px; font-weight: 600; font-size: 14px;
  border: none; cursor: pointer; transition: transform .12s, background .15s;
}
.cart-btn:hover { transform: translateY(-1px); background: #4d3850; }
.cart-count {
  background: var(--peach-deep); color: #fff; font-size: 12px; font-weight: 700;
  min-width: 20px; height: 20px; border-radius: 999px; display: grid;
  place-items: center; padding: 0 5px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(255,158,109,.35), transparent 60%),
    linear-gradient(180deg, var(--cream-2), var(--cream));
  padding: 72px 0 64px;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: var(--peach-dark); background: #fff; padding: 7px 14px; border-radius: 999px;
  box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display); font-size: 54px; line-height: 1.03;
  letter-spacing: -0.03em; color: var(--plum); font-weight: 700; margin-bottom: 18px;
}
.hero h1 .accent { color: var(--peach-deep); font-style: italic; }
.hero p.lede { font-size: 19px; color: #6b5a60; max-width: 30em; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 36px; }
.hero-stat .num { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--plum); }
.hero-stat .lbl { font-size: 13px; color: var(--muted); }

.hero-art {
  position: relative; aspect-ratio: 1/1; border-radius: 28px;
  background: linear-gradient(135deg, var(--peach), var(--peach-deep));
  box-shadow: var(--shadow); overflow: hidden;
  display: grid; place-items: center;
}
.hero-art .plate {
  width: 72%; aspect-ratio: 1/1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 8%, #ffe9d6 9% 100%);
  box-shadow: inset 0 8px 30px rgba(0,0,0,.08), 0 20px 40px rgba(0,0,0,.15);
  position: relative;
}
.hero-art .peach-emoji { font-size: 120px; filter: drop-shadow(0 8px 14px rgba(0,0,0,.15)); }
.hero-badge {
  position: absolute; background: #fff; border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--shadow); font-size: 13px; font-weight: 600; color: var(--plum);
  display: flex; align-items: center; gap: 8px;
}
.hero-badge.b1 { top: 22px; left: -14px; }
.hero-badge.b2 { bottom: 26px; right: -10px; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; padding: 13px 24px; border-radius: 999px;
  border: none; cursor: pointer; transition: transform .12s, box-shadow .15s, background .15s;
}
.btn-primary { background: linear-gradient(135deg, var(--peach-deep), var(--peach-dark)); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: #fff; color: var(--plum); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 16px; }

/* ---------- Section headings ---------- */
.section { padding: 64px 0; }
.section-head { text-align: center; max-width: 40em; margin: 0 auto 40px; }
.section-head .eyebrow {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  color: var(--peach-deep); margin-bottom: 10px;
}
.section-head h2 {
  font-family: var(--font-display); font-size: 38px; line-height: 1.1;
  letter-spacing: -0.02em; color: var(--plum); font-weight: 700; margin-bottom: 12px;
}
.section-head p { color: #6b5a60; font-size: 17px; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s;
  display: flex; flex-direction: column; border: 1px solid var(--line);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img {
  aspect-ratio: 16/11; display: grid; place-items: center; font-size: 64px;
  background: linear-gradient(135deg, var(--cream-2), #ffe3cf);
  position: relative;
}
.card-tag {
  position: absolute; top: 12px; left: 12px; background: #fff; color: var(--peach-dark);
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--plum); }
.card-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.card-meta .rating { color: var(--gold); font-weight: 700; }
.card-desc { font-size: 14px; color: #6b5a60; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.price { font-weight: 700; color: var(--plum); font-size: 17px; }
.add-btn {
  background: var(--cream-2); color: var(--peach-dark); border: none; cursor: pointer;
  font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 999px;
  transition: background .15s, transform .12s;
}
.add-btn:hover { background: var(--peach-deep); color: #fff; transform: translateY(-1px); }

/* ---------- Category pills ---------- */
.pills { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.pill {
  background: #fff; border: 1px solid var(--line); color: var(--plum);
  padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: all .15s;
}
.pill.active, .pill:hover { background: var(--peach-deep); color: #fff; border-color: var(--peach-deep); }

/* ---------- Neighborhood band ---------- */
.band { background: var(--plum); color: #fff; }
.band .section-head h2 { color: #fff; }
.band .section-head p { color: #d8c4cc; }
.hood-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.hood {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm); padding: 20px; text-align: center;
}
.hood .emoji { font-size: 34px; }
.hood h4 { font-family: var(--font-display); font-size: 18px; margin-top: 8px; }
.hood p { font-size: 13px; color: #d8c4cc; }

/* ---------- Cart page ---------- */
.page-head { padding: 44px 0 8px; }
.page-head h1 { font-family: var(--font-display); font-size: 40px; color: var(--plum); letter-spacing: -.02em; }
.page-head p { color: var(--muted); }

.cart-grid { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; padding-bottom: 64px; }
.cart-items { display: flex; flex-direction: column; gap: 14px; }
.cart-row {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px;
}
.cart-thumb { width: 72px; height: 72px; border-radius: 12px; display: grid; place-items: center; font-size: 36px; background: var(--cream-2); }
.cart-info h4 { font-family: var(--font-display); font-size: 17px; color: var(--plum); }
.cart-info p { font-size: 13px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; }
.qty button { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; color: var(--plum); }
.cart-row .price { text-align: right; }
.remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 12px; margin-top: 6px; }
.remove:hover { color: var(--peach-dark); }

.summary-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  position: sticky; top: 88px; box-shadow: var(--shadow-sm);
}
.summary-card h3 { font-family: var(--font-display); font-size: 20px; color: var(--plum); margin-bottom: 16px; }
.totals { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 18px; }
.totals-row { display: flex; justify-content: space-between; font-size: 15px; color: #6b5a60; }
.totals-row.total { font-size: 20px; font-weight: 700; color: var(--plum); padding-top: 12px; border-top: 1px solid var(--line); }
.totals-row .free { color: var(--leaf); font-weight: 700; }

.empty-cart { text-align: center; padding: 80px 0; }
.empty-cart .emoji { font-size: 64px; }
.empty-cart h2 { font-family: var(--font-display); font-size: 26px; color: var(--plum); margin: 12px 0 6px; }
.empty-cart p { color: var(--muted); margin-bottom: 20px; }

/* ---------- Checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; padding: 32px 0 72px; }
.steps { display: flex; gap: 8px; margin-bottom: 24px; }
.steps .step {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); display: flex; align-items: center; gap: 8px;
}
.steps .step.current { color: var(--peach-deep); }
.steps .step::after { content: "›"; margin-left: 6px; color: var(--line); }
.steps .step:last-child::after { content: ""; }

.form-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.form-title { font-family: var(--font-display); font-size: 28px; color: var(--plum); margin-bottom: 24px; letter-spacing: -.02em; }
fieldset { border: none; margin-bottom: 26px; }
.legend { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--plum); font-size: 15px; margin-bottom: 14px; }
.legend .num { width: 24px; height: 24px; border-radius: 50%; background: var(--peach-deep); color: #fff; display: grid; place-items: center; font-size: 13px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: #6b5a60; margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: var(--cream); color: var(--ink); transition: border .15s;
}
.field input:focus { outline: none; border-color: var(--peach-deep); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.field-row.two { grid-template-columns: 1fr 1fr; }

.btn-checkout {
  width: 100%; background: linear-gradient(135deg, var(--peach-deep), var(--peach-dark));
  color: #fff; border: none; cursor: pointer; font-weight: 700; font-size: 16px;
  padding: 16px; border-radius: 12px; margin-top: 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform .12s, box-shadow .15s;
}
.btn-checkout:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-checkout.is-loading { opacity: .85; cursor: progress; }
.btn-checkout .spinner { display: none; }
.btn-checkout.is-loading .spinner { display: inline-flex; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.legal { font-size: 12px; color: var(--muted); margin-top: 14px; text-align: center; }

/* order summary (checkout right rail) */
.order-rail { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 88px; box-shadow: var(--shadow-sm); }
.order-rail h3 { font-family: var(--font-display); font-size: 19px; color: var(--plum); margin-bottom: 16px; }
.rail-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; margin-bottom: 12px; }
.rail-thumb { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-size: 22px; background: var(--cream-2); }
.rail-item .n { font-size: 14px; font-weight: 600; color: var(--plum); }
.rail-item .m { font-size: 12px; color: var(--muted); }
.rail-item .p { font-size: 14px; font-weight: 700; color: var(--plum); }

/* ---------- Confirmation ---------- */
.confirmation { text-align: center; padding: 20px 10px; }
.confirmation-check { width: 68px; height: 68px; border-radius: 50%; background: var(--leaf); color: #fff; display: grid; place-items: center; margin: 0 auto 18px; }
.confirmation-check svg { width: 34px; height: 34px; }
.confirmation h3 { font-family: var(--font-display); font-size: 30px; color: var(--plum); margin-bottom: 8px; }
.confirmation .order-line { color: #6b5a60; margin-bottom: 20px; }
.confirmation-card { background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 18px; max-width: 340px; margin: 0 auto 20px; }
.confirmation-card-row { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; color: #6b5a60; }
.confirmation-card-row span:last-child { font-weight: 600; color: var(--plum); }
.confirmation .subtle { font-size: 13px; color: var(--muted); }

/* ---------- Error banner (bug) ---------- */
.error-banner {
  background: #fff5f3; border: 1.5px solid var(--peach-dark); border-radius: 10px;
  padding: 14px 18px; margin-top: 16px; color: #b23a1a; font-size: 14px; line-height: 1.6;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--plum); color: #e9dce0; padding: 48px 0 32px; margin-top: 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: 14px; color: #c8b3bb; margin-top: 12px; max-width: 26em; }
.footer-col h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: #c8b3bb; padding: 4px 0; transition: color .15s; }
.footer-col a:hover { color: var(--peach); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 13px; color: #a8929b; flex-wrap: wrap; gap: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .hood-grid { grid-template-columns: repeat(2,1fr); }
  .cart-grid, .checkout-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav a:not(.cart-btn) { display: none; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 38px; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}
