/* ============================================================
   Neon Quarter — Retro Arcade Bar
   Palette + type tokens only. No colors/fonts outside this set.
   ============================================================ */
:root {
  --light: #f5f0e6;
  --dark: #0d0d12;
  --ink-on-light: #0d0d12;
  --ink-on-dark: #f5f0e6;
  --accent-1: #ff2ea6;   /* neon pink  */
  --accent-2: #29e0ff;   /* neon cyan  */

  --font-display: 'Press Start 2P', monospace;
  --font-body: 'Space Mono', monospace;

  --radius: 4px;
  --border: 2px;
  --nav-h: 74px;

  --wrap: 1200px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-on-dark);
  background: var(--dark);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; }

::selection { background: var(--accent-1); color: var(--dark); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent-2); color: var(--dark);
  padding: 10px 16px; font-weight: 700;
}
.skip-link:focus { left: 16px; top: 12px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

/* ---------- typography ---------- */
.hero__title,
.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.5px;
}
h3 { font-family: var(--font-body); font-weight: 700; letter-spacing: 0.3px; }

.kicker {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--accent-2);
  margin: 0 0 14px;
  text-transform: uppercase;
}
.kicker--dark { color: var(--accent-2); }

.section__title { font-size: clamp(20px, 3.4vw, 34px); margin-bottom: 18px; }
.section__lead { max-width: 62ch; opacity: 0.9; margin: 0 0 40px; }

/* ---------- buttons (only element with neon glow shadow) ---------- */
.btn {
  --btn-color: var(--accent-1);
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 13px 22px;
  border: var(--border) solid var(--btn-color);
  border-radius: var(--radius);
  background: transparent; color: var(--btn-color);
  cursor: pointer;
  box-shadow: 0 0 12px -2px var(--btn-color);
  transition: box-shadow .25s ease, background-color .25s ease, color .25s ease, transform .1s ease;
}
.btn::before { content: '\25B8'; opacity: 0; width: 0; overflow: hidden; transition: opacity .2s ease, width .2s ease, margin .2s ease; }
.btn--primary { --btn-color: var(--accent-1); }
.btn--ghost { --btn-color: var(--accent-2); }
.btn:hover, .btn:focus-visible {
  background: var(--btn-color); color: var(--dark);
  box-shadow: 0 0 20px -1px var(--btn-color);
  outline: none;
}
.btn:hover::before, .btn:focus-visible::before { opacity: 1; width: auto; margin-right: 2px; }
.btn:active { transform: translateY(1px); }

/* ============================================================
   NAV — nav-pill
   ============================================================ */
.nav {
  position: fixed; z-index: 100; top: 14px; left: 50%;
  transform: translateX(-50%);
  width: min(100% - 28px, var(--wrap));
  display: flex; align-items: center; gap: 18px;
  padding: 10px 12px 10px 18px;
  border: var(--border) solid rgba(245, 240, 230, 0.22);
  border-radius: 999px;
  background: rgba(13, 13, 18, 0.55);
  backdrop-filter: blur(12px);
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.nav.is-scrolled {
  background: rgba(13, 13, 18, 0.9);
  border-bottom-color: var(--accent-2);
  box-shadow: 0 4px 22px -8px var(--accent-2);
}
.nav__logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.5px; }
.nav__logo-mark {
  font-family: var(--font-display); font-size: 13px; color: var(--accent-1);
  border: var(--border) solid var(--accent-1); border-radius: var(--radius);
  padding: 6px 7px; line-height: 1;
}
.nav__logo-word { font-size: 15px; }
.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__links a {
  position: relative; padding: 8px 12px; font-size: 14px; font-weight: 700;
  letter-spacing: 0.5px; border-radius: var(--radius);
  transition: color .2s ease, background-color .2s ease;
}
.nav__links a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--accent-2); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--accent-2); }
.nav__cta { padding: 9px 16px; font-size: 13px; }

/* ============================================================
   HERO — hero-centered-fullbleed + CRT Scanline Sweep
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(var(--nav-h) + 40px) 20px 80px;
  overflow: hidden; text-align: center;
  border-bottom: var(--border) solid var(--accent-1);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__photo { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 30%, rgba(13,13,18,0.35), rgba(13,13,18,0.82) 75%),
    linear-gradient(180deg, rgba(13,13,18,0.55), rgba(13,13,18,0.75));
}
/* scanline sweep: thin repeating lines slowly crawling downward */
.hero__scanlines {
  position: absolute; inset: -50% 0; z-index: 1;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.28) 3px,
    rgba(0,0,0,0) 4px
  );
  background-size: 100% 6px;
  animation: scanSweep 8s linear infinite;
  will-change: transform;
  pointer-events: none; opacity: 0.55;
}
@keyframes scanSweep {
  from { transform: translateY(0); }
  to   { transform: translateY(6px); }
}
.hero__inner { position: relative; z-index: 2; max-width: 900px; }
.hero__title { font-size: clamp(22px, 5vw, 48px); margin-bottom: 22px; }
/* chromatic aberration on the headline only — static, no flicker */
.glitch { text-shadow: -1px 0 rgba(255,46,166,0.7), 1px 0 rgba(41,224,255,0.7); }
.hero__sub { max-width: 58ch; margin: 0 auto 30px; font-size: 18px; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   SECTIONS + pixel-step dividers
   ============================================================ */
.section { position: relative; padding: 88px 0; }
.section--dark { background: var(--dark); color: var(--ink-on-dark); }
.section--light { background: var(--light); color: var(--ink-on-light); }

/* pixel "staircase" divider between alternating sections */
.section + .section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 12px;
  background-image: linear-gradient(90deg, currentColor 0 0);
  -webkit-mask: conic-gradient(from 90deg at 8px 8px, currentColor 90deg, transparent 0) 0 0 / 16px 12px;
          mask: conic-gradient(from 90deg at 8px 8px, currentColor 90deg, transparent 0) 0 0 / 16px 12px;
  color: var(--accent-1);
  opacity: 0.9;
}
.section--light + .section--dark::before { color: var(--accent-2); }

/* ============================================================
   CABINET COLLECTION — gallery-uniform-grid
   ============================================================ */
.cab-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.cab-card {
  margin: 0;
  border: var(--border) solid currentColor;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(245,240,230,0.03);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.cab-card figcaption { padding: 18px 20px 22px; }
.cab-card h3 { font-size: 18px; margin-bottom: 8px; color: var(--accent-2); }
.cab-card p { margin: 0; font-size: 15px; opacity: 0.9; }

/* shared media + scanline motif for photos */
.media { position: relative; overflow: hidden; aspect-ratio: 1 / 1; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.media__scan {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(
    to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,0.22) 3px, rgba(0,0,0,0) 4px);
  background-size: 100% 5px; opacity: 0.4;
  transition: opacity .3s ease;
}
.cab-card:hover, .collage__item:hover {
  border-color: var(--accent-1);
  box-shadow: 0 0 18px -4px var(--accent-1);
}
.cab-card:hover .media img,
.collage__item:hover .media img { transform: scale(1.03); }
.cab-card:hover .media__scan,
.collage__item:hover .media__scan { opacity: 0.7; }

/* ============================================================
   MENU — typographic score-card list
   ============================================================ */
.menu { display: grid; gap: 44px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.menu__col-title {
  font-size: 15px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent-1); margin-bottom: 22px;
  border-bottom: var(--border) solid currentColor; padding-bottom: 10px;
}
.menu-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  column-gap: 8px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(13,13,18,0.18);
}
.menu-item__name { font-weight: 700; }
/* dotted leader that draws in left-to-right on reveal */
.menu-item__leader {
  align-self: center; height: 0; margin-top: 6px;
  border-bottom: 2px dotted currentColor; opacity: 0.5;
  transform: scaleX(0); transform-origin: left;
  transition: transform .6s ease .1s;
}
.menu-item__price { font-weight: 700; white-space: nowrap; transition: color .2s ease; }
.menu-item__price em {
  font-style: normal; font-size: 11px; letter-spacing: 1px;
  color: var(--accent-1); margin-right: 4px;
}
.menu-item:hover .menu-item__price { color: var(--accent-2); }
.menu-item__desc { grid-column: 1 / -1; font-size: 14px; opacity: 0.75; margin-top: 4px; }
.reveal.is-visible .menu-item__leader,
.menu-item.is-visible .menu-item__leader { transform: scaleX(1); }

/* ============================================================
   WEEKLY EVENTS — level plates
   ============================================================ */
.events { display: grid; gap: 14px; }
.event {
  display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 20px;
  padding: 18px 22px;
  border: var(--border) solid rgba(245,240,230,0.25);
  border-radius: var(--radius);
  background: rgba(245,240,230,0.03);
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.event__level {
  font-family: var(--font-display); font-size: 12px; line-height: 1.5;
  color: var(--accent-2);
  border: var(--border) solid currentColor; border-radius: var(--radius);
  padding: 10px; text-align: center;
}
.event__day { font-size: 18px; margin-bottom: 4px; }
.event p { margin: 0; font-size: 15px; opacity: 0.88; }
.event--active {
  border-color: var(--accent-1);
  background: rgba(255,46,166,0.08);
  box-shadow: 0 0 16px -6px var(--accent-1);
}
.event--active .event__level { color: var(--accent-1); }
.event:hover { border-color: var(--accent-1); box-shadow: 0 0 16px -6px var(--accent-1); }

/* ============================================================
   GALLERY — gallery-collage-overlap
   ============================================================ */
.collage {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  align-items: start; padding: 20px 0;
}
.collage__item {
  margin: 0;
  border: var(--border) solid currentColor; border-radius: var(--radius);
  overflow: hidden; background: var(--dark);
  transition: border-color .25s ease, box-shadow .25s ease, transform .3s ease;
}
.collage__item--1 { transform: rotate(-2deg); z-index: 1; }
.collage__item--2 { transform: rotate(2.5deg); margin-top: 40px; margin-left: -24px; z-index: 2; }
.collage__item:hover { transform: rotate(0) scale(1.01); z-index: 3; }
.collage__item figcaption {
  padding: 12px 16px; font-size: 13px; font-weight: 700; letter-spacing: 0.5px;
  background: var(--dark); color: var(--accent-2);
}

/* ============================================================
   LOCATION & HOURS
   ============================================================ */
.location__grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.location__block {
  border: var(--border) solid rgba(245,240,230,0.25); border-radius: var(--radius);
  padding: 24px;
}
.location__block h3 { font-size: 16px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px; }
.location__block address { font-style: normal; line-height: 1.7; opacity: 0.9; }
.location__block p { margin: 0; opacity: 0.9; font-size: 15px; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px dashed rgba(245,240,230,0.15); font-size: 15px; }
.hours li:last-child { border-bottom: 0; }
.hours span:last-child { color: var(--accent-1); font-weight: 700; }

/* ============================================================
   BOOKING FORM — cta-form-card-floating
   ============================================================ */
.cta-form { background: var(--light); }
.cta-form__card {
  max-width: 720px; margin-inline: auto;
  border: var(--border) solid var(--accent-1); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
  background: var(--light);
  box-shadow: 0 0 0 6px rgba(255,46,166,0.06);
}
.form__row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; transition: color .2s ease; }
.field input {
  font-family: var(--font-body); font-size: 16px;
  padding: 12px 14px;
  border: var(--border) solid var(--ink-on-light); border-radius: var(--radius);
  background: transparent; color: var(--ink-on-light);
}
.field input:focus-visible { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(41,224,255,0.25); }
.field:focus-within label { color: var(--accent-2); }
.form__submit { width: 100%; justify-content: center; margin-top: 6px; }
.form__status { margin: 16px 0 0; font-weight: 700; min-height: 1.4em; }
.form__status.success { color: #0a7d4a; }
.form__status.success.pulse { animation: successPulse .9s ease 1; }
.form__status.error { color: var(--accent-1); }
@keyframes successPulse {
  0% { text-shadow: 0 0 0 rgba(10,125,74,0); }
  40% { text-shadow: 0 0 14px rgba(10,125,74,0.6); }
  100% { text-shadow: 0 0 0 rgba(10,125,74,0); }
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ============================================================
   FOOTER — footer-minimal-centered
   ============================================================ */
.footer { background: var(--dark); color: var(--ink-on-dark); padding: 56px 0; text-align: center; border-top: var(--border) solid var(--accent-2); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.footer__logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.footer__mark { font-family: var(--font-display); font-size: 13px; color: var(--accent-1); border: var(--border) solid var(--accent-1); border-radius: var(--radius); padding: 6px 7px; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.footer__links a { font-weight: 700; font-size: 14px; letter-spacing: 0.5px; opacity: 0.85; transition: color .2s ease, opacity .2s ease; }
.footer__links a:hover { color: var(--accent-2); opacity: 1; }
.footer__hours { font-size: 13px; opacity: 0.7; margin: 0; }
.footer__copy { font-size: 13px; opacity: 0.85; margin: 0; }

/* ============================================================
   Scroll-reveal — CRT power-on (opacity + scaleY 0.96)
   ============================================================ */
.reveal { opacity: 0; transform: scaleY(0.96); transform-origin: center; transition: opacity .4s ease, transform .4s ease; will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: scaleY(1); }

/* typewriter caret for section titles */
.section__title.tw-active::after {
  content: '_'; color: var(--accent-1); margin-left: 2px;
  animation: caretBlink .5s steps(1) 0s 4;
}
@keyframes caretBlink { 50% { opacity: 0; } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .section { padding: 72px 0; }
}
@media (max-width: 768px) {
  body { font-size: 16px; }
  .nav { gap: 10px; padding: 8px 10px 8px 14px; }
  .nav__links { display: none; }
  .nav__logo-word { display: none; }
  .event { grid-template-columns: 84px 1fr; gap: 14px; padding: 14px 16px; }
  .event__level { font-size: 10px; padding: 8px 4px; }
  .collage { grid-template-columns: 1fr; }
  .collage__item--1, .collage__item--2 { transform: none; margin: 0 0 18px; }
  .collage__item:hover { transform: scale(1.01); }
  .form__row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero__title { font-size: clamp(20px, 6.4vw, 24px); line-height: 1.5; letter-spacing: 0; }
  .section__title { font-size: clamp(18px, 5.6vw, 22px); line-height: 1.5; }
  .btn { width: 100%; justify-content: center; }
  .hero__actions { width: 100%; }
}

/* ============================================================
   Reduced motion — kill ALL motion, show content immediately
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero__scanlines { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .menu-item__leader { transform: scaleX(1) !important; }
  .section__title.tw-active::after { content: none; }
}
