/* =========================================================================
   Brasserie Stadhuis, eigen stylesheet (los van de sjabloonketen)
   ========================================================================= */

:root {
  --c-ink: #15120d;
  --c-ink-2: #211b13;
  --c-cream: #f4efe2;
  --c-paper: #faf6ec;
  --c-text: #241f17;
  --c-text-soft: #5c5446;
  --c-brass: #ab8656;
  --c-brass-licht: #d9b98a;
  --c-brass-deep: #7d5e38;
  --c-wine: #4a1f28;
  --c-line: rgba(36, 31, 23, 0.14);
  --c-line-licht: rgba(255, 255, 255, 0.18);
  --kopbalk-hoogte: 76px;

  --font-serif: Fraunces, 'Iowan Old Style', 'Palatino Linotype', Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, sans-serif;

  --opening-achtergrond: var(--c-ink);
  --opening-demping: .62;
  --opening-passe: #efe8da;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--kopbalk-hoogte);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--c-cream);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 540;
  color: var(--c-text);
  margin: 0 0 1.1rem;
}

h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.08; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; }

a { color: inherit; }

*:focus-visible { outline: 2px solid var(--c-brass); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--c-ink); color: #fff; padding: .8rem 1.2rem;
  border-radius: 4px; text-decoration: none; transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

/* ---- knoppen ------------------------------------------------------------ */

.knop {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.75rem;
  font: 600 .8rem/1 var(--font-sans);
  letter-spacing: .07em; text-transform: uppercase;
  border-radius: 3px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; background: none; color: inherit;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .2s ease;
}
.knop--brass { background: var(--c-brass); color: #1b1710; }
.knop--brass:hover { background: var(--c-brass-deep); transform: translateY(-1px); }
.knop--omlijnd { border-color: currentColor; }
.knop--omlijnd:hover { background: rgba(255, 255, 255, .08); transform: translateY(-1px); }

/* ---- kicker (opmaatregel + icoon) --------------------------------------- */

.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 600 .78rem/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-brass-deep); margin: 0 0 1.1rem;
}
.kicker--licht { color: var(--c-brass-licht); }
.kicker__icoon { width: 18px; height: 18px; flex: 0 0 auto; }

.menukop { max-width: 44rem; }
.menukop__intro { color: var(--c-text-soft); font-size: 1.05rem; }
.menukop__intro--licht { color: rgba(255, 255, 255, .75); }

.licht { color: #fff; }

/* =========================================================================
   KOPBALK
   ========================================================================= */

.kopbalk {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  color: #fff;
  transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.kopbalk.is-vast {
  background: rgba(244, 239, 226, .94);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
  color: var(--c-text);
}
.kopbalk__binnen {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  max-width: 1500px; margin: 0 auto;
  padding: 1.35rem clamp(1.25rem, 4vw, 3rem);
}
.kopbalk__merk { text-decoration: none; color: inherit; line-height: 1.1; }
.kopbalk__merk-naam {
  display: block; font-family: var(--font-serif); font-style: italic; font-weight: 540;
  font-size: 1.25rem;
}
.kopbalk__merk-plaats {
  display: block; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  opacity: .72; margin-top: .15rem;
}
.kopbalk__nav { display: flex; gap: 2rem; }
.kopbalk__nav a {
  text-decoration: none; color: inherit; font-size: .88rem; font-weight: 500;
  letter-spacing: .02em; opacity: .88; transition: opacity .2s ease;
}
.kopbalk__nav a:hover { opacity: 1; }
.kopbalk__burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 34px; height: 34px; background: none; border: none; cursor: pointer; padding: 0; color: inherit;
}
.kopbalk__burger span { display: block; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.kopbalk__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.kopbalk__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.kopbalk__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobielnav {
  position: fixed; top: var(--kopbalk-hoogte); left: 0; right: 0; bottom: 0; z-index: 38;
  background: var(--c-cream); padding: 1.5rem clamp(1.25rem, 6vw, 3rem) 2.5rem;
  display: flex; flex-direction: column; gap: .25rem; overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .18);
}
.mobielnav[hidden] { display: none; }
.mobielnav a {
  text-decoration: none; color: var(--c-text); font-size: 1.1rem; font-family: var(--font-serif);
  padding: .85rem 0; border-bottom: 1px solid var(--c-line);
}
.mobielnav .knop { margin-top: 1.25rem; align-self: flex-start; }

@media (max-width: 900px) {
  .kopbalk__nav, .kopbalk__cta { display: none; }
  .kopbalk__burger { display: flex; }
}

/* =========================================================================
   OPENING: eigen koptekst, knoppen en kleuren bovenop opening.css
   ========================================================================= */

.opening__kop {
  padding: 0 clamp(1.25rem, 6vw, 4.5rem) clamp(3.5rem, 11svh, 6rem);
  color: #fff; max-width: 42rem;
}
.opening__kicker {
  font: 600 .8rem/1 var(--font-sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--c-brass-licht); margin: 0 0 1.2rem;
}
.opening__titel {
  font-family: var(--font-serif); font-weight: 560; font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: .98; letter-spacing: -.01em; margin: 0 0 1.2rem; color: #fff;
}
.opening__zin-vast {
  font-family: var(--font-sans); font-weight: 400; font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.55; max-width: 34rem; color: rgba(255, 255, 255, .88); margin: 0 0 2.1rem;
}
.opening__knoppen { display: flex; gap: 1rem; flex-wrap: wrap; }
.opening__knoppen .knop--omlijnd { border-color: rgba(255, 255, 255, .6); color: #fff; }

.opening__slot p {
  font-family: var(--font-serif); font-style: italic; font-weight: 440;
  font-size: clamp(1.25rem, 3vw, 2rem); color: #fff; margin: 0;
  padding: 0 clamp(1.25rem, 6vw, 4.5rem) clamp(3rem, 8svh, 5rem);
  max-width: 38rem;
}
.opening__wenk { color: rgba(255, 255, 255, .78); }
@keyframes wenk-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
.opening__wenk-stip { animation: wenk-bounce 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .opening__wenk-stip { animation: none; } }

/* =========================================================================
   SECTIES: algemene opbouw
   ========================================================================= */

.sectie { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.sectie__binnen { max-width: 1240px; margin: 0 auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }

/* ---- verhaal -------------------------------------------------------------- */

.verhaal__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.verhaal__tekst p { color: var(--c-text-soft); line-height: 1.68; max-width: 38rem; }
.verhaal__slot {
  border-top: 1px solid var(--c-line); padding-top: 1.3rem; margin-top: 1.5rem;
  font-family: var(--font-serif); font-style: italic; color: var(--c-text) !important;
}
.verhaal__beeld { margin: 0; }
.verhaal__beeld img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; box-shadow: 0 25px 50px -20px rgba(21, 18, 13, .35); }

/* ---- full-bleed band ------------------------------------------------------ */

.band-strook { position: relative; height: clamp(260px, 42vw, 460px); overflow: hidden; }
.band-strook__foto { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; filter: grayscale(1) contrast(1.05); }
.band-strook__laag {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21, 18, 13, .1) 0%, rgba(21, 18, 13, .4) 55%, rgba(21, 18, 13, .78) 100%);
}
.band-strook__zin {
  position: absolute; left: 50%; bottom: clamp(1.75rem, 5vw, 3.25rem); transform: translateX(-50%);
  color: #fff; font-family: var(--font-serif); font-style: italic; font-weight: 440;
  font-size: clamp(1.15rem, 2.6vw, 1.7rem); text-align: center; margin: 0;
  padding-inline: 1.5rem; max-width: 40rem;
}

/* ---- menukaarten (lunch / diner / dessert) -------------------------------- */

.sectie--lunch { background: var(--c-paper); }

.menu-groepen { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); margin-top: 2.75rem; }
.menu-groep h3 {
  padding-bottom: .65rem; border-bottom: 1px solid var(--c-line); color: var(--c-brass-deep);
}

.gerechten { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.gerechten li { display: flex; flex-direction: column; gap: .2rem; padding: .85rem 0; border-bottom: 1px dashed var(--c-line); }
.gerechten li:last-child { border-bottom: none; }
.gerecht__naam { font-family: var(--font-serif); font-size: 1.05rem; color: var(--c-text); }
.gerecht__beschrijving { font-size: .88rem; color: var(--c-text-soft); }

.gerechten--tweekolom { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }
.gerechten--tweekolom li { padding: .85rem 0; }

.gerechten--licht .gerecht__naam { color: #fff; }
.gerechten--licht .gerecht__beschrijving { color: rgba(255, 255, 255, .66); }
.gerechten--licht li { border-color: var(--c-line-licht); }

.diner__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: start; }
.diner__beeld { margin: 0; align-self: center; }
.diner__beeld img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 80% 8%;
  border-radius: 4px; box-shadow: 0 25px 50px -20px rgba(21, 18, 13, .35);
}

.gangen-prijzen { list-style: none; margin: 2rem 0 2.75rem; padding: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.gangen-prijzen li {
  flex: 1 1 140px; background: var(--c-paper); border: 1px solid var(--c-line); border-radius: 4px;
  padding: 1.5rem 1.1rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .25rem;
}
.sectie--diner .gangen-prijzen li { background: var(--c-cream); }
.gangen-prijzen__getal { font-family: var(--font-serif); font-size: 2.4rem; line-height: 1; color: var(--c-brass-deep); }
.gangen-prijzen__label { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-text-soft); }
.gangen-prijzen__bedrag { font-size: 1.1rem; font-weight: 600; color: var(--c-text); margin-top: .35rem; }

.diner__cta { margin-top: 2.25rem; }

/* ---- dessert & wijn (donkere band) ----------------------------------------- */

.sectie--dessert { background: radial-gradient(120% 140% at 15% 0%, var(--c-wine) 0%, var(--c-ink) 55%); color: #fff; }
.dessert__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); margin-top: 2.75rem; }
.sectie--dessert h3 { padding-bottom: .65rem; border-bottom: 1px solid var(--c-line-licht); }

/* ---- team & vacatures ------------------------------------------------------ */

.sectie--team { background: var(--c-paper); }
.team__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: center; }
.team__beeld { margin: 0; }
.team__beeld img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; box-shadow: 0 25px 50px -20px rgba(21, 18, 13, .35); }
.sectie--team p { color: var(--c-text-soft); line-height: 1.68; max-width: 38rem; }

.vacatures { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.vacature { background: var(--c-cream); border: 1px solid var(--c-line); border-radius: 4px; padding: 1.6rem; display: flex; flex-direction: column; gap: .75rem; }
.vacature h3 { font-size: 1.1rem; margin: 0; }
.vacature p { font-size: .9rem; margin: 0; max-width: none; }
.vacature__link {
  align-self: flex-start; font-weight: 600; font-size: .85rem; color: var(--c-brass-deep);
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px;
}

/* ---- reserveren (brass band) ----------------------------------------------- */

.sectie--reserveren { background: var(--c-brass); color: #1c160d; }
.reserveren__binnen { max-width: 40rem; margin: 0 auto; text-align: center; }
.sectie--reserveren .kicker { color: #1c160d; opacity: .7; }
.sectie--reserveren p { color: rgba(28, 22, 13, .82); }
.reserveren__knoppen { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.1rem; }
.sectie--reserveren .knop--brass { background: #1c160d; color: var(--c-cream); }
.sectie--reserveren .knop--brass:hover { background: #342a1b; }
.sectie--reserveren .knop--omlijnd { border-color: #1c160d; color: #1c160d; }
.sectie--reserveren .knop--omlijnd:hover { background: rgba(28, 22, 13, .08); }

/* ---- contact & route -------------------------------------------------------- */

.contact__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2.5rem, 6vw, 4rem); align-items: start; }
.sectie--contact p { color: var(--c-text-soft); max-width: 36rem; }

.contact-lijst { list-style: none; margin: 1.6rem 0; padding: 0; display: flex; flex-direction: column; gap: .9rem; max-width: 30rem; }
.contact-lijst li { display: flex; gap: 1rem; align-items: baseline; border-bottom: 1px solid var(--c-line); padding-bottom: .8rem; }
.contact-lijst__label { flex: 0 0 6.5rem; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-text-soft); }
.contact-lijst a { color: var(--c-text); text-decoration: none; border-bottom: 1px solid var(--c-brass); }

.contact__kaart { display: block; position: relative; border-radius: 4px; overflow: hidden; border: 1px solid var(--c-line); text-decoration: none; }
.contact__kaart img { width: 100%; display: block; filter: grayscale(.2) contrast(1.02); transition: transform .4s ease; }
.contact__kaart:hover img { transform: scale(1.03); }
.contact__kaart-label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: .9rem 1.2rem;
  background: rgba(21, 18, 13, .86); color: #fff; font-size: .85rem; font-weight: 600; text-align: center;
}

/* =========================================================================
   FOOTER
   ========================================================================= */

.footer { background: var(--c-ink); color: rgba(255, 255, 255, .85); padding: clamp(3rem, 6vw, 4.5rem) 0 2.25rem; }
.footer__binnen {
  max-width: 1240px; margin: 0 auto; padding-inline: clamp(1.25rem, 5vw, 3rem);
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.footer__naam { font-family: var(--font-serif); font-size: 1.3rem; color: #fff; margin: 0 0 .4rem; }
.footer__merk p { margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .6); }
.footer__nav, .footer__contact { display: flex; flex-direction: column; gap: .65rem; }
.footer__nav a, .footer__contact a { color: rgba(255, 255, 255, .78); text-decoration: none; font-size: .92rem; transition: color .2s ease; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--c-brass-licht); }
.footer__kleine {
  text-align: center; font-size: .78rem; color: rgba(255, 255, 255, .48);
  max-width: 1240px; margin: 1.5rem auto 0; padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* =========================================================================
   MODAAL: boekwidget-vervanger (Zenchef)
   ========================================================================= */

.modaal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.modaal[hidden] { display: none; }
.modaal__scherm { position: absolute; inset: 0; background: rgba(21, 18, 13, .72); backdrop-filter: blur(2px); }
.modaal__paneel {
  position: relative; background: var(--c-paper); border-radius: 6px; max-width: 440px; width: 100%;
  padding: 2.25rem 2rem; box-shadow: 0 30px 70px rgba(0, 0, 0, .4);
}
.modaal__sluiten {
  position: absolute; top: 1rem; right: 1rem; background: none; border: none;
  color: var(--c-text-soft); cursor: pointer; padding: .45rem; line-height: 0;
}
.modaal__paneel h2 { font-size: 1.4rem; margin: 0 0 1rem; }
.modaal__paneel p { color: var(--c-text-soft); line-height: 1.55; font-size: .92rem; }
.modaal__knoppen { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.25rem; }
.modaal__paneel .knop--omlijnd { border-color: var(--c-text); color: var(--c-text); }

/* =========================================================================
   ZWEVENDE RESERVEERKNOP
   ========================================================================= */

.zwevend-reserveer {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 50;
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--c-brass); color: #1b1710; border: none; border-radius: 999px;
  padding: .9rem 1.4rem; font: 600 .82rem/1 var(--font-sans); letter-spacing: .04em;
  cursor: pointer; box-shadow: 0 12px 28px rgba(0, 0, 0, .3);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background-color .2s ease;
}
.zwevend-reserveer.is-zichtbaar { opacity: 1; transform: none; pointer-events: auto; }
.zwevend-reserveer:hover { background: var(--c-brass-deep); }

/* =========================================================================
   ONTHUL-ANIMATIE (progressive enhancement)
   ========================================================================= */

html.onthullen-actief [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.16, .84, .44, 1), transform .7s cubic-bezier(.16, .84, .44, 1);
  transition-delay: calc(var(--vertraging, 0) * 1ms);
}
html.onthullen-actief [data-reveal].in-beeld { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.onthullen-actief [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

@media (max-width: 900px) {
  .verhaal__grid,
  .diner__grid,
  .team__grid,
  .contact__grid,
  .dessert__grid { grid-template-columns: 1fr; }

  .verhaal__beeld { order: -1; }
  .diner__beeld { order: -1; max-width: 22rem; margin-inline: auto; }

  .menu-groepen, .vacatures { grid-template-columns: 1fr; }
  .gerechten--tweekolom { grid-template-columns: 1fr; }

  .footer__binnen { grid-template-columns: 1fr; gap: 1.75rem; }
}

@media (max-width: 560px) {
  .gangen-prijzen { flex-direction: column; }
  .opening__knoppen { flex-direction: column; align-items: stretch; }
  .opening__knoppen .knop { width: 100%; }
}
