/* Royale 25 – stijlen (mobile first) */

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-500.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --zwart: #0B0B0B;
  --inkt: #1A1A1A;
  --ivoor: #F6F2EA;
  --zand: #ECE5D8;
  --platina: #B9BEC3;
  --platina-licht: #D9DDE1;
  --grijs: #5A6066;          /* kleine tekst op ivoor (contrast > 4.5:1) */
  --koper: #9E4F2C;          /* belknop, witte tekst erop */
  --koper-donker: #823F22;

  --titel: "Playfair Display", Georgia, "Times New Roman", serif;
  --label: "Cinzel", Georgia, serif;
  --tekst: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --header-h: 64px;
  --belbalk-h: 60px;
  --rand: 1.25rem;
  --max: 70rem;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivoor);
  color: var(--inkt);
  font: 400 1.0625rem/1.65 var(--tekst);
  padding-bottom: var(--belbalk-h); /* ruimte voor de vaste belknop op gsm */
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--titel); font-weight: 500; line-height: 1.15; margin: 0; text-wrap: balance; }
.kaart__intro { text-wrap: balance; }
.kaart__intro span, .zin { display: block; text-wrap: balance; } /* elke zin op een eigen regel */
h2 { font-size: clamp(2rem, 6vw, 2.75rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--koper); outline-offset: 3px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--rand); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--zwart); color: #fff; padding: .75rem 1rem; }
.skip:focus { top: 1rem; }
.klein { font-size: .9375rem; color: var(--grijs); }

.label {
  font-family: var(--label);
  font-weight: 600;
  font-size: .8125rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--grijs);
  margin-bottom: .75rem;
}

/* Ornament uit het logo: lijntje – ruitje – lijntje */
.ornament {
  height: 12px;
  margin: 1.1rem 0 1.75rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='130' height='12'%3E%3Cg fill='%23A9AEB3'%3E%3Crect y='5.5' width='52' height='1'/%3E%3Crect x='78' y='5.5' width='52' height='1'/%3E%3Crect x='61.5' y='2.5' width='7' height='7' transform='rotate(45 65 6)'/%3E%3C/g%3E%3C/svg%3E") center / 130px 12px no-repeat;
}
.ornament--links { background-position: left center; }

/* ---------- Knoppen ---------- */
.knop {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.5rem;
  background: var(--koper); color: #fff;
  border: 2px solid var(--koper); border-radius: 999px;
  font: 600 1rem/1.2 var(--tekst); text-decoration: none;
  transition: background-color .2s, border-color .2s, color .2s;
}
.knop:hover { background: var(--koper-donker); border-color: var(--koper-donker); }
.knop--klein { min-height: 44px; padding: .5rem 1.1rem; font-size: .9375rem; }
.knop--rand { background: transparent; border-color: var(--platina); color: #fff; }
.knop--rand:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.knop--rand-donker { background: transparent; border-color: var(--inkt); color: var(--inkt); }
.knop--rand-donker:hover { background: var(--inkt); border-color: var(--inkt); color: #fff; }

/* ---------- Placeholders (nog aan te leveren) ---------- */
.placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: repeating-linear-gradient(135deg, #2a2a2a 0 14px, #262626 14px 28px);
  color: var(--platina-licht);
  font-size: .9375rem;
  padding: 1rem;
}
.placeholder span { border: 1px dashed var(--platina); padding: .35rem .7rem; border-radius: 4px; }
.placeholder--blok, .placeholder--licht {
  background: repeating-linear-gradient(135deg, #fff8ec 0 14px, #fbf3e4 14px 28px);
  color: var(--inkt);
  border: 1px dashed #b49a74;
  border-radius: 8px;
  display: block; text-align: left;
}
.placeholder--blok p { margin: 0; }
.placeholder-tekst { background: #fff3cd; color: #5c4400; padding: 0 .25em; border-radius: 3px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--zwart); color: #fff;
  border-bottom: 1px solid #2a2a2a;
}
.header__inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.header__logo { display: flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; min-height: 44px; }
.header__logo span { font-family: var(--label); font-weight: 600; letter-spacing: .18em; font-size: .95rem; color: var(--platina-licht); }
.header__bel { display: none; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 44px; padding: 0 .75rem; margin-right: -.75rem;
  background: none; border: 0; color: #fff; font: 600 .9375rem var(--tekst); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform .2s, background-color .2s;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--zwart); border-bottom: 1px solid #2a2a2a; }
.nav.is-open { display: block; }
.nav ul { list-style: none; margin: 0; padding: .5rem var(--rand) 1rem; }
.nav a { display: block; padding: .85rem 0; color: var(--platina-licht); text-decoration: none; font-size: 1.125rem; border-bottom: 1px solid #222; }
.nav a:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--zwart); color: #fff; overflow: hidden; isolation: isolate; }
.hero__foto { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .55; align-items: flex-end; padding-bottom: 1.25rem; }
img.hero__foto { opacity: .45; }
.hero__inhoud { display: flex; flex-direction: column; align-items: center; text-align: center; padding-block: 2.5rem 6rem; }
.hero__foto.placeholder { font-size: .8125rem; }
.hero__logo { width: min(52vw, 220px); height: auto; margin-bottom: 1.5rem; }
.hero__titel { text-shadow: 0 2px 16px rgba(0,0,0,.7); display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.hero__titel-groot { font-size: clamp(1.6rem, 7.6vw, 4rem); white-space: nowrap; line-height: 1; letter-spacing: .01em; }
.hero__plaats {
  display: flex; align-items: center; gap: .9rem;
  font-family: var(--label); font-weight: 600;
  font-size: clamp(.95rem, 3.8vw, 1.25rem); letter-spacing: .35em;
  padding-left: .35em; /* compenseert de letterafstand na de laatste letter */
  text-transform: uppercase; color: var(--platina-licht);
}
.hero__plaats::before, .hero__plaats::after { content: ""; width: 2.5rem; height: 1px; background: var(--platina); }
.hero__knoppen { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }

/* Balkje bovenaan met "nu open / gesloten"; verborgen zolang er geen status is (bv. zonder JavaScript) */
.statusbalk { background: #1c1c1c; color: #fff; font-size: .875rem; }
.statusbalk:has(.status[hidden]) { display: none; }
.statusbalk__inner { display: flex; justify-content: center; align-items: center; gap: 1.25rem; min-height: 36px; }
.statusbalk a { display: none; color: var(--platina-licht); }
.status { display: inline-flex; align-items: center; gap: .55rem; margin: 0; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9aa0a6; }
.status.is-open::before { background: #4cc38a; }

/* ---------- Secties ---------- */
.sectie { padding-block: 4rem; text-align: center; }
.sectie--zand { background: var(--zand); }
.sectie--donker { background: var(--zwart); color: #fff; }
.sectie--donker .label { color: var(--platina); }

/* Openingsuren */
.uren { display: grid; gap: 2.5rem; }
.uren__tijden { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2rem; margin: 0 0 1.25rem; }
.uren__tijden dt { font-family: var(--label); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: .8125rem; color: var(--grijs); }
.uren__tijden dd { margin: .25rem 0 0; font-family: var(--titel); font-size: clamp(1.25rem, 5.5vw, 1.5rem); white-space: nowrap; }
.week { width: 100%; max-width: 26rem; margin-inline: auto; border-collapse: collapse; text-align: left; }
.week th, .week td { padding: .7rem .75rem; border-bottom: 1px solid #d9d1c2; }
.week th { font-weight: 600; }
.week td { text-align: right; }
.week tr.is-vandaag { background: var(--zwart); color: #fff; }
.week tr.is-vandaag .klein { color: var(--platina-licht); }
.week tr.is-vandaag th::after { content: " · vandaag"; font-weight: 400; color: var(--platina); }

/* Huisspecialiteiten */
.specialiteiten { display: grid; gap: 2.5rem; text-align: left; }
.special { display: flex; flex-direction: column; gap: 1.25rem; }
.special__foto { aspect-ratio: 4 / 5; width: 100%; height: auto; object-fit: cover; border-radius: 4px; }
.special h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: 1.6rem; color: #fff; }
.special__prijs { font-size: 1.15rem; color: var(--platina); white-space: nowrap; }
.special__tekst > p { color: var(--platina-licht); margin: .4rem 0 1rem; }
.special__quote { margin: 0; padding-left: 1rem; border-left: 1px solid var(--platina); }
.special__quote p { margin: 0 0 .35rem; font-family: var(--titel); font-size: 1.1rem; color: #fff; }
.special__quote p::before { content: "“"; }
.special__quote p::after { content: "”"; }
.special__quote footer { font-size: .875rem; color: var(--platina); }
.specialiteiten__meer { margin: 2.5rem 0 0; }

/* Menukaart */
.kaart__intro { max-width: 46rem; margin-inline: auto; margin-bottom: 2rem; }
/* Rij knoppen naar de rubrieken: blijft bovenaan plakken, op gsm opzij te schuiven */
.kaart__nav {
  position: sticky; top: var(--header-h); z-index: 20;
  display: flex; gap: .5rem; justify-content: safe center;
  margin: 0 calc(-1 * var(--rand)) 2rem; padding: .75rem var(--rand);
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  background: var(--zand); border-bottom: 1px solid #d9d1c2;
}
.kaart__nav::-webkit-scrollbar { display: none; }
.kaart__nav a {
  flex: none; scroll-snap-align: start;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.15rem;
  background: var(--zwart); color: #fff; border-radius: 999px;
  font-weight: 600; font-size: .9375rem; text-decoration: none; white-space: nowrap;
  transition: background-color .2s;
}
.kaart__nav a:hover { background: #333; }
.kaart__nav a[aria-selected="true"] { background: var(--koper); }
.kaart__nav a:focus-visible { outline-offset: -3px; }
.kaart__menu {
  max-width: 40rem; margin: 0 auto 2.5rem; padding: 1.5rem;
  background: var(--zwart); color: var(--platina-licht); border-radius: 6px;
}
.kaart__menu p { margin: 0; }
.kaart__menu-titel { font-family: var(--titel); font-size: 1.75rem; color: #fff; margin-bottom: .4rem !important; }
.kaart__menu-titel span { color: var(--platina); }
.kaart__menu .supp { border-color: var(--platina); color: #fff; }
.kaart__rubriek { max-width: 40rem; margin: 0 auto 2.5rem; text-align: left; scroll-margin-top: calc(var(--header-h) + 88px); /* header + knoppenrij */ }
.kaart__rubriek h3 { text-align: center; font-size: 1.6rem; margin-bottom: .5rem; }
.allergenen { display: block; font-size: .8125rem; }
.supp {
  display: inline-block; margin-left: .25rem; padding: 0 .45rem;
  border: 1px solid #b49a74; border-radius: 999px;
  font-size: .75rem; font-weight: 600; white-space: nowrap; color: var(--inkt);
}

/* Dranken en allergenen: openklappen (werkt zonder JavaScript) */
.dranken, .kaart__allergenen { border-bottom: 1px solid #c9bfae; }
.dranken:first-of-type { border-top: 1px solid #c9bfae; }
.dranken summary, .kaart__allergenen summary {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 52px; cursor: pointer; font-weight: 600; list-style: none;
}
.dranken summary::-webkit-details-marker, .kaart__allergenen summary::-webkit-details-marker { display: none; }
.dranken summary::after, .kaart__allergenen summary::after { content: "+"; font-family: var(--titel); font-size: 1.5rem; color: var(--grijs); }
.dranken[open] summary::after, .kaart__allergenen[open] summary::after { content: "–"; }
.dranken__lijst { list-style: none; margin: 0 0 1rem; padding: 0; }
.dranken__lijst li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px dotted #c9bfae; }
.dranken__lijst li span:last-child { white-space: nowrap; }
.kaart__rubriek > .klein { margin-top: 1rem; }
.kaart__allergenen { max-width: 40rem; margin: 0 auto; text-align: left; border-top: 1px solid #c9bfae; }
.kaart__allergenen ol { columns: 2; margin: 0 0 1rem; padding-left: 1.5rem; }
.kaart__noot { margin-top: 1.5rem; }
.gerechten { list-style: none; margin: 0; padding: 0; }
.gerecht { display: grid; grid-template-columns: 1fr auto; gap: .15rem 1rem; padding: .9rem 0; border-bottom: 1px dotted #b8ad99; }
.gerecht__naam { font-weight: 600; }
.gerecht__prijs { font-family: var(--titel); font-size: 1.15rem; }
.gerecht__info { grid-column: 1 / -1; color: var(--grijs); font-size: .9375rem; }
.tag { display: inline-block; margin-left: .4rem; padding: .05rem .5rem; border-radius: 999px; background: #dfe8d6; color: #2e4a1f; font-size: .75rem; font-weight: 600; vertical-align: middle; }

/* Over ons */
.over { text-align: left; }
.over__tekst { max-width: 40rem; margin-inline: auto; }
.over__namen { font-family: var(--titel); font-size: 1.2rem; margin-top: 1.5rem; }

/* Galerij */
.galerij { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.galerij > * { aspect-ratio: 1; border-radius: 4px; }
.galerij__groot { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.galerij img { width: 100%; height: 100%; object-fit: cover; }
.hero__foto { object-position: 35% 73%; }

/* Reviews */
.reviews { display: grid; gap: 1rem; text-align: left; max-width: 40rem; margin-inline: auto; }
.review {
  display: flex; flex-direction: column;
  margin: 0; padding: 1.5rem;
  background: #fff; border: 1px solid #e4dccd; border-radius: 6px;
}
.sterren { margin: 0 0 .75rem; color: var(--koper); letter-spacing: .15em; font-size: 1rem; }
.review blockquote { margin: 0 0 1rem; font-family: var(--titel); font-size: 1.15rem; line-height: 1.5; }
.review blockquote p { margin: 0; }
.review blockquote p::before { content: "“"; }
.review blockquote p::after { content: "”"; }
.review figcaption { margin-top: auto; font-size: .9375rem; font-weight: 600; color: var(--grijs); }
.reviews__meer { margin-top: 2rem; }

/* Praktisch */
.praktisch { display: grid; gap: 2.5rem; text-align: left; }
.praktisch address { font-style: normal; font-size: 1.15rem; margin-bottom: 1.5rem; }
.praktisch__knoppen { display: flex; flex-wrap: wrap; gap: .75rem; }
.feiten { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.feiten li { display: flex; gap: 1rem; align-items: flex-start; }
.feiten svg { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--inkt); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.feiten strong { display: block; }
.feiten span { color: var(--grijs); }

/* Footer */
.footer { background: var(--zwart); color: var(--platina-licht); padding-block: 3rem; text-align: center; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.footer p { margin: 0; }
.footer .klein { color: var(--platina); }
.footer a { color: #fff; display: inline-block; padding-block: .7rem; } /* aanraakvlak ≥ 44 px */

/* Vaste belknop (gsm) */
.belbalk {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  height: var(--belbalk-h);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--koper); color: #fff;
  font-weight: 600; font-size: 1.0625rem; text-decoration: none;
}
.belbalk svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.belbalk:hover { background: var(--koper-donker); }

/* ---------- Tablet ---------- */
@media (min-width: 48rem) {
  .galerij { grid-template-columns: repeat(4, 1fr); }
  .galerij__groot { grid-column: span 2; grid-row: span 2; aspect-ratio: 1; }
  .specialiteiten { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .praktisch { grid-template-columns: 1fr 1fr; align-items: start; }
  .hero__inhoud { padding-block: 4rem 5.5rem; }
}

/* ---------- Desktop ---------- */
@media (min-width: 64rem) {
  :root { --header-h: 76px; --belbalk-h: 0px; }
  .statusbalk a { display: inline-flex; align-items: center; min-height: 36px; }
  .belbalk { display: none; }
  .nav-toggle { display: none; }
  .nav { display: block; position: static; background: none; border: 0; }
  .nav ul { display: flex; gap: 2rem; padding: 0; }
  .nav a { border: 0; padding: .5rem 0; font-size: 1rem; }
  .header__bel { display: inline-flex; }

  .hero { min-height: min(86vh, 760px); display: flex; align-items: center; }
  .hero__inhoud { padding-block: 5rem; }

  .uren { grid-template-columns: 1fr 1fr; align-items: center; text-align: left; }
  .uren .ornament { background-position: left center; }
  .uren__tijden { justify-content: flex-start; }
  .week { margin: 0; }

  .sectie { padding-block: 6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
