/* ============================================================
   Sal & Carmine Pizza — Redesign Stylesheet
   Palette: navy #1c3f66, brick red #a6321f, cream #f6efe1,
            charcoal #20211d, aged-gold #e8c893, white #ffffff
   Display: Fraunces / Body: Inter
   ============================================================ */

:root {
  --navy: #1c3f66;
  --navy-deep: #142c48;
  --red: #a6321f;
  --red-deep: #7f2417;
  --cream: #f6efe1;
  --charcoal: #20211d;
  --gold: #e8c893;
  --white: #ffffff;

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wrap: 1120px;
  --radius: 10px;
  --shadow: 0 12px 32px rgba(28, 63, 102, 0.14);
}

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

html {
  scroll-behavior: smooth;
}

@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;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

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

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
}
.button:hover { transform: translateY(-2px); }

.button--accent {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(166, 50, 31, 0.35);
}
.button--accent:hover { background: var(--red-deep); }

.button--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.button--ghost:hover { background: rgba(28,63,102,0.08); }

.button--small {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 8px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem);
  color: var(--navy);
  margin: 0 0 24px;
  line-height: 1.1;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 239, 225, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(28, 63, 102, 0.12);
}

.site-header__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
}

.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--navy);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}

.brand__sub {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
}
.nav-toggle__bar {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 600;
  font-size: 0.94rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--navy);
}
.site-nav a:not(.button):hover {
  color: var(--red);
}

.site-nav__phone {
  white-space: nowrap;
}

/* Base mobile nav (no JS assumed): a plain stacked block in normal document flow,
   fully visible and reachable with no scripting at all. JS only *adds* the
   collapse/overlay behavior below via the .js class on <body>. */
@media (max-width: 860px) {
  /* The toggle button only does anything once main.js attaches its click
     handler and adds .js to <body>; without JS the nav is already fully
     visible inline, so the toggle stays hidden to avoid a dead control. */
  .js .nav-toggle { display: flex; }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
    background: var(--cream);
    padding: 16px 24px 22px;
    border-bottom: 1px solid rgba(28,63,102,0.15);
  }
  .site-nav a { padding: 10px 0; border-bottom: 1px solid rgba(28,63,102,0.08); }
  .site-nav__cta { margin-top: 10px; text-align: center; }

  /* Only when JS has confirmed it can run the toggle do we collapse the nav
     into a hidden overlay panel. */
  .js .site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 68px;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .js .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (min-width: 861px) {
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,44,72,0.55) 0%, rgba(20,44,72,0.55) 30%, rgba(20,44,72,0.88) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px 24px 64px;
  width: 100%;
}

.seal {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: var(--gold);
  color: var(--navy-deep);
  border: 2px solid var(--navy-deep);
  border-radius: 999px;
  padding: 6px 18px 6px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 20px;
  box-shadow: 0 4px 0 rgba(20,44,72,0.25);
}
.seal__ring {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.seal__year {
  font-size: 1.1rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 1.8rem + 4.5vw, 5.2rem);
  line-height: 0.98;
  margin: 0 0 18px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

.hero__tagline {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  max-width: 32ch;
  margin: 0 0 32px;
  color: rgba(255,255,255,0.92);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero .button--ghost {
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.hero .button--ghost:hover {
  background: rgba(255,255,255,0.12);
}

/* ---------- Hours strip ---------- */

.hours-strip {
  background: var(--navy);
  color: var(--white);
  padding: 28px 0;
}

.hours-strip__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 4px 20px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  font-size: 0.92rem;
}

.hours-row__day {
  font-weight: 600;
}
.hours-row__time {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.hours-row.is-today {
  background: rgba(232, 200, 147, 0.14);
  border-radius: 6px;
  padding-left: 10px;
  padding-right: 10px;
}
.hours-row.is-today .hours-row__day::after {
  content: " · Today";
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--gold);
}

.hours-strip__note {
  margin: 16px 4px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}

/* ---------- Menu ---------- */

.menu-section {
  padding: 72px 0;
}

.favorites {
  background: var(--white);
  border: 1px solid rgba(28,63,102,0.12);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 48px;
  box-shadow: var(--shadow);
}

.favorites__label {
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--red);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.favorites__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--navy);
}
.favorites__list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.favorites__list span {
  color: var(--red);
  font-weight: 700;
}

.menu-category__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--navy);
  margin: 0 0 8px;
  padding-top: 8px;
  border-top: 2px solid var(--gold);
}
.favorites + .menu-category__title { border-top: none; padding-top: 0; }

.menu-category__desc {
  margin: 0 0 20px;
  color: rgba(32,33,29,0.72);
  font-style: italic;
}

.pizza-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 0 0 48px;
}

.pizza-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pizza-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(28,63,102,0.2);
}

.pizza-card__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.pizza-card__body {
  padding: 18px 20px 22px;
}

.pizza-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  margin: 0 0 8px;
}

.pizza-card__desc {
  margin: 0 0 14px;
  font-size: 0.94rem;
  color: rgba(32,33,29,0.78);
}

.pizza-card__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--red);
  margin: 0;
}

.simple-list {
  list-style: none;
  margin: 0 0 48px;
  padding: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.simple-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(28,63,102,0.08);
  font-weight: 500;
}
.simple-list li:last-child { border-bottom: none; }
.simple-list__price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--red);
  font-size: 1.15rem;
}

.drink-list {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.drink-list__item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(28,63,102,0.1);
  border-radius: 8px;
  padding: 10px 16px;
}
.drink-list__item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
  opacity: 0.85;
  flex-shrink: 0;
}
.drink-list__item span:nth-child(2) {
  font-weight: 500;
  flex: 1;
}
.drink-list__price {
  font-weight: 700;
  color: var(--navy);
  opacity: 0.85;
}

.menu-cta {
  text-align: center;
  padding-top: 8px;
}

/* ---------- Heritage ---------- */

.heritage {
  background: var(--navy);
  color: var(--white);
  padding: 72px 0;
}

.heritage__wrap {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.heritage__crest {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--gold);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  flex-shrink: 0;
  margin: 0 auto;
}

.heritage__text {
  flex: 1;
  min-width: 260px;
}
.heritage .eyebrow { color: var(--gold); }
.heritage .section-title { color: var(--white); }
.heritage__text p:last-child {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88);
  max-width: 52ch;
  margin: 0;
}

/* ---------- Visit ---------- */

.visit {
  padding: 72px 0 88px;
}

.visit__wrap {
  display: flex;
  justify-content: center;
}

.visit__info {
  max-width: 480px;
  text-align: center;
}
.visit__info .section-title,
.visit__info .eyebrow {
  text-align: center;
}

.visit__address {
  font-style: normal;
  font-size: 1.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 14px;
}

.visit__link {
  display: inline-block;
  text-decoration: none;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 6px;
}
.visit__link:hover { text-decoration: underline; }

.visit__info .button { margin-top: 18px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.85);
  padding: 40px 0 24px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.brand--footer {
  color: var(--white);
}
.brand--footer .brand__mark {
  border-color: var(--gold);
}

.site-footer__details {
  font-size: 0.9rem;
  line-height: 1.7;
}
.site-footer__details a {
  color: var(--gold);
  text-decoration: none;
}
.site-footer__details a:hover { text-decoration: underline; }

.site-footer__fine {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin: 20px 0 0;
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 1;
  transform: none;
}
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive tweaks ---------- */

@media (max-width: 600px) {
  .hero { min-height: 92vh; }
  .heritage__wrap { text-align: center; justify-content: center; }
  .heritage__text { text-align: center; }
  .drink-list { grid-template-columns: 1fr; }
}
