/* ============================================================
   VESUVIO PIZZA — the classic takeout-menu look
   Warm paper, tomato red, basil green in small doses,
   checkered strips like a pizza box edge. Homey, not sleek.
   ============================================================ */

:root {
  --paper:     oklch(0.965 0.018 80);
  --card:      oklch(0.99 0.008 85);
  --ink:       oklch(0.24 0.02 40);
  --muted:     oklch(0.44 0.03 40);
  --red:       oklch(0.50 0.19 29);
  --red-deep:  oklch(0.43 0.17 29);
  --green:     oklch(0.44 0.11 145);
  --line:      oklch(0.86 0.03 75);

  --font-display: "Alfa Slab One", "Rockwell", serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: clamp(3rem, 8vw, 6rem);

  --z-sticky: 10;
  --z-callbar: 20;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0 0 1em; max-width: 65ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--red-deep); text-underline-offset: 3px; }
a:hover { color: var(--red); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-md);
  z-index: var(--z-callbar);
  background: var(--red-deep);
  color: var(--card);
  padding: 0.6rem 1rem;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: var(--space-sm); color: var(--card); }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: 0.005em;
  color: var(--red-deep);
}

/* ============ TOP BAR ============ */

.topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: 0.5rem clamp(1rem, 4vw, 2.5rem);
  background: color-mix(in oklch, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--red-deep);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--red-deep);
  text-decoration: none;
}
.wordmark:hover { color: var(--red-deep); }
.wordmark-dot { color: var(--green); }

.topnav {
  display: flex;
  gap: var(--space-md);
  margin-inline: auto;
}
.topnav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0.2rem;
}
.topnav a:hover { color: var(--red-deep); }

.topbar-call {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--red-deep);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.6rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 640px) {
  .topnav { display: none; }
  .topbar { justify-content: space-between; }
}

/* ============ HERO ============ */

.hero {
  position: relative;
  min-height: min(88svh, 56rem);
  display: grid;
  align-items: end;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,
      oklch(0.2 0.04 35 / 0.88) 0%,
      oklch(0.2 0.04 35 / 0.55) 35%,
      oklch(0.2 0.04 35 / 0.15) 70%,
      oklch(0.2 0.04 35 / 0.35) 100%);
}

.hero-content {
  position: relative;
  padding: var(--space-xl) clamp(1rem, 4vw, 2.5rem) clamp(3rem, 7vw, 5rem);
  max-width: 68rem;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 var(--space-md);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: oklch(0.98 0.01 85 / 0.92);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}
.hero-status::before {
  content: "";
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--status-color, var(--muted));
}
.hero-status.is-open { --status-color: oklch(0.55 0.17 145); }
.hero-status.is-closed { --status-color: var(--red); }

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.7rem, 9.5vw, 5rem);
  line-height: 1.02;
  letter-spacing: 0.005em;
  color: oklch(0.985 0.01 85);
  text-shadow: 0 3px 26px oklch(0.15 0.03 35 / 0.65);
}

.hero-sub {
  margin: var(--space-md) 0 var(--space-lg);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 500;
  color: oklch(0.97 0.012 85);
  max-width: 34ch;
  text-shadow: 0 1px 12px oklch(0.15 0.03 35 / 0.6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--red);
  color: oklch(0.99 0.005 85);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border-radius: 8px;
  border: 2px solid oklch(0.99 0.005 85 / 0.5);
  min-height: 44px;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background 0.18s;
}
.btn-call:hover { background: var(--red-deep); color: oklch(0.99 0.005 85); transform: translateY(-2px); }
.btn-call:active { transform: translateY(0); }

.btn-menu {
  display: inline-flex;
  align-items: center;
  color: oklch(0.985 0.01 85);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0.9rem 1.3rem;
  min-height: 44px;
  border: 2px solid oklch(0.985 0.01 85 / 0.6);
  border-radius: 8px;
  transition: border-color 0.18s, background 0.18s;
}
.btn-menu:hover { border-color: oklch(0.985 0.01 85); color: oklch(0.985 0.01 85); background: oklch(0.985 0.01 85 / 0.12); }

/* ============ CHECKER STRIPS + TICKER ============ */

.checker {
  height: 12px;
  background: repeating-conic-gradient(var(--red-deep) 0% 25%, var(--card) 0% 50%);
  background-size: 24px 24px;
}

.ticker {
  background: var(--red-deep);
  color: oklch(0.99 0.008 85);
  overflow: hidden;
}
.ticker-track {
  display: flex;
  width: max-content;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  padding: 0.6rem 0;
  animation: ticker-scroll 30s linear infinite;
}
.ticker-track span { white-space: nowrap; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ============ MENU ============ */

.menu {
  padding: var(--space-xl) clamp(1rem, 4vw, 2.5rem);
  max-width: 72rem;
  margin-inline: auto;
}

.menu-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.menu-note { color: var(--muted); font-size: 0.95rem; }

.board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  background: var(--card);
  border: 2px solid var(--red-deep);
  outline: 1px solid var(--red-deep);
  outline-offset: 4px;
  border-radius: 4px;
  padding: clamp(1.25rem, 4vw, 3rem);
  box-shadow: 0 14px 40px oklch(0.35 0.06 40 / 0.14);
}

.board-cat {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--red-deep);
  border-bottom: 2px solid var(--red-deep);
  padding-bottom: 0.35rem;
  margin: 0 0 var(--space-sm);
}
.board-cat:not(:first-child) { margin-top: var(--space-lg); }

.board-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.board-list li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.5rem 0;
}

.item { font-weight: 600; }

.item-sub {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
}

.dots {
  flex: 1;
  border-bottom: 2px dotted var(--line);
  transform: translateY(-4px);
  min-width: 1.5rem;
}

.price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--red-deep);
  white-space: nowrap;
}

.diet {
  display: inline-grid;
  place-items: center;
  width: 1.3em;
  height: 1.3em;
  margin-left: 0.3em;
  border-radius: 50%;
  background: oklch(0.44 0.11 145 / 0.14);
  color: var(--green);
  font-size: 0.72em;
  font-weight: 700;
  text-decoration: none;
  vertical-align: 0.15em;
}

.board-legend {
  margin-top: var(--space-md);
  color: var(--muted);
  font-size: 0.9rem;
}

/* ============ STORY ============ */

.story {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: center;
  padding: var(--space-xl) clamp(1rem, 4vw, 2.5rem);
  max-width: 72rem;
  margin-inline: auto;
}

.story-photo { margin: 0; position: relative; }
.story-photo img {
  border-radius: 4px;
  border: 2px solid var(--card);
  outline: 2px solid var(--red-deep);
  outline-offset: 3px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: 0 14px 40px oklch(0.35 0.06 40 / 0.18);
}

.story-copy .section-title { margin-bottom: var(--space-md); }
.story-copy p { color: var(--ink); }
.story-copy strong { color: var(--red-deep); font-weight: 700; }

@media (max-width: 760px) {
  .story { grid-template-columns: 1fr; }
  .story-photo img { aspect-ratio: 16 / 10; }
}

/* ============ REVIEWS ============ */

.reviews {
  background: var(--red-deep);
  padding: var(--space-xl) clamp(1rem, 4vw, 2.5rem);
}

.reviews-inner {
  max-width: 72rem;
  margin-inline: auto;
}

.reviews .section-title {
  color: oklch(0.985 0.01 85);
  margin-bottom: var(--space-lg);
}

.review-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

.review {
  margin: 0;
  background: var(--card);
  border-radius: 6px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: 0 10px 30px oklch(0.25 0.08 29 / 0.3);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.review.is-fading {
  opacity: 0;
  transform: translateY(10px);
}

.review p {
  font-size: 1.15rem;
  font-weight: 600;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 0.5em;
}
.review .stars {
  display: block;
  color: var(--red);
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.5em;
}
.review cite { color: var(--muted); font-style: normal; font-size: 0.9rem; }

@media (prefers-reduced-motion: reduce) {
  .review { transition: none; }
}

/* ============ VISIT ============ */

.visit {
  padding: var(--space-xl) clamp(1rem, 4vw, 2.5rem);
  max-width: 72rem;
  margin-inline: auto;
}

.visit > .section-title { margin-bottom: var(--space-lg); max-width: 24ch; }

.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}

.visit-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.visit-block h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: var(--space-xs);
}

.visit-phone {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  color: var(--red-deep);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.visit-phone:hover { color: var(--red); }

.visit-hint { color: var(--muted); font-size: 0.95rem; margin-top: 0.4em; }

.delivery-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}
.delivery-links a {
  border: 2px solid var(--red-deep);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  text-decoration: none;
  color: var(--red-deep);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.18s, color 0.18s;
}
.delivery-links a:hover { background: var(--red-deep); color: var(--card); }

.hours {
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  width: 100%;
  max-width: 22rem;
}
.hours th, .hours td {
  text-align: left;
  padding: 0.3rem 0;
  font-weight: 400;
  color: var(--muted);
}
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td {
  color: var(--red-deep);
  font-weight: 700;
}

.visit-address { font-size: 1.1rem; }
.directions { font-weight: 600; text-decoration: none; }
.directions:hover { text-decoration: underline; }

.visit-map iframe {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  border: 2px solid var(--red-deep);
  border-radius: 4px;
}

@media (max-width: 760px) {
  .visit-grid { grid-template-columns: 1fr; }
  .visit-map iframe { min-height: 16rem; }
}

/* ============ FOOTER ============ */

.footer {
  border-top: 2px solid var(--red-deep);
  background: var(--card);
  padding: var(--space-lg) clamp(1rem, 4vw, 2.5rem) calc(var(--space-lg) + 4.5rem);
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer p { margin-inline: auto; }

.footer-mark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--red-deep);
  margin-bottom: 0.3em;
}

.footer-fine { font-size: 0.85rem; margin-top: 0.6em; }

@media (min-width: 641px) {
  .footer { padding-bottom: var(--space-lg); }
}

/* ============ MOBILE CALL BAR ============ */

.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-callbar);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--red-deep);
  color: oklch(0.99 0.008 85);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0.9rem 1rem;
  padding-bottom: calc(0.9rem + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 24px oklch(0.25 0.08 29 / 0.35);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.callbar.is-visible { transform: translateY(0); }
.callbar:hover { color: oklch(0.99 0.008 85); }

@media (max-width: 640px) {
  .callbar { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .callbar { transition: none; }
}

/* ============ REVEALS (JS-enhanced, visible by default) ============ */

.js-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.js-reveal.is-in {
  opacity: 1;
  transform: none;
}
