/* ===== Flame & Crust Pizzeria - Static Stylesheet ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --background: hsl(30, 33%, 98%);
  --foreground: hsl(20, 15%, 15%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(20, 15%, 15%);
  --primary: hsl(12, 80%, 50%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(30, 30%, 94%);
  --muted-foreground: hsl(20, 10%, 50%);
  --accent: hsl(0, 72%, 51%);
  --border: hsl(30, 20%, 90%);
  --flame-orange: hsl(25, 95%, 55%);
  --flame-red: hsl(0, 72%, 51%);
  --warm-beige: hsl(35, 40%, 92%);
  --warm-cream: hsl(40, 50%, 97%);
  --wood-brown: hsl(25, 30%, 35%);
  --radius: 0.75rem;
  --shadow-card: 0 4px 24px -4px hsla(20, 15%, 15%, 0.08);
  --shadow-elevated: 0 12px 40px -8px hsla(20, 15%, 15%, 0.12);
  --shadow-glow: 0 8px 30px -4px hsla(12, 80%, 50%, 0.25);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', serif; }

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

.section-padding { padding: 5rem 1rem; }

.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.section-subheading {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: all 0.3s ease;
  padding: 1rem 0;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.navbar-logo svg { width: 28px; height: 28px; color: var(--flame-orange); }
.navbar-logo span {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-foreground);
  transition: color 0.3s;
}
.navbar.scrolled .navbar-logo span { color: var(--foreground); }

.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-foreground);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--flame-orange); }
.navbar.scrolled .nav-links a { color: var(--foreground); }
.navbar.scrolled .nav-links a:hover { color: var(--flame-orange); }

.mobile-toggle {
  display: none;
  background: none;
  color: var(--primary-foreground);
}
.navbar.scrolled .mobile-toggle { color: var(--foreground); }
.mobile-toggle svg { width: 24px; height: 24px; }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--foreground);
  font-weight: 500;
  padding: 0.5rem 0;
}
.mobile-menu a:hover { color: var(--flame-orange); }

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, hsla(20,15%,15%,0.7), hsla(20,15%,15%,0.5), hsla(20,15%,15%,0.8));
}
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 1rem;
  max-width: 48rem;
  animation: fadeUp 0.8s ease-out;
}
.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.hero-content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  background: var(--flame-orange);
  color: var(--primary-foreground);
  font-weight: 600;
  font-size: 1.125rem;
  box-shadow: var(--shadow-glow);
  transition: opacity 0.2s;
  border: none;
}
.btn-primary:hover { opacity: 0.9; }
.btn-outline {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  border: 2px solid var(--primary-foreground);
  color: var(--primary-foreground);
  font-weight: 600;
  font-size: 1.125rem;
  background: transparent;
  transition: background 0.2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.5rem; }
  .section-heading { font-size: 2rem; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== ABOUT ===== */
.about { background: var(--warm-cream); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-text p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.8;
  margin-top: 1rem;
}
.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}
.about-image img {
  width: 100%; height: 24rem;
  object-fit: cover;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ===== MENU ===== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.pizza-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.pizza-card:hover { box-shadow: var(--shadow-elevated); }
.pizza-card-img {
  overflow: hidden;
}
.pizza-card-img img {
  width: 100%; height: 14rem;
  object-fit: cover;
  transition: transform 0.5s;
}
.pizza-card:hover .pizza-card-img img { transform: scale(1.05); }
.pizza-card-body { padding: 1.25rem; text-align: left; }
.pizza-card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.pizza-card-body .desc { color: var(--muted-foreground); font-size: 0.875rem; }
.pizza-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}
.pizza-card-footer .cal { font-size: 0.75rem; color: var(--muted-foreground); }
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  background: var(--foreground);
  color: var(--primary-foreground);
  border: none;
  transition: background 0.2s;
}
.btn-sm:hover { background: var(--flame-orange); }

@media (max-width: 1024px) { .menu-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .menu-grid { grid-template-columns: 1fr; } }

/* ===== LOCATIONS ===== */
.locations { background: var(--warm-beige); }
.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.location-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  text-align: left;
  transition: box-shadow 0.3s;
}
.location-card:hover { box-shadow: var(--shadow-elevated); }
.location-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.location-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: hsla(25, 95%, 55%, 0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.location-icon svg { width: 20px; height: 20px; color: var(--flame-orange); }
.location-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
}
.location-card .address { color: var(--muted-foreground); font-size: 0.875rem; margin-bottom: 1rem; }
.hours { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.hours svg { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; }

.map-placeholder {
  margin-top: 3rem;
  border-radius: var(--radius);
  background: hsl(30, 20%, 95%);
  height: 16rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  box-shadow: var(--shadow-card);
}

@media (max-width: 768px) { .locations-grid { grid-template-columns: 1fr; } }

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 3rem;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-item img {
  width: 100%; height: 14rem;
  object-fit: cover;
  transition: transform 0.5s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item.wide { grid-column: span 2; }

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide { grid-column: span 2; }
}

/* ===== REVIEWS ===== */
.reviews { background: var(--warm-cream); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.review-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  text-align: left;
}
.stars { display: flex; gap: 2px; margin-bottom: 1rem; }
.stars svg { width: 16px; height: 16px; color: var(--flame-orange); fill: var(--flame-orange); }
.review-card .quote {
  font-style: italic;
  color: var(--foreground);
  margin-bottom: 1rem;
}
.review-card .author { font-size: 0.875rem; font-weight: 600; }
.review-card .loc { font-size: 0.75rem; color: var(--muted-foreground); }

@media (max-width: 1024px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ===== ORDER ===== */
.order-section {
  background: var(--foreground);
  color: var(--primary-foreground);
  text-align: center;
}
.order-section h2 { color: var(--primary-foreground); }
.order-section p { color: rgba(255,255,255,0.8); font-size: 1.125rem; margin-bottom: 2rem; max-width: 36rem; margin-left: auto; margin-right: auto; }
.btn-order {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  background: var(--flame-orange);
  color: var(--primary-foreground);
  font-weight: 600;
  font-size: 1.125rem;
  border: none;
  box-shadow: var(--shadow-glow);
  transition: opacity 0.2s;
}
.btn-order:hover { opacity: 0.9; }
.btn-order svg { width: 20px; height: 20px; }

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 28rem;
  position: relative;
  box-shadow: var(--shadow-elevated);
}
.modal h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}
.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  color: var(--muted-foreground);
  border: none;
}
.modal-close:hover { color: var(--foreground); }
.modal-close svg { width: 20px; height: 20px; }
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}
.form-group select, .form-group input, .form-group textarea {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--background);
  padding: 0.625rem 0.75rem;
  color: var(--foreground);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-group select:focus, .form-group input:focus, .form-group textarea:focus {
  border-color: var(--flame-orange);
  box-shadow: 0 0 0 3px hsla(25, 95%, 55%, 0.15);
}
.radio-group { display: flex; gap: 0.75rem; }
.radio-label {
  flex: 1;
  text-align: center;
  padding: 0.625rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-weight: 500;
  color: var(--foreground);
}
.radio-label:hover { border-color: var(--flame-orange); }
.radio-label input { display: none; }
.radio-label.active {
  border-color: var(--flame-orange);
  background: hsla(25, 95%, 55%, 0.05);
}
.btn-full {
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--radius);
  background: var(--flame-orange);
  color: var(--primary-foreground);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  transition: opacity 0.2s;
  margin-top: 0.5rem;
}
.btn-full:hover { opacity: 0.9; }

/* ===== FAQ ===== */
.faq-list { max-width: 42rem; margin: 3rem auto 0; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  color: var(--foreground);
  cursor: pointer;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--flame-orange); }
.faq-question svg {
  width: 20px; height: 20px;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.25rem;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 1.25rem 1rem;
}

/* ===== CONTACT ===== */
.contact { background: var(--warm-beige); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 56rem;
  margin: 3rem auto 0;
}
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: hsla(25, 95%, 55%, 0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; color: var(--flame-orange); }
.contact-item h3 { font-family: 'DM Sans', sans-serif; font-weight: 600; margin-bottom: 0.125rem; }
.contact-item p { color: var(--muted-foreground); font-size: 0.9375rem; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form input, .contact-form textarea {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.75rem 1rem;
  color: var(--foreground);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--muted-foreground); }
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--flame-orange);
  box-shadow: 0 0 0 3px hsla(25, 95%, 55%, 0.15);
}

@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

/* ===== FOOTER ===== */
.footer {
  background: var(--foreground);
  color: var(--primary-foreground);
  padding: 3rem 1rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-logo { display: flex; align-items: center; gap: 0.5rem; }
.footer-logo svg { width: 24px; height: 24px; color: var(--flame-orange); }
.footer-logo span { font-family: 'Playfair Display', serif; font-size: 1.125rem; font-weight: 700; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-links a:hover { color: var(--flame-orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}

/* ===== ANIMATION OBSERVER ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
