/* Boothuis Amsterdam — stylesheet */
@font-face {
  font-family: "Trailers";
  src: url("../fonts/Trailers-Medium.woff2") format("woff2"), url("../fonts/Trailers-Medium.woff") format("woff");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Halvar Breit";
  src: url("../fonts/HalvarBreit-Regular.woff2") format("woff2"), url("../fonts/HalvarBreit-Regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
:root {
  --red: #a33b2e;
  --red-deep: #8f3226;
  --red-logo: #af3219;
  --cream: #fdfaf0;
  --cream-soft: rgba(253, 250, 240, .78);
  --display: "Trailers", "Arial Narrow", Impact, sans-serif;
  --body: "Halvar Breit", "Century Gothic", "Avenir", sans-serif;

  --gutter: clamp(16px, 4vw, 64px);
  --header-h: clamp(120px, 15vw, 205px);
  /* Ruimte die rechtsonder vrij blijft voor de Guestplan-widget (desktop) */
  --widget-w: 0px;
  --widget-h: 120px;
}

@media (min-width: 1200px) {
  :root { --widget-w: 420px; --widget-h: 0px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--red);
  color: var(--cream);
  font-family: var(--body);
  font-size: clamp(16px, .8vw + 8px, 19px);
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--cream); color: var(--red); padding: .6em 1em; font-weight: 700;
}
.skip-link:focus { left: 16px; top: 16px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header met schuine (dak)vorm ---------- */
.site-header {
  position: relative;
  z-index: 20;
  height: var(--header-h);
}
.site-header::before {
  /* Het "dak": links en rechts laag, in het midden hoger — zoals een boothuis.
     Als pseudo-element zodat het logo eroverheen kan steken zonder afgesneden te worden. */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 60%, 0 100%);
}
.page-home .site-header {
  position: absolute; top: 0; left: 0; right: 0;
}
.header-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  /* nav begint pas rechts van het logo en eindigt vóór de taalknop */
  padding: 0 calc(clamp(16px, 4vw, 160px) + 64px) 0 calc(clamp(16px, 3.2vw, 64px) + clamp(104px, 13vw, 260px) + 24px);
}

.brand {
  position: absolute;
  z-index: 30;
  top: clamp(4px, .6vw, 10px);
  left: clamp(16px, 3.2vw, 64px);
  width: clamp(104px, 13vw, 260px);
  display: block;
  line-height: 0;
}
.brand img { width: 100%; height: auto; filter: drop-shadow(0 4px 12px rgba(0,0,0,.12)); }

.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: clamp(1.2rem, 3.4vw, 4.5rem);
}
.main-nav a, .mobile-nav a {
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  display: inline-block;
  letter-spacing: .01em;
  line-height: 1;
  white-space: nowrap;
}
.main-nav a {
  font-size: clamp(2rem, 3.1vw, 3.6rem);
  padding: clamp(.55rem, 1vw, 1rem) 0 .3rem;
  position: relative;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--cream); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-tools {
  position: absolute; top: clamp(.8rem, 1.3vw, 1.4rem); right: clamp(16px, 4vw, 160px);
  display: flex; gap: .75rem; align-items: center;
}
.icon-btn {
  appearance: none; border: 0; background: transparent; color: var(--cream);
  width: 48px; height: 48px; padding: 6px; cursor: pointer; border-radius: 50%;
  display: grid; place-items: center;
}
.icon-btn img, .icon-btn svg { width: 36px; height: 36px; }
.icon-btn:hover { background: rgba(255,255,255,.08); }

.lang { position: relative; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  min-width: 170px; margin: 0; padding: .4rem; list-style: none;
  background: var(--cream); color: var(--red); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  display: none;
}
.lang.is-open .lang-menu { display: block; }
.lang-menu a {
  display: block; padding: .55rem .8rem; border-radius: 6px; text-decoration: none; font-weight: 600;
  font-size: .95rem;
}
.lang-menu a:hover, .lang-menu a[aria-current="true"] { background: rgba(163,59,46,.1); }

.menu-toggle { display: none; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 28px; height: 3px; background: var(--cream); border-radius: 2px; position: relative;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -9px; }
.menu-toggle span::after { top: 9px; }

.mobile-nav {
  position: fixed; inset: 0; z-index: 25;
  background: var(--red);
  display: none;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem;
  overflow-y: auto;
}
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.mobile-nav a { font-size: clamp(3.2rem, 14vw, 5rem); }
body.menu-open { overflow: hidden; }
body.menu-open .mobile-nav { display: block; }

@media (max-width: 899px) {
  :root { --header-h: 118px; }
  .main-nav { display: none; }
  .menu-toggle { display: grid; }
  .header-tools { top: 14px; right: 12px; gap: 0; }
  body.menu-open .site-header::before { display: none; }
  body.menu-open .site-header { position: fixed; left: 0; right: 0; top: 0; z-index: 40; background: transparent; }
  body.menu-open .mobile-nav { z-index: 35; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  height: clamp(420px, 82vh, 900px);
  overflow: hidden;
}
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }

/* ---------- Layout ---------- */
main { display: block; }
.wrap {
  width: 100%;
  max-width: calc(1240px + var(--widget-w));
  margin: 0 auto;
  padding-left: var(--gutter);
  /* rechterkolom vrij voor de reserveringswidget */
  padding-right: calc(var(--gutter) + var(--widget-w));
}
.section { padding: clamp(3rem, 7vw, 6.5rem) 0; }
.section + .section { padding-top: 0; }
.page-sub main { margin-top: 0; }
.page-sub main > .section:first-child { padding-top: 0; }

.page-title, .section-title {
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: .005em;
  margin: 0 0 clamp(1.5rem, 3.5vw, 3rem);
  transform-origin: left bottom;
}
.page-title { font-size: clamp(3.2rem, 5.4vw, 6rem); }
/* Op subpagina's staat de titel rechts naast het logo, net als op het origineel */
@media (min-width: 900px) {
  .page-sub .page-title {
    margin-top: calc(var(--header-h) * -0.42);
    padding-left: max(0px, calc(clamp(16px, 3.2vw, 64px) + clamp(104px, 13vw, 260px) + 2rem - var(--gutter)));
  }
}
@media (max-width: 899px) {
  .page-sub main { padding-top: 1.75rem; }
}
.section-title { font-size: clamp(3rem, 5vw, 5.6rem); }
h3 {
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(2rem, 3vw, 2.9rem);
  line-height: 1;
  margin: 1.6em 0 .55em;
  transform-origin: left bottom;
}
h3:first-child { margin-top: 0; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.split--reverse > .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.split-media--checker::before, .split-media--checker::after {
  /* geblokte rand, net als het logo */
  content: ""; position: absolute; left: 0; right: 0; height: 14px; z-index: 1;
  background:
    repeating-conic-gradient(var(--cream) 0 25%, var(--red-logo) 0 50%) 0 0 / 14px 14px;
}
.split-media--checker::before { top: -14px; }
.split-media--checker::after { bottom: -14px; }
.split-media--plain img { aspect-ratio: auto; }

.prose { max-width: 38em; }
.prose a { text-underline-offset: .18em; }
.prose .lead { font-weight: 700; }

.keywords {
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 2.3vw, 2.2rem);
  letter-spacing: .02em;
  line-height: 1.35;
  margin: 0 0 1.4em;
  display: flex; flex-wrap: wrap; gap: .1em .55em;
}
.keywords > span { display: inline-block; }
.keywords > span:not(:last-child)::after { content: "|"; margin-left: .55em; opacity: .55; }

.btn {
  display: inline-flex; align-items: center; gap: .6em;
  background: var(--cream); color: var(--red);
  font-weight: 700; text-decoration: none;
  padding: .85em 1.3em .75em;
  border-radius: 999px;
  line-height: 1.25;
  margin: .4em 0 1em;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.btn::after { content: "→"; font-weight: 700; }
.btn--ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 2px var(--cream); }

.info-card {
  background: var(--cream); color: var(--red);
  padding: clamp(1.4rem, 2.5vw, 2.2rem);
  border-radius: 4px;
}
.info-card a { color: var(--red); }
.info-card address { font-style: normal; margin-bottom: 1em; }
.map-link { display: block; margin-top: 1.5rem; border: 3px solid var(--cream); }
.map-link img { width: 100%; }

.credit-maker { margin-top: 2.5rem; display: flex; flex-direction: column; gap: .6rem; font-size: .9rem; }
.credit-maker img { width: min(260px, 70%); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--red-deep);
  padding: clamp(3rem, 6vw, 5rem) 0 calc(2rem + var(--widget-h));
  position: relative;
}
.site-footer::before {
  /* het dak, maar dan omgekeerd: sluit de pagina af */
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: clamp(30px, 5vw, 80px);
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 0, 50% 100%, 0 0);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .8fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  padding-top: clamp(1.5rem, 4vw, 3rem);
}
.footer-title {
  font-family: var(--display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(2.4rem, 3vw, 3.2rem); line-height: 1; margin: 0 0 1rem; overflow-wrap: anywhere; transform-origin: left bottom;
}
.hours { border-collapse: collapse; width: 100%; max-width: 340px; }
.hours th, .hours td { text-align: left; padding: .3rem 0; font-weight: 400; border-bottom: 1px solid rgba(253,250,240,.18); }
.hours th { width: 3.5em; font-weight: 700; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; }
.hours tr.is-today td::after { content: " •"; }
.socials { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.socials a { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 600; }
.socials svg { width: 26px; height: 26px; flex: none; }
.socials a:hover span { text-decoration: underline; }
.footer-contact { margin-top: 1.6rem; font-size: .95rem; }
.footer-contact address { font-style: normal; }
.footer-logo img { width: min(200px, 100%); }
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(253,250,240,.2);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem;
  font-size: .85rem; color: var(--cream-soft);
}
.footer-bottom a { text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; }
.footer-bottom a:hover { color: var(--cream); }
.footer-bottom img { width: 26px; height: auto; filter: brightness(0) invert(1); opacity: .8; }

/* ---------- Responsief ---------- */
@media (max-width: 899px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-logo { grid-column: 1 / -1; order: -1; }
  .hero { height: clamp(380px, 70vh, 640px); }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Losse letters, ieder 10° gedraaid */
.word { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; transform: rotate(10deg); transform-origin: 50% 60%; }

/* Subpagina's: header-achtergrond is dezelfde kleur als de pagina, dus transparant laten
   zodat de titel naast het logo niet wordt afgedekt */
.page-sub .site-header::before { display: none; }

/* Trefwoorden onder de foto (zoals het origineel) */
.split-media .keywords { margin: 2.25rem 0 0; }
.split-media--checker { position: relative; }
