/* A&B Pizza — site styles. Mobile-first. */
:root {
  --red: #c8102e;
  --red-dark: #9c0c23;
  --green: #1f7a3f;
  --green-dark: #155c2e;
  --cream: #fbf6ec;
  --paper: #ffffff;
  --ink: #221c18;
  --muted: #6b625b;
  --line: #e8dfd2;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(34, 28, 24, .08);
  --wrap: 1120px;
  --head-h: 64px;
  --font-display: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 64px); }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--font-body);
  color: var(--ink);
  background: var(--cream);
  padding-bottom: 76px; /* room for mobile call bar */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 8vw, 4.25rem); }
h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.4em;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1 var(--font-body); letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { border-color: currentColor; color: #fff; background: transparent; }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--head-h); gap: 16px; }
.brand { display: flex; align-items: baseline; gap: .35em; text-decoration: none; color: var(--red); font-family: var(--font-display); font-weight: 700; line-height: 1; }
.brand-mark { font-size: 2rem; letter-spacing: -.01em; }
.brand-word { font-size: 1.15rem; color: var(--green); letter-spacing: .14em; text-transform: uppercase; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-right: -8px;
  background: none; border: 0; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 28px; height: 28px; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-menu { display: none; }
.nav-open .nav-toggle .i-close { display: block; }
.site-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
  display: none;
}
.nav-open .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 8px 20px 16px; }
.site-nav a {
  display: block; padding: 14px 4px; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.125rem;
}
.site-nav li:last-child a { border-bottom: 0; }
.site-nav a[aria-current="page"] { color: var(--red); }
.site-nav .nav-call { display: none; }

@media (min-width: 820px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; display: flex; align-items: center; gap: 8px; background: none; border: 0; box-shadow: none; }
  .site-nav ul { display: flex; gap: 4px; padding: 0; }
  .site-nav a { border: 0; padding: 10px 14px; font-size: 1rem; border-radius: 8px; }
  .site-nav a:hover { background: var(--cream); }
  .site-nav .nav-call { display: inline-flex; min-height: 42px; padding: .55em 1.1em; margin-left: 8px; }
}

/* ---------- Mobile call bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, .08);
}
.callbar .btn { flex: 1; min-height: 50px; }
@media (min-width: 820px) {
  .callbar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: #2a1d17 url("../img/hero-pizza.jpg") center / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 12, 8, .55), rgba(20, 12, 8, .85)); }
.hero .wrap { position: relative; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { margin-bottom: .2em; }
.hero h1 .amp { color: #ff9a8a; }
.hero .eyebrow { display: inline-block; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .8rem; background: var(--green); padding: .35em .8em; border-radius: 999px; margin-bottom: 18px; }
.hero .lead { font-size: clamp(1.1rem, 2.6vw, 1.35rem); max-width: 36em; color: #f3ebe4; }
.hero .btn-row { margin-top: 24px; }
@media (min-width: 820px) { .hero .wrap { padding-top: 110px; padding-bottom: 110px; } }

.status {
  display: inline-flex; align-items: center; gap: .55em;
  font-weight: 700; font-size: .95rem;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25);
  padding: .4em .9em; border-radius: 999px; margin-top: 20px;
}
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #aaa; }
.status.is-open::before { background: #3ddc6f; box-shadow: 0 0 0 4px rgba(61, 220, 111, .25); }
.status.is-closed::before { background: #ff6b5b; }
.status:empty { display: none; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 28px; }
.section-head p { color: var(--muted); max-width: 40em; }
.kicker { color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; margin-bottom: .5em; display: block; }

.grid-2 { display: grid; gap: 28px; }
@media (min-width: 820px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; } }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.photo { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

.features { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: 24px; }
.feature { background: var(--cream); border-radius: 12px; padding: 16px; }
.feature strong { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.feature span { color: var(--muted); font-size: .95rem; }

/* Hours */
.hours { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.hours th, .hours td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours .closed td { color: var(--muted); }
.hours tr.today th, .hours tr.today td { color: var(--red); font-weight: 700; }
.note { font-size: .95rem; color: var(--muted); margin-top: 14px; }

.banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--green); color: #fff; border-radius: var(--radius); padding: 24px;
}
.banner h2 { font-size: 1.6rem; margin: 0; }
.banner p { margin: 4px 0 0; color: #e2f2e7; }
.banner .btn { background: #fff; color: var(--green); }
.banner .btn:hover { background: var(--cream); }

/* ---------- Page header ---------- */
.page-head { background: var(--red); color: #fff; padding: 40px 0 36px; }
.page-head h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); margin: 0 0 .2em; }
.page-head p { margin: 0; color: #ffe1dc; max-width: 40em; }
.page-head a { color: #fff; }

/* ---------- Menu ---------- */
.menu-nav {
  position: sticky; top: var(--head-h); z-index: 40;
  background: var(--cream); border-bottom: 1px solid var(--line);
}
.menu-nav ul {
  list-style: none; margin: 0 auto; padding: 10px 20px; max-width: var(--wrap);
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.menu-nav ul::-webkit-scrollbar { display: none; }
.menu-nav a {
  display: block; white-space: nowrap; padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  text-decoration: none; font-weight: 600; font-size: .95rem;
}
.menu-nav a.active, .menu-nav a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.menu-section { padding: 36px 0 8px; }
.menu-section h2 { margin-bottom: .15em; }
.menu-section .desc { color: var(--muted); margin-bottom: 18px; }
.menu-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .menu-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .menu-grid { grid-template-columns: repeat(3, 1fr); } }
.item {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-content: start;
}
.item h3 { font-size: 1.2rem; margin: 0; }
.item .price { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--red); font-variant-numeric: tabular-nums; }
.item p { grid-column: 1 / -1; margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.item .meta { display: flex; flex-wrap: wrap; gap: 6px; grid-column: 1 / -1; margin-top: 8px; }
.tag { font-size: .8rem; font-weight: 700; background: var(--cream); color: var(--ink); border-radius: 6px; padding: 3px 8px; }
.tag.green { background: #e3f1e7; color: var(--green-dark); }
.toppings { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.toppings li { background: #fff; border: 1px dashed #d6c8b6; border-radius: 999px; padding: 4px 12px; font-size: .9rem; }
.menu-footer { margin: 40px 0 8px; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 24px; height: 24px; flex: none; color: var(--red); margin-top: 3px; }
.contact-list strong { display: block; }
.contact-list a { color: var(--ink); }
.map { border: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); box-shadow: var(--shadow); background: #eee; }
@media (min-width: 820px) { .map { aspect-ratio: auto; height: 100%; min-height: 380px; } }

/* ---------- Apply ---------- */
.job-cards { display: grid; gap: 16px; }
@media (min-width: 720px) { .job-cards { grid-template-columns: 1fr 1fr; } }
.cognito-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-height: 200px; }
@media (min-width: 720px) { .cognito-wrap { padding: 28px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9d0c7; padding: 48px 0 24px; font-size: .98rem; }
.site-footer a { color: #fff; }
.site-footer h2 { font-size: 1.1rem; color: #fff; letter-spacing: .06em; text-transform: uppercase; font-family: var(--font-body); margin-bottom: .8em; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid .brand { margin-bottom: 12px; }
.footer-grid .brand-word { color: #7fcf98; }
.footer-grid .brand-mark { color: #ff6b5b; }
.legal { border-top: 1px solid #3a322c; margin-top: 36px; padding-top: 20px; font-size: .9rem; color: #a59a90; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.legal a { color: #a59a90; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
