/* ═══════════════════════════════════════════════════════════════
   Via Roma Ristorante — Bold Editorial Design System
   Playfair Display + Inter · Cream/Black/Terracotta
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth; font-size: 16px }
body {
  background: #f5f0e8;
  color: #1a1410;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block }
a { color: inherit; text-decoration: none }
::selection { background: #c14a2e; color: #f5f0e8 }

/* ── Accessibility ────────────────────────────────────────── */
.skip {
  position: fixed; z-index: 2000; top: .75rem; left: .75rem;
  padding: .75rem 1rem; background: #1a1410; color: #f5f0e8;
  transform: translateY(-180%); transition: transform .2s;
}
.skip:focus { transform: none }
:focus-visible { outline: 3px solid #c14a2e; outline-offset: 4px }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important }
}

/* ── Navigation ───────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 2rem; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: transparent;
  transition: background .4s, box-shadow .4s;
}
nav.scrolled {
  background: rgba(245,240,235,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(26,20,16,0.08);
}
.nav-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em;
  color: #f5f0e8;
}
nav.scrolled .nav-brand { color: #1a1410 }
.nav-links {
  display: flex; gap: 2rem; list-style: none;
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 500;
}
.nav-links a { color: rgba(245,240,235,0.7); transition: color .25s; min-height: 44px; display: inline-flex; align-items: center }
.nav-links a:hover { color: #f5f0e8 }
nav.scrolled .nav-links a { color: rgba(26,20,16,0.5) }
nav.scrolled .nav-links a:hover { color: #1a1410 }

/* Hamburger */
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; position: relative; z-index: 110;
}
.hamburger span {
  display: block; width: 22px; height: 2px; background: #f5f0e8;
  position: absolute; left: 11px; transition: all .3s;
}
.hamburger span:nth-child(1) { top: 14px }
.hamburger span:nth-child(2) { top: 21px }
.hamburger span:nth-child(3) { top: 28px }
nav.scrolled .hamburger span { background: #1a1410 }
.hamburger.open span:nth-child(1) { top: 21px; transform: rotate(45deg) }
.hamburger.open span:nth-child(2) { opacity: 0 }
.hamburger.open span:nth-child(3) { top: 21px; transform: rotate(-45deg) }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 2rem 6rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}
.hero.loaded .hero-bg { transform: scale(1) }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to top,
    rgba(26,20,16,0.92) 0%,
    rgba(26,20,16,0.6) 40%,
    rgba(26,20,16,0.2) 70%,
    rgba(26,20,16,0.05) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 900px;
}
.hero-eyebrow {
  font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(245,240,235,0.6); margin-bottom: 1.5rem; font-weight: 500;
}
.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.02em;
  color: #f5f0e8;
}
.hero h1 em { font-style: italic; color: #c14a2e }
.hero-sub {
  font-size: 1.15rem; color: rgba(245,240,235,0.7);
  margin-top: 1.5rem; max-width: 520px; line-height: 1.7;
}
.hero-cta {
  display: flex; gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 2.5rem; min-height: 44px;
  background: #c14a2e; color: #f5f0e8;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  border: none; cursor: pointer;
  transition: background .3s, transform .2s;
}
.btn-primary:hover { background: #a83d25; transform: translateY(-1px) }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 2.5rem; min-height: 44px;
  background: transparent; color: #f5f0e8;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid rgba(245,240,235,0.3); cursor: pointer;
  transition: all .3s;
}
.btn-outline:hover { border-color: #f5f0e8; background: rgba(245,240,235,0.1) }

/* ── Dark Band (full-bleed image separator) ───────────────── */
.dark-band {
  position: relative; width: 100vw; margin-left: calc(-50vw + 50%);
  height: 50vh; min-height: 350px;
  background-size: cover; background-position: center;
  background-attachment: fixed;
}
.dark-band-scrim {
  position: absolute; inset: 0;
  background: rgba(26,20,16,0.5);
}

/* ── Sections ─────────────────────────────────────────────── */
.section-cream {
  padding: 120px 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section-wide {
  padding: 120px 2rem;
}
.section-dark {
  padding: 120px 2rem;
  background: #1a1410;
  color: #f5f0e8;
}
.section-dark .section-label { color: rgba(245,240,235,0.4) }
.section-dark .section-title em { color: #c14a2e }

.section-label {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(26,20,16,0.35); font-weight: 600; margin-bottom: 1rem;
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 3rem;
}
.section-title em { font-style: italic; color: #c14a2e }

/* ── Two-Column Grid ──────────────────────────────────────── */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: center;
}
.two-col-text p {
  font-size: 1.0625rem; line-height: 1.8;
  color: rgba(26,20,16,0.7); margin-bottom: 1.5rem;
}
.two-col-image {
  width: 100%; height: 500px; object-fit: cover;
}

/* ── Stats Row ────────────────────────────────────────────── */
.stats-row {
  display: flex; gap: 3rem; margin-top: 3rem;
}
.stat { text-align: left }
.stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem; font-weight: 700; display: block; line-height: 1;
}
.stat-label {
  font-size: 0.75rem; color: rgba(26,20,16,0.5);
  text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.35rem;
  display: block;
}

/* ── Menu List ────────────────────────────────────────────── */
.menu-list { display: grid; gap: 0 }
.menu-item {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(26,20,16,0.08);
}
.menu-item:last-child { border-bottom: none }
.menu-item-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem; font-weight: 600;
}
.menu-item-desc {
  display: block; font-size: 0.9rem; color: rgba(26,20,16,0.55);
  font-style: italic; margin-top: 0.3rem; line-height: 1.6;
}
.menu-item-price {
  font-size: 1.05rem; color: rgba(26,20,16,0.5);
  white-space: nowrap; margin-left: 1.5rem; font-weight: 500;
}
.menu-item-tag {
  display: inline-block; font-size: 0.65rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: #c14a2e; font-weight: 600;
  margin-top: 0.3rem;
}

/* ── Pull Quote ───────────────────────────────────────────── */
.pull-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 400; font-style: italic; line-height: 1.4;
  color: rgba(26,20,16,0.45);
  max-width: 750px; margin: 0 auto;
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid rgba(26,20,16,0.1);
  border-bottom: 1px solid rgba(26,20,16,0.1);
}

/* ── Gallery Grid ─────────────────────────────────────────── */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
}
.gallery-item {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.gallery-item:hover img { transform: scale(1.04) }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(26,20,16,0.8));
  color: #f5f0e8;
  font-size: 0.85rem; font-style: italic;
  opacity: 0; transition: opacity .3s;
}
.gallery-item:hover .gallery-caption { opacity: 1 }

/* ── Contact Grid ─────────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
}
.contact-address {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem; line-height: 1.3; font-weight: 600;
}
.contact-address .detail {
  display: block; font-family: 'Inter', sans-serif;
  font-size: 1rem; color: rgba(26,20,16,0.55);
  font-weight: 400; margin-top: 0.75rem;
}
.contact-hours { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(26,20,16,0.1) }
.contact-hours h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; color: #c14a2e;
}
.hours-list { font-size: 0.95rem }
.hours-row {
  display: flex; justify-content: space-between;
  padding: 0.6rem 0; border-bottom: 1px solid rgba(26,20,16,0.06);
}
.hours-row:last-child { border-bottom: none }
.hours-day { color: rgba(26,20,16,0.5) }

/* ── Contact Form ─────────────────────────────────────────── */
.contact-form {
  display: grid; gap: 1.25rem;
}
.form-group label {
  display: block; font-size: 0.75rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(26,20,16,0.5);
  font-weight: 600; margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 1rem;
  background: rgba(26,20,16,0.04);
  border: 1px solid rgba(26,20,16,0.12);
  font-family: 'Inter', sans-serif; font-size: 1rem;
  color: #1a1410; transition: border-color .2s;
  min-height: 48px;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: #c14a2e;
}
.form-group textarea { min-height: 140px; resize: vertical }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem }

/* ── CTA Section ──────────────────────────────────────────── */
.cta-section {
  text-align: center; padding: 120px 2rem;
  max-width: 700px; margin: 0 auto;
}
.cta-section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700; letter-spacing: -0.02em;
}
.cta-section h2 em { font-style: italic; color: #c14a2e }
.cta-section p {
  color: rgba(26,20,16,0.55); margin-top: 1rem; margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* ── Map Block ────────────────────────────────────────────── */
.map-block {
  width: 100%; height: 350px;
  background: #e8e3db;
  display: flex; align-items: center; justify-content: center;
  color: rgba(26,20,16,0.4); font-size: 0.85rem;
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  text-align: center; padding: 3rem 2rem;
  border-top: 1px solid rgba(26,20,16,0.08);
  color: rgba(26,20,16,0.35); font-size: 0.8rem;
}

/* ── Reveal Animation ─────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}

/* ── Page Header (inner pages) ────────────────────────────── */
.page-header {
  padding: 10rem 2rem 4rem;
  max-width: 900px; margin: 0 auto;
}
.page-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.02em;
}
.page-header p {
  color: rgba(26,20,16,0.55); font-size: 1.1rem;
  margin-top: 1rem; max-width: 500px;
}

/* ── Menu Page Filter ─────────────────────────────────────── */
.menu-filter {
  display: flex; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap;
}
.menu-filter button {
  padding: 0.6rem 1.5rem; min-height: 44px;
  background: transparent; border: 1px solid rgba(26,20,16,0.15);
  font-family: 'Inter', sans-serif; font-size: 0.8rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(26,20,16,0.5); cursor: pointer;
  transition: all .25s;
}
.menu-filter button:hover,
.menu-filter button.active {
  background: #1a1410; color: #f5f0e8; border-color: #1a1410;
}

/* ── Menu Search ──────────────────────────────────────────── */
.menu-search {
  margin-bottom: 2rem;
}
.menu-search input {
  width: 100%; max-width: 400px; padding: 1rem 1.25rem;
  background: rgba(26,20,16,0.04);
  border: 1px solid rgba(26,20,16,0.12);
  font-family: 'Inter', sans-serif; font-size: 1rem;
  color: #1a1410; transition: border-color .2s;
}
.menu-search input:focus { outline: none; border-color: #c14a2e }
.menu-search input::placeholder { color: rgba(26,20,16,0.3) }

/* ── Menu Category Headers ────────────────────────────────── */
.menu-category { margin-bottom: 3rem }
.menu-category h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem; font-weight: 600; color: #c14a2e;
  margin-bottom: 1.5rem; padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(193,74,46,0.15);
}
.menu-note {
  border-top: 1px solid rgba(26,20,16,0.1);
  margin-top: 3rem; padding-top: 2rem;
  color: rgba(26,20,16,0.5); font-size: 0.9rem; line-height: 1.8;
}
.menu-note em { color: #1a1410; font-style: normal; font-weight: 500 }

/* ── About Page ───────────────────────────────────────────── */
.about-hero {
  position: relative; width: 100%; height: 60vh; min-height: 400px;
  overflow: hidden;
}
.about-hero img {
  width: 100%; height: 100%; object-fit: cover;
}
.about-hero-scrim {
  position: absolute; bottom: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(transparent, rgba(245,240,235,1));
}

/* ── Reservation Note Box ─────────────────────────────────── */
.reservation-note {
  padding: 2.5rem; background: #1a1410; color: #f5f0e8;
}
.reservation-note p {
  color: rgba(245,240,235,0.7); font-size: 0.95rem; line-height: 1.7;
  margin-bottom: 1rem;
}
.reservation-note p:last-child { margin-bottom: 0 }
.reservation-note a { color: #f5f0e8; border-bottom: 1px solid rgba(245,240,235,0.3); padding-bottom: 1px }
.reservation-note .highlight {
  font-family: 'Playfair Display', Georgia, serif;
  color: #c14a2e; font-size: 1.15rem;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 2.5rem }
  .two-col-image { height: 350px; position: static }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem }
  .gallery-grid { grid-template-columns: repeat(2, 1fr) }
  .form-row { grid-template-columns: 1fr }
  .stats-row { flex-wrap: wrap; gap: 2rem }
}
@media (max-width: 768px) {
  nav { padding: 0 1rem }
  .nav-links { display: none }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 72px; left: 0; right: 0;
    background: rgba(245,240,235,0.98);
    backdrop-filter: blur(12px);
    padding: 1.5rem 1rem; gap: 0;
    border-bottom: 1px solid rgba(26,20,16,0.08);
  }
  .nav-links.open a {
    color: #1a1410; padding: 0.75rem 0;
    min-height: 44px; display: flex; align-items: center;
  }
  .hamburger { display: block }
  .hero { padding-bottom: 4rem }
  .hero h1 { font-size: 2.5rem }
  .section-cream, .section-dark, .section-wide { padding: 80px 1.25rem }
  .page-header { padding: 8rem 1.25rem 3rem }
  .gallery-grid { grid-template-columns: 1fr }
  .gallery-item { aspect-ratio: 16/9 }
  .about-hero { height: 40vh }
  .dark-band { background-attachment: scroll }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 2rem }
  .stats-row { gap: 1.5rem }
  .stat-number { font-size: 2rem }
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
  nav, .hamburger, .hero-bg, .dark-band, .map-block { display: none }
  body { background: white; color: black }
  .hero { min-height: auto; padding: 2rem }
}
