/* ---- Design tokens ---------------------------------------------------
   System fonts only (renders as actual San Francisco on Apple devices,
   the native UI font elsewhere) — no webfont fetch, no serif/mono
   flourish. Black-and-red accent instead of the earlier terracotta:
   black for primary actions, red reserved for small highlights.
------------------------------------------------------------------------ */
:root {
  --bg: #f5f5f7;
  --paper: #ffffff;
  --ink: #1d1d1f;
  --gray: #6e6e73;
  --line: #d2d2d7;
  --dusk: #1d2b33;
  --red: #d0021b;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: inherit;
  cursor: pointer;
}
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.eyebrow {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--red);
  margin: 0 0 0.4rem;
}

/* ---- Canada Day banner --------------------------------------------------- */

.canada-banner {
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  text-align: left;
}

.canada-banner-flag {
  font-size: 2.75rem;
  line-height: 1;
}

.canada-banner-title {
  margin: 0;
  font-weight: 700;
  font-size: 1.1rem;
}

.canada-banner-sub {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.92;
}

/* ---- Hero / header ----------------------------------------------------- */

.hero {
  position: relative;
  color: var(--paper);
  text-align: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 30, 36, 0.35) 0%, rgba(20, 30, 36, 0.25) 45%, rgba(20, 30, 36, 0.82) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 3.5rem 1.25rem 3rem;
}

.hero .eyebrow {
  color: #fff;
  opacity: 0.75;
}

.hero h1 {
  font-weight: 600;
  font-size: clamp(2.5rem, 9vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 0.6rem;
}

.hero .tagline {
  margin: 0;
  opacity: 0.85;
  font-size: 1.15rem;
  font-weight: 400;
}

/* ---- No-photo hero variant (queue board) --------------------------------- */

.hero--plain {
  background: var(--bg);
  color: var(--ink);
  padding: 3rem 1.25rem 2.25rem;
  border-bottom: 1px solid var(--line);
}
.hero--plain .eyebrow { color: var(--red); opacity: 1; }
.hero--plain .tagline { color: var(--gray); opacity: 1; }

/* ---- Menu section --------------------------------------------------------- */

.menu-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 6rem;
}

.menu-section .eyebrow {
  padding: 0 0.15rem;
}

.menu-grid {
  margin: 0;
  padding: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

/* ---- Feature photo --------------------------------------------------------- */

.photo-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 0.5rem;
}

.photo-section .eyebrow {
  padding: 0 0.15rem;
}

.feature-photo {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 18px;
}

@media (max-width: 480px) {
  .feature-photo { height: 260px; }
}

.item-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  text-align: left;
}
.item-row + .item-row {
  border-top: 1px solid var(--line);
}

.item-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}

.item-name {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
  color: var(--ink);
}

.item-price {
  color: var(--gray);
  font-weight: 500;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.stepper {
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.step-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-btn:active { background: var(--bg); }
.step-btn.plus { color: var(--red); }

.qty {
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

/* ---- Sticky cart bar ---------------------------------------------------- */

.cart-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(29, 29, 31, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--paper);
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#cart-summary { font-size: 0.95rem; font-variant-numeric: tabular-nums; }

#checkout-btn {
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 980px;
  padding: 0.7rem 1.5rem;
  font-weight: 500;
  font-size: 0.95rem;
}
#checkout-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- Checkout panel ------------------------------------------------------ */

.checkout-panel {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(29, 29, 31, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.checkout-panel[hidden] {
  display: none;
}

.checkout-panel-inner {
  position: relative;
  background: var(--paper);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px 20px 0 0;
  padding: 1.75rem 1.5rem 2rem;
}

@media (min-width: 560px) {
  .checkout-panel { align-items: center; }
  .checkout-panel-inner { border-radius: 20px; }
}

.checkout-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  background: var(--bg);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--gray);
}

.checkout-panel-inner h2 {
  font-weight: 600;
  font-size: 1.4rem;
  margin: 0 0 1.1rem;
  color: var(--ink);
}

.checkout-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.1rem 0;
  color: var(--gray);
  font-size: 0.85rem;
}
.checkout-divider::before, .checkout-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

#submit-payment {
  width: 100%;
  margin-top: 1.1rem;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 980px;
  padding: 0.85rem 1rem;
  font-weight: 500;
  font-size: 1rem;
}
#submit-payment:disabled { opacity: 0.6; cursor: not-allowed; }

#payment-message {
  margin-top: 0.85rem;
  color: var(--red);
  font-size: 0.9rem;
}

/* ---- Confirm page -------------------------------------------------------- */

.confirm-wrap {
  max-width: 480px;
  margin: 3rem auto;
  padding: 0 1.25rem;
  text-align: center;
}

.ticket {
  background: var(--paper);
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line);
}

.order-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  font-weight: 600;
  font-size: 1.3rem;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.75rem;
}

.confirm-items { text-align: left; margin: 1rem 0; }
.confirm-items div { display: flex; justify-content: space-between; padding: 0.2rem 0; font-size: 0.95rem; }
.confirm-total { font-weight: 700; font-size: 1.1rem; margin-top: 0.5rem; font-variant-numeric: tabular-nums; }

/* ---- Queue page ---------------------------------------------------------- */

.queue-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.queue-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.queue-col h2 {
  font-weight: 600;
  color: var(--ink);
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}

.order-ticket {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 0.9rem;
  border-left: 4px solid var(--red);
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.order-ticket.ready { border-left-color: var(--gray); }

.order-ticket .num {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink);
  min-width: 2.5rem;
  font-variant-numeric: tabular-nums;
}

.order-ticket .details { flex: 1; text-align: left; }
.order-ticket .details div { font-size: 0.9rem; }

.order-ticket button {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 980px;
  padding: 0.5rem 0.9rem;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--ink);
}

.empty-state {
  text-align: center;
  color: var(--gray);
  padding: 2rem 0;
  font-size: 0.95rem;
}
