/* ============================================================
   Mommò Pizza Shop — custom styles (layered on top of Tailwind CDN)
   Brand system per assets/Mommo Brand Guidelines.md:
   Dough Cream + Hudson Valley Blue + Ink Black / Charcoal only.
   Cormorant italic (headlines) + Montserrat (everything else).
   ============================================================ */

:root {
  --color-dough-cream: #fdfcef;
  --color-hudson-blue: #3e9bd6;
  --color-ink-black: #000000;
  --color-charcoal: #1a1a1a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--color-dough-cream);
  color: var(--color-charcoal);
  overflow-x: hidden;
}

/* Body-scroll lock while the nav card is open */
body.nav-open {
  overflow: hidden;
}

/* ---------- Headline type (Cormorant italic leads; Playfair as heavier accent) ---------- */
h1,
h2,
h3 {
  font-family: "Cormorant", serif;
  font-style: italic;
  font-weight: 700;
  line-height: 1.05;
}
h1 {
  color: var(--color-ink-black);
}
h2 {
  color: var(--color-hudson-blue);
}
h3 {
  color: var(--color-ink-black);
}

/* Big Playfair pull-quote treatment — the "heavier alternative" per brand doc */
.pull-quote {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 700;
  color: var(--color-ink-black);
  line-height: 1.15;
}
.pull-quote-mark {
  color: var(--color-hudson-blue);
  font-family: "Playfair Display", serif;
  font-style: italic;
}

/* Small uppercase spaced labels — "PIZZA SHOP" treatment from the logo.
   Charcoal by default (blue-on-cream fails contrast at small sizes);
   the --inverse variant is for use on dark (footer) backgrounds. */
.eyebrow {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  color: var(--color-charcoal);
}
.eyebrow--inverse {
  color: var(--color-hudson-blue);
}

/* Pizza names in the menu: Montserrat, not the italic Cormorant h3 default */
.menu-item-name {
  font-family: "Montserrat", sans-serif;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-ink-black);
}

/* Offset anchor scroll targets so headings aren't flush against the viewport edge */
section[id] {
  scroll-margin-top: 28px;
}
/* #home is the mural splash at the very top of the page — there's nothing
   above it to clear, so it shouldn't take the same offset every other
   section uses to clear the fixed nav. See setupSmoothScroll() in
   js/main.js, which also forces true scrollY 0 for this one anchor. */
#home {
  scroll-margin-top: 0;
}

/* ---------- Shared vertical section spacing ----------
   Single source of truth for the gap BETWEEN sections, used on both pages.
   Deliberately does not touch horizontal padding (handled per-section by
   inner containers) or spacing WITHIN a section's own content. The mural
   splash on index.html is exempt — it stays a full 100vh. */
.section-space {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
@media (min-width: 640px) {
  .section-space {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

/* ---------- Buttons (5px radius, blue fill / cream text, invert on hover) ---------- */
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  padding: 0.95rem 2.1rem;
  border-radius: 5px;
  border: 2px solid var(--color-hudson-blue);
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
  cursor: pointer;
}
.btn-primary {
  background-color: var(--color-hudson-blue);
  color: #ffffff;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: transparent;
  color: var(--color-hudson-blue);
}
.btn-outline {
  background-color: transparent;
  color: var(--color-ink-black);
  border-color: var(--color-ink-black);
}
.btn-outline:hover,
.btn-outline:focus-visible {
  background-color: var(--color-ink-black);
  color: var(--color-dough-cream);
}
.btn-outline--on-dark {
  color: var(--color-dough-cream);
  border-color: var(--color-dough-cream);
}
.btn-outline--on-dark:hover,
.btn-outline--on-dark:focus-visible {
  background-color: var(--color-dough-cream);
  color: var(--color-ink-black);
}
.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.72rem;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-hudson-blue);
  outline-offset: 3px;
}

/* ---------- Inline text links (charcoal at rest — blue only on hover/focus) ---------- */
.text-link {
  color: var(--color-charcoal);
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}
.text-link:hover,
.text-link:focus-visible {
  color: var(--color-hudson-blue);
  text-decoration-line: underline;
  text-decoration-color: var(--color-hudson-blue);
}
.text-link--inverse {
  color: var(--color-dough-cream);
}
.text-link--inverse:hover,
.text-link--inverse:focus-visible {
  color: var(--color-hudson-blue);
}

/* ============================================================
   ORDERING-DISABLED BANNER + TOOLTIP
   Shown only while ORDERING_ENABLED is false in js/main.js.
   ============================================================ */
.ordering-banner {
  background-color: var(--color-hudson-blue);
  color: var(--color-dough-cream);
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.5;
  padding: 0.85rem 1.25rem;
}
@media (min-width: 640px) {
  .ordering-banner {
    font-size: 0.9rem;
  }
}
.ordering-banner-phone {
  color: var(--color-dough-cream);
  text-decoration-line: underline;
  text-decoration-color: rgba(253, 252, 239, 0.55);
  text-underline-offset: 2px;
}
.ordering-banner-phone:hover,
.ordering-banner-phone:focus-visible {
  text-decoration-color: var(--color-dough-cream);
}

.order-tooltip {
  position: fixed;
  z-index: 70;
  max-width: min(280px, calc(100vw - 1.5rem));
  background-color: var(--color-ink-black);
  color: var(--color-dough-cream);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.45;
  padding: 0.7rem 0.9rem;
  border-radius: 5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ============================================================
   HAMBURGER + FLOATING NAV CARD
   ============================================================ */
.hamburger-btn {
  position: fixed;
  top: var(--fixed-header-top, 1.1rem);
  left: 1.1rem;
  z-index: 60;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-dough-cream);
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: top 220ms ease, box-shadow 200ms ease, transform 160ms ease;
}
.hamburger-btn:hover,
.hamburger-btn:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(62, 155, 214, 0.4);
}
.hamburger-btn.is-scrolled {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}
/* Mommo_Logo_Clean.svg wraps a raster PNG whose canvas (3137×3333) has a
   ~8-12% transparent margin baked in around the circular disc — object-fit:
   cover alone just scales that padding along with the disc, so the disc still
   reads as small at any size. Zooming the image itself (clipped by this
   button's own overflow: hidden) crops the padding away so the disc actually
   reaches the button's edge. */
.hamburger-btn-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transform: scale(1.25);
  pointer-events: none;
}

.order-pill-fixed {
  position: fixed;
  top: var(--fixed-header-top, 1.1rem);
  right: 1.1rem;
  z-index: 60;
  transition: top 220ms ease;
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background-color: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}
.nav-scrim.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-panel {
  position: fixed;
  top: 1.1rem;
  left: 1.1rem;
  z-index: 50;
  width: min(420px, calc(100vw - 2.2rem));
  max-height: calc(100vh - 2.2rem);
  overflow-y: auto;
  background-color: var(--color-dough-cream);
  background-image: radial-gradient(rgba(26, 26, 26, 0.045) 1px, transparent 1.3px);
  background-size: 12px 12px;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  padding: 3.75rem 2rem 2.25rem;
  transform-origin: top left;
  transform: scale(0.92) translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-panel.is-open {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.nav-panel-close {
  position: absolute;
  top: 1.1rem;
  left: 1.35rem;
  z-index: 2;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--color-ink-black);
  transition: color 160ms ease, transform 160ms ease;
}
.nav-panel-close:hover {
  color: var(--color-hudson-blue);
  transform: rotate(90deg);
}

.nav-panel-ghost {
  position: absolute;
  right: -12%;
  bottom: -10%;
  width: 62%;
  height: auto;
  color: var(--color-hudson-blue);
  opacity: 0.09;
  z-index: 0;
  pointer-events: none;
}

.nav-panel-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.nav-panel-logo {
  height: 4.5rem;
  width: 4.5rem;
  max-width: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-panel-links {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-panel-links li + li {
  margin-top: 0.35rem;
}
.nav-panel-links a {
  display: block;
  padding: 0.6rem 0.1rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
  color: var(--color-ink-black);
  transition: color 160ms ease;
}
.nav-panel-links a:hover,
.nav-panel-links a:focus-visible {
  color: var(--color-hudson-blue);
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}
.nav-panel-links a.is-active {
  color: var(--color-hudson-blue);
}

.nav-panel-order {
  position: relative;
  z-index: 1;
  margin-top: 1.75rem;
  width: 100%;
}

@media (max-width: 480px) {
  .nav-panel {
    padding: 3.25rem 1.5rem 1.75rem;
  }
}

/* ============================================================
   GHOSTED LINE-ART ILLUSTRATIONS
   Guideline: illustrations only render Hudson Blue against Dough
   Cream — never used on dark sections.
   ============================================================ */
.ghost-bleed {
  position: absolute;
  color: var(--color-hudson-blue);
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
.ghost-story {
  transform: rotate(8deg) translateY(var(--py, 0px));
}
.ghost-community {
  transform: rotate(-7deg) translateY(var(--py, 0px));
}
.ghost-truck {
  transform: rotate(5deg) translateY(var(--py, 0px));
}

.ghost-mark {
  position: absolute;
  color: var(--color-hudson-blue);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Signature divider (recurring identity element) ---------- */
.mommo-divider-wrap {
  display: flex;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  color: var(--color-hudson-blue);
}
.mommo-divider-svg {
  width: 100%;
  max-width: 44rem;
  height: 32px;
}
@media (max-width: 640px) {
  .mommo-divider-wrap {
    padding: 1.25rem 1.5rem;
  }
}

/* ---------- Menu frame (full-strength illustrative border, like a print menu) ---------- */
.menu-frame {
  position: relative;
  border: 2px solid var(--color-hudson-blue);
  border-radius: 4px;
  padding: 3.5rem 1.5rem 3rem;
}
@media (min-width: 640px) {
  .menu-frame {
    padding: 4.5rem 3.5rem 4rem;
  }
}
.menu-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(62, 155, 214, 0.4);
  border-radius: 2px;
  pointer-events: none;
}
.menu-frame-corner {
  position: absolute;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0.6rem;
  color: var(--color-hudson-blue);
  background-color: var(--color-dough-cream);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--color-dough-cream);
}
.menu-frame-corner.is-tl {
  top: -1.6rem;
  left: -1.6rem;
}
.menu-frame-corner.is-tr {
  top: -1.6rem;
  right: -1.6rem;
}
.menu-frame-corner.is-bl {
  bottom: -1.6rem;
  left: -1.6rem;
}
.menu-frame-corner.is-br {
  bottom: -1.6rem;
  right: -1.6rem;
}

.menu-item {
  padding: 1.25rem 0;
}

/* ============================================================
   MURAL SPLASH (landing)
   ============================================================ */
.mural-splash {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6.5rem 1.25rem 3rem;
  text-align: center;
}
.mural-splash img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  max-height: 76vh;
  object-fit: contain;
}
@media (max-width: 640px) {
  .mural-splash img {
    max-height: 46vh;
  }
}

.scroll-cue {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-hudson-blue);
}
.scroll-cue-label {
  font-family: "Cormorant", serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.1rem;
}
.scroll-cue-arrow {
  width: 1.75rem;
  height: 1.75rem;
  animation: mommo-bob 1.8s ease-in-out infinite;
}
@keyframes mommo-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* ============================================================
   MENU / VISIT / TRUCK FRAMED MAP
   ============================================================ */
.map-frame {
  border: 2px solid var(--color-hudson-blue);
  border-radius: 4px;
  padding: 0.65rem;
  background-color: var(--color-dough-cream);
}
.map-frame iframe {
  display: block;
  border-radius: 2px;
}

/* ---------- Portrait photo frame (Story / Truck Story real photos) ---------- */
.photo-frame {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--color-hudson-blue);
  border-radius: 4px;
  background-color: var(--color-dough-cream);
}
.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-frame-mark {
  position: absolute;
  bottom: -1.1rem;
  right: -1.1rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.55rem;
  color: var(--color-hudson-blue);
  background-color: var(--color-dough-cream);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--color-dough-cream);
}

/* ============================================================
   INSTAGRAM CAROUSEL (auto-drifts; pauses on hover/touch/arrow use)
   ============================================================ */
.ig-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ig-carousel-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1 1 auto;
}
.ig-carousel-track::-webkit-scrollbar {
  display: none;
}
.ig-carousel-arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background-color: var(--color-dough-cream);
  border: 2px solid var(--color-hudson-blue);
  color: var(--color-hudson-blue);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.ig-carousel-arrow svg {
  width: 1.15rem;
  height: 1.15rem;
}
.ig-carousel-arrow:hover,
.ig-carousel-arrow:focus-visible {
  background-color: var(--color-hudson-blue);
  color: #ffffff;
  transform: scale(1.06);
}

.ig-tile {
  position: relative;
  flex: 0 0 auto;
  width: 8.5rem;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 2px solid var(--color-hudson-blue);
  border-radius: 4px;
}
@media (min-width: 640px) {
  .ig-tile {
    width: 11rem;
  }
}
@media (min-width: 1024px) {
  .ig-tile {
    width: 13rem;
  }
}
.ig-tile img {
  transition: transform 500ms ease;
}
.ig-tile:hover img {
  transform: scale(1.07);
}
.ig-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(62, 155, 214, 0);
  transition: background 200ms ease;
}
.ig-tile:hover::after {
  background: rgba(62, 155, 214, 0.18);
}

/* ============================================================
   FOOTER (charcoal/black close — blue accents, cream body text)
   ============================================================ */
.site-footer {
  background-color: var(--color-ink-black);
  color: var(--color-dough-cream);
}
.site-footer h3 {
  font-style: normal;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   MISC
   ============================================================ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-hudson-blue);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  z-index: 100;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.editorial-table {
  width: 100%;
  border-collapse: collapse;
}
.editorial-table th {
  text-align: left;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--color-charcoal);
  padding: 0 0 0.85rem;
  border-bottom: 2px solid var(--color-hudson-blue);
}
.editorial-table td {
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.12);
}
.editorial-table tr:last-child td {
  border-bottom: none;
}

/* ---------- Story "Read more" expand ---------- */
.story-more {
  max-height: 0;
  overflow: hidden;
  transition: max-height 450ms ease;
}
.story-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--color-hudson-blue);
  cursor: pointer;
}
.story-toggle:hover,
.story-toggle:focus-visible {
  text-decoration-line: underline;
  text-decoration-color: var(--color-hudson-blue);
}
.story-toggle-icon {
  width: 0.85rem;
  height: 0.85rem;
  transition: transform 300ms ease;
}
.story-toggle[aria-expanded="true"] .story-toggle-icon {
  transform: rotate(180deg);
}

/* ============================================================
   MOTION PREFERENCES
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .nav-panel,
  .nav-scrim {
    transition: opacity 150ms ease !important;
  }
  .nav-panel {
    transform: none !important;
  }
  .scroll-cue-arrow {
    animation: none;
  }
  .story-more {
    transition: none;
  }
  .story-toggle-icon {
    transition: none;
  }
}
