/* Mazzilli's Pizza & Subs. Tokens come from the logo (oxblood, cream, gold, ink)
   and the printed menu (checkerboard, Roman caps, condensed labels). 8px grid. */

:root {
  color-scheme: light;
  --ink: #17130f;
  --ink-2: #4a3f35;
  --cream: #fbf4e4;
  --paper: #fffdf8;
  --red: #8e1c12;
  --red-hover: #a3261a;
  --red-pressed: #74160e;
  --gold: #bd9964;
  --gold-ink: #7a5a2e;
  --open: #2e7d32;
  --line: rgba(23, 19, 15, 0.14);
  --focus: rgba(142, 28, 18, 0.45);

  --font-display: "Cinzel", Georgia, "Times New Roman", serif;
  --font-label: "Oswald", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --shadow-1: 0 0.5px 1.5px rgba(0, 0, 0, 0.14);
  --shadow-2: 0 1px 3px rgba(0, 0, 0, 0.16);
  --shadow-3: 0 1.5px 4.5px rgba(0, 0, 0, 0.18);
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --gutter: 16px;
  --measure: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.5 var(--font-body);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.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;
}

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }

/* The checkerboard from the menu corners, used once at the top and once at the foot. */
.checker {
  height: 16px;
  background: repeating-conic-gradient(var(--ink) 0 25%, var(--paper) 0 50%) 0 0 / 16px 16px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border-radius: 8px;
  font: 600 17px/1 var(--font-label);
  letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  transition: background-color 150ms var(--ease), box-shadow 150ms var(--ease), border-color 150ms var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }

.btn-call {
  background: var(--red); color: #fff;
  box-shadow: var(--shadow-2);
}
.btn-call:hover { background: var(--red-hover); box-shadow: var(--shadow-3); }
.btn-call:active { background: var(--red-pressed); box-shadow: var(--shadow-1); }

.btn-line {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-line:hover { background: var(--paper); box-shadow: var(--shadow-2); }

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

.hero { text-align: center; padding: 24px var(--gutter) 40px; }
.hero h1 { margin: 0; font-weight: 400; }
.hero-logo { width: min(54vw, 232px); margin: 0 auto 16px; }
.hero-tagline {
  display: block;
  font: 700 clamp(22px, 5.6vw, 32px)/1.15 var(--font-display);
  letter-spacing: 0.01em;
}

.status {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 16px 0 24px;
  font: 500 17px/1.3 var(--font-label);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.status::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); flex: none;
}
.status[data-state="open"]::before { background: var(--open); }
.status[data-state="closed"]::before { background: var(--red); }

.hero-actions { display: grid; gap: 16px; max-width: 400px; margin: 0 auto; }
.hero-actions .btn-call { min-height: 56px; font-size: 21px; }
.delivery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.delivery-note { margin: 0; color: var(--ink-2); font-size: 15px; }

.address {
  display: inline-block; margin-top: 24px;
  font-size: 15px; color: var(--ink-2); text-decoration: none;
}
.address strong { display: block; color: var(--ink); font-size: 17px; font-weight: 600; }
.address span { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Section bands ---------- */

.band { padding: 48px 0; }
.band-paper { background: var(--paper); border-block: 1px solid var(--line); }

.band-title {
  margin: 0 0 32px; text-align: center;
  font: 700 clamp(28px, 7vw, 38px)/1.1 var(--font-display);
  letter-spacing: 0.02em;
}
.band-title .orn { color: var(--gold); font-size: 0.7em; vertical-align: 0.12em; margin: 0 8px; }

/* ---------- Specials ---------- */

.specials { display: grid; gap: 16px; }

.special {
  position: relative;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 24px;
}
.band-paper .special { background: var(--cream); }
.special.is-today { border-color: var(--red); box-shadow: 0 0 0 2px var(--red); }
.special .today {
  display: none;
  position: absolute; top: -12px; right: 16px;
  padding: 4px 8px; border-radius: 4px;
  background: var(--red); color: #fff;
  font: 600 13px/1 var(--font-label); letter-spacing: 0.08em; text-transform: uppercase;
}
.special.is-today .today { display: block; }

.special-when {
  margin: 0 0 8px;
  font: 600 14px/1.3 var(--font-label);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--red);
}
.special h3 { margin: 0; font: 700 24px/1.2 var(--font-display); }
.special p { margin: 8px 0 0; color: var(--ink-2); }
.special-price { margin-top: 16px; font: 600 28px/1 var(--font-label); color: var(--ink); }

.special-football { display: grid; gap: 16px; }
.special-football img { width: 160px; margin: 0 auto; }
.combos { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: combo; }
.combos li {
  display: grid; grid-template-columns: 32px 1fr auto; gap: 4px 16px; align-items: start;
  padding: 16px 0; border-top: 1px solid var(--line);
  counter-increment: combo;
}
.combos li::before {
  content: counter(combo);
  grid-row: span 2;
  width: 32px; height: 32px; display: grid; place-items: center;
  background: var(--ink); color: var(--cream);
  font: 700 17px/1 var(--font-display);
}
.combos .combo-name { font: 600 17px/1.3 var(--font-label); text-transform: uppercase; letter-spacing: 0.03em; }
.combos .combo-price { font: 600 21px/1.2 var(--font-label); grid-row: span 2; }
.combos .combo-detail { font-size: 14px; color: var(--ink-2); }

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

.menu-nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  margin: 0 calc(var(--gutter) * -1) 32px;
}
.menu-nav ul {
  list-style: none; margin: 0; padding: 8px var(--gutter);
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
}
.menu-nav ul::-webkit-scrollbar { display: none; }
.menu-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 4px; background: var(--paper);
  font: 500 15px/1 var(--font-label); letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease);
}
.menu-nav a:hover { border-color: var(--ink); background: #fff; }

.menu-grid { display: grid; gap: 48px; }

.menu-section { break-inside: avoid; }
.menu-head {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 16px; margin-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}
.menu-head img { width: 88px; flex: none; }
.menu-head h3 { margin: 0; font: 700 28px/1.1 var(--font-display); letter-spacing: 0.02em; }
.menu-head p {
  margin: 4px 0 0;
  font: 500 14px/1.2 var(--font-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-ink);
}

.group { margin-top: 24px; }
.group:first-of-type { margin-top: 8px; }
.group-title {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin: 0 0 8px;
  font: 600 15px/1.3 var(--font-label); letter-spacing: 0.08em; text-transform: uppercase;
}
.group-title .price { font-size: 17px; letter-spacing: 0.02em; text-transform: none; }
.group-image { width: 120px; margin: 0 0 8px; }
.note { margin: 8px 0; font-size: 15px; color: var(--ink-2); }

.price-table { width: 100%; border-collapse: collapse; }
.price-table th {
  padding: 8px 0 8px 8px;
  font: 600 14px/1 var(--font-label); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold-ink); text-align: right; white-space: nowrap;
}
.price-table td { padding: 12px 0; border-top: 1px solid var(--line); vertical-align: top; }
.price-table td.p {
  padding-left: 8px; width: 68px; text-align: right; white-space: nowrap;
  font: 500 17px/1.3 var(--font-label); font-variant-numeric: tabular-nums;
}

.item-name { display: block; font: 600 17px/1.3 var(--font-label); letter-spacing: 0.03em; text-transform: uppercase; }
.tag {
  display: inline-block; margin-left: 4px; padding: 2px 6px; border-radius: 4px; vertical-align: 2px;
  background: var(--red); color: #fff;
  font: 600 11px/1.2 var(--font-label); letter-spacing: 0.08em;
}
.item-desc { display: block; margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }

.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.price-list .p { font: 500 17px/1.3 var(--font-label); font-variant-numeric: tabular-nums; white-space: nowrap; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper);
  font-size: 14px; line-height: 1.4;
}

.menu-foot { margin: 40px 0 0; text-align: center; font-size: 14px; color: var(--ink-2); }

/* ---------- Visit ---------- */

.visit { display: grid; gap: 32px; }
.visit h3 { margin: 0 0 8px; font: 700 21px/1.2 var(--font-display); }
.visit address { font-style: normal; font-size: 17px; line-height: 1.5; }
.visit .links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.hours { width: 100%; max-width: 400px; border-collapse: collapse; margin-top: 8px; }
.hours th, .hours td { padding: 8px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; color: var(--red); }

.map {
  width: 100%; aspect-ratio: 4 / 3; border: 1.5px solid var(--ink); border-radius: 6px;
  background: var(--paper);
}

/* ---------- Footer ---------- */

.site-foot { background: var(--ink); color: #e9dfc9; }
.site-foot .wrap { padding-top: 40px; padding-bottom: 40px; text-align: center; }
.site-foot p { margin: 0 0 8px; font-size: 15px; }
.site-foot .foot-name { font: 700 21px/1.2 var(--font-display); color: #f3e9d2; margin-bottom: 16px; }
.site-foot a { color: #f3e9d2; }
.site-foot .fine { margin-top: 24px; font-size: 13px; color: #b9ad95; }

/* ---------- Sticky call bar (phones) ---------- */

.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: 2fr 1fr; gap: 8px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1px solid var(--line);
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 200ms var(--ease);
}
.callbar.is-hidden { transform: translateY(110%); }
.site-foot { padding-bottom: 80px; }

/* ---------- Wider screens ---------- */

@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .band { padding: 64px 0; }
  .specials { grid-template-columns: 1fr 1fr; }
  .special-football { grid-column: 1 / -1; grid-template-columns: 200px 1fr; align-items: center; }
  .special-football img { width: 200px; }
  .visit { grid-template-columns: 1fr 1.2fr; align-items: start; }
}

@media (min-width: 768px) {
  .callbar { display: none; }
  .site-foot { padding-bottom: 0; }
}

@media (min-width: 1024px) {
  .hero { padding: 40px var(--gutter) 56px; }
  .hero-logo { width: 280px; }
  .specials { grid-template-columns: repeat(3, 1fr); }
  .menu-nav ul { justify-content: center; }
  .menu-grid { display: block; columns: 2; column-gap: 64px; }
  .menu-section { margin-bottom: 56px; }
}
