/* Café 't Neutje — "Neon boven de toog". Alle waarden komen uit assets/DESIGN.md. */

:root {
  --canvas: #2a1e17;
  --surface: #352720;
  --raised: #43322a;
  --shade: 42 30 23; /* canvas als rgb-kanalen, voor scrims met transparantie */
  --cream: #f3e9d6;
  --dim: #bfb19b;
  --neon: #f6c94b;
  --neon-hover: #ffd866;
  --on-neon: #120d0a;
  --kozijn: #efe4cf;
  --ink: #1a120d;
  --ink-hover: #32241b;
  --ink-soft: #4a3b30;
  --error: #ff8a73;
  --error-ink: #9b2c17;
  --field: #ffffff;

  --line: rgb(191 177 155 / 0.22);
  --line-ink: rgb(26 18 13 / 0.16);

  --font-display: "Grenze Gotisch", Georgia, serif;
  --font-ui: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;

  --section: clamp(56px, 8vw, 88px);
  --gutter: clamp(20px, 5vw, 48px);
  --max: 1200px;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --glow: drop-shadow(0 0 10px rgb(246 201 75 / 0.45));
  --wissel-h: 34px;
  --header-h: calc(72px + var(--wissel-h)); /* balk + wissel naar de overbuur */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--cream);
  font: 400 17px/1.6 var(--font-ui);
  font-optical-sizing: auto;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }

.sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important;
}
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--neon); color: var(--on-neon); padding: 12px 16px; font-weight: 700; }
.skip:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }
.section--kozijn :focus-visible { outline-color: var(--ink); }

.shell { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.display { font: 800 clamp(40px, 7.4vw, 88px)/1 var(--font-display); margin-bottom: 20px; }
.h2 { font: 700 clamp(32px, 4.6vw, 52px)/1.05 var(--font-display); margin-bottom: 16px; }
.h3 { font: 700 clamp(20px, 2vw, 24px)/1.2 var(--font-ui); letter-spacing: -0.01em; margin-bottom: 8px; }
.lede { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; letter-spacing: -0.005em; max-width: 52ch; }
.label {
  display: block;
  font: 700 clamp(12px, 1vw, 13px)/1.3 var(--font-ui);
  font-variation-settings: "wdth" 75;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--dim);
}
.label--neon { color: var(--neon); }
.small { font-size: 14px; line-height: 1.5; }
.dim { color: var(--dim); }
.section p, .section li { max-width: 62ch; }

.link {
  color: var(--neon);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  font-weight: 600;
  display: inline-block;
  padding: 10px 0;
}
.link:hover { text-decoration-thickness: 2px; }
.section--kozijn .link { color: var(--ink); }

/* ---------- Buttons (vijf staten) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 22px;
  border-radius: 999px; border: 1px solid transparent;
  font: 700 16px/1 var(--font-ui); text-decoration: none; cursor: pointer;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease);
}
.btn .icon { width: 18px; height: 18px; flex: none; }
.btn__arrow { width: 16px; height: 16px; flex: none; transition: transform 200ms var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }

.btn--primary { background: var(--neon); color: var(--on-neon); }
.btn--primary:hover { background: var(--neon-hover); }
.btn--outline { border-color: rgb(243 233 214 / 0.4); color: var(--cream); }
.btn--outline:hover { border-color: var(--cream); background: rgb(243 233 214 / 0.06); }
.btn--ink { background: var(--ink); color: var(--kozijn); }
.btn--ink:hover { background: var(--ink-hover); }
.btn--outline-ink { border-color: rgb(26 18 13 / 0.32); color: var(--ink); }
.btn--outline-ink:hover { border-color: var(--ink); background: rgb(26 18 13 / 0.05); }
.btn--small { min-height: 44px; padding: 10px 18px; font-size: 15px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.actions--stack { flex-direction: column; align-items: flex-start; margin-top: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 40;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 250ms var(--ease), border-color 250ms var(--ease);
}
.site-header.is-scrolled { background: var(--canvas); border-bottom-color: var(--line); }
.site-header { display: flex; flex-direction: column; }
.site-header__bar { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* Wissel naar de overbuur: Old Little Dublin, recht tegenover, zelfde eigenaar. */
.wissel { height: var(--wissel-h); flex: none; background: rgb(0 0 0 / 0.38); border-bottom: 1px solid var(--line); }
.wissel__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wissel__note { display: none; margin: 0; font: 600 12px/1 var(--font-ui); letter-spacing: 0.06em; color: var(--dim); }
.wissel__keuze { display: flex; margin-left: auto; padding: 2px; border: 1px solid var(--line); border-radius: 999px; }
.wissel__optie {
  display: inline-flex; align-items: center; min-height: 24px; padding: 0 12px; border-radius: 999px;
  font: 700 12px/1 var(--font-ui); text-decoration: none; color: var(--cream); white-space: nowrap;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.wissel__optie:hover { color: var(--neon); }
.wissel__optie[aria-current="true"] { background: var(--neon); color: var(--on-neon); }
@media (min-width: 640px) { .wissel__note { display: block; } }

.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.wordmark__name { font: 800 26px/1 var(--font-display); color: var(--cream); }
.wordmark__tag { font: 700 11px/1.3 var(--font-ui); font-variation-settings: "wdth" 75; letter-spacing: 0.14em; text-transform: uppercase; color: var(--neon); margin-top: 4px; }

.nav { display: none; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 22px; }
.nav__link {
  display: inline-block; padding: 10px 0; text-decoration: none;
  font: 500 15px/1 var(--font-ui); color: var(--cream);
  border-bottom: 2px solid transparent;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.nav__link:hover { color: var(--neon); }
.nav__link[aria-current="page"] { color: var(--neon); border-bottom-color: var(--neon); }

.menu-toggle {
  width: 48px; height: 48px; display: grid; place-items: center;
  background: none; border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 20px; height: 2px; background: var(--cream); position: relative; content: "";
}
.menu-toggle__bars::before { position: absolute; top: -6px; }
.menu-toggle__bars::after { position: absolute; top: 6px; }

.menu { position: fixed; inset: 0; z-index: 60; background: var(--canvas); display: flex; flex-direction: column; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu__top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; flex: none; }
.menu__close { width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--line); background: none; font-size: 28px; line-height: 1; cursor: pointer; }
.menu__list { padding-top: 24px; padding-bottom: 24px; }
.menu__list a { display: block; padding: 10px 0; font: 600 28px/1.2 var(--font-ui); text-decoration: none; border-bottom: 1px solid var(--line); }
.menu__list a[aria-current="page"] { color: var(--neon); }
.menu__foot { padding-bottom: 40px; }
.menu__foot p { color: var(--dim); margin-top: 12px; }
html.menu-open { overflow: hidden; }

@media (min-width: 1080px) {
  .nav { display: flex; }
  .menu-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(52vh, 460px);
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 48px) 0 56px;
}
.hero--home { min-height: min(100svh, 900px); padding-bottom: 64px; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero--home .hero__img { object-position: 50% 60%; } /* vaten en taps in beeld */
/* Mobiel: verticaal verloop, donker alleen waar de tekst staat, zodat de foto zichtbaar blijft. */
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, var(--canvas) 0%, rgb(var(--shade) / 0.6) 45%, rgb(var(--shade) / 0.15) 75%, rgb(var(--shade) / 0.45) 100%);
}
.hero__inner { display: grid; gap: 40px; align-items: end; }
.hero__copy { max-width: 640px; }
/* Mobiel: op de home staat de foto als blok boven de tekst, zodat de neon in beeld blijft. */
@media (max-width: 899px) {
  .hero--home { display: block; min-height: 0; padding: 0 0 48px; }
  .hero--home .hero__img { position: relative; z-index: auto; height: min(58svh, 500px); object-position: 50% 55%; }
  .hero--home .hero__scrim { bottom: auto; height: min(58svh, 500px); background: linear-gradient(0deg, var(--canvas) 0%, rgb(var(--shade) / 0) 45%, rgb(var(--shade) / 0) 75%, rgb(var(--shade) / 0.6) 100%); }
  .hero--home .hero__inner { position: relative; margin-top: -56px; }
}
@media (min-width: 900px) {
  .hero--home .hero__inner { grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr); }
  /* Donker aan de tekstkant, open vanaf 75%; bovenin een band zodat de navigatie leesbaar blijft. */
  .hero__scrim {
    background:
      linear-gradient(180deg, rgb(var(--shade) / 0.55) 0, rgb(var(--shade) / 0) calc(var(--header-h) + 24px)),
      linear-gradient(90deg, rgb(var(--shade) / 0.72) 0%, rgb(var(--shade) / 0.38) 45%, rgb(var(--shade) / 0) 75%),
      linear-gradient(0deg, var(--canvas) 0%, rgb(var(--shade) / 0.6) 16%, rgb(var(--shade) / 0) 45%); /* onderrand loopt over in de pagina */
  }
}
/* Werken bij: hogere hero, zodat het neonbord en de barmedewerker er allebei op passen. */
.hero--helder { min-height: min(72vh, 640px); }
.hero--helder .hero__img { object-position: 50% 6%; }

/* ---------- Het Bord: het enige element met gloed ---------- */
.bord {
  --k: 30px;
  position: relative; isolation: isolate;
  padding: 36px 32px 28px;
  text-align: center;
  max-width: 420px; width: 100%;
  justify-self: start;
}
.bord::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border: 2px solid var(--neon);
  outline: 1px solid var(--neon); outline-offset: -9px;
  background: rgb(var(--shade) / 0.72);
  filter: var(--glow);
}
.bord__krul, .bord__zij { position: absolute; color: var(--neon); filter: var(--glow); }
.bord__krul { width: var(--k); height: var(--k); }
.bord__krul--tl { top: -12px; left: -12px; }
.bord__krul--tr { top: -12px; right: -12px; transform: scaleX(-1); }
.bord__krul--bl { bottom: -12px; left: -12px; transform: scaleY(-1); }
.bord__krul--br { bottom: -12px; right: -12px; transform: scale(-1, -1); }
.bord__zij { top: 50%; width: 34px; height: 20px; margin-top: -10px; }
.bord__zij--l { left: -30px; }
.bord__zij--r { right: -30px; transform: scaleX(-1); }
.bord__tijden { color: var(--cream); font-weight: 600; margin: 16px auto 20px; }
.bord__nummer { color: var(--dim); font-size: 14px; margin: 12px auto 0; }
@media (max-width: 400px) { .bord__zij { display: none; } .bord { padding: 32px 20px 24px; } }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--neon);
  font: 700 13px/1.2 var(--font-ui); font-variation-settings: "wdth" 75;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--neon);
  margin: 0;
}
.chip__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
[data-state="closed"] .chip__dot { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--surface { background: var(--surface); }
.section--kozijn { background: var(--kozijn); color: var(--ink); }
.section--kozijn .label { color: var(--ink-soft); }
.section--page { min-height: min(80vh, 720px); display: flex; align-items: center; padding-top: calc(var(--header-h) + var(--section)); }
.section__head { margin-bottom: 32px; }
.section__head .lede { margin-bottom: 0; }

.split { display: grid; gap: 40px; align-items: start; }
.split--media { align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .split--form { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
}
.media { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.media--portrait { aspect-ratio: 4 / 5; max-width: 480px; object-position: 50% 40%; }
.cta { max-width: 720px; }
.more { margin-top: 24px; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: var(--surface); border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; transition: border-color 200ms var(--ease); }
.section--surface .card { background: var(--canvas); }
.card:hover { border-color: var(--neon); }
.card p:last-of-type { margin-bottom: 8px; }
.card .link { margin-top: auto; }

/* ---------- Band ---------- */
.band { position: relative; margin: 0; }
.band__img { width: 100%; height: min(70vh, 640px); object-fit: cover; object-position: 50% 40%; } /* lichtsnoeren en neonbord in beeld */
@media (max-width: 899px) { .band__img { object-position: 88% 50%; } }
.band__cap { position: absolute; left: 0; right: 0; bottom: 24px; }
.band__cap .label { display: inline-block; background: var(--canvas); padding: 8px 12px; margin: 0; }

/* ---------- Agenda-affiche ---------- */
.affiche { border-top: 1px solid var(--line); }
.affiche__row { display: grid; gap: 8px 32px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.affiche__when { margin: 0; }
.affiche__when .label { margin-bottom: 4px; }
.affiche__name { font: 700 clamp(28px, 3vw, 36px)/1.05 var(--font-display); margin-bottom: 8px; }
.affiche__row p:last-child { margin: 0; color: var(--dim); }
@media (min-width: 760px) { .affiche__row { grid-template-columns: 200px minmax(0, 1fr); align-items: baseline; } }

/* ---------- Lijsten (menukaart, arrangementen, tijden) ---------- */
.menu-groups { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); margin-bottom: 32px; }
@media (min-width: 900px) { .menu-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 56px; } }
.rows { border-top: 1px solid var(--line); }
.row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row__name { font-weight: 600; }
.row__note { color: var(--dim); }
.section--kozijn .rows, .section--kozijn .row { border-color: var(--line-ink); }
.section--kozijn .row__note { color: var(--ink-soft); }

.hours { border-top: 1px solid var(--line); margin: 8px 0 12px; }
.hours__row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours__row.is-today { color: var(--neon); font-weight: 700; }
.hours__row.is-today span:first-child::before { content: "● "; }
.hours__row.is-today span:first-child::after { content: " (vandaag)"; }

.facts { margin: 0 0 8px; display: grid; gap: 20px; }
.facts dd { margin: 0; }
.facts a { color: var(--neon); display: inline-block; padding: 10px 0; }
.plain li { margin-bottom: 8px; }

/* ---------- Formulier (op kozijn) ---------- */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field .label { margin: 0; color: var(--ink-soft); }
.field-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form input, .form select, .form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--field); color: var(--ink);
  border: 1px solid rgb(26 18 13 / 0.32); border-radius: 0;
  transition: border-color 200ms var(--ease);
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 1px; }
.form [aria-invalid="true"] { border-color: var(--error-ink); border-width: 2px; }
.field__error { color: var(--error-ink); font-size: 14px; font-weight: 600; margin: 0; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { padding: var(--section) 0 calc(40px + 64px); border-top: 1px solid var(--line); }
.site-footer__top { display: grid; gap: 40px; align-items: center; margin-bottom: 56px; }
.site-footer__name { font: 800 clamp(40px, 6vw, 72px)/1 var(--font-display); margin: 0; }
.site-footer__name span { display: block; font: 700 13px/1.3 var(--font-ui); font-variation-settings: "wdth" 75; letter-spacing: 0.14em; text-transform: uppercase; color: var(--neon); margin-top: 12px; }
.site-footer__cols { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); padding-top: 40px; border-top: 1px solid var(--line); }
.site-footer__cols a { color: var(--dim); text-decoration: none; display: inline-block; padding: 9px 0; }
.site-footer__cols .plain li { margin-bottom: 0; }
.site-footer__cols a:hover { color: var(--neon); }
.site-footer__cols .link { color: var(--neon); }
.site-footer__legal { color: var(--dim); font-size: 14px; margin: 40px 0 0; }
@media (min-width: 640px) { .site-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .site-footer__top { grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); } }
@media (min-width: 1080px) { .site-footer { padding-bottom: 40px; } }

/* ---------- Belbalk mobiel ---------- */
.callbar {
  position: fixed; inset: auto 0 0; z-index: 30; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 var(--gutter); background: var(--canvas); border-top: 1px solid var(--line);
  transition: transform 250ms var(--ease);
}
.callbar.is-hidden { transform: translateY(100%); }
.callbar__status { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--neon); font: 700 13px/1.2 var(--font-ui); font-variation-settings: "wdth" 75; letter-spacing: 0.1em; text-transform: uppercase; min-width: 0; }
@media (min-width: 1080px) { .callbar { display: none; } }

/* ---------- Reveal en aanspringen: alleen met JS, alleen onder de vouw ---------- */
html[data-js] .reveal.is-armed { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
html[data-js] .reveal.is-armed.is-in { opacity: 1; transform: none; }
/* Het Bord springt aan: alleen het neon dimt even, de inhoud is altijd zichtbaar
   (ook als animaties stilstaan: print, screenshot, achtergrondtab). */
html[data-js] .hero .bord::before, html[data-js] .hero .bord__krul, html[data-js] .hero .bord__zij { animation: aan 500ms steps(2, end) 300ms backwards; }
@keyframes aan { from { opacity: 0.35; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html[data-js] .reveal.is-armed { opacity: 1; transform: none; }
  html:focus-within { scroll-behavior: auto; }
}

@media print {
  .site-header, .menu, .callbar, .hero__scrim { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #000; }
}
