:root {
  --black: #0a0807;
  --charcoal: #201713;
  --cream: #fff4e4;
  --white: #fffdf8;
  --tomato: #c83b26;
  --basil: #315f43;
  --gold: #c99a42;
  --muted: #74645a;
  --border: rgba(32, 23, 19, 0.14);
  --shadow: 0 24px 70px rgba(33, 17, 10, 0.14);
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Manrope", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 24px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--charcoal);
  background:
    linear-gradient(180deg, #fff9ef 0%, var(--cream) 45%, #fff0dc 100%);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100%, calc(var(--max) + 48px));
  margin: 0 auto;
  padding: 18px 20px;
  transition: background 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(255, 249, 239, 0.94);
  box-shadow: 0 12px 38px rgba(24, 12, 7, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--cream);
  background: var(--black);
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand strong {
  color: var(--black);
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.site-nav {
  display: none;
}

.site-nav a {
  border-radius: 999px;
  padding: 11px 14px;
  color: rgba(32, 23, 19, 0.84);
  font-size: 0.92rem;
  font-weight: 800;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--tomato);
  background: rgba(200, 59, 38, 0.08);
}

.site-nav .nav-cta {
  color: var(--cream);
  background: var(--black);
}

.site-nav .nav-cta:hover {
  color: var(--white);
  background: var(--tomato);
  transform: translateY(-1px);
}

.nav-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  place-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.74);
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 3px 0;
  background: var(--black);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 860px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--cream);
  background: var(--black);
  padding: 132px 20px 76px;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background: url("/assets/papa-mio-hero-pizza.jpg") 68% center / cover no-repeat;
  transform: scale(1.03);
  animation: heroDrift 22s ease-in-out infinite alternate;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 8, 7, 0.98) 0%, rgba(10, 8, 7, 0.82) 42%, rgba(10, 8, 7, 0.2) 100%),
    linear-gradient(180deg, rgba(10, 8, 7, 0.06), rgba(10, 8, 7, 0.78));
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 34px;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.hero-copy-block {
  max-width: 790px;
}

.eyebrow,
.pizza-number,
.story-kicker {
  margin: 0 0 14px;
  color: var(--tomato);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 800px;
  margin-bottom: 24px;
  font-size: clamp(3.05rem, 8vw, 6.9rem);
  line-height: 0.88;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.15rem, 5.1vw, 4.1rem);
  line-height: 0.96;
}

h3 {
  margin-bottom: 10px;
  color: var(--black);
  font-size: 1.15rem;
  line-height: 1.2;
}

h4 {
  margin-bottom: 10px;
  color: var(--cream);
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
}

.hero-copy {
  max-width: 700px;
  color: rgba(255, 244, 228, 0.84);
  font-size: clamp(1.04rem, 2vw, 1.22rem);
  line-height: 1.76;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  margin: 30px 0 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 13px 24px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px) scale(1.01);
}

.button.primary {
  color: var(--white);
  background: var(--tomato);
  box-shadow: 0 18px 34px rgba(200, 59, 38, 0.3);
}

.button.primary:hover {
  background: #a92e1f;
}

.button.secondary {
  color: var(--black);
  background: rgba(255, 244, 228, 0.95);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges span {
  border: 1px solid rgba(255, 244, 228, 0.2);
  border-radius: 999px;
  padding: 9px 14px;
  color: rgba(255, 244, 228, 0.88);
  background: rgba(255, 244, 228, 0.08);
  font-size: 0.84rem;
  font-weight: 850;
  backdrop-filter: blur(10px);
}

.hero-card {
  max-width: 430px;
  border: 1px solid rgba(255, 244, 228, 0.18);
  border-radius: var(--radius);
  padding: 26px;
  background: rgba(10, 8, 7, 0.52);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

.hero-card span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-card h2 {
  margin-bottom: 12px;
  color: var(--cream);
  font-size: clamp(2rem, 7vw, 2.85rem);
}

.hero-card p {
  margin-bottom: 0;
  color: rgba(255, 244, 228, 0.76);
}

.section {
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
  padding: 88px 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow),
.prose p,
.california p,
.experience p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.78;
}

.story-kicker {
  display: inline-flex;
  border: 1px solid rgba(200, 59, 38, 0.2);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(200, 59, 38, 0.07);
}

.story-grid {
  display: grid;
  gap: 34px;
  margin-top: 22px;
}

.prose {
  display: grid;
  gap: 2px;
}

.text-link {
  width: fit-content;
  color: var(--tomato);
  font-weight: 900;
  border-bottom: 2px solid currentColor;
}

.ingredient-grid,
.pizza-grid,
.feature-grid {
  display: grid;
  gap: 18px;
}

.ingredient-card,
.feature-grid article {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.ingredient-card:hover,
.feature-grid article:hover {
  transform: translateY(-5px);
  border-color: rgba(200, 59, 38, 0.26);
  box-shadow: 0 30px 90px rgba(33, 17, 10, 0.2);
}

.ingredient-card span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  color: var(--cream);
  background: var(--basil);
  font-weight: 950;
}

.ingredient-card p,
.feature-grid p {
  color: var(--muted);
  margin-bottom: 0;
}

.menu-section {
  color: var(--cream);
  background:
    linear-gradient(135deg, var(--black), #2a1711 62%, #140d0a);
}

.menu-inner {
  width: min(100% - 36px, var(--max));
}

.inverse h2,
.inverse p,
.menu-label h3 {
  color: var(--cream);
}

.inverse p:not(.eyebrow) {
  color: rgba(255, 244, 228, 0.72);
}

.menu-group {
  display: grid;
  gap: 18px;
  margin-top: 42px;
}

.menu-label {
  border-left: 3px solid var(--gold);
  padding-left: 18px;
}

.menu-label span {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.menu-label h3 {
  margin: 6px 0 0;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1;
}

.pizza-card {
  overflow: hidden;
  border: 1px solid rgba(255, 244, 228, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 244, 228, 0.07);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.pizza-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 154, 66, 0.42);
  background: rgba(255, 244, 228, 0.1);
}

.pizza-photo {
  min-height: 180px;
  background:
    linear-gradient(180deg, rgba(10, 8, 7, 0.04), rgba(10, 8, 7, 0.58)),
    url("/assets/papa-mio-hero-pizza.jpg") center / cover no-repeat;
}

.pizza-photo.meatball {
  background-position: 76% center;
}

.pizza-content {
  padding: 24px;
}

.pizza-content p {
  color: rgba(255, 244, 228, 0.76);
}

.pizza-content ul {
  display: grid;
  gap: 7px;
  margin: 18px 0;
  padding-left: 18px;
  color: rgba(255, 244, 228, 0.7);
}

.flavor {
  color: var(--gold) !important;
  font-weight: 900;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  border: 1px solid rgba(255, 244, 228, 0.15);
  border-radius: 999px;
  padding: 7px 10px;
  color: rgba(255, 244, 228, 0.82);
  font-size: 0.78rem;
  font-weight: 850;
}

.menu-note {
  margin: 28px 0 0;
  color: rgba(255, 244, 228, 0.7);
}

.feature-grid article {
  background: var(--white);
}

.section-cta {
  margin-top: 30px;
}

.experience {
  color: var(--cream);
  background:
    linear-gradient(90deg, rgba(10, 8, 7, 0.94), rgba(10, 8, 7, 0.74)),
    url("/assets/papa-mio-hero-pizza.jpg") 70% center / cover no-repeat;
}

.experience-inner {
  max-width: 820px;
  margin-left: max(18px, calc((100vw - var(--max)) / 2));
}

.experience h2 {
  color: var(--cream);
}

.experience p {
  color: rgba(255, 244, 228, 0.78);
}

.site-footer {
  display: grid;
  gap: 20px;
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
  padding: 42px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.site-footer strong {
  display: block;
  color: var(--black);
  font-size: 1.1rem;
}

.site-footer span {
  display: block;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  color: var(--charcoal);
  font-weight: 900;
}

.site-footer p {
  margin: 0;
}

.hero .eyebrow,
.hero h1,
.hero-copy,
.hero-actions,
.hero-badges,
.hero-card {
  opacity: 0;
  animation: riseIn 780ms cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.hero h1 {
  animation-delay: 100ms;
}

.hero-copy {
  animation-delay: 210ms;
}

.hero-actions {
  animation-delay: 320ms;
}

.hero-badges {
  animation-delay: 430ms;
}

.hero-card {
  animation-delay: 520ms;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 720ms cubic-bezier(0.19, 1, 0.22, 1), transform 720ms cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroDrift {
  from {
    transform: scale(1.03) translateX(0);
  }

  to {
    transform: scale(1.07) translateX(12px);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 899px) {
  .site-nav {
    position: absolute;
    top: 78px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 249, 239, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 14px;
  }
}

@media (min-width: 700px) {
  .hero-actions {
    flex-direction: row;
    max-width: none;
  }

  .story-grid,
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
    align-items: end;
  }

  .ingredient-grid,
  .pizza-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ingredient-card.wide {
    grid-column: span 2;
  }
}

@media (min-width: 900px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .nav-toggle {
    display: none;
  }

  .section {
    width: min(100% - 48px, var(--max));
    padding: 112px 0;
  }

  .menu-inner {
    width: min(100% - 48px, var(--max));
  }

  .pizza-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer {
    grid-template-columns: 1fr auto auto auto;
    align-items: start;
    width: min(100% - 48px, var(--max));
  }
}

@media (min-width: 1100px) {
  .ingredient-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .ingredient-card {
    grid-column: span 2;
  }

  .ingredient-card.wide {
    grid-column: span 3;
  }
}

@media (max-width: 560px) {
  .brand small {
    display: none;
  }

  .hero {
    min-height: 820px;
  }

  .hero-media {
    background-position: 76% center;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(10, 8, 7, 0.9) 0%, rgba(10, 8, 7, 0.72) 55%, rgba(10, 8, 7, 0.88) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .hero .eyebrow,
  .hero h1,
  .hero-copy,
  .hero-actions,
  .hero-badges,
  .hero-card {
    opacity: 1;
    transform: none;
  }
}
