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

:root {
  --red:      #c0392b;
  --red-dark: #962d22;
  --cream:    #fdf6ec;
  --dark:     #1a1a1a;
  --gray:     #555;
  --border:   #e8ddd0;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--cream) url('../assets/bg-pattern.svg') repeat;
  background-size: 500px 500px;
  color: var(--dark);
}

/* ── NAVBAR ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  height: 88px;
  background: rgba(253, 246, 236, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  height: 80px;
  width: auto;
  display: block;
  cursor: pointer;
  border-radius: 50%;
}

.hero-logo {
  width: 200px;
  height: auto;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: block;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.footer-logo {
  height: 90px;
  width: auto;
  border-radius: 50%;
  display: block;
  margin: 0 auto 0.75rem;
  opacity: 0.9;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
  cursor: pointer;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover { color: var(--red); }

.nav-links a.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

.nav-cta {
  background: var(--red) !important;
  color: var(--cream) !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: 999px !important;
  border-bottom: none !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--red-dark) !important; }
.nav-cta.active { border-bottom: none !important; background: var(--red) !important; }

/* ── PAGES ── */
.page {
  display: none;
  min-height: 100vh;
}

.page.active { display: block; }

/* ── HERO ── */
#home {
  min-height: 100vh;
  display: none;
  align-items: center;
  padding: 5rem 2rem 3rem;
  background: radial-gradient(ellipse at 72% 50%, #e8571a 0%, #c0392b 30%, #8b2018 60%, #5c1510 100%);
  position: relative;
  overflow: hidden;
}

#home::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/bg-pattern-hero.svg') center / 420px 420px repeat;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

#home.active { display: flex; }

.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-inner h1 {
  font-family: 'Lobster', cursive;
  font-size: clamp(3.2rem, 8vw, 6rem);
  color: #fdf6ec !important;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 2px 4px 12px rgba(0,0,0,0.3);
}

.hero-inner p {
  font-size: 1.1rem;
  color: rgba(253,246,236,0.9);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.hero-delivery {
  font-size: 1.3rem;
  font-weight: 800;
  color: #f5c518 !important;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
  margin-bottom: 1.25rem !important;
}

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

.hero-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-pizza-img {
  width: clamp(400px, 44vw, 780px);
  height: auto;
  filter: drop-shadow(0px 30px 50px rgba(0,0,0,0.5)) drop-shadow(0px 10px 20px rgba(0,0,0,0.3));
  transform: perspective(900px) rotateY(-12deg) rotateX(4deg);
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease;
}

.hero-pizza-img:hover {
  transform: perspective(900px) rotateY(-6deg) rotateX(2deg) scale(1.03);
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: 'Poppins', sans-serif;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary { background: var(--red); color: var(--cream); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }

.btn-outline {
  border: 2px solid var(--cream);
  color: var(--cream);
  margin-left: 0.75rem;
  background: transparent;
}

.btn-outline:hover { background: rgba(253,246,236,0.15); transform: translateY(-1px); }

.btn-white { background: var(--cream); color: var(--red); font-weight: 700; }
.btn-white:hover { background: #fff; transform: translateY(-1px); }

/* ── COMMON SECTION STYLES ── */
.page-content { padding: 7rem 1.5rem 5rem; }

.section-inner { max-width: 960px; margin: 0 auto; }

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1.25rem;
}

.section-divider {
  width: 48px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  margin-bottom: 2rem;
}

/* ── ABOUT ── */
#about { background: var(--cream) url('../assets/bg-pattern.svg') repeat; background-size: 500px 500px; }

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}

.about-text p {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 1.1rem;
}

.about-subtitle {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--red);
  margin-bottom: 1.25rem;
}

.about-lead {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark);
}

.about-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--red);
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.about-img {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.16);
}

.about-img img { width: 100%; height: 100%; object-fit: cover; }

.nav-delivery {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--red);
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* ── MENU ── */
#menu { background: var(--cream) url('../assets/bg-pattern.svg') repeat; background-size: 500px 500px; }

.menu-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--gray);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Poppins', sans-serif;
}

.tab-btn.active, .tab-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.menu-category { display: none; }
.menu-category.active { display: flex; flex-direction: column; gap: 0.75rem; }

/* Pizza counter reset */
#tab-pizzas.menu-category.active { counter-reset: pizza-counter; }

#tab-pizzas .pizza-item { counter-increment: pizza-counter; }

#tab-pizzas .pizza-info h4::before {
  content: counter(pizza-counter) ". ";
  font-weight: 700;
  color: var(--red);
}

/* Pizza size table */
.pizza-size-header {
  display: grid;
  grid-template-columns: 1fr 60px 60px 60px;
  gap: 0.5rem;
  padding: 0.4rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--border);
}

.pizza-size-header span:not(:first-child) { text-align: center; }

.pizza-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 60px 60px 60px;
  gap: 0.5rem;
  align-items: center;
}

.pizza-item > span {
  text-align: center;
  font-weight: 700;
  color: var(--red);
  font-size: 0.9rem;
}

.pizza-info h4 { font-weight: 600; margin-bottom: 0.2rem; font-size: 0.95rem; }
.pizza-info p  { font-size: 0.8rem; color: var(--gray); line-height: 1.4; }
.pizza-info small { font-size: 0.75rem; color: var(--gray); font-weight: 400; }

/* Subsection titles within a tab */
.menu-subsection-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  padding: 0.5rem 0 0.25rem;
  border-bottom: 2px solid var(--border);
  margin-top: 0.5rem;
}

.menu-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.menu-item-info h4 { font-weight: 600; margin-bottom: 0.25rem; font-size: 1rem; }
.menu-item-info p  { font-size: 0.85rem; color: var(--gray); line-height: 1.5; }

.menu-item--featured {
  border-color: var(--red);
  background: #fff8f7;
  box-shadow: 0 2px 12px rgba(192, 57, 43, 0.1);
}

.pizza-item--featured {
  border-color: var(--red);
  background: #fff8f7;
  box-shadow: 0 2px 12px rgba(192, 57, 43, 0.1);
}

.pizza-item--featured .pizza-info h4 { font-weight: 700; }

.featured-badge {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.new-badge {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: #2e9e4f;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.menu-item-price {
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
  font-size: 1rem;
}

/* ── GALLERY ── */
#gallery { background: var(--cream) url('../assets/bg-pattern.svg') repeat; background-size: 500px 500px; }

.carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.carousel-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
}

.carousel-window {
  flex: 1;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.1);
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-track img {
  min-width: 100%;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
}

.carousel-btn {
  background: none;
  border: none;
  color: var(--dark);
  font-size: 2rem;
  font-weight: 300;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
  transition: color 0.2s;
  flex-shrink: 0;
}

.carousel-btn:hover { color: var(--red); }

.carousel-dots {
  display: flex;
  gap: 0.4rem;
}

.carousel-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s;
}

.carousel-dots span.active { background: var(--red); }

/* ── CONTACT ── */
#contact { background: var(--cream) url('../assets/bg-pattern.svg') repeat; background-size: 500px 500px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-item h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.35rem;
}

.contact-item p, .contact-item a {
  color: var(--gray);
  text-decoration: none;
  line-height: 1.7;
}

.contact-item a:hover { color: var(--red); }

.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--gray);
}

.hours-row:last-child { border-bottom: none; }

.hours-closed span { color: var(--red); font-weight: 600; }

.map-embed {
  border-radius: 12px;
  overflow: hidden;
  height: 300px;
  border: 1px solid var(--border);
  line-height: 0;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.call-banner {
  margin-top: 3rem;
  background: var(--red);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  color: var(--cream);
}

.call-banner h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.call-banner p { opacity: 0.85; margin-bottom: 1.25rem; }

/* ── FOOTER ── */
footer {
  background: #2b2b2b;
  color: rgba(253,246,236,0.55);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
}

footer span { color: var(--red); }

.footer-ig {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  color: rgba(253,246,236,0.55);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-ig:hover { color: var(--red); }

/* ── HAMBURGER BUTTON ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 36px;
  height: 36px;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* X animation when open */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV OVERLAY ── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 88px; left: 0; right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  padding: 1rem 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.mobile-delivery {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--red);
  text-align: center;
  padding: 0.6rem 2rem;
  border-bottom: 1px solid var(--border);
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.mobile-nav a {
  display: block;
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
}

.mobile-nav a:hover { background: #f5ede0; color: var(--red); }

.mobile-nav .mobile-cta {
  color: var(--red);
  font-weight: 700;
  border-bottom: none;
}

/* ── RESPONSIVE ── */

/* Nav collapses at 960px (covers tablets too) */
@media (max-width: 960px) {
  .nav-links    { display: none; }
  .hamburger    { display: flex; }
  .nav-delivery { display: none; }
}

@media (max-width: 960px) {
  .mobile-nav.open { display: block; }
}

@media (max-width: 768px) {

  /* Hero */
  #home { padding: 5rem 1.25rem 3rem; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-inner h1 { font-size: clamp(2.2rem, 10vw, 3rem); }

  .hero-inner p { font-size: 1rem; }

  .hero-btns { justify-content: center; }

  .hero-img-wrap { order: -1; }

  .hero-pizza-img { max-width: 280px; }

  .btn-outline { margin-left: 0; }

  /* Sections */
  .page-content { padding: 4rem 1.25rem; }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Menu */
  .menu-tabs { gap: 0.4rem; }

  .tab-btn { padding: 0.5rem 1rem; font-size: 0.85rem; }

  .menu-category.active { grid-template-columns: 1fr; }

  .pizza-item,
  .pizza-size-header { grid-template-columns: 1fr 50px 50px 50px; padding: 0.9rem 1rem; }

  /* Gallery carousel - no changes needed, already responsive */

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Call banner */
  .call-banner { padding: 1.75rem 1.25rem; }
  .call-banner h3 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  /* Bigger tap targets for menu tabs */
  .tab-btn { padding: 0.55rem 0.9rem; }

  /* Menu items stack price below name */
  .menu-item { flex-direction: column; gap: 0.4rem; }
  .menu-item-price { align-self: flex-end; }
}
