/* ===== ROOT & RESET ===== */
:root {
  --bg-dark: #0d0b09;
  --bg-section: #111009;
  --accent: #c8420a;
  --text-light: #f0ebe4;
  --text-muted: #8a7a6a;
  --text-muted2: #5a4a3a;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Barlow', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }

body {
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* ===== LOADER ===== */
#loader {
  position: fixed; inset: 0;
  background: var(--bg-dark);
  z-index: 9999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2rem;
}
.loader-brand {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 5rem);
  letter-spacing: 0.3em;
}
#loader-bar-wrap {
  width: min(400px, 80vw); height: 2px;
  background: rgba(240,235,228,0.12);
}
#loader-bar {
  height: 100%; width: 0%;
  background: var(--accent);
  transition: width 0.1s linear;
}
#loader-percent {
  font-size: 0.75rem; letter-spacing: 0.2em; color: var(--text-muted);
}

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 4vw;
  mix-blend-mode: difference;
}
.header-logo {
  font-family: var(--font-display);
  font-size: 1.4rem; letter-spacing: 0.2em; color: #fff;
}
.header-nav { display: flex; gap: 3rem; }
.header-nav a {
  font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: #fff;
  opacity: 0.75; transition: opacity 0.3s;
}
.header-nav a:hover { opacity: 1; }

/* ===== CANVAS — full-screen, plays immediately ===== */
#canvas-wrap {
  position: fixed; inset: 0;
  z-index: 1;
  pointer-events: none;
}
/* gradient scrim — dark bottom for text legibility */
#canvas-wrap::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 62vh;
  background: linear-gradient(
    to top,
    rgba(13,11,9,0.97) 0%,
    rgba(13,11,9,0.75) 35%,
    rgba(13,11,9,0.2) 65%,
    transparent 100%
  );
  pointer-events: none;
}
canvas#canvas { width: 100%; height: 100%; display: block; }

/* ===== SCROLL RAIL — just creates scroll space ===== */
#scroll-container {
  position: relative;
  height: 200vh;
  z-index: 0;
}

/* ===== TEXT OVERLAY — fixed bottom ===== */
#text-overlay {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 48vh;
  z-index: 10;
  pointer-events: none;
}

.text-slide {
  position: absolute; inset: 0;
  padding: 0 8vw 5vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.text-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* ===== SHARED TEXT STYLES ===== */
.section-label {
  display: block;
  font-size: 0.68rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1rem;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 9rem);
  line-height: 0.9; letter-spacing: 0.02em;
  display: flex; gap: 0.18em; flex-wrap: wrap;
}
.hero-heading .word { display: block; }

.hero-tagline {
  margin-top: 1rem;
  font-size: clamp(0.85rem, 1.2vw, 1.05rem);
  font-style: italic; color: var(--text-muted);
  line-height: 1.6; max-width: 480px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 6rem);
  line-height: 0.92; letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.section-body {
  font-size: clamp(0.85rem, 1.1vw, 0.98rem);
  line-height: 1.75; color: rgba(240,235,228,0.68);
  max-width: 460px;
}

/* scroll hint (slide 0) */
.scroll-hint {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 1.5rem;
}
.scroll-arrow {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: arrow-pulse 2s ease-in-out infinite;
}
.scroll-hint span {
  font-size: 0.58rem; letter-spacing: 0.3em; color: var(--text-muted);
}
@keyframes arrow-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ===== CTA BUTTON ===== */
.cta-button {
  display: inline-block; margin-top: 1.8rem;
  padding: 0.9rem 2.8rem;
  border: 1px solid var(--accent);
  font-size: 0.73rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--text-light); background: transparent;
  position: relative; overflow: hidden;
  transition: color 0.4s; cursor: pointer;
  font-family: var(--font-body);
}
.cta-button::before {
  content: ''; position: absolute; inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: -1;
}
.cta-button:hover::before { transform: translateX(0); }
.cta-button:hover { color: #fff; }
.cta-small { padding: 0.6rem 1.8rem; font-size: 0.65rem; margin-top: 1.2rem; }

/* ===== STATS ROW (slide 3) ===== */
.stats-row {
  display: flex; gap: 4vw; align-items: flex-end;
  margin-top: 1.5rem; flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 0.3rem; }
.stat-num-wrap { display: flex; align-items: baseline; gap: 0.2em; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4.5vw, 5.5rem);
  line-height: 1;
}
.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 2.2rem);
  color: var(--accent);
}
.stat-label {
  font-size: 0.62rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-muted);
}

/* ===== MENU SECTION ===== */
.menu-section {
  position: relative; z-index: 20;
  background: var(--bg-section);
  padding: 8rem 8vw;
  border-top: 1px solid rgba(240,235,228,0.06);
}
.menu-header { margin-bottom: 5rem; max-width: 600px; }
.menu-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 8rem);
  line-height: 0.9; letter-spacing: 0.02em; margin-bottom: 1rem;
}
.menu-subtitle {
  font-size: 1rem; font-style: italic;
  color: var(--text-muted); line-height: 1.7;
}
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.menu-category { padding: 3rem 4rem 3rem 0; border-bottom: 1px solid rgba(240,235,228,0.06); }
.menu-category:nth-child(even) { padding-left: 4rem; padding-right: 0; border-left: 1px solid rgba(240,235,228,0.06); }
.menu-category:nth-last-child(-n+2) { border-bottom: none; }
.menu-cat-title {
  font-family: var(--font-display);
  font-size: 0.8rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 2rem;
}
.menu-items { list-style: none; }
.menu-item { padding: 1.2rem 0; border-bottom: 1px solid rgba(240,235,228,0.05); cursor: default; transition: background 0.2s; }
.menu-item:last-child { border-bottom: none; }
.menu-item:hover { background: rgba(200,66,10,0.03); }
.menu-item-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.3rem; }
.menu-item-name { font-size: 0.95rem; font-weight: 400; display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.menu-item-price { font-family: var(--font-display); font-size: 1.2rem; color: var(--accent); white-space: nowrap; }
.menu-item-desc { font-size: 0.78rem; font-weight: 300; color: var(--text-muted); line-height: 1.5; }
.badge { font-size: 0.55rem; letter-spacing: 0.2em; background: var(--accent); color: #fff; padding: 0.2em 0.6em; border-radius: 2px; font-weight: 600; }

/* ===== RESERVE SECTION ===== */
.reserve-section {
  position: relative; z-index: 20;
  background: var(--bg-dark);
  padding: 8rem 8vw;
  border-top: 1px solid rgba(240,235,228,0.06);
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 8vw; align-items: start;
}
.reserve-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 7rem); line-height: 0.9; margin-bottom: 3rem;
}
.reserve-info { display: flex; flex-direction: column; gap: 2rem; }
.reserve-info-item { display: flex; flex-direction: column; gap: 0.4rem; }
.reserve-info-label { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.reserve-info-item span:last-child { font-size: 0.9rem; line-height: 1.7; color: rgba(240,235,228,0.7); }
.reserve-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-field label { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); }
.form-field input,
.form-field select {
  background: rgba(240,235,228,0.05); border: 1px solid rgba(240,235,228,0.12);
  color: var(--text-light); font-family: var(--font-body); font-size: 0.9rem; font-weight: 300;
  padding: 0.85rem 1rem; outline: none; transition: border-color 0.3s;
  -webkit-appearance: none; appearance: none;
}
.form-field input::placeholder { color: var(--text-muted2); }
.form-field input:focus, .form-field select:focus { border-color: var(--accent); }
.form-field select option { background: #1a1410; }
.reserve-btn { margin-top: 0.5rem; align-self: flex-start; }
.reserve-confirm {
  display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.5rem; padding: 4rem; text-align: center; border: 1px solid rgba(200,66,10,0.3);
}
.confirm-icon { font-family: var(--font-display); font-size: 4rem; color: var(--accent); }
.reserve-confirm p { font-size: 1rem; font-style: italic; color: rgba(240,235,228,0.7); line-height: 1.7; }

/* ===== FLATPICKR CALENDAR ===== */
.flatpickr-calendar {
  background: #1a1410 !important;
  border: 1px solid rgba(240,235,228,0.12) !important;
  border-radius: 0 !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6) !important;
  font-family: var(--font-body) !important;
}
.flatpickr-calendar.arrowTop::before,
.flatpickr-calendar.arrowTop::after { display: none; }
.flatpickr-months { padding: 0.6rem 0; }
.flatpickr-month { background: transparent !important; color: var(--text-light) !important; }
.flatpickr-current-month { color: var(--text-light) !important; font-size: 0.85rem !important; letter-spacing: 0.1em; }
.flatpickr-current-month select,
.flatpickr-current-month input.numInputWrapper input {
  background: transparent !important;
  color: var(--text-light) !important;
  font-family: var(--font-body) !important;
}
.flatpickr-prev-month svg, .flatpickr-next-month svg { fill: var(--text-muted) !important; }
.flatpickr-prev-month:hover svg, .flatpickr-next-month:hover svg { fill: var(--accent) !important; }
.flatpickr-weekday {
  color: var(--text-muted) !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.1em !important;
  background: transparent !important;
}
.flatpickr-day {
  color: var(--text-light) !important;
  border-radius: 0 !important;
  border: none !important;
}
.flatpickr-day:hover {
  background: rgba(200,66,10,0.2) !important;
  color: var(--text-light) !important;
}
.flatpickr-day.selected, .flatpickr-day.selected:hover {
  background: var(--accent) !important;
  color: #fff !important;
}
.flatpickr-day.disabled, .flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay {
  color: var(--text-muted2) !important;
  opacity: 0.4;
}
.flatpickr-day.today { border-bottom: 1px solid var(--accent) !important; }
.numInputWrapper:hover { background: transparent !important; }

/* ===== FOOTER ===== */
.site-footer {
  position: relative; z-index: 20;
  background: var(--bg-dark); border-top: 1px solid rgba(240,235,228,0.06);
  padding: 3rem 8vw; display: flex; justify-content: space-between; align-items: center;
}
.footer-logo { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.2em; margin-bottom: 0.5rem; }
.site-footer p { font-size: 0.75rem; line-height: 1.9; color: var(--text-muted); letter-spacing: 0.05em; }
.footer-right { text-align: right; }
.footer-center { text-align: center; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  #scroll-container { height: 160vh; }
  #text-overlay { height: 52vh; }
  .text-slide { padding: 0 6vw 4vh; }
  .hero-heading { font-size: clamp(3rem, 14vw, 6rem); }
  .stats-row { gap: 6vw; }
  .stat-number { font-size: clamp(2rem, 8vw, 3.5rem); }
  .menu-grid { grid-template-columns: 1fr; }
  .menu-category { padding: 2.5rem 0; border-left: none !important; }
  .menu-category:nth-child(even) { padding-left: 0; }
  .reserve-section { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; gap: 1.5rem; text-align: center; }
  .footer-right { text-align: center; }
}
