/*
Theme Name: CHROOM Architecten
Theme URI: https://chroomarchitecten.be
Author: CHROOM Architecten
Author URI: https://chroomarchitecten.be
Description: Minimalistisch, mobile-first Portfolio-Theme voor CHROOM Architecten. Zwart-wit, haarlijnen, lokaal gehoste fonts (AVG/DSGVO-conform).
Version: 2.0.2
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chroom
Tags: portfolio, one-column, custom-menu, featured-images, translation-ready, accessibility-ready, block-styles
*/

/* =============================================================
   CHROOM 2.0 — mobile-first
   -------------------------------------------------------------
   Layoutprincipe: alle vaste balken zijn `position: sticky`, niet
   `fixed`. Daardoor staan ze in de normale flow en is er GEEN
   compenserende padding meer nodig. Dat elimineert de hele klasse
   fouten rond "spookruimte" en "inhoud onder de balk".
   Breekpunten: 768px (tablet/navigatie), 1024px (twee kolommen).
   ============================================================= */

/* ====== LOKAAL GEHOSTE FONTS (AVG/DSGVO-conform) ======
   Bestanden horen in assets/fonts/. Zie assets/fonts/README.md.
   Ontbreken ze, dan valt de site terug op de systeemstack hieronder. */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/bebas-neue-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 400 700; /* variabele as, één bestand i.p.v. vier */
  font-display: swap;
  src: url('assets/fonts/quicksand-variable.woff2') format('woff2-variations'),
       url('assets/fonts/quicksand-regular.woff2') format('woff2');
}

/* ====== TOKENS ====== */
:root {
  /* Kleur — contrast getoetst tegen WCAG 2.2 AA */
  --paper: #ffffff;
  --ink: #000000;
  --muted: #595959;        /* 7.0:1 op wit (was #666 = 5.7:1) */
  --hairline: #e0e0e0;
  --field-border: #767676; /* 4.5:1, was #ddd = 1.4:1 */
  --scrim: rgb(0 0 0 / 0.4);

  /* Type */
  --font-display: 'Bebas Neue', 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Quicksand', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --fs-xs: 0.8125rem;  /* 13px — ondergrens, was 11px */
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-lg: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
  --fs-title: clamp(1.5rem, 1.25rem + 1.2vw, 2rem);
  --fs-heading: clamp(1.75rem, 1.4rem + 1.6vw, 2.25rem);
  --fs-display: clamp(2rem, 1.4rem + 3vw, 3.25rem);

  /* Ritme */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --content-max: 1400px;
  --measure: 68ch;

  /* Vaste balken */
  --header-h: 60px;
  --footer-h: 0px;   /* mobiel loopt de footer mee in de flow */

  /* Minimale aanraakvlakken (WCAG 2.2 SC 2.5.8) */
  --tap: 44px;
}

@media (min-width: 768px) {
  :root { --header-h: 80px; }
}

/* De vaste voetbalk gaat pas aan vanaf 1024px. Op 768–1023px past de
   inhoud niet op één regel (gemeten: 82px nodig in een balk van 60px),
   waardoor hij zou afbreken en de pagina-inhoud zou afdekken. */
@media (min-width: 1024px) {
  :root { --footer-h: 60px; }
}

/* ====== RESET ====== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* vangt off-canvas paneel af, voorkomt zijwaarts schuiven op iOS */
}

img, picture, video, svg { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; transition: opacity .3s ease; }
a:hover { opacity: .6; }

h1, h2, h3, h4 { font-weight: inherit; text-wrap: balance; }
p { text-wrap: pretty; }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* Sla-over-link: eerste tabstop, wordt zichtbaar bij focus */
.skip-link {
  position: absolute;
  left: var(--gutter); top: 0;
  transform: translateY(-120%);
  z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: .75rem 1.25rem;
  font-size: var(--fs-sm); font-weight: 600;
}
.skip-link:focus { transform: translateY(0); opacity: 1; }

/* ====== LAYOUTGERAAMTE ====== */
.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh; /* mobiele browserbalken meegerekend */
}
/* Ruimte voor de vaste voetbalk wordt op .site gereserveerd, niet op
   .site-content — zo kan geen enkel paginatemplate hem per ongeluk wegnemen. */
@media (min-width: 1024px) { .site { padding-bottom: var(--footer-h); } }

.site-content { flex: 1 0 auto; padding-bottom: 3rem; }

.wrap {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 1000px; }

/* ====== KOPBALK ====== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  min-height: var(--header-h);
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-inline: var(--gutter);
}

.site-branding {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  letter-spacing: .08em;
  line-height: 1;
}
.site-branding a { display: inline-block; padding-block: .5rem; }

/* --- Hamburger: echte <button>, door JS bediend, met no-JS terugval --- */
.menu-toggle {
  display: inline-flex; flex-direction: column; justify-content: center;
  gap: 5px;
  width: var(--tap); height: var(--tap);
  margin-right: calc(var(--gutter) * -0.35); /* optisch uitlijnen, vlak blijft 44px */
  padding: 0;
  background: none; border: 0; cursor: pointer;
}
.menu-toggle-bar {
  display: block; width: 26px; height: 2px;
  background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hoofdnavigatie: mobiel een off-canvas paneel --- */
.main-navigation {
  position: fixed;
  top: var(--header-h); right: 0;
  width: min(84vw, 340px);
  height: calc(100dvh - var(--header-h));
  padding: 2rem var(--gutter) 3rem;
  background: var(--paper);
  border-left: 1px solid var(--ink);
  overflow-y: auto; overscroll-behavior: contain;
  z-index: 110;
  transform: translateX(100%);
  visibility: hidden; /* haalt links uit de tabvolgorde als het paneel dicht is */
  /* visibility schakelt zonder vertraging aan, maar pas na de schuifanimatie
     weer uit. Zo is een link meteen focusbaar zodra het paneel opengaat. */
  transition: transform .3s ease, visibility 0s linear .3s;
}
.main-navigation.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform .3s ease, visibility 0s linear 0s;
}

/* Verduistering achter het paneel; sluit bij tikken */
.nav-scrim {
  position: fixed; inset: var(--header-h) 0 0;
  background: var(--scrim);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s;
  z-index: 105; border: 0; cursor: pointer;
}
.nav-scrim.is-open { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }
body.lightbox-open { overflow: hidden; }

.main-navigation ul { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; }
.main-navigation li { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.main-navigation a {
  font-family: var(--font-display);
  font-size: 1.375rem; letter-spacing: .09em; text-transform: uppercase;
  display: block; padding-block: .375rem; /* aanraakvlak >= 44px */
}
.main-navigation li::after {
  content: ''; width: 6px; height: 6px;
  background: var(--ink); border-radius: 50%;
  transition: transform .3s ease;
}
.main-navigation li:hover::after { transform: scale(1.2); }
.main-navigation .current-menu-item::after,
.main-navigation .current_page_item::after,
.main-navigation .current-menu-ancestor::after,
.main-navigation .current-page-ancestor::after {
  width: 8px; height: 8px;
  background: transparent;
  border: 2px solid var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
/* Submenu's van wp_nav_menu waren voorheen ongestyled */
.main-navigation .sub-menu {
  gap: .75rem; margin-top: .75rem; padding-left: 1rem;
  border-left: 1px solid var(--hairline);
}
.main-navigation .sub-menu a { font-family: var(--font-body); font-size: var(--fs-sm); letter-spacing: .04em; }
.main-navigation .sub-menu li::after { width: 4px; height: 4px; }

@media (min-width: 768px) {
  .menu-toggle, .nav-scrim { display: none; }
  .main-navigation {
    position: static; width: auto; height: auto; padding: 0;
    background: none; border: 0; overflow: visible;
    transform: none; visibility: visible;
  }
  .main-navigation ul { flex-direction: row; align-items: center; gap: 2.5rem; }
  .main-navigation li { align-items: center; }
  .main-navigation a { font-size: 1.25rem; }
  .main-navigation .sub-menu {
    position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%);
    flex-direction: column; align-items: flex-start;
    min-width: 12rem; margin-top: .5rem; padding: 1rem;
    background: var(--paper); border: 1px solid var(--ink); border-left-width: 1px;
    opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s;
  }
  .main-navigation li:hover > .sub-menu,
  .main-navigation li:focus-within > .sub-menu { opacity: 1; visibility: visible; }
}

/* ====== SECUNDAIRE BALKEN (filter + bureau) ====== */
.subbar {
  position: sticky; top: var(--header-h); z-index: 90;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.subbar ul {
  list-style: none;
  display: flex; align-items: center; gap: 1.25rem;
  padding-inline: var(--gutter);
  /* mobiel horizontaal schuiven i.p.v. afbreken */
  overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.subbar ul::-webkit-scrollbar { display: none; }
.subbar li {
  position: relative; flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding-bottom: .5rem;
}
.subbar a {
  font-family: var(--font-body);
  font-size: var(--fs-sm); font-weight: 500; text-transform: lowercase;
  white-space: nowrap;
  display: flex; align-items: center; justify-content: center;
  /* volledig aanraakvlak: was 17–22px hoog en soms maar 21px breed */
  min-height: var(--tap);
  min-width: 2.75rem;
  padding-inline: .25rem;
}
.subbar li::after {
  content: ''; width: 5px; height: 5px;
  background: var(--ink); border-radius: 50%;
  transition: transform .3s ease;
}
.subbar li:hover::after { transform: scale(1.2); }
.subbar .is-current::after,
.subbar .current-menu-item::after,
.subbar .current_page_item::after {
  width: 7px; height: 7px;
  background: transparent;
  border: 2px solid var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.subbar a[aria-current] { font-weight: 700; }

@media (min-width: 768px) {
  .subbar ul { justify-content: center; gap: 2rem; }
}

/* ====== VOETBALK ====== */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--ink);
  display: flex; flex-direction: column; align-items: center;
  gap: .75rem; text-align: center;
  padding: 1.5rem var(--gutter);
  font-size: var(--fs-xs);
}
.footer-contact, .footer-social, .footer-credits {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 1rem;
}
.site-footer a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.footer-social a { text-transform: lowercase; }

@media (min-width: 1024px) {
  .site-footer {
    position: fixed; inset: auto 0 0 0; z-index: 100;
    height: var(--footer-h);
    flex-direction: row; justify-content: space-between;
    gap: 1.25rem; padding-block: 0;
  }
}

/* ====== PORTFOLIO-LIJST ====== */
.portfolio-list { padding-block: 2rem; }

.project-item {
  margin-bottom: 3.75rem;
  padding-bottom: 3.75rem;
  border-bottom: 1px solid var(--hairline);
}
.project-item:last-of-type { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }

/* mobiel: één kolom, galerij eerst */
.project-item-inner { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.project-gallery-wrapper { order: 1; }
.project-info-column { order: 2; }

@media (min-width: 1024px) {
  .project-item { margin-bottom: 5rem; padding-bottom: 5rem; }
  .project-item-inner { grid-template-columns: minmax(240px, 1fr) 2fr; gap: 3.75rem; align-items: start; }
  .project-info-column {
    order: 1;
    position: sticky;
    top: calc(var(--header-h) + 4.25rem);
    height: fit-content;
  }
  .project-gallery-wrapper { order: 2; }
}

/* ---- Galerij ---- */
.project-gallery-wrapper { position: relative; width: 100%; }

.project-gallery {
  position: relative; width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f0f0f0;
}
.project-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .5s ease, visibility .5s;
}
.project-slide.is-active { opacity: 1; visibility: visible; }
.project-slide img { width: 100%; height: 100%; object-fit: cover; }

/* Knop rond de afbeelding: alleen om ze met toetsenbord bedienbaar te
   maken (een <img> is dat zelf niet). Geen eigen knop-uiterlijk. */
.lightbox-trigger {
  display: block;
  width: 100%; height: 100%;
  padding: 0; border: 0;
  background: none;
  cursor: zoom-in;
  text-align: left;
}

.project-slide-text {
  width: 100%; height: 100%;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; overflow-y: auto;
}
.slide-text-content { max-width: var(--measure); }
.slide-text-content h3 { font-size: var(--fs-lg); font-weight: 700; line-height: 1.3; margin-bottom: 1rem; }
.slide-text-content p { font-size: var(--fs-sm); line-height: 1.8; color: var(--muted); margin-bottom: .9375rem; }
.slide-text-content p:last-child { margin-bottom: 0; }
.slide-text-content ul, .slide-text-content ol { margin: .9375rem 0; padding-left: 1.5rem; }
.slide-text-content li { font-size: var(--fs-sm); line-height: 1.7; margin-bottom: .5rem; color: var(--muted); }
@media (min-width: 768px) { .project-slide-text { padding: 3rem; } }

/* Bolletjes: zichtbaar 7px, aanraakvlak 44px */
.gallery-dots { display: flex; flex-wrap: wrap; justify-content: center; margin-top: .25rem; }
.gallery-dot {
  width: var(--tap); height: var(--tap);
  display: grid; place-items: center;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.gallery-dot::before {
  content: ''; width: 7px; height: 7px;
  background: var(--ink); border-radius: 50%;
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}
.gallery-dot:hover::before { transform: scale(1.3); }
.gallery-dot[aria-current="true"]::before {
  width: 9px; height: 9px;
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 2px var(--ink);
}

.gallery-nav {
  position: absolute; top: 50%; translate: 0 -50%;
  width: var(--tap); height: var(--tap);
  display: grid; place-items: center;
  background: rgb(255 255 255 / .9);
  border: 1px solid var(--ink);
  font-size: 1.25rem; line-height: 1; cursor: pointer;
  transition: background .3s ease, color .3s ease;
  z-index: 2;
}
.gallery-nav:hover { background: var(--ink); color: var(--paper); }
.gallery-prev { left: .75rem; }
.gallery-next { right: .75rem; }
@media (min-width: 768px) { .gallery-prev { left: 1.25rem; } .gallery-next { right: 1.25rem; } }

/* ---- Infokolom ---- */
.project-list-number { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); margin-bottom: .5rem; }
.project-list-title { font-size: var(--fs-title); font-weight: 700; line-height: 1.2; margin-bottom: 1.25rem; }
.project-list-meta { font-size: var(--fs-sm); line-height: 1.8; }
.project-list-meta-item { display: flex; gap: 1rem; margin-bottom: .5rem; }
.project-list-meta-label {
  flex: 0 0 6.25rem;
  font-size: var(--fs-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
}
.project-list-meta-value { flex: 1; }

.project-list-tags, .project-tags { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: 1rem; }
.project-list-tag, .project-tag {
  font-size: var(--fs-sm); color: var(--muted);
  display: inline-flex; align-items: center; min-height: 2.75rem;
}
.project-list-tag:hover, .project-tag:hover { color: var(--ink); }

.project-list-excerpt {
  font-size: var(--fs-md); line-height: 1.7;
  margin-top: 1.25rem; padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  max-width: var(--measure);
}

/* ====== PROJECTKAARTEN (raster) ====== */
.portfolio-grid { display: grid; grid-template-columns: 1fr; gap: 0; padding-block: 2rem; }
@media (min-width: 640px)  { .portfolio-grid { grid-template-columns: repeat(auto-fill, minmax(18.75rem, 1fr)); } }
@media (min-width: 1024px) { .portfolio-grid { grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr)); } }

.project-card {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border: 1px solid var(--ink); margin: -1px 0 0 -1px; background: var(--paper);
}
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-card:hover img { transform: scale(1.05); }
.project-overlay {
  position: absolute; inset: auto 0 0 0;
  background: rgb(255 255 255 / .95);
  padding: 1.25rem;
  transform: translateY(100%); transition: transform .3s ease;
}
.project-card:hover .project-overlay,
.project-card:focus-within .project-overlay { transform: translateY(0); }
.project-number { font-size: var(--fs-xs); font-weight: 600; margin-bottom: .25rem; }
.project-title { font-size: var(--fs-lg); font-weight: 700; margin-bottom: .25rem; }
.project-meta { font-size: var(--fs-xs); color: var(--muted); }

/* ====== ENKEL PROJECT ====== */
.single-project-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-block: 2rem; }
.project-content { order: 1; }
.project-sidebar { order: 2; }

.project-info-item { margin-bottom: 1.25rem; }
.project-info-label {
  font-size: var(--fs-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: .25rem;
}
.project-info-value { font-size: var(--fs-sm); }
.project-info-value--rich { line-height: 1.7; }
.project-info-value--rich p { margin-bottom: .75em; }
.project-info-value--rich p:last-child { margin-bottom: 0; }
.project-title-single { font-size: var(--fs-lg); font-weight: 700; }
.project-description { font-size: var(--fs-md); line-height: 1.8; margin-top: 1.875rem; max-width: var(--measure); }
.project-description > * + * { margin-top: 1em; }

@media (min-width: 1024px) {
  .single-project-layout { grid-template-columns: minmax(15rem, 18.75rem) 1fr; gap: 3.75rem; padding-block: 2.5rem; }
  .project-sidebar { order: 1; position: sticky; top: calc(var(--header-h) + 2.5rem); height: fit-content; }
  .project-content { order: 2; }
}

/* ====== KNOPPEN ====== */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap);
  padding: .75rem 1.875rem;
  font-weight: 600; border-radius: 4px;
  transition: opacity .3s ease, background .3s ease, color .3s ease;
}
.button--primary { background: var(--ink); color: var(--paper); }
.button--outline { border: 1px solid var(--ink); color: var(--ink); }

/* ====== PAGINAKOPPEN & TEKSTPAGINA'S ====== */
.page-title {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  letter-spacing: .06em; text-transform: uppercase; line-height: 1.05;
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-heading);
  letter-spacing: .06em; text-transform: uppercase; line-height: 1.1;
  margin-bottom: 1.5rem;
}
.entry-header { margin-bottom: 2.5rem; }
.entry-content { font-size: var(--fs-md); line-height: 1.8; max-width: var(--measure); }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2 { font-size: var(--fs-title); font-weight: 700; margin-top: 2em; }
.entry-content h3 { font-size: var(--fs-lg); font-weight: 700; margin-top: 1.5em; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; }
.entry-content :is(img, figure) { margin-block: 2rem; }
.entry-content a { text-decoration: underline; text-underline-offset: .2em; }

.page-content-wrapper { padding-block: 2rem 3rem; }

/* Tweekolomsindeling voor BIO / WAT & HOE — mobile-first */
.split-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-block: 2rem 3rem; }
@media (min-width: 1024px) { .split-layout { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.split-layout .entry-content { max-width: none; }

.bio-photo img { width: 100%; }
.bio-photo-placeholder { aspect-ratio: 3 / 4; background: #f0f0f0; }

.collaborations-section { margin-top: 3.75rem; padding-top: 2.5rem; border-top: 1px solid var(--hairline); }

/* ====== CONTACT ====== */
.contact-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .contact-layout { grid-template-columns: 1fr 1fr; gap: 3.75rem; } }
.contact-section + .contact-section { margin-top: 2.5rem; }
.contact-section h2 {
  font-size: var(--fs-sm); font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: .75rem;
}
.contact-section p, .contact-section address { font-size: var(--fs-md); line-height: 1.8; font-style: normal; }
.contact-section a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.contact-section--meta p { font-size: var(--fs-sm); color: var(--muted); }
.contact-form-section { margin-top: 3.75rem; padding-top: 2.5rem; border-top: 1px solid var(--hairline); }

/* ====== LANDINGSPAGINA ====== */
.landing-grid {
  display: grid; grid-template-columns: 1fr;
  /* alle waarden zijn geldige lengtes — --footer-h is nooit `auto` */
  min-height: calc(100dvh - var(--header-h) - var(--footer-h));
}
.landing-column { position: relative; overflow: hidden; background: #f0f0f0; min-height: 60vw; }
.landing-image-link, .landing-image { display: block; width: 100%; height: 100%; }
.landing-image img { width: 100%; height: 100%; object-fit: cover; }
.landing-column:hover .landing-image img { transform: scale(1.04); }
.landing-image img { transition: transform .6s ease; }
.landing-placeholder {
  display: grid; place-items: center; width: 100%; height: 100%; min-height: 60vw;
  background: #f0f0f0; color: var(--muted); font-size: var(--fs-md);
}
@media (min-width: 768px) {
  .landing-grid { grid-template-columns: repeat(3, 1fr); }
  .landing-column, .landing-placeholder { min-height: 0; }
}

/* ====== ZOEKEN ====== */
.search-form { position: relative; display: flex; }
.search-field {
  flex: 1;
  min-height: var(--tap);
  padding: .75rem 3.25rem .75rem .9375rem;
  border: 1px solid var(--field-border); border-radius: 4px;
  font-size: 1rem; /* < 16px laat iOS ongevraagd inzoomen */
}
.search-submit {
  position: absolute; right: 2px; top: 50%; translate: 0 -50%;
  width: var(--tap); height: var(--tap);
  display: grid; place-items: center;
  background: transparent; border: 0; cursor: pointer; font-size: 1.125rem;
}

.search-results-page { padding-block: 2rem 3rem; }
.search-results-page .page-header { margin-bottom: 2.5rem; }
.search-results-page .page-title { margin-bottom: 1.25rem; }
.search-query-term { color: var(--muted); }
.search-form-wrapper { max-width: 31.25rem; }

.search-results { display: grid; gap: 2.5rem; }
.search-result-item {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid var(--hairline);
}
.result-placeholder { width: 100%; aspect-ratio: 4 / 3; background: #f0f0f0; }
.result-meta { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem; }
.result-title { font-size: var(--fs-title); font-weight: 700; margin-bottom: .75rem; }
.result-excerpt { font-size: var(--fs-md); line-height: 1.6; color: var(--muted); margin-bottom: .75rem; max-width: var(--measure); }
.result-link { font-size: var(--fs-sm); font-weight: 600; display: inline-flex; align-items: center; min-height: 2.75rem; }
@media (min-width: 768px) {
  .search-result-item { grid-template-columns: 12.5rem 1fr; gap: 1.875rem; }
  .result-placeholder { width: 12.5rem; aspect-ratio: 4 / 3; }
}

.no-results { text-align: center; padding-block: 3rem; }
.no-results p:first-child { font-size: var(--fs-lg); margin-bottom: 1.875rem; }
.no-results-hint { font-size: var(--fs-md); color: var(--muted); margin-bottom: 2.5rem; }

/* ====== FOTOGRAFIE ====== */
.photography-archive { padding-block: 2rem 3rem; }
.photography-grid { display: grid; grid-template-columns: 1fr; gap: 1.875rem; }
@media (min-width: 600px)  { .photography-grid { grid-template-columns: repeat(auto-fill, minmax(18.75rem, 1fr)); } }
@media (min-width: 1024px) { .photography-grid { grid-template-columns: repeat(auto-fill, minmax(21.875rem, 1fr)); } }

.photo-item-thumb { aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: .9375rem; }
.photo-item-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.photo-item a:hover .photo-item-thumb img { transform: scale(1.05); }
.photo-item-title { font-size: var(--fs-lg); font-weight: 600; margin-bottom: .25rem; }
.photo-item-excerpt { font-size: var(--fs-sm); color: var(--muted); }

.single-photography { padding-block: 2rem 3rem; }
.single-photography .entry-header { text-align: center; }
.single-photography .page-title { margin-bottom: .9375rem; }
.photo-categories { font-size: var(--fs-sm); color: var(--muted); }
.single-photography .entry-meta { font-size: var(--fs-xs); color: var(--muted); margin-top: .625rem; }
.single-photography .featured-image { margin-bottom: 2.5rem; }
.single-photography .featured-image img { margin-inline: auto; }
.photo-description { max-width: var(--measure); margin-inline: auto; font-size: var(--fs-md); line-height: 1.8; }
.photo-description > * + * { margin-top: 1em; }
.single-photography .entry-footer {
  margin-top: 3.75rem; padding-top: 1.875rem;
  border-top: 1px solid var(--hairline); text-align: center;
}

/* ====== BUREAU ====== */
.bureau-page-content { padding-block: 2.5rem 3rem; }
.bureau-page-content .entry-header { text-align: center; }

/* ====== 404 ====== */
.error-404-page {
  min-height: 60vh; display: grid; place-items: center;
  text-align: center; padding-block: 3rem;
}
.error-404-code { font-family: var(--font-display); font-size: clamp(5rem, 20vw, 7.5rem); letter-spacing: .08em; line-height: 1; margin-bottom: 1.25rem; }
.error-404-title { font-size: var(--fs-title); font-weight: 600; margin-bottom: 1.25rem; }
.error-404-text { font-size: var(--fs-md); color: var(--muted); margin: 0 auto 2.5rem; max-width: 31.25rem; }
.error-404-actions { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; }
.error-404-search { margin: 3.75rem auto 0; max-width: 25rem; }
.error-404-search p { font-size: var(--fs-sm); color: var(--muted); margin-bottom: .9375rem; }

/* ====== PAGINERING ====== */
.pagination, .navigation.pagination { display: flex; justify-content: center; margin-top: 3.75rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .625rem; justify-content: center; }
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: var(--tap); min-height: var(--tap);
  padding: .5rem .875rem;
  border: 1px solid var(--ink); font-size: var(--fs-sm);
  transition: background .3s ease, color .3s ease;
}
.page-numbers.current, .page-numbers:hover { background: var(--ink); color: var(--paper); opacity: 1; }

/* ====== LEGE STATEN ====== */
.content-none { padding: 2.5rem var(--gutter); text-align: center; }

/* ====== LICHTBAK (volledig-formaat galerij) ====== */
/* Native <dialog>: showModal() maakt de rest van de pagina automatisch
   inert en vangt Escape af — daar hoeft hier geen CSS/JS extra voor. */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
}
.lightbox[open] {
  display: grid;
  place-items: center;
}
.lightbox::backdrop {
  background: rgb(0 0 0 / .92);
}
.lightbox-stage {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 5vw, 3rem);
}
.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  width: var(--tap);
  height: var(--tap);
  display: grid;
  place-items: center;
  background: rgb(255 255 255 / .08);
  border: 1px solid rgb(255 255 255 / .4);
  color: var(--paper);
  line-height: 1;
  cursor: pointer;
  transition: background .3s ease;
  z-index: 1;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgb(255 255 255 / .18); }
.lightbox-close { top: 1rem; right: 1rem; font-size: 1.5rem; }
.lightbox-nav { top: 50%; translate: 0 -50%; font-size: 1.75rem; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-counter {
  position: absolute;
  bottom: 1rem; left: 50%;
  translate: -50% 0;
  font-size: var(--fs-sm);
  color: rgb(255 255 255 / .8);
}

/* ====== BEWEGING BEPERKEN ====== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
