/* ==========================================================================
   Calabria Pizza & Gyros — Design System
   Rustic Mediterranean warmth: tomato red, basil green, warm cream.
   Edit the tokens below to re-theme the whole site.
   ========================================================================== */

:root {
  /* Brand colors */
  --red: #b5301c;            /* tomato red — primary CTA + accents */
  --red-dark: #8f2414;       /* hover / deep red */
  --red-bright: #d8432a;     /* highlights on dark backgrounds */
  --basil: #3a5734;          /* basil green — secondary */
  --basil-deep: #26391f;     /* footer / dark green sections */
  --cream: #faf3e6;          /* page background */
  --cream-soft: #f3e8d3;     /* alternate section background */
  --cream-card: #fffaf1;     /* card background */
  --honey: #d99a2b;          /* honey gold — badges, stars */
  --char: #2b2118;           /* warm charcoal text */
  --char-soft: #5d5142;      /* secondary text */
  --line: #e4d6bd;           /* borders */

  /* Typography */
  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --font-hand: "Caveat", cursive;

  /* Rhythm */
  --container: 1180px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px rgba(43, 33, 24, 0.1);
  --shadow-lift: 0 18px 44px rgba(43, 33, 24, 0.18);
  --header-h: 76px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--char);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 2px;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  margin: 0 0 0.5em;
  color: var(--char);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 700; }
p { margin: 0 0 1em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--soft { background: var(--cream-soft); }
.section--basil { background: var(--basil-deep); color: #f1ead9; }
.section--basil h2, .section--basil h3 { color: #fdf8ec; }

/* Handwritten accent */
.hand {
  font-family: var(--font-hand);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 600;
  color: var(--red);
  line-height: 1.2;
}
.section--basil .hand { color: var(--honey); }

/* Eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--basil);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 3px;
  background: var(--red);
  border-radius: 2px;
}
.section--basil .eyebrow { color: #cfe0c0; }

/* Checkered ticking — pizzeria tablecloth nod, used as thin dividers */
.checker {
  height: 12px;
  background:
    repeating-conic-gradient(var(--red) 0% 25%, transparent 0% 50%)
    0 0 / 24px 24px;
  opacity: 0.85;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  min-height: 48px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  touch-action: manipulation;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--red { background: var(--red); color: #fff8ec; }
.btn--red:hover { background: var(--red-dark); }
.btn--outline { background: transparent; color: var(--char); border-color: var(--char); }
.btn--outline:hover { background: var(--char); color: var(--cream); }
.btn--cream-outline { background: rgba(0,0,0,0.18); color: #fff8ec; border-color: #fff8ec; backdrop-filter: blur(2px); }
.btn--cream-outline:hover { background: #fff8ec; color: var(--char); }
.btn--basil { background: var(--basil); color: #fdf8ec; }
.btn--basil:hover { background: var(--basil-deep); }
.btn svg { width: 19px; height: 19px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(250, 243, 230, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(228, 214, 189, 0.6);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(43,33,24,0.12); }
.site-header .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--char);
}
.logo svg { width: 40px; height: 40px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: 0.01em;
}
.logo__tag {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 4px;
}
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  text-decoration: none;
  color: var(--char);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 6px 2px;
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover { color: var(--red); }
.main-nav a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--char);
  font-weight: 800;
  font-size: 0.98rem;
  white-space: nowrap;
  padding: 10px 6px;
}
.header-phone svg { width: 18px; height: 18px; color: var(--basil); }
.header-phone:hover { color: var(--red); }
.btn--header { padding: 12px 24px; font-size: 0.95rem; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
  color: var(--char);
}
.nav-toggle svg { width: 28px; height: 28px; display: block; }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 990;
  background: var(--cream);
  padding: 28px 24px 110px;
  display: none;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.mobile-drawer.is-open { display: flex; }
.mobile-drawer a {
  text-decoration: none;
  color: var(--char);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}
.mobile-drawer a[aria-current="page"] { color: var(--red); }
.mobile-drawer__cta { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.mobile-drawer__hours { margin-top: 24px; color: var(--char-soft); font-size: 0.95rem; }

/* Mobile sticky bottom action bar — hungry searchers tap once */
.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1001;
  display: none;
  grid-template-columns: 1fr 1.4fr;
  gap: 1px;
  background: var(--char);
  padding-bottom: env(safe-area-inset-bottom);
}
.action-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 58px;
  font-weight: 800;
  font-size: 1.02rem;
  text-decoration: none;
}
.action-bar a svg { width: 20px; height: 20px; }
.action-bar__call { background: var(--basil); color: #fdf8ec; }
.action-bar__order { background: var(--red); color: #fff8ec; }

/* Push page below fixed header */
main { padding-top: var(--header-h); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: clamp(60px, 8vw, 96px) 0 clamp(48px, 6vw, 72px);
  background: var(--basil-deep);
  color: #f1ead9;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(217, 154, 43, 0.18), transparent 60%),
    radial-gradient(700px 380px at -5% 110%, rgba(181, 48, 28, 0.25), transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fdf8ec; margin-bottom: 0.3em; }
.page-hero p { max-width: 640px; font-size: 1.12rem; color: #ded3bb; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  font-size: 0.88rem;
  font-weight: 600;
}
.breadcrumbs a { color: var(--honey); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs li + li::before { content: "›"; margin-right: 8px; color: #9aa888; }

/* ---------- Cards ---------- */
.card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.card__img { position: relative; aspect-ratio: 9 / 7; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: 22px 24px 26px; }
.card__price {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--cream);
  color: var(--char);
  font-weight: 800;
  font-size: 1rem;
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.22);
}
.badge {
  display: inline-block;
  background: var(--honey);
  color: #3d2c07;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* ---------- Menu list (price-dotted rows) ---------- */
.menu-section { margin-bottom: clamp(44px, 6vw, 64px); }
.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}
.menu-item__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.13rem;
}
.menu-item__name .badge { margin: 0 0 0 10px; vertical-align: 2px; }
.menu-item__price {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--red);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.menu-item__desc { grid-column: 1 / -1; color: var(--char-soft); margin: 0; font-size: 0.99rem; }

/* ---------- Quick answer box (AEO) ---------- */
.quick-answer {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-left: 6px solid var(--basil);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 0 0 34px;
}
.quick-answer h2, .quick-answer h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--basil); }
.quick-answer p { margin: 0; }

/* ---------- Key facts table ---------- */
.facts-table { width: 100%; border-collapse: collapse; margin: 0 0 34px; font-size: 0.99rem; }
.facts-table th, .facts-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.facts-table th { width: 38%; color: var(--basil); font-weight: 800; }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 4px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.6rem;
  color: var(--red);
  line-height: 1;
  transition: transform 0.2s ease;
  flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--char-soft); padding: 0 4px 20px; max-width: 760px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.field label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fffdf8;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--char);
  min-height: 48px;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--basil);
  box-shadow: 0 0 0 3px rgba(58, 87, 52, 0.18);
}
.form-note { font-size: 0.88rem; color: var(--char-soft); }
.form-success {
  display: none;
  background: #ecf4e6;
  border: 1.5px solid var(--basil);
  color: var(--basil-deep);
  border-radius: 12px;
  padding: 16px 18px;
  font-weight: 600;
}
.form-success.is-visible { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--basil-deep);
  color: #d8cfb8;
  padding: clamp(56px, 7vw, 84px) 0 36px;
  font-size: 0.97rem;
}
.site-footer a { color: #f1ead9; text-decoration: none; }
.site-footer a:hover { color: var(--honey); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 44px;
}
.footer-brand .logo__name { color: #fdf8ec; font-size: 1.4rem; }
.footer-brand p { margin-top: 12px; max-width: 300px; }
.site-footer h4 {
  color: #fdf8ec;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-hours li { display: flex; justify-content: space-between; gap: 14px; max-width: 280px; }
.footer-hours span:last-child { color: #fdf8ec; font-weight: 600; white-space: nowrap; }
.footer-bottom {
  border-top: 1px solid rgba(241, 234, 217, 0.18);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
  color: #a8a18c;
}

/* ---------- Scroll reveals ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.09s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.18s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.27s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.36s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.45s; }

/* ---------- Utility grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .header-phone span { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .action-bar { display: grid; }
  body { padding-bottom: 58px; }
  .btn--header { display: none; }
  .header-phone { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ---------- QA mode (?qa) — force-reveal everything for screenshots ---------- */
body.qa-mode .reveal,
body.qa-mode .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
