/* ============================================================
   Garage Vanhauwere — Ronse — homepage preview
   Palette: warm-neutral paper / graphite ink / burnt-rust accent / steel
   Type: Gambetta (display serif) + Switzer (text) — self-hosted
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Gambetta';
  src: url('../fonts/gambetta-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gambetta';
  src: url('../fonts/gambetta-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gambetta';
  src: url('../fonts/gambetta-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('../fonts/switzer-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('../fonts/switzer-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('../fonts/switzer-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ivory: #F4F3F0;         /* page base — warm-neutral paper */
  --ivory-deep: #EAE8E3;
  --paper: #FBFAF8;         /* cards */
  --ink: #17191B;           /* graphite near-black (text) */
  --ink-soft: rgba(23, 25, 27, 0.66);
  --lacquer: #B5401E;       /* accent — burnt rust (Eurorepar-adjacent warm) */
  --lacquer-deep: #983415;
  --gold: #8A939B;          /* steel — secondary marks / lines */
  --gold-soft: rgba(138, 147, 155, 0.42);
  --steel-light: #B9BEC4;   /* on-dark overlines / small labels */
  --line: rgba(23, 25, 27, 0.13);
  --cream: #F6F5F2;
  --cream-soft: rgba(246, 245, 242, 0.80);
  --open: #4F9D69;
  --gold-ink: #5B636B;      /* steel-ink small labels on light */
  --graphite: #1D2226;      /* dark sections */

  --serif: 'Gambetta', 'Times New Roman', serif;
  --sans: 'Switzer', -apple-system, 'Helvetica Neue', sans-serif;

  --wrap: 1120px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); letter-spacing: -0.01em; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--ivory);
  padding: 0.6rem 1.2rem; z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--lacquer);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.3em;
  font-family: var(--sans); font-weight: 500; font-size: 1rem;
  padding: 0.85em 1.7em; border-radius: 999px;
  min-height: 44px; /* touch target */
  text-decoration: none; white-space: nowrap;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.btn--primary { background: var(--lacquer); color: var(--cream); }
.btn--primary:hover { background: var(--lacquer-deep); transform: translateY(-1px); }
.btn--ghost {
  color: var(--cream);
  border: 1px solid rgba(248, 244, 235, 0.55);
  background: rgba(28, 21, 18, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(248, 244, 235, 0.14); border-color: rgba(248, 244, 235, 0.85); }
.btn--gold { background: transparent; color: var(--cream); border: 1px solid var(--gold-soft); }
.btn--gold:hover { border-color: var(--gold); color: var(--gold); }
.btn--small { font-size: 0.9rem; padding: 0.55em 1.15em; }
.btn--onband { background: var(--ivory); color: var(--ink); }
.btn--onband:hover { background: var(--ivory-deep); transform: translateY(-1px); }

.text-link {
  position: relative;
  color: var(--lacquer); font-weight: 500; text-decoration: none;
  border-bottom: 1px solid rgba(178, 58, 38, 0.35);
  transition: border-color 0.2s ease;
}
.text-link:hover { border-color: var(--lacquer); }
.text-link--light { color: var(--gold); border-bottom-color: var(--gold-soft); }
.text-link--light:hover { border-color: var(--gold); }
/* Expand tap target to >=44px without shifting the visible underline or layout */
.text-link::after {
  content: ""; position: absolute; left: 0; right: 0;
  top: 50%; transform: translateY(-50%); height: 44px;
}

/* ---------- Topbar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem var(--pad);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.topbar.scrolled {
  background: rgba(246, 241, 231, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 0.6rem; padding-bottom: 0.6rem;
}
.brand {
  font-family: var(--serif); font-weight: 700; font-size: 1.25rem;
  color: var(--cream); text-decoration: none; letter-spacing: 0.01em;
  transition: color 0.3s ease;
}
.brand-cjk { font-family: var(--cjk); font-weight: 400; font-size: 0.9em; opacity: 0.85; margin-left: 0.35em; }
.topbar.scrolled .brand { color: var(--ink); }
.topbar-num { font-variant-numeric: tabular-nums; }
@media (max-width: 480px) {
  .topbar-num { display: none; }
}

/* ---------- Hero (graphite, typographic — loads instantly, no photo upscale) ---------- */
.hero {
  position: relative;
  min-height: 82vh;
  min-height: 82svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: var(--graphite);
}
/* soft warm signal glow + fine steel grid, purely decorative */
.hero-glow {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 82% 12%, rgba(181, 64, 30, 0.22) 0%, rgba(181, 64, 30, 0) 55%),
    radial-gradient(90% 70% at 6% 100%, rgba(138, 147, 155, 0.16) 0%, rgba(138, 147, 155, 0) 60%),
    linear-gradient(180deg, #20262B 0%, #1A1E22 100%);
}
.hero-inner {
  width: 100%; max-width: var(--wrap);
  margin: 0 auto;
  padding: 9rem var(--pad) clamp(3.2rem, 9vh, 5.5rem);
  color: var(--cream);
}
.hero-title {
  font-size: clamp(3.2rem, 11vw, 6.2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--cream);
  margin: 0.35rem 0 1rem;
}
.hero-cjk {
  display: inline-block;
  font-family: var(--cjk);
  font-weight: 400;
  font-size: 0.32em;
  color: var(--gold);
  letter-spacing: 0.35em;
  vertical-align: 0.55em;
  margin-left: 0.5em;
}
.lede {
  max-width: 34em;
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  color: var(--cream-soft);
  margin-bottom: 1.4rem;
}
.overline {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--lacquer);
}
.overline--light { color: var(--steel-light); }   /* on-dark: 8.58:1 on graphite */
.overline--gold { color: var(--steel-light); }

.status {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-size: 0.95rem; font-weight: 500;
  color: var(--cream);
  background: rgba(28, 21, 18, 0.38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(248, 244, 235, 0.18);
  border-radius: 999px;
  padding: 0.5em 1.05em;
  margin-bottom: 1.6rem;
}
.status-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold);
  flex: none;
}
.status[data-state="open"] .status-dot {
  background: var(--open);
  box-shadow: 0 0 0 3px rgba(93, 185, 117, 0.25);
}
.status[data-state="closed"] .status-dot { background: var(--gold); }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- Proof lockup ---------- */
.proof { padding: clamp(2.2rem, 5vw, 3.4rem) var(--pad); }
.proof-lockup {
  max-width: 780px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 40px -30px rgba(28, 21, 18, 0.4);
  overflow: hidden;
}
.proof-item {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 0.4rem;
  padding: 1.7rem 1.1rem;
}
.proof-item + .proof-item { border-left: 1px solid var(--line); }
.proof-stat {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.1rem, 5.5vw, 2.9rem);
  line-height: 1; color: var(--ink);
  font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: baseline; gap: 0.1em;
}
.proof-stat--name { font-size: clamp(1.35rem, 3.8vw, 1.7rem); letter-spacing: -0.01em; }
.proof-star { color: var(--lacquer); font-size: 0.6em; }
.proof-label {
  font-family: var(--sans); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.05em; color: var(--ink-soft);
  text-transform: uppercase;
}
@media (max-width: 620px) {
  .proof-lockup { grid-template-columns: 1fr; }
  .proof-item + .proof-item { border-left: none; border-top: 1px solid var(--line); }
  .proof-item { padding: 1.3rem 1.1rem; }
}

/* ---------- Sections ---------- */
.section-head { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.section-head h2 { margin: 0.5rem 0 0.9rem; }
.section-intro { max-width: 38em; color: var(--ink-soft); }

/* ---------- Kaart ---------- */
.kaart { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.kaart-head { position: relative; }
/* Hero-scale gold mark: an accent used as a field, not trim (decorative, aria-hidden) */
.kaart-mark {
  display: block;
  font-family: var(--cjk); font-weight: 400;
  font-size: clamp(3.6rem, 12vw, 7.2rem);
  line-height: 0.82; letter-spacing: 0.06em;
  color: var(--gold);
  margin: 0 0 0.35rem -0.04em;
}
.kaart-grid {
  max-width: var(--wrap); margin: 2.5rem auto 0;
  padding: 0 var(--pad);
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 860px) {
  .kaart-grid { grid-template-columns: 1fr; }
}

.menu-group + .menu-group { margin-top: 3rem; }
.menu-group-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 0.7rem;
}
.menu-group-head h3 { font-size: 1.6rem; font-weight: 500; }
.price-anchor {
  font-size: 0.9rem; font-weight: 500;
  color: var(--lacquer);
  white-space: nowrap;
}
.dish { padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.dish:last-child { border-bottom: none; }
.dish-head { display: flex; align-items: baseline; gap: 0.6rem; }
.dish-head h4 {
  font-family: var(--serif); font-size: 1.18rem; font-weight: 500;
  margin: 0; letter-spacing: 0.005em;
}
.dish-cjk { font-family: var(--cjk); font-size: 0.92rem; color: var(--gold-ink); letter-spacing: 0.12em; }
.dish p { color: var(--ink-soft); font-size: 0.97rem; margin-top: 0.2rem; }

.photo-stack { display: grid; }
.photo-stack img {
  width: 86%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}
.photo-stack .photo-offset {
  width: 62%;
  margin-top: -28%;
  justify-self: end;
  border: 8px solid var(--ivory);
  border-radius: 18px;
  box-shadow: 0 24px 48px -24px rgba(28, 21, 18, 0.35);
}
@media (max-width: 860px) {
  .photo-stack { margin-top: 1.5rem; }
}

/* ---------- Reserveer band (lacquer — second visual moment) ---------- */
/* ivory (#F6F1E7) on lacquer (#B23A26) = 5.29:1 → AA at any size */
.reserveer {
  position: relative;
  background: var(--lacquer);
  color: var(--ivory);
  overflow: hidden;
  isolation: isolate;
}
.reserveer-glyph {
  position: absolute; z-index: 0;
  right: 0.04em; top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-weight: 700; line-height: 1;
  font-size: clamp(7rem, 26vw, 18rem);
  letter-spacing: -0.02em;
  color: rgba(246, 245, 242, 0.10);
  pointer-events: none; user-select: none;
}
.reserveer-inner {
  position: relative; z-index: 1;
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 5.5rem) var(--pad);
  text-align: center;
}
.overline--band { color: var(--ivory); }
.reserveer-title { color: var(--ivory); max-width: 15em; margin: 0.6rem auto 0; }
.reserveer-lede {
  max-width: 34em; margin: 1.1rem auto 0;
  font-size: clamp(1.125rem, 2.3vw, 1.25rem); /* >=18px body on lacquer */
  color: var(--ivory);
}
.reserveer .btn { margin-top: 1.9rem; }

/* ---------- Sfeer (dark) ---------- */
.sfeer { background: var(--graphite); color: var(--cream); }
.sfeer-grid {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(4rem, 9vw, 6.5rem) var(--pad);
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 860px) {
  .sfeer-grid { grid-template-columns: 1fr; }
}
.sfeer-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}
.sfeer-copy h2 { color: var(--cream); margin: 0.5rem 0 1.2rem; }
.sfeer-copy p { color: rgba(248, 244, 235, 0.75); max-width: 34em; }
.sfeer-copy p + p { margin-top: 0.9rem; }
.sfeer-copy .btn { margin-top: 1.8rem; }

/* ---------- Praktisch ---------- */
.praktisch { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.prak-grid {
  max-width: var(--wrap); margin: 2.2rem auto 0;
  padding: 0 var(--pad);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
@media (max-width: 860px) {
  .prak-grid { grid-template-columns: 1fr; }
}
.prak-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.8rem 1.9rem;
}
.prak-card h3 {
  font-size: 1.05rem; font-family: var(--sans); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--lacquer);
  margin-bottom: 0.9rem;
}
.prak-card p { color: var(--ink-soft); }
.prak-card .text-link { display: inline-block; margin-top: 0.8rem; }
.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0; }
.hours dt { color: var(--ink-soft); }
.hours dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Owner-directed note (quiet; a diner ignores it, the owner has an action) ---------- */
.owner-note {
  max-width: 620px; margin: 0 auto;
  padding: 1.15rem var(--pad) 1.4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-size: 0.82rem; line-height: 1.55;
  color: var(--ink-soft);
}
.owner-note p { margin: 0; }
.owner-link {
  display: inline-block; margin-top: 0.45rem;
  color: var(--lacquer); font-weight: 500; text-decoration: none;
  border-bottom: 1px solid rgba(178, 58, 38, 0.35);
  transition: border-color 0.2s ease;
}
.owner-link:hover { border-color: var(--lacquer); }

/* ---------- Footer ---------- */
.footer { background: var(--graphite); color: rgba(246, 245, 242, 0.72); }
.footer-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 3.5rem var(--pad) 2.5rem;
  display: grid; gap: 1.5rem;
  justify-items: start;
  font-size: 0.95rem;
}
.footer-name {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 500;
  color: var(--cream); margin-bottom: 0.4rem;
}
.footer-name span { font-family: var(--cjk); font-size: 0.85em; color: var(--gold); margin-left: 0.3em; }
.footer-note { font-size: 0.84rem; color: rgba(248, 244, 235, 0.6); max-width: 46em; }
.watermark {
  border-top: 1px solid rgba(248, 244, 235, 0.12);
  text-align: center;
  padding: 1.1rem var(--pad);
  font-size: 0.82rem; letter-spacing: 0.06em;
}
.watermark a { color: rgba(248, 244, 235, 0.55); text-decoration: none; }
.watermark a:hover { color: var(--gold); }

.preview-badge {
  position: fixed; right: 0.9rem; bottom: 0.9rem; z-index: 40;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.04em;
  color: rgba(248, 244, 235, 0.85);
  background: rgba(28, 21, 18, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(248, 244, 235, 0.15);
  border-radius: 999px;
  padding: 0.35em 0.9em;
  text-decoration: none;
}
.preview-badge:hover { background: rgba(28, 21, 18, 0.8); }

/* ---------- Reveal (hidden state only when JS is present) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
[data-reveal].in { opacity: 1; transform: none; }
.prak-grid .prak-card:nth-child(2) { transition-delay: 0.1s; }
.prak-grid .prak-card:nth-child(3) { transition-delay: 0.2s; }
.photo-stack .photo-offset { transition-delay: 0.15s; }

/* ============================================================
   Garage-specific blocks (append)
   ============================================================ */

/* ---------- Showcase: real showroom photo, full width, natural 3:1 (no upscale) ---------- */
.showcase {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.showcase-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 26px 54px -34px rgba(23, 25, 27, 0.5);
  isolation: isolate;
}
.showcase-frame img {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  display: block;
}
.showcase-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 1.6rem clamp(1.1rem, 3vw, 1.9rem) 1.1rem;
  color: var(--cream);
  font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.01em;
  background: linear-gradient(to top, rgba(20, 24, 27, 0.82) 0%, rgba(20, 24, 27, 0) 100%);
}
@media (max-width: 620px) {
  .showcase-frame img { aspect-ratio: 4 / 3; }
}

/* ---------- Service tag (steel, distinct from rust price-anchor) ---------- */
.svc-tag {
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-ink);
  white-space: nowrap;
}

/* ---------- Credentials card (in the dark story section) ---------- */
.creds {
  background: rgba(246, 245, 242, 0.05);
  border: 1px solid rgba(246, 245, 242, 0.14);
  border-radius: 16px;
  padding: 0.4rem 1.6rem;
}
.cred {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(246, 245, 242, 0.12);
}
.cred:last-child { border-bottom: none; }
.cred-k {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.35rem; color: var(--cream);
  line-height: 1.15;
}
.cred-v {
  margin-top: 0.2rem;
  font-size: 0.92rem; color: rgba(246, 245, 242, 0.72);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], [data-reveal] { opacity: 1; transform: none; transition: none; }
}
