/* ============================================
   LA BELLA PIZZA – STYLESHEET
   ============================================ */

:root {
  --clr-bg:        #faf9f7;
  --clr-surface:   #ffffff;
  --clr-dark:      #1a1208;
  --clr-dark2:     #2e2512;
  --clr-red:       #c8271e;
  --clr-red-dark:  #a01e17;
  --clr-gold:      #c9a227;
  --clr-text:      #3d3428;
  --clr-muted:     #7a6f62;
  --clr-border:    #e8e2d9;

  --ff-serif:  'Playfair Display', Georgia, serif;
  --ff-sans:   'Inter', system-ui, sans-serif;

  --radius:    12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.14);

  --max-w: 1200px;
  --nav-h: 72px;
}

/* =====================
   DEMO POPUP
   ===================== */
.demo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 10, 0, 0.6);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeInOverlay .4s ease;
}
.demo-overlay.hidden {
  display: none;
}
@keyframes fadeInOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.demo-popup {
  background: #fff;
  border-radius: 20px;
  padding: 3rem 2.5rem;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
  animation: slideUpPopup .45s cubic-bezier(.22,1,.36,1);
  position: relative;
}
@keyframes slideUpPopup {
  from { opacity: 0; transform: translateY(40px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.demo-icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}
.demo-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clr-red);
  background: rgba(200,39,30,.08);
  padding: .3rem .9rem;
  border-radius: 100px;
  margin-bottom: 1.1rem;
}
.demo-popup h2 {
  font-family: var(--ff-serif);
  font-size: 1.7rem;
  color: var(--clr-dark);
  margin-bottom: .9rem;
}
.demo-popup p {
  font-size: .95rem;
  color: var(--clr-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.demo-popup p em {
  color: var(--clr-text);
  font-style: normal;
  font-weight: 600;
}
.demo-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--clr-red);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .9rem 2.2rem;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .22s, transform .22s, box-shadow .22s;
  width: 100%;
  justify-content: center;
}
.demo-btn:hover {
  background: var(--clr-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,39,30,.3);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--ff-sans); background: var(--clr-bg); color: var(--clr-text); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* CONTAINER */
.container { width: min(var(--max-w), 100% - 3rem); margin-inline: auto; }

/* =====================
   TYPOGRAPHY HELPERS
   ===================== */
.section-label {
  font-family: var(--ff-sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clr-red);
  margin-bottom: .75rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 { font-family: var(--ff-serif); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--clr-dark); }
.section-header .section-desc { max-width: 520px; margin: .75rem auto 0; color: var(--clr-muted); font-size: .95rem; }

h2 { font-family: var(--ff-serif); font-size: clamp(1.8rem, 3.5vw, 2.5rem); line-height: 1.2; color: var(--clr-dark); }

/* =====================
   BUTTONS
   ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 6px;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--clr-red); color: #fff; }
.btn-primary:hover { background: var(--clr-red-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,39,30,.35); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-2px); }
.btn-dark { background: var(--clr-dark); color: #fff; }
.btn-dark:hover { background: var(--clr-dark2); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-full { width: 100%; justify-content: center; font-size: 1rem; padding: 1rem; }

/* =====================
   NAVIGATION
   ===================== */
.nav-wrapper {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background .3s, box-shadow .3s;
}
.nav-wrapper.scrolled {
  background: rgba(250,249,247,.97);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
  backdrop-filter: blur(12px);
}
.nav-inner {
  height: 100%;
  width: min(var(--max-w), 100% - 3rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo {
  font-family: var(--ff-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  transition: color .3s;
}
.logo span { color: var(--clr-gold); }
.nav-wrapper.scrolled .logo { color: var(--clr-dark); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.88);
  transition: color .25s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--clr-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-wrapper.scrolled .nav-links a { color: var(--clr-text); }
.nav-links a:hover { color: var(--clr-red); }
.btn-nav {
  background: var(--clr-red);
  color: #fff !important;
  padding: .55rem 1.4rem;
  border-radius: 6px;
  transition: background .25s, transform .25s !important;
}
.btn-nav:hover { background: var(--clr-red-dark) !important; transform: translateY(-1px) !important; }
.btn-nav::after { display: none !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 30px; padding: 4px; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: all .3s; }
.nav-wrapper.scrolled .nav-toggle span { background: var(--clr-dark); }

/* =====================
   HERO
   ===================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  background: url('images/hero.jpg') center/cover no-repeat;
  background-color: var(--clr-dark2);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20,10,0,.72) 0%, rgba(20,10,0,.4) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max-w), 100% - 3rem);
  margin-inline: auto;
  max-width: 720px;
}
.hero-eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 1.25rem;
}
.hero-content h1 {
  font-family: var(--ff-serif);
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  max-width: 480px;
  margin-bottom: 2.5rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; justify-content: center;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.6));
  animation: scrollAnim 2s ease-in-out infinite;
}
@keyframes scrollAnim {
  0%, 100% { opacity: 0; transform: scaleY(0) translateY(-100%); }
  50%       { opacity: 1; transform: scaleY(1) translateY(0); }
}

/* =====================
   BADGES
   ===================== */
.badges {
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
}
.badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.badge-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--clr-border);
}
.badge-item:last-child { border-right: none; }
.badge-icon { font-size: 1.8rem; flex-shrink: 0; }
.badge-item strong { display: block; font-size: .92rem; font-weight: 600; color: var(--clr-dark); margin-bottom: .2rem; }
.badge-item p { font-size: .82rem; color: var(--clr-muted); }

/* =====================
   ABOUT
   ===================== */
.about { padding: 7rem 0; background: var(--clr-bg); overflow: hidden; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.about-images {
  position: relative;
  height: 500px;
}
.about-img { position: absolute; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img img { width: 100%; height: 100%; }
.about-img-1 { width: 72%; height: 80%; top: 0; left: 0; z-index: 1; }
.about-img-2 { width: 55%; height: 55%; bottom: 0; right: 0; z-index: 2; border: 5px solid var(--clr-bg); }
.about-text p {
  color: var(--clr-muted);
  font-size: .97rem;
  margin-bottom: 1.25rem;
}
.about-text h2 { margin-bottom: 1.5rem; }

/* =====================
   MENU
   ===================== */
.menu-section { padding: 7rem 0; background: var(--clr-surface); }

.menu-tabs {
  display: flex;
  gap: .5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.tab {
  padding: .6rem 1.6rem;
  border-radius: 100px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--clr-muted);
  border: 2px solid var(--clr-border);
  transition: all .22s;
}
.tab.active, .tab:hover {
  background: var(--clr-red);
  color: #fff;
  border-color: var(--clr-red);
}

.menu-grid {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.menu-grid.active { display: grid; }

.menu-card {
  background: var(--clr-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  transition: transform .25s, box-shadow .25s;
}
.menu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.menu-card-img {
  height: 200px;
  overflow: hidden;
  background: var(--clr-border);
}
.menu-card-img img { transition: transform .4s ease; }
.menu-card:hover .menu-card-img img { transform: scale(1.05); }

.menu-card-body { padding: 1.25rem; }
.menu-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
  margin-bottom: .5rem;
}
.menu-card-top h3 { font-family: var(--ff-serif); font-size: 1.1rem; color: var(--clr-dark); }
.price {
  font-size: .9rem;
  font-weight: 700;
  color: var(--clr-red);
  white-space: nowrap;
}
.menu-card-body p { font-size: .85rem; color: var(--clr-muted); line-height: 1.55; margin-bottom: .75rem; }
.tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(200,39,30,.1);
  color: var(--clr-red);
  padding: .25rem .65rem;
  border-radius: 100px;
}

.menu-card-list { display: grid; grid-template-columns: 1fr; }
.menu-card-list .menu-card-body { padding: 1.4rem; }

/* =====================
   GALLERY
   ===================== */
.gallery-section { padding: 7rem 0 0; background: var(--clr-bg); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 260px 260px;
  gap: 8px;
  margin-top: 3rem;
}
.gallery-item { overflow: hidden; background: var(--clr-border); }
.gallery-item img { transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item--tall { grid-row: span 2; }
.gallery-item--wide { grid-column: span 2; }

/* =====================
   CONTACT / BOOKING
   ===================== */
.contact-section { padding: 7rem 0 0; background: var(--clr-surface); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.contact-info h2 { margin-bottom: 1rem; }
.contact-info > p { color: var(--clr-muted); margin-bottom: 2.5rem; font-size: .97rem; }
.info-list { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2.5rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-icon { font-size: 1.2rem; flex-shrink: 0; width: 2.2rem; }
.info-list strong { display: block; font-size: .85rem; font-weight: 600; color: var(--clr-dark); margin-bottom: .2rem; }
.info-list span, .info-list a { font-size: .93rem; color: var(--clr-muted); }
.info-list a:hover { color: var(--clr-red); }

.hours-box {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.hours-box h3 { font-family: var(--ff-serif); font-size: 1.1rem; color: var(--clr-dark); margin-bottom: 1rem; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: .45rem 0; font-size: .9rem; }
.hours-table td:first-child { color: var(--clr-text); font-weight: 500; }
.hours-table td:last-child { text-align: right; color: var(--clr-muted); }
.hours-table tr:not(:last-child) td { border-bottom: 1px solid var(--clr-border); }

.contact-form-wrap {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.contact-form-wrap h3 {
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  color: var(--clr-dark);
  margin-bottom: 1.75rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-row .form-group { margin-bottom: 0; }
.form-group label { font-size: .82rem; font-weight: 600; color: var(--clr-dark); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: .75rem 1rem;
  border: 1.5px solid var(--clr-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: .92rem;
  color: var(--clr-text);
  background: var(--clr-surface);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--clr-red);
  box-shadow: 0 0 0 3px rgba(200,39,30,.1);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-note { font-size: .78rem; color: var(--clr-muted); text-align: center; margin-top: .75rem; }

.map-wrap { margin-top: 5rem; height: 400px; overflow: hidden; }
.map-wrap iframe { width: 100%; height: 100%; display: block; }

/* =====================
   FOOTER
   ===================== */
.footer { background: var(--clr-dark); color: rgba(255,255,255,.7); padding: 5rem 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .logo-light { color: #fff; margin-bottom: 1rem; display: block; }
.footer-brand p { font-size: .88rem; line-height: 1.7; max-width: 260px; margin-bottom: 1.5rem; }
.social-links { display: flex; gap: .75rem; }
.social-links a {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: all .25s;
}
.social-links a:hover { background: var(--clr-red); border-color: var(--clr-red); color: #fff; }
.footer h4 { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 1.25rem; }
.footer-links ul { display: flex; flex-direction: column; gap: .7rem; }
.footer-links a { font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: var(--clr-gold); }
.footer-contact p, .footer-hours p { font-size: .88rem; margin-bottom: .5rem; }
.footer-contact a:hover { color: var(--clr-gold); }
.footer-bottom {
  text-align: center;
  padding: 1.5rem;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 1024px) {
  .badges-grid { grid-template-columns: repeat(2, 1fr); }
  .badge-item:nth-child(2) { border-right: none; }
  .about-grid { gap: 3.5rem; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .gallery-item--tall { grid-row: span 1; }
  .gallery-item--wide { grid-column: span 2; }
  .footer-inner { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; z-index: 10; }
  .nav-links {
    position: fixed;
    inset: 0 0 0 30%;
    background: var(--clr-surface);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 7rem 2.5rem 2.5rem;
    box-shadow: -10px 0 40px rgba(0,0,0,.15);
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { color: var(--clr-text) !important; font-size: 1rem; }
  .btn-nav { margin-top: 1rem; }

  .about-grid { grid-template-columns: 1fr; }
  .about-images { height: 320px; order: -1; }
  .about-img-1 { width: 78%; height: 85%; }
  .about-img-2 { width: 58%; }

  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

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

  .badges-grid { grid-template-columns: 1fr; }
  .badge-item { border-right: none; border-bottom: 1px solid var(--clr-border); }
  .badge-item:last-child { border-bottom: none; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  :root { --nav-h: 64px; }
  .hero-content h1 { font-size: 2.6rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item--wide { grid-column: span 1; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { text-align: center; justify-content: center; }
  .contact-form-wrap { padding: 1.75rem; }
}
