/* ============================================
   GRANTEED'S PIZZA — Scranton, PA
   Theme: Warm Italian, light background
   Fonts: Playfair Display (display) + Raleway (body)
   Palette: Warm cream + Italian red accent
   ============================================ */

:root {
  --bg: #FAF6F0;
  --bg-alt: #F0EBE3;
  --bg-card: #ffffff;
  --text: #2D2622;
  --text-muted: #7a706a;
  --accent: #B83A2A;
  --accent-dark: #952e22;
  --accent-light: #d4564a;
  --heading: 'Playfair Display', serif;
  --body: 'Raleway', sans-serif;
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--accent-dark); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

h1, h2, h3, h4 {
  font-family: var(--heading);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 { font-size: clamp(2.8rem, 7vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

.overline {
  font-family: var(--body);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: block;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 58, 42, 0.08);
  transition: box-shadow 0.3s;
}

.nav.scrolled { box-shadow: 0 2px 20px rgba(45, 38, 34, 0.08); }

.nav .container { display: flex; justify-content: space-between; align-items: center; }

.nav__brand {
  font-family: var(--heading);
  font-size: 1.35rem;
  color: var(--text);
  letter-spacing: 0.01em;
}

.nav__phone {
  font-family: var(--body);
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__phone svg { width: 16px; height: 16px; fill: var(--accent); }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(8rem, 15vh, 12rem) 0 clamp(6rem, 10vh, 10rem);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 25% 30%, rgba(184, 58, 42, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(212, 86, 74, 0.04) 0%, transparent 45%),
    linear-gradient(170deg, #FAF6F0 0%, #F5EDE2 40%, #FAF6F0 100%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg-alt), transparent);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero__layout {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero__est {
  font-family: var(--body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero__est::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.hero h1 { margin-bottom: 1.25rem; }

.hero__accent {
  color: var(--accent);
  font-style: italic;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.12rem);
  color: var(--text-muted);
  max-width: 460px;
  line-height: 1.65;
  margin-bottom: 2.25rem;
}

.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background:
    radial-gradient(ellipse at 40% 35%, rgba(184, 58, 42, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 65% 75%, rgba(240, 235, 227, 0.9) 0%, transparent 50%),
    linear-gradient(145deg, #F0EBE3, #E8E0D5);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(184, 58, 42, 0.06);
}

.hero__visual-icon {
  opacity: 0.06;
}

.hero__visual-icon svg {
  width: 120px;
  height: 120px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 1.8rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(184, 58, 42, 0.2);
}

.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(184, 58, 42, 0.32);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(45, 38, 34, 0.2);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ---- SECTION BASE ---- */
.section { padding: clamp(4.5rem, 8vw, 7rem) 0; }
.section--alt { background: var(--bg-alt); }

.section__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}

.section__header p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 0.75rem;
}

/* ---- STORY STRIP ---- */
.story-strip {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: center;
}

.story-strip__visual {
  border-radius: var(--radius-md);
  aspect-ratio: 1/1;
  background:
    radial-gradient(ellipse at 35% 45%, rgba(184, 58, 42, 0.06) 0%, transparent 50%),
    linear-gradient(135deg, #F0EBE3, #E8E0D5);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(184, 58, 42, 0.04);
}

.story-strip__visual svg {
  width: 80px;
  height: 80px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 0.8;
  opacity: 0.08;
}

.story-strip__text h2 { margin-bottom: 1rem; }

.story-strip__text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.story-strip__text p:last-child { margin-bottom: 0; }

.story-strip__highlight {
  color: var(--text);
  font-weight: 600;
}

/* ---- MENU GRID ---- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.menu-card {
  background: var(--bg-card);
  border: 1px solid rgba(45, 38, 34, 0.06);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  transition: all 0.4s ease;
  text-align: center;
}

.menu-card:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 58, 42, 0.15);
  box-shadow: 0 12px 36px rgba(45, 38, 34, 0.08);
}

.menu-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-card__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-card h3 { margin-bottom: 0.5rem; }

.menu-card__price {
  font-family: var(--heading);
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.menu-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---- REVIEWS ---- */
.reviews-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid rgba(45, 38, 34, 0.06);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  transition: all 0.3s;
}

.review-card:hover {
  box-shadow: 0 8px 28px rgba(45, 38, 34, 0.06);
}

.review-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
}

.review-card__stars svg {
  width: 16px;
  height: 16px;
  fill: #d4a843;
}

.review-card__text {
  font-style: italic;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.review-card__author {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ---- INFO ---- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.info-block {
  background: var(--bg-card);
  border: 1px solid rgba(45, 38, 34, 0.06);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
}

.info-block h3 { margin-bottom: 1.5rem; }

.hours-table { width: 100%; border-collapse: collapse; }

.hours-table td {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(45, 38, 34, 0.06);
  font-size: 0.95rem;
}

.hours-table td:first-child { color: var(--text-muted); }
.hours-table td:last-child { text-align: right; font-weight: 600; }
.hours-table .closed { color: var(--text-muted); opacity: 0.5; }

.contact-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-line svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.contact-line a { color: var(--text); }

.map-embed {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(45, 38, 34, 0.06);
  margin-top: 1.5rem;
}

/* ---- CTA ---- */
.cta-section {
  padding: clamp(5rem, 8vw, 8rem) 0;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(184, 58, 42, 0.04) 0%, transparent 55%),
    var(--bg);
}

.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2rem; }

.cta-section .phone-big {
  font-family: var(--heading);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  color: var(--text);
  display: block;
  margin-bottom: 0.5rem;
}

.cta-section .address { color: var(--text-muted); font-size: 0.95rem; }

/* ---- FOOTER ---- */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(45, 38, 34, 0.08);
  text-align: center;
}

.footer__name {
  font-family: var(--heading);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.footer__info { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.5rem; }

.footer__credit { color: var(--text-muted); font-size: 0.8rem; margin-top: 1.5rem; }
.footer__credit a { color: var(--accent); }

/* ---- ANIMATIONS ---- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ---- BACK TO TOP ---- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 50;
  box-shadow: 0 4px 16px rgba(184, 58, 42, 0.2);
}

.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); }
.back-to-top svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2.5; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero__layout { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .hero { text-align: center; }
  .hero__est { justify-content: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__ctas { justify-content: center; }
  .story-strip { grid-template-columns: 1fr; }
  .story-strip__visual { max-height: 280px; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-layout { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .menu-grid { grid-template-columns: 1fr; }
  .nav__brand { font-size: 1.1rem; }
}
