/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f8f6f2;
  --bg-white: #fefefe;
  --bg-muted: #f3f0eb;
  --fg: #2a2219;
  --fg-muted: #6b6358;
  --primary: #8b1a1a;
  --primary-fg: #f8f6f2;
  --secondary: #4a6b3a;
  --secondary-fg: #f8f6f2;
  --border: #e5dfd6;
  --card: #fefefe;
  --shadow-card: 0 2px 16px -2px rgba(42, 34, 25, 0.06);
  --shadow-elevated: 0 12px 40px -8px rgba(42, 34, 25, 0.12);
  --shadow-warm: 0 4px 24px -4px rgba(42, 34, 25, 0.08);
  --radius: 0.75rem;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--fg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
select { font-family: var(--font-body); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 768px; }
.text-center { text-align: center; }
.section { padding: 4rem 1rem; }
.bg-white { background: var(--bg-white); }
.bg-muted { background: var(--bg-muted); }

.section-heading { font-size: 2rem; font-weight: 700; color: var(--fg); margin-bottom: 1rem; }
.section-sub { color: var(--fg-muted); font-size: 1.125rem; max-width: 600px; margin: 0 auto 3rem; }

@media (min-width: 768px) {
  .section { padding: 6rem 1.5rem; }
  .section-heading { font-size: 2.5rem; }
  .container { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  .section-heading { font-size: 3rem; }
}

/* === Buttons === */
.btn { display: inline-block; padding: 0.875rem 2rem; border-radius: var(--radius); font-weight: 600; font-size: 1.125rem; transition: all 0.3s; text-align: center; }
.btn-primary { background: var(--primary); color: var(--primary-fg); box-shadow: 0 4px 12px rgba(139,26,26,0.3); }
.btn-primary:hover { background: #a02020; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(139,26,26,0.4); }
.btn-outline { border: 2px solid var(--secondary); color: #fff; }
.btn-outline:hover { background: var(--secondary); color: var(--secondary-fg); }
.btn-white { background: var(--card); color: var(--fg); font-weight: 600; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn-white:hover { background: #f5f3ef; transform: translateY(-2px); }
.btn-outline-modal { border: 2px solid var(--primary); color: var(--primary); padding: 0.75rem; border-radius: var(--radius); font-weight: 600; flex: 1; transition: all 0.3s; }
.btn-outline-modal:hover { background: var(--primary); color: var(--primary-fg); }

/* === Navbar === */
#navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: all 0.3s; }
#navbar.scrolled { background: rgba(254,254,254,0.95); backdrop-filter: blur(12px); box-shadow: var(--shadow-warm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem; }
.nav-logo { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.nav-links { display: none; list-style: none; gap: 1.5rem; align-items: center; }
.nav-links a { font-size: 0.875rem; font-weight: 500; transition: color 0.3s; color: var(--primary-fg); }
#navbar.scrolled .nav-links a { color: var(--fg); }
.nav-links a:hover { color: var(--primary); }

.mobile-toggle { display: flex; flex-direction: column; gap: 5px; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--primary-fg); transition: all 0.3s; }
#navbar.scrolled .mobile-toggle span { background: var(--fg); }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu { display: none; background: rgba(254,254,254,0.98); backdrop-filter: blur(12px); border-top: 1px solid var(--border); }
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; padding: 1rem 1.5rem; }
.mobile-menu li { padding: 0.5rem 0; }
.mobile-menu a { font-weight: 500; color: var(--fg); transition: color 0.3s; }
.mobile-menu a:hover { color: var(--primary); }

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

/* === 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, rgba(0,0,0,0.6), rgba(0,0,0,0.4), rgba(0,0,0,0.7)); }
.hero-content { position: relative; z-index: 2; text-align: center; padding: 0 1rem; max-width: 800px; }
.hero-badge { color: rgba(255,255,255,0.8); font-size: 0.875rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1rem; }
.hero h1 { font-size: 3rem; font-weight: 700; color: #fff; margin-bottom: 1.5rem; line-height: 1.1; }
.hero-sub { color: rgba(255,255,255,0.9); font-size: 1.125rem; max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.7; }
.hero-buttons { display: flex; flex-direction: column; gap: 1rem; align-items: center; }
@media (min-width: 640px) {
  .hero h1 { font-size: 4.5rem; }
  .hero-sub { font-size: 1.25rem; }
  .hero-buttons { flex-direction: row; justify-content: center; }
}
@media (min-width: 1024px) { .hero h1 { font-size: 5.5rem; } }

/* === About === */
.flame-icon { font-size: 2rem; margin-bottom: 1rem; }
.about-text { color: var(--fg-muted); font-size: 1.125rem; line-height: 1.8; margin-top: 1.5rem; }
@media (min-width: 768px) { .about-text { font-size: 1.25rem; } }

/* === Menu === */
.pizza-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 1100px; margin: 0 auto; }
@media (min-width: 640px) { .pizza-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pizza-grid { grid-template-columns: repeat(4, 1fr); } }
.pizza-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); transition: all 0.3s; }
.pizza-card:hover { box-shadow: var(--shadow-elevated); transform: translateY(-4px); }
.pizza-img { aspect-ratio: 1; overflow: hidden; }
.pizza-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.pizza-card:hover .pizza-img img { transform: scale(1.05); }
.pizza-info { padding: 1.25rem; }
.pizza-info h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.25rem; }
.pizza-info p { color: var(--fg-muted); font-size: 0.875rem; margin-bottom: 0.5rem; }
.pizza-meta { display: flex; align-items: center; justify-content: space-between; }
.pizza-meta span { font-size: 0.75rem; color: var(--fg-muted); }
.customize-btn { font-size: 0.875rem; font-weight: 600; color: var(--primary); transition: color 0.3s; }
.customize-btn:hover { color: #a02020; }

/* === Locations === */
.locations-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 900px; margin: 0 auto; }
@media (min-width: 768px) { .locations-grid { grid-template-columns: repeat(3, 1fr); } }
.location-card { background: var(--card); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-card); text-align: center; transition: all 0.3s; }
.location-card:hover { box-shadow: var(--shadow-elevated); }
.location-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.location-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.location-card p { color: var(--fg-muted); font-size: 0.875rem; margin-bottom: 1rem; }
.location-hours { font-size: 0.8rem; color: var(--fg-muted); }

/* === Gallery === */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; max-width: 1100px; margin: 0 auto; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; } }
.gallery-item { border-radius: var(--radius); overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item.span-2 { grid-column: span 2; }
.gallery-item.row-2 { grid-row: span 2; }

/* === Reviews === */
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 1100px; margin: 0 auto; }
@media (min-width: 640px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .reviews-grid { grid-template-columns: repeat(4, 1fr); } }
.review-card { background: var(--card); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-card); }
.stars { color: var(--primary); font-size: 1rem; margin-bottom: 0.75rem; letter-spacing: 2px; }
.review-text { color: var(--fg); line-height: 1.6; margin-bottom: 1rem; font-style: italic; }
.review-author { font-size: 0.875rem; font-weight: 600; }
.review-author span { font-weight: 400; color: var(--fg-muted); }

/* === Order === */
.order-section { background: var(--primary); color: var(--primary-fg); }
.section-heading.light { color: var(--primary-fg); }
.order-sub { color: rgba(255,255,255,0.8); font-size: 1.125rem; margin-bottom: 2rem; }

/* === Modal === */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 200; 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: 1rem; padding: 2rem; max-width: 420px; width: 100%; position: relative; box-shadow: var(--shadow-elevated); }
.modal-close { position: absolute; top: 1rem; right: 1rem; color: var(--fg-muted); font-size: 1.25rem; transition: color 0.3s; }
.modal-close:hover { color: var(--fg); }
.modal h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.modal select { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 1rem; background: var(--bg); color: var(--fg); font-size: 1rem; margin-bottom: 0.75rem; appearance: auto; }
.modal-buttons { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.modal-buttons .btn { flex: 1; padding: 0.75rem; }

/* === FAQ === */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.faq-question { width: 100%; text-align: left; padding: 1rem 1.5rem; font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--fg); display: flex; justify-content: space-between; align-items: center; transition: background 0.3s; }
.faq-question:hover { background: var(--bg-muted); }
.faq-arrow { font-size: 0.75rem; transition: transform 0.3s; color: var(--fg-muted); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s; }
.faq-item.open .faq-answer { max-height: 200px; }
.faq-answer p { padding: 0 1.5rem 1rem; color: var(--fg-muted); line-height: 1.6; }
@media (min-width: 768px) { .faq-question { font-size: 1.125rem; } }

/* === Contact === */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; text-align: center; max-width: 800px; margin: 0 auto; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.contact-item h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.contact-item p, .contact-item a { color: var(--fg-muted); font-size: 0.875rem; line-height: 1.6; }
.contact-item a:hover { color: var(--primary); }
.contact-extra { margin-top: 0.75rem; }
.contact-extra p { font-size: 0.8rem; }

/* === Footer === */
footer { background: var(--fg); color: rgba(248,246,242,0.7); padding: 3rem 1rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--bg); margin-bottom: 0.5rem; }
footer h4 { font-weight: 600; color: var(--bg); margin-bottom: 0.75rem; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 0.5rem; }
footer ul a:hover, footer a:hover { color: var(--bg); }
.social-links { display: flex; gap: 1rem; }
.social-links a { transition: color 0.3s; }
.social-links a:hover { color: var(--bg); }
.footer-bottom { border-top: 1px solid rgba(248,246,242,0.2); padding-top: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; align-items: center; }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

/* === Animations === */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s, transform 0.6s; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
