/* ═══════════════════════════════════════════
   WILBY PIZZA — Cinematic Design System
   Based on robonuggets/cinematic-site-components
   ═══════════════════════════════════════════ */

:root {
  --bg: #0a0a0b;
  --surface: #111114;
  --text: #eae7e2;
  --muted: #5a5a5e;
  --accent: #e85d3a;
  --gold: #c8a97e;
  --border: #1e1e22;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── Cursor Glow ─── */
.cursor-glow {
  position: fixed;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,93,58,0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s;
  will-change: transform;
}
.cursor-glow.active { opacity: 1; }

/* ─── Navigation ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  z-index: 100;
  transition: background 0.3s, backdrop-filter 0.3s;
}
.nav--scrolled {
  background: rgba(10,10,11,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__logo {
  font-size: 16px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--text); text-decoration: none;
}
.nav__links { display: flex; gap: 32px; align-items: center; }
.nav__link {
  font-size: 14px; font-weight: 400; color: var(--muted);
  text-decoration: none; transition: color 0.2s;
}
.nav__link:hover, .nav__link--active { color: var(--text); }
.nav__link--cta {
  background: var(--accent); color: var(--bg) !important;
  padding: 8px 20px; border-radius: 8px; font-weight: 500;
  transition: transform 0.2s cubic-bezier(0.16,1,0.3,1), box-shadow 0.2s;
}
.nav__link--cta:hover { box-shadow: 0 8px 30px rgba(232,93,58,0.25); }
.nav__burger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.nav__burger span {
  display: block; width: 24px; height: 2px; background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

/* ─── Shared Section Styles ─── */
.section-block { padding: 100px 24px; max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 48px; }
.tag {
  display: inline-block; font-size: 11px; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
  border: 1px solid rgba(232,93,58,0.2); padding: 4px 12px;
  border-radius: 100px; margin-bottom: 20px;
}
.section-title {
  font-size: clamp(32px, 5vw, 56px); font-weight: 600;
  letter-spacing: -0.025em; line-height: 1.1;
}
.section-sub {
  font-size: 17px; color: var(--muted); margin-top: 12px; line-height: 1.5;
}

/* ─── Fade-up animation ─── */
.fade-up { opacity: 0; transform: translateY(30px); }
.fade-up.revealed {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.8s, transform 0.8s cubic-bezier(0.16,1,0.3,1);
}

/* ─── Buttons ─── */
.btn {
  display: inline-block; padding: 14px 36px;
  font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 500;
  border: none; border-radius: 12px; cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.16,1,0.3,1), box-shadow 0.2s;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--accent); color: white; }
.btn--primary:hover { box-shadow: 0 12px 40px rgba(232,93,58,0.3); }
.btn--outline {
  background: transparent; color: var(--text);
  border: 1px solid rgba(234,231,226,0.2);
}
.btn--outline:hover { border-color: rgba(234,231,226,0.4); }
.btn--full { width: 100%; text-align: center; }
.btn--success { background: #22c55e !important; }

/* ═══ CURTAIN REVEAL ═══ */
.curtain-section { position: relative; height: 250vh; }
.curtain-sticky {
  position: sticky; top: 0; height: 100dvh;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.curtain-left, .curtain-right {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background: var(--bg); z-index: 10;
  display: flex; align-items: center;
}
.curtain-left {
  left: 0; justify-content: flex-end; padding-right: 24px;
  border-right: 1px solid var(--border);
}
.curtain-right {
  right: 0; justify-content: flex-start; padding-left: 24px;
  border-left: 1px solid var(--border);
}
.curtain-left h2, .curtain-right h2 {
  font-size: clamp(48px, 10vw, 120px); font-weight: 800;
  letter-spacing: -0.04em; line-height: 0.95; color: var(--text);
}
.curtain-content {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
}
.mesh-canvas { position: absolute; inset: 0; z-index: 0; }
.hero-inner {
  position: relative; z-index: 2; text-align: center; padding: 40px;
}
.hero-label {
  font-size: 12px; font-weight: 400; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(60px, 14vw, 180px); font-weight: 800;
  letter-spacing: -0.04em; line-height: 0.9; text-transform: uppercase;
  background: linear-gradient(135deg, #e85d3a, #c8a97e, #e85d3a, #ff8866);
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradShift 4s ease infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-sub {
  font-size: clamp(16px, 2vw, 22px); color: rgba(234,231,226,0.7);
  line-height: 1.5; margin: 20px 0 32px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 20; text-align: center;
  animation: pulse 2s ease-in-out infinite;
}
.scroll-hint span {
  font-size: 12px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase;
}
.scroll-hint__line {
  width: 1px; height: 40px; background: var(--muted);
  margin: 8px auto 0; opacity: 0.4;
}
@keyframes pulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ═══ KINETIC MARQUEE ═══ */
.marquee-wrap {
  padding: 48px 0; overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.marquee-row {
  display: flex; white-space: nowrap;
  will-change: transform; padding: 8px 0;
}
.marquee-row + .marquee-row { margin-top: 4px; }
.marquee-item {
  display: inline-flex; align-items: center;
  padding: 0 32px; flex-shrink: 0;
}
.marquee-giant .marquee-item {
  font-size: clamp(36px, 8vw, 90px); font-weight: 800;
  letter-spacing: -0.04em; line-height: 1; color: var(--text);
}
.marquee-outline .marquee-item {
  font-size: clamp(36px, 8vw, 90px); font-weight: 800;
  letter-spacing: -0.04em; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px var(--text);
}
.dot {
  display: inline-block; width: 12px; height: 12px; border-radius: 50%;
  margin: 0 24px; opacity: 0.3;
}
.marquee-giant .dot { background: var(--accent); }
.marquee-outline .dot { border: 2px solid var(--text); background: transparent; }

/* ═══ ACCORDION IMAGE SLIDER ═══ */
.accordion {
  display: flex; gap: 8px;
  height: 65vh; min-height: 380px; max-height: 580px;
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
}
.accordion-panel {
  flex: 1; border-radius: 16px; overflow: hidden;
  position: relative; cursor: pointer;
  transition: flex 0.6s cubic-bezier(0.16,1,0.3,1);
}
.accordion-panel:hover, .accordion-panel.active { flex: 5; }
.panel-bg {
  position: absolute; inset: 0;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.accordion-panel:hover .panel-bg,
.accordion-panel.active .panel-bg { transform: scale(1.05); }
.panel-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,11,0.85) 0%, rgba(10,10,11,0.2) 40%, transparent 60%);
}
.panel-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px 24px; z-index: 2;
}
.panel-num {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px; font-weight: 400;
  opacity: 0; transform: translateY(8px);
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1) 0.1s;
}
.panel-title {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  writing-mode: vertical-rl; text-orientation: mixed;
  position: absolute; bottom: 28px; left: 16px;
  color: var(--text); transition: opacity 0.3s;
}
.accordion-panel:hover .panel-title,
.accordion-panel.active .panel-title { opacity: 0; }
.panel-h3 {
  font-size: 22px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 6px;
  opacity: 0; transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1) 0.15s;
}
.panel-desc {
  font-size: 13px; color: rgba(234,231,226,0.7); line-height: 1.5; max-width: 30ch;
  opacity: 0; transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1) 0.2s;
}
.accordion-panel:hover .panel-num,
.accordion-panel:hover .panel-h3,
.accordion-panel:hover .panel-desc,
.accordion-panel.active .panel-num,
.accordion-panel.active .panel-h3,
.accordion-panel.active .panel-desc {
  opacity: 1; transform: translateY(0);
}

/* ═══ HORIZONTAL SCROLL ═══ */
.savoir-intro { padding-bottom: 40px; }
.h-scroll-section { overflow: hidden; }
.h-scroll-sticky {
  position: sticky; top: 0; height: 100dvh;
  display: flex; align-items: center; overflow: hidden;
}
.h-scroll-track {
  display: flex; gap: 32px;
  padding: 0 max(48px, 5vw);
  will-change: transform;
}
.h-card {
  flex-shrink: 0; width: clamp(300px, 40vw, 480px); height: 60vh;
  border-radius: 20px; overflow: hidden; position: relative;
  border: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 32px; cursor: default;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.h-card:hover { transform: translateY(-4px); }
.h-card-bg {
  position: absolute; inset: 0; z-index: 0;
  transition: transform 0.5s ease;
}
.h-card:hover .h-card-bg { transform: scale(1.04); }
.h-card-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(8,8,10,0.9) 0%, rgba(8,8,10,0.3) 40%, transparent 70%);
}
.h-card-content { position: relative; z-index: 2; }
.h-card-num {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px; font-weight: 400;
}
.h-card h3 {
  font-size: 22px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 8px;
}
.h-card p { font-size: 14px; color: var(--muted); line-height: 1.5; max-width: 35ch; }

/* Progress bar */
.h-progress {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 50; display: flex; align-items: center; gap: 12px;
  opacity: 0; transition: opacity 0.3s;
}
.h-progress.visible { opacity: 1; }
.h-progress-bar {
  width: 120px; height: 2px; background: var(--border);
  border-radius: 1px; overflow: hidden;
}
.h-progress-fill {
  height: 100%; background: var(--accent); width: 0%;
  transition: width 0.1s;
}
.h-progress-label {
  font-size: 11px; color: var(--muted); letter-spacing: 0.08em;
}

/* ═══ ODOMETER COUNTER ═══ */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px; text-align: center;
}
.stat-item {
  padding: 40px 20px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 20px;
}
.odometer {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(36px, 6vw, 64px); font-weight: 700;
  color: var(--accent); letter-spacing: -0.03em;
  overflow: hidden; height: 1.15em;
  display: flex; justify-content: center;
}
.odo-digit {
  display: inline-block; overflow: hidden;
  height: 1.15em; position: relative;
}
.odo-strip {
  display: flex; flex-direction: column;
  transition: transform 1.5s cubic-bezier(0.16,1,0.3,1);
}
.odo-strip span { display: block; height: 1.15em; line-height: 1.15; }
.stat-suffix {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(24px, 4vw, 40px); font-weight: 700;
  color: var(--accent); vertical-align: top;
}
.stat-label { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* ═══ 3D TILT REVIEW CARDS ═══ */
.reviews-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; max-width: 1000px; margin: 0 auto;
}
.tilt-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 36px 28px;
  position: relative; overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, border-color 0.3s;
  will-change: transform; cursor: default;
}
.tilt-card:hover { border-color: #2a2a30; }
.spotlight {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0; transition: opacity 0.3s; border-radius: 20px;
}
.tilt-card:hover .spotlight { opacity: 1; }
.review-stars {
  font-size: 18px; color: #f4c430; margin-bottom: 16px; letter-spacing: 2px;
}
.review-text {
  font-size: 15px; line-height: 1.6; color: rgba(234,231,226,0.85);
  margin-bottom: 16px; font-style: italic;
}
.review-author {
  font-size: 14px; font-weight: 500; display: block; font-style: normal;
}
.review-source {
  font-size: 12px; color: var(--muted); margin-top: 4px; display: block;
}

/* ═══ RESERVE FORM ═══ */
.reserve-section { max-width: 1000px; }
.reserve-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
}
.reserve-address, .reserve-hours, .reserve-phone {
  font-size: 15px; color: var(--muted); line-height: 1.6; margin-top: 20px;
}
.reserve-phone { color: var(--accent); font-weight: 500; }
.reserve-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 36px;
}
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 12px; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.form-input {
  width: 100%; padding: 12px 16px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text);
  font-family: 'Outfit', sans-serif; font-size: 14px;
  transition: border-color 0.2s;
}
.form-input:focus { outline: none; border-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ═══ GALERIE ═══ */
.galerie-scroll {
  display: flex; gap: 20px;
  overflow-x: auto; overflow-y: hidden;
  padding: 0 24px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.galerie-scroll::-webkit-scrollbar { height: 4px; }
.galerie-scroll::-webkit-scrollbar-track { background: transparent; }
.galerie-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.galerie-item {
  flex-shrink: 0; width: clamp(280px, 35vw, 400px);
  scroll-snap-align: start;
}
.galerie-item img {
  width: 100%; height: 260px; object-fit: cover;
  border-radius: 16px; display: block;
  border: 1px solid var(--border);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), filter 0.4s;
}
.galerie-item:hover img {
  transform: scale(1.03);
  filter: brightness(1.1);
}
.galerie-caption {
  display: block; font-size: 13px; color: var(--muted);
  margin-top: 10px; padding-left: 4px;
}

/* ═══ PARTICLE SYSTEM ═══ */
.particle {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 9999;
}

/* ═══ FOOTER ═══ */
.footer {
  border-top: 1px solid var(--border); padding: 80px 24px 32px;
  max-width: 1100px; margin: 0 auto;
}
.footer-brand { text-align: center; margin-bottom: 60px; }
.footer-logo {
  font-size: clamp(36px, 8vw, 80px); font-weight: 800;
  letter-spacing: -0.04em; line-height: 0.95;
  background: linear-gradient(90deg, #c8a97e, #e85d3a, #c8a97e);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 6s linear infinite;
}
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
.footer-tagline { font-size: 15px; color: var(--muted); margin-top: 8px; }
.footer-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px; padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-heading {
  font-size: 13px; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; margin-bottom: 12px; color: var(--text);
}
.footer-col p, .footer-social {
  font-size: 14px; color: var(--muted); line-height: 1.8;
}
.footer-social {
  display: block; text-decoration: none; transition: color 0.2s;
}
.footer-social:hover { color: var(--accent); }
.footer-closed { color: var(--accent); font-size: 13px; }
.footer-bottom {
  text-align: center; padding-top: 24px;
  font-size: 12px; color: var(--muted);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .cursor-glow { display: none; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav.nav--open .nav__links {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(10,10,11,0.95); backdrop-filter: blur(12px);
    padding: 24px 32px; gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav.nav--open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.nav--open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav.nav--open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .curtain-left h2, .curtain-right h2 { font-size: clamp(36px, 12vw, 80px); }
  .accordion {
    flex-direction: column; height: auto; min-height: auto; max-height: none;
  }
  .accordion-panel { height: 60px; flex: none !important; }
  .accordion-panel:hover, .accordion-panel.active { height: 280px; flex: none !important; }
  .panel-title {
    writing-mode: horizontal-tb; position: relative;
    bottom: auto; left: auto; padding: 18px 20px;
  }
  .reserve-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .h-card { width: 85vw; height: 50vh; }
}
