/* =====================================================
   SALISBURY'S PIZZA — Modern Italian-American
   Deep tomato red / warm ivory / charcoal / olive
   ===================================================== */

:root {
  --red: #C0392B;
  --red-deep: #8E2418;
  --ivory: #F7F1E5;
  --ivory-warm: #F1E7D3;
  --charcoal: #171310;
  --charcoal-soft: #241E19;
  --olive: #6B7444;
  --olive-dark: #4E5532;
  --ink: #2A211B;
  --muted: #6E6156;
  --muted-light: rgba(247, 241, 229, 0.72);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-dark { background: var(--charcoal); color: var(--ivory); }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--olive-dark);
  margin-bottom: 18px;
}
.eyebrow-red { color: var(--red); }
.section-dark .eyebrow { color: #A3AC77; }
.section-dark .eyebrow-red { color: #E0684F; }

.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section-title em {
  font-style: italic;
  font-weight: 600;
  color: var(--red);
}
.section-dark .section-title { color: var(--ivory); }
.section-dark .section-title em { color: #E0684F; }

.section-sub {
  margin-top: 22px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  font-size: 17px;
}
.section-dark .section-sub { color: var(--muted-light); }

.section-head { text-align: center; margin-bottom: clamp(40px, 6vw, 72px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 30px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn-lg { padding: 18px 38px; font-size: 15px; }

.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 28px rgba(192, 57, 43, 0.32);
}
.btn-red:hover { background: var(--red-deep); transform: translateY(-2px); }

.btn-ghost {
  border-color: rgba(247, 241, 229, 0.65);
  color: var(--ivory);
  background: rgba(23, 19, 16, 0.25);
}
.btn-ghost:hover { border-color: var(--ivory); background: rgba(247, 241, 229, 0.12); }

.btn-outline-light {
  border-color: rgba(247, 241, 229, 0.55);
  color: var(--ivory);
}
.btn-outline-light:hover { background: var(--ivory); color: var(--charcoal); }

.btn-outline-dark {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline-dark:hover { background: var(--ink); color: var(--ivory); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.35s var(--ease), padding 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.scrolled {
  background: var(--ivory);
  padding: 10px 0;
  box-shadow: 0 4px 24px rgba(23, 19, 16, 0.12);
}
.header-inner {
  width: min(1280px, calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ivory);
  min-width: 0;
  overflow: hidden;
  transition: color 0.35s var(--ease);
}
.site-header.scrolled .brand { color: var(--ink); }
.brand-mark {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  background: var(--red);
  color: #fff;
  font-family: var(--serif);
  font-weight: 900;
  font-style: italic;
  font-size: 24px;
  border-radius: 50%;
}
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand-name em { font-style: italic; font-weight: 600; color: var(--red); }
.site-header.scrolled .brand-name em { color: var(--red); }

.main-nav { display: flex; gap: 34px; }
.main-nav a {
  color: var(--ivory);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.35s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.3s var(--ease);
}
.main-nav a:hover::after { width: 100%; }
.site-header.scrolled .main-nav a { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-order { padding: 12px 24px; font-size: 12.5px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  position: relative;
  z-index: 102;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2.5px;
  background: var(--ivory);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), background 0.35s var(--ease);
}
.site-header.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Mobile order bar ---------- */
.mobile-order-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 99;
  background: var(--red);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 17px 20px;
  box-shadow: 0 -8px 30px rgba(23, 19, 16, 0.35);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(23,19,16,0.55) 0%, rgba(23,19,16,0.35) 40%, rgba(23,19,16,0.72) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
}
.hero-kicker {
  color: rgba(247, 241, 229, 0.85);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(52px, 9.5vw, 124px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--ivory);
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.45);
}
.hero-title em {
  font-style: italic;
  font-weight: 600;
  color: #E8946F;
}
.hero-ctas {
  margin-top: 44px;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1.5px; height: 54px;
  background: rgba(247, 241, 229, 0.3);
  overflow: hidden;
}
.hero-scroll span {
  position: absolute;
  top: -54px; left: 0;
  width: 100%; height: 54px;
  background: var(--ivory);
  animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { top: -54px; }
  60%, 100% { top: 54px; }
}

/* ---------- Featured food ---------- */
.featured { background: var(--ivory); }
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.dish-card {
  background: #fff;
  box-shadow: 0 2px 20px rgba(23, 19, 16, 0.08);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.dish-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(23, 19, 16, 0.16);
}
.dish-card-lg { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.dish-card-lg .dish-photo { flex: 1; }
.dish-photo { overflow: hidden; }
.dish-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.dish-card:hover .dish-photo img { transform: scale(1.05); }
.dish-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 24px;
}
.dish-card-lg .dish-body { padding: 26px 30px; }
.dish-body h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
}
.dish-card-lg .dish-body h3 { font-size: 28px; }
.order-link {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  padding-bottom: 3px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.order-link:hover { color: var(--red-deep); border-color: var(--red-deep); }

/* ---------- Pizza section ---------- */
.pie-picker { max-width: 1020px; margin-inline: auto; }
.pie-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.pie-tab {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 34px;
  background: transparent;
  color: var(--muted-light);
  border: 1.5px solid rgba(247, 241, 229, 0.35);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.pie-tab:hover { border-color: var(--ivory); color: var(--ivory); }
.pie-tab.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.pie-panel {
  display: none;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}
.pie-panel.is-active { display: grid; animation: fadeUp 0.6s var(--ease); }
.pie-photo { overflow: hidden; }
.pie-photo img { width: 100%; height: auto; }
.pie-info h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
  color: var(--ivory);
  margin-bottom: 18px;
}
.pie-info p { color: var(--muted-light); font-size: 17px; margin-bottom: 30px; max-width: 420px; }

.build-own {
  margin-top: clamp(48px, 7vw, 90px);
  border: 1.5px solid rgba(247, 241, 229, 0.25);
  padding: clamp(36px, 5vw, 64px);
  text-align: center;
}
.build-own-inner { max-width: 620px; margin-inline: auto; }
.build-own h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 42px);
  color: var(--ivory);
  margin: 10px 0 16px;
}
.build-own h3 em { font-style: italic; color: #E8946F; }
.build-own p { color: var(--muted-light); margin-bottom: 28px; }

/* ---------- Menu ---------- */
.menu-section { background: var(--ivory-warm); }
.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  position: sticky;
  top: 72px;
  z-index: 50;
  background: var(--ivory-warm);
  padding: 14px 0;
  margin-bottom: 46px;
}
.menu-tab {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 22px;
  background: transparent;
  border: 1.5px solid rgba(42, 33, 27, 0.25);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.menu-tab:hover { border-color: var(--ink); color: var(--ink); }
.menu-tab.is-active {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--ivory);
}
.menu-panel { display: none; }
.menu-panel.is-active { display: block; animation: fadeUp 0.5s var(--ease); }

.menu-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 26px;
  align-items: center;
  background: #fff;
  box-shadow: 0 2px 18px rgba(23, 19, 16, 0.07);
  padding: 20px;
  margin-bottom: 18px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.menu-item:hover {
  transform: translateX(6px);
  box-shadow: 0 14px 34px rgba(23, 19, 16, 0.13);
}
.menu-item img { width: 130px; height: 130px; object-fit: cover; }
.menu-item-plain { grid-template-columns: 1fr; }
.menu-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.menu-item h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
}
.menu-item-body p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.menu-cta { text-align: center; margin-top: 44px; }

/* ---------- About ---------- */
.about-section { background: var(--ivory); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.about-copy .section-title { margin-bottom: 28px; }
.about-copy p { color: var(--muted); font-size: 17px; margin-bottom: 18px; }
.about-sign {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px !important;
  color: var(--red) !important;
  margin-bottom: 30px !important;
}
.about-photos {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}
.about-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 20px 45px -20px rgba(0, 0, 0, 0.4);
}
.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.about-photo:hover img { transform: scale(1.04); }
.about-photo-main { grid-row: 1 / 3; }
.about-photo-side { aspect-ratio: 4 / 3; }

/* ---------- Social / photo wall ---------- */
.social-section { padding-bottom: clamp(72px, 10vw, 128px); }
.social-cta { text-align: center; margin-top: 48px; }

/* ---------- Location ---------- */
.location-section { background: var(--ivory-warm); }
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.location-copy .section-title { margin-bottom: 24px; }
.pickup-badge {
  display: inline-block;
  background: var(--olive);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 10px 20px;
  margin-bottom: 28px;
}
.location-address {
  font-style: normal;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 14px;
}
.location-phone { margin-bottom: 32px; color: var(--muted); font-size: 16px; }
.location-phone a {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
}
.location-phone a:hover { text-decoration: underline; }
.location-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.location-map { box-shadow: 0 20px 50px rgba(23, 19, 16, 0.18); }
.location-map iframe { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: var(--muted-light);
  padding: 56px 0 40px;
  text-align: center;
}
.footer-inner { max-width: 720px; }
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}
.footer-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  color: var(--ivory);
}
.footer-city {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.footer-details p { margin-bottom: 8px; font-size: 15px; }
.footer-details a {
  color: var(--ivory);
  text-decoration: none;
  border-bottom: 1px solid rgba(247, 241, 229, 0.4);
  transition: border-color 0.3s var(--ease);
}
.footer-details a:hover { border-color: var(--ivory); }
.footer-copy { margin-top: 28px; font-size: 13.5px; color: rgba(247, 241, 229, 0.5); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: none; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero-scroll span { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .dish-card-lg { grid-column: span 2; grid-row: auto; }
  .pie-panel { grid-template-columns: 1fr; }
  .about-grid, .location-grid { grid-template-columns: 1fr; }
  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--charcoal);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    z-index: 101;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease);
  }
  .main-nav.open { opacity: 1; pointer-events: auto; }
  .main-nav a { font-size: 22px; letter-spacing: 0.2em; }
  .site-header.scrolled .main-nav a, .main-nav a { color: var(--ivory); }
  .nav-toggle { display: flex; }
  .nav-toggle.open span { background: var(--ivory) !important; }
  .mobile-order-bar { display: block; }
  body { padding-bottom: 54px; }
  .header-order { display: none; }
}

@media (max-width: 640px) {
  .featured-grid { grid-template-columns: 1fr; }
  .dish-card-lg { grid-column: span 1; }
  .menu-item { grid-template-columns: 1fr; }
  .menu-item img { width: 100%; height: 180px; }
  .brand-name { font-size: 17px; }
  .brand-mark { width: 36px; height: 36px; font-size: 20px; }
  .hero { min-height: 560px; }
  .hero-ctas .btn { width: 100%; max-width: 320px; }
  .menu-tabs { top: 60px; }
  .menu-tab { padding: 10px 16px; font-size: 11.5px; }
}
