/* ═══════════════════════════════════════════════════════════
   TRATTORIA BELLA — Authentic Italian Restaurant Design System
   "Authentic Italian, Made with Love."
   Playfair Display + Lato
   Terracotta + Olive + Cream on Dark
   ═══════════════════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', system-ui, sans-serif;

  --terracotta:     #C2410C;
  --terracotta-d:   #9A3412;
  --terracotta-l:   #EA580C;
  --olive:          #3F6212;
  --olive-d:        #365314;
  --olive-l:        #4D7C0F;
  --cream:          #FFFBEB;
  --cream-d:        #FEF3C7;
  --dark:           #1C1917;
  --dark-l:         #292524;
  --warm-gray:      #A8A29E;
  --warm-gray-l:    #D6D3D1;
  --amber:          #D97706;
  --wine:           #9F1239;
  --bg:             #FFFBEB;
  --surface:        #FFFFFF;
  --wash:           #FEF7ED;
  --heading:        #1C1917;
  --body:           #44403C;
  --muted:          #78716C;
  --border:         #E7E5E4;
  --accent:         var(--terracotta);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--terracotta-d); }
ul, ol { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--heading);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }
p { margin-bottom: 1rem; }

.eyebrow, .kicker {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--terracotta);
  display: block;
  margin-bottom: 0.5rem;
}
.kicker::before { content: '--- '; }
.kicker::after { content: ' ---'; }

.label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  display: block;
}

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section--wash { background: var(--wash); }
.section--dark { background: var(--dark); color: var(--cream); }
.section--dark h2, .section--dark h3 { color: var(--cream); }
.section--dark .kicker { color: var(--terracotta-l); }

/* ── Reservation Bar (top) ── */
.reservation-bar {
  background: var(--terracotta);
  color: var(--cream);
  padding: 0.55rem 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
.reservation-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.reservation-bar a { color: var(--cream-d); }
.reservation-bar a:hover { color: #FFFFFF; }
.reservation-bar .live {
  color: var(--cream-d);
  font-weight: 700;
}

/* ── Header ── */
.sitehead {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.sitehead .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}
.sitehead .mark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.sitehead .glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  background: var(--terracotta);
  color: var(--cream);
  font-size: 0.9rem;
  font-family: var(--font-display);
  font-style: italic;
}
.sitehead nav a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-left: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color .2s;
}
.sitehead nav a:hover, .sitehead nav a.active { color: var(--terracotta); }
.sitehead .cta {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--terracotta);
  color: var(--cream);
  padding: 0.6rem 1.2rem;
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.sitehead .cta:hover { background: var(--terracotta-d); color: var(--cream); }
.burger { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--heading); }

/* ── Hero — Full-bleed Italian ── */
.hero-italian {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  background: var(--dark);
  overflow: hidden;
}
.hero-italian .bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
}
.hero-italian .content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 3rem 0;
}
.hero-italian .tagline {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--terracotta-l);
  margin-bottom: 1rem;
}
.hero-italian h1 {
  color: var(--cream);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  margin-bottom: 1rem;
}
.hero-italian h1 em {
  font-style: italic;
  color: var(--terracotta-l);
}
.hero-italian .lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--warm-gray-l);
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-italian .spec-box {
  margin-top: 2rem;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.78rem;
  color: var(--warm-gray);
  line-height: 1.8;
}
.hero-italian .spec-label {
  color: var(--terracotta-l);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.65rem;
  font-weight: 700;
}

/* ── Stats Strip ── */
.stats-strip {
  background: var(--terracotta);
  padding: 2rem 0;
}
.stats-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stats-strip .cell { color: var(--cream); }
.stats-strip .num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  display: block;
  color: var(--cream);
}
.stats-strip .label {
  color: rgba(255,255,255,0.75);
  font-size: 0.65rem;
  margin-top: 0.25rem;
}

/* ── Page Head ── */
.page-head {
  background: var(--dark);
  padding: 4rem 0 2rem;
}
.page-head .crumb {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--warm-gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 1rem;
}
.page-head .crumb a { color: var(--terracotta-l); }
.page-head h1 { color: var(--cream); margin-bottom: 0.5rem; }
.page-head p { color: var(--warm-gray-l); max-width: 600px; }

/* ── Feature Split ── */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.feature .frame {
  overflow: hidden;
  border: 1px solid var(--border);
}
.feature .frame img {
  width: 100%;
  transition: transform 0.5s ease;
}
.feature .frame:hover img {
  transform: scale(1.03);
}

/* ── Menu Grid (cards with images) ── */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.menu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: border-color 0.3s;
}
.menu-card:hover { border-color: var(--terracotta); }
.menu-card .frame {
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}
.menu-card .frame img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.menu-card:hover .frame img { transform: scale(1.04); }
.menu-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.menu-card .price {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--terracotta);
  margin-bottom: 0.5rem;
}
.menu-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Menu Display (dotted-line items) ── */
.menu-display {
  max-width: 700px;
  margin: 0 auto;
}
.menu-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.menu-section:last-child { border-bottom: none; }
.menu-section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--heading);
  margin-bottom: 0.25rem;
}
.menu-section-subtitle {
  font-style: italic;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}
.dish {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px dotted var(--border);
}
.dish:last-child { border-bottom: none; }
.dish-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--heading);
  flex: 1;
}
.dish-desc {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--muted);
  flex: 1;
  padding: 0 1rem;
}
.dish-price {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--terracotta);
  white-space: nowrap;
}
.dish-tag {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--olive);
  background: rgba(63,98,18,0.08);
  padding: 0.15rem 0.4rem;
  margin-left: 0.5rem;
  white-space: nowrap;
}

/* ── Menu Category Tabs ── */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.category-tab {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}
.category-tab:hover, .category-tab.active {
  background: var(--terracotta);
  color: var(--cream);
  border-color: var(--terracotta);
}

/* ── Values Grid ── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
  position: relative;
}
.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--terracotta);
}
.value-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.value-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  position: relative;
}
.testimonial::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--terracotta);
  opacity: 0.2;
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  line-height: 1;
}
.testimonial .stars {
  color: var(--amber);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}
.testimonial p {
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 0.75rem;
}
.testimonial .author {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ── Hours Strip ── */
.hours-strip {
  background: var(--dark);
  padding: 2rem 0;
  text-align: center;
}
.hours-strip .container {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.hours-strip .day {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--warm-gray);
}
.hours-strip .time {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--cream);
  margin-top: 0.25rem;
}

/* ── CTA Band ── */
.cta-band {
  background: var(--terracotta);
  padding: 3.5rem 0;
}
.cta-band .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.cta-band h2 { color: var(--cream); margin-bottom: 0.5rem; }
.cta-band .kicker { color: var(--cream-d); }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0; }
.cta-band .actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--terracotta);
  color: var(--cream);
  padding: 0.75rem 1.6rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.btn-primary:hover { background: var(--terracotta-d); color: var(--cream); }
.btn-ghost {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: transparent;
  color: var(--cream);
  padding: 0.75rem 1.6rem;
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-ghost:hover { border-color: var(--cream); color: var(--cream); }
.link {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  border-bottom: 1px solid var(--terracotta);
  padding-bottom: 1px;
  transition: opacity 0.2s;
}
.link:hover { opacity: 0.7; }
.btn-wide { width: 100%; text-align: center; }
.btn-olive {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--olive);
  color: var(--cream);
  padding: 0.75rem 1.6rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.btn-olive:hover { background: var(--olive-d); color: var(--cream); }

/* ── Footer ── */
.footer {
  background: var(--dark);
  color: var(--warm-gray);
  padding: 3rem 0 1.5rem;
  font-size: 0.85rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer .brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.5rem;
}
.footer h4 {
  color: var(--cream);
  font-size: 0.75rem;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.footer a {
  color: var(--warm-gray);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.3rem;
}
.footer a:hover { color: var(--terracotta-l); }
.footer .base {
  display: flex;
  justify-content: space-between;
  padding-top: 1.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ── Forms ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.field label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: block;
  margin-bottom: 0.3rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--heading);
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--terracotta);
}
.field textarea { resize: vertical; }
.error {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.68rem;
  color: var(--wine);
  display: block;
  margin-top: 0.2rem;
  min-height: 1rem;
}
.form-ok {
  display: none;
  padding: 1rem;
  margin-top: 1rem;
  background: var(--olive);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid var(--olive);
}
.form-err {
  display: none;
  padding: 1rem;
  margin-top: 1rem;
  background: var(--wine);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid var(--wine);
}

/* ── Info Cards ── */
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
}
.info-card .icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.info-card h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
.info-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Gallery ── */
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  gap: 0.75rem;
}
.gallery-mosaic .item {
  overflow: hidden;
  border: 1px solid var(--border);
}
.gallery-mosaic .item.wide { grid-column: span 2; }
.gallery-mosaic .item.tall { grid-row: span 2; }
.gallery-mosaic .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-mosaic .item:hover img { transform: scale(1.05); }

/* ── Story Timeline ── */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--terracotta);
}
.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 1.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  background: var(--terracotta);
  border-radius: 50%;
}
.timeline-year {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--terracotta);
  margin-bottom: 0.25rem;
}
.timeline-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}
.timeline-item p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

/* ── Responsive: 980px ── */
@media (max-width: 980px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .info-cards { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .gallery-mosaic { grid-template-columns: repeat(2, 1fr); }
  .gallery-mosaic .item.wide { grid-column: span 1; }
}

/* ── Responsive: 720px ── */
@media (max-width: 720px) {
  .sitehead nav { display: none; }
  .sitehead nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }
  .sitehead nav.open a { margin: 0.5rem 0; }
  .sitehead .cta { display: none; }
  .burger { display: block; }
  .hero-italian { min-height: 55vh; }
  .stats-strip .container { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature-grid { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .info-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band .container { flex-direction: column; text-align: center; }
  .cta-band .actions { justify-content: center; }
  .gallery-mosaic { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hours-strip .container { flex-direction: column; gap: 1rem; }
  .reservation-bar .container { flex-direction: column; gap: 0.3rem; text-align: center; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-strip .container { grid-template-columns: 1fr 1fr; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .feature .frame img, .menu-card .frame img, .gallery-mosaic .item img { transition: none; }
}
