/* ==========================================================================
   M-Bouw – stylesheet
   1. Tokens  2. Basis  3. Layout  4. Header  5. Componenten  6. Secties
   7. Footer  8. Pop-ups en cookiebanner  9. Responsive
   ========================================================================== */

/* 1. Tokens ================================================================ */
@font-face { font-family: Exo; font-weight: 300 800; font-style: normal; font-display: swap; src: url(../fonts/exo.woff2) format("woff2"); }

:root {
    --orange: #de8c40;
    --orange-dark: #c4762d;
    --slate: #4a5668;
    --slate-dark: #3f444b;
    --blue: #7b8cb1;
    --light: #f2f3f7;
    --text: #4a5668;
    --white: #fff;
    --border: #d8dce5;
    --error: #b3261e;

    --font: Exo, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --container: 1170px;
    --gutter: clamp(16px, 3.5vw, 50px);
    --section: clamp(3rem, 7vw, 6.25rem);
    --header-h: 100px;
    --radius: 5px;
    --shadow: 0 10px 30px rgb(74 86 104 / .12);
}

/* 2. Basis ================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { margin: 0; background: var(--white); color: var(--text); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { margin: 0 0 .6em; color: var(--slate); font-weight: 800; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: 1.15rem; }
p, ul, ol { margin: 0 0 1em; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dark); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.icon { width: 1em; height: 1em; flex: none; fill: currentColor; vertical-align: -.125em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 400; padding: .6rem 1rem; background: var(--slate); color: var(--white); }
.skip-link:focus { top: 16px; }

/* 3. Layout ================================================================ */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(900px + 2 * var(--gutter)); }
.section { padding-block: var(--section); }
.section--light { background: var(--light); }
.section--tight-bottom { padding-bottom: 0; }
.section--tight-top { padding-top: 0; }
.section-head { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.center { text-align: center; }
.lead { max-width: 760px; margin-inline: auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 50px); align-items: center; }
.split__media img { width: 100%; height: auto; object-fit: cover; }
.split--reverse .split__media { order: -1; }

/* Titels: hoofdletters, Exo 800, oranje of blauw (zoals de oude site) */
.title { font-size: clamp(2.2rem, 5vw, 3.75rem); font-weight: 800; line-height: 1; text-transform: uppercase; }
.title--orange { color: var(--orange); }
.title--blue { color: var(--blue); }
.title--flush { margin-bottom: 0; }
.title--sub { font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.1; }
.title--normalcase { text-transform: none; }
.eyebrow-title { margin: 0; color: var(--orange); font-size: clamp(2.2rem, 5vw, 3.75rem); font-weight: 800; line-height: 1; }

.prose { line-height: 1.5; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { margin-top: 1.4em; color: var(--blue); font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.2; text-transform: uppercase; }
.prose h3 { margin-top: 1.2em; color: var(--slate); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose a { color: var(--orange); }
.prose a:hover { text-decoration: underline; }
.prose__img { margin: 1.75rem 0; }
.prose__img img { width: 100%; }
.prose--columns { columns: 2 240px; column-gap: 30px; }
.prose table { width: 100%; border-collapse: collapse; }
.prose td, .prose th { padding: .4rem .6rem; border: 1px solid var(--border); text-align: left; vertical-align: top; }

/* 4. Header ================================================================ */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--slate); transition: background .25s; }
.has-header-overlay .site-header { position: fixed; left: 0; right: 0; background: transparent; }
.has-header-overlay .site-header.is-scrolled, .site-header:has(.is-open) { background: var(--slate); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: var(--header-h); padding-inline: clamp(16px, 3vw, 30px); max-width: calc(var(--container) + 2 * 50px); margin-inline: auto; }
.site-logo { display: block; width: 200px; flex: none; }
.site-logo__img { width: 200px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav__list { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.site-nav__item { position: relative; display: flex; align-items: center; }
.site-nav__link { display: block; padding: .6rem .65rem; color: var(--white); font-size: 16px; font-weight: 800; line-height: 20px; text-transform: uppercase; }
.site-nav__link:hover, .site-nav__link[aria-current="page"], .site-nav__link[data-active] { color: var(--orange); }
.has-submenu .site-nav__link { padding-right: .15rem; }
.submenu-toggle { display: grid; place-items: center; width: 22px; height: 26px; padding: 0; border: 0; background: none; color: var(--white); font-size: 14px; cursor: pointer; }
.has-submenu:hover .submenu-toggle { color: var(--orange); }

.submenu {
    position: absolute; top: 100%; left: 0; z-index: 10; min-width: 230px; margin: 0; padding: .5rem 0; list-style: none;
    background: var(--slate); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.submenu a { display: block; padding: .55rem 1.1rem; color: var(--white); font-weight: 600; }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--slate-dark); color: var(--orange); }
.has-submenu:hover .submenu, .has-submenu:focus-within .submenu, .submenu.is-open { opacity: 1; visibility: visible; transform: none; }

.nav-toggle { display: none; }

/* 5. Componenten =========================================================== */
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: 12px 24px; border: 2px solid var(--orange); border-radius: 3px;
    background: var(--orange); color: var(--white);
    font: 500 16px/1.1 var(--font); text-align: center; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.button:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: var(--white); }
.button--caps { font-size: 17px; font-weight: 800; text-transform: uppercase; }
.button--caps .icon { font-size: .8em; }
.button--small { padding: 9px 18px; font-size: 15px; }
.button--outline-light { padding: 12px 20px; border: 1px solid var(--white); border-radius: 5px; background: transparent; color: var(--white); font-weight: 700; }
.button--outline-light:hover { background: var(--white); border-color: var(--white); color: var(--slate); }
.button--outline-dark { background: transparent; border-color: var(--slate); color: var(--slate); }
.button--outline-dark:hover { background: var(--slate); border-color: var(--slate); color: var(--white); }
.button-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2rem; }

/* "Lees meer over ons →" */
.link-arrow { display: inline-flex; align-items: center; gap: .6rem; padding-bottom: 7px; border-bottom: 1px solid var(--orange); color: var(--orange); font-weight: 300; }
.link-arrow .icon { font-size: .85em; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

.dot-list { padding-left: 1.25rem; }
.dot-list li { margin-bottom: .2rem; }
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .75rem; }
.check-list .icon { margin-top: .25em; color: var(--orange); }
.check-list--columns { columns: 2 280px; column-gap: 2rem; }
.check-list--columns li { break-inside: avoid; }

/* Carrousel (gedeeld) */
.carousel { position: relative; }
.carousel__track {
    display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 1.25rem) / 5);
    gap: 1.25rem; margin: 0; padding: .25rem 0 1.25rem; list-style: none;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { scroll-snap-align: start; }
.carousel__controls { display: flex; justify-content: flex-end; gap: .5rem; }
.carousel__btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--slate); cursor: pointer; }
.carousel__btn:hover { background: var(--white); }
.carousel__btn:disabled { opacity: .3; cursor: default; }

/* Formulieren */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 12px; }
.form > * { grid-column: 1 / -1; }
.form > .form__field--half { grid-column: auto; }
.form__label { display: block; margin-bottom: .35rem; color: var(--slate); font-size: 15px; font-weight: 600; }
.form__field input:not([type="checkbox"]), .form__field select, .form__field textarea {
    width: 100%; min-height: 46px; padding: .65rem .9rem; border: 1px solid var(--border); border-radius: 3px;
    background: var(--white); color: var(--slate); font: 400 16px/1.4 var(--font);
}
.form__field textarea { min-height: 120px; resize: vertical; }
.form__field ::placeholder { color: #8a93a3; }
.form__field :focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange); }
.form__field.has-error :is(input, select, textarea) { border-color: var(--error); }
.form__error { margin: .3rem 0 0; color: var(--error); font-size: 14px; font-weight: 600; }
.form-alert { margin-bottom: 1rem; padding: .75rem 1rem; border-left: 4px solid var(--error); background: #fdecea; color: var(--error); font-weight: 600; }
.form .button { justify-self: start; }
.form__note { margin: .9rem 0 0; font-size: 14px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Lightbox (projectfoto's) */
.lightbox { max-width: min(1400px, 94vw); max-height: 94vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgb(0 0 0 / .88); }
.lightbox img { max-width: 100%; max-height: 90vh; width: auto; height: auto; margin: auto; }
.lightbox__btn { position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--white); color: var(--slate); font-size: 20px; cursor: pointer; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Voor/na-schuif */
.compare { --pos: 50%; position: relative; margin: 0; overflow: hidden; border-radius: 10px; }
.compare--65 { --pos: 65%; }
.compare img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; }
.compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__label { position: absolute; top: 12px; left: 12px; padding: 2px 8px; border-radius: 3px; background: rgb(0 0 0 / .55); color: var(--white); font-size: 13px; }
.compare__label--after { left: auto; right: 12px; }
.compare__control input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare__handle {
    position: absolute; top: 50%; left: var(--pos); z-index: 1; display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: var(--white); font-size: 11px;
    transform: translate(-50%, -50%); pointer-events: none;
}
.compare__handle::before { content: ""; position: absolute; left: 50%; top: -100vh; bottom: -100vh; width: 2px; background: var(--white); transform: translateX(-50%); z-index: -1; }
.compare:has(input:focus-visible) .compare__handle { outline: 3px solid var(--white); }

/* Tabbladen (Totaalverbouwing) */
.tabs { display: grid; grid-template-columns: 280px 1fr; gap: clamp(1.5rem, 5vw, 60px); align-items: start; }
.tabs__list { display: flex; flex-direction: column; gap: .5rem; padding-top: 3rem; }
.tabs__tab { padding: .8rem 1rem; border: 0; border-left: 3px solid transparent; background: transparent; color: var(--slate); font: 600 15px/1.3 var(--font); text-align: left; cursor: pointer; }
.tabs__tab[aria-selected="true"] { border-left-color: var(--orange); background: var(--light); }
.tabs__tab:hover { color: var(--orange); }
.tabs__panel img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }

/* 6. Secties ================================================================ */

/* Homepage-slider */
.hero-slider { position: relative; height: 100vh; min-height: 520px; max-height: 1000px; background: var(--slate); }
.hero-slider__track { display: flex; height: 100%; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hero-slider__track::-webkit-scrollbar { display: none; }
.hero-slider__slide { position: relative; display: flex; align-items: center; flex: 0 0 100%; scroll-snap-align: start; isolation: isolate; }
.hero-slider__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-slider__slide::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(0 0 0 / .35); }
.hero-slider__box { display: inline-block; max-width: 560px; padding: clamp(1.5rem, 4vw, 60px); border: 2px solid var(--white); border-radius: 5px; }
.hero-slider__title { margin: 0 0 1.25rem; color: var(--white); font-size: clamp(2rem, 5vw, 3.75rem); font-weight: 700; line-height: 1; text-transform: uppercase; }
.hero-slider__link { display: inline-flex; align-items: center; gap: .5rem; color: var(--white); }
.hero-slider__link:hover { color: var(--orange); }
.hero-slider__btn { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--white); font-size: 20px; cursor: pointer; transform: translateY(-50%); }
.hero-slider__btn:hover { color: var(--orange); }
.hero-slider__btn--prev { left: 12px; }
.hero-slider__btn--next { right: 12px; }

/* Band met drie voordelen */
.usp-bar { background: var(--slate); color: var(--white); }
.usp-bar__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 0 auto; padding-block: 2.5rem; list-style: none; }
.usp-bar__item { display: flex; align-items: center; gap: 1rem; font-weight: 700; font-size: 15px; line-height: 1.35; text-transform: uppercase; }
.usp-bar__icon { width: 50px; height: 50px; color: var(--orange); }

/* Intro homepage */
.intro .title--blue { margin-bottom: 1.75rem; }
.intro .prose { margin-bottom: 1.75rem; }

/* Onze klanten */
.klanten .title { margin-bottom: .75rem; }
.klanten__img { width: 100%; aspect-ratio: 436 / 255; object-fit: cover; }
.klanten__name { margin-bottom: 1.5rem; font-size: 16px; font-weight: 700; text-transform: none; }
.klanten__quote p { margin-bottom: 2rem; }

/* Fotobanner (over ons, projecten) */
.photo-banner img { width: 100%; height: clamp(260px, 46vh, 520px); object-fit: cover; }

/* Over ons */
.about .title { margin-bottom: 2rem; text-transform: none; }
.about .eyebrow-title + .title { margin-top: 0; }

/* Diensten-overzicht */
.dienst-row { padding-block: clamp(2rem, 5vw, 4rem); }
.dienst-row .title { margin-bottom: 1.5rem; font-size: clamp(2rem, 4.5vw, 3.75rem); }
.dienst-row .prose { margin-bottom: 1.75rem; }

/* Pagina met zijbalk (diensten, privacy, referenties) */
.content-page__grid { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 50px; align-items: start; }
.content-page__main > .title { margin-bottom: .5em; }
.content-page__main > .title--flush { margin-bottom: 0; }
.content-page__main > .title--sub { margin-bottom: 1rem; }
.content-page__cta { margin-top: 3rem; text-align: center; }
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); }
.sidebar__box { padding: 20px; background: var(--light); }
.sidebar__title { margin-bottom: .75rem; color: var(--slate); font-size: 20px; text-transform: uppercase; }
.sidebar__buttons { display: grid; justify-items: start; gap: .75rem; margin-top: 1.25rem; }
.sidebar__list { margin: 1.5rem 0 0; padding: 0 20px; list-style: none; color: var(--blue); }
.sidebar__list li { display: flex; gap: .5rem; margin-bottom: .9rem; }
.sidebar__list .icon { margin-top: .3em; color: var(--orange); font-size: 14px; }

/* Referenties */
.reviews { display: grid; gap: 1.25rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.review { padding: 20px 24px; background: var(--light); border-radius: 3px; }
.review__name { margin: 0 0 .25rem; font-size: 18px; text-transform: uppercase; }
.review__place { margin: 0 0 .25rem; }
.review__stars { display: flex; gap: 2px; margin: 0 0 .6rem; color: #c9ced8; font-size: 15px; }
.review__stars .is-on { color: var(--orange); }
.review__text { margin-bottom: .75rem; }
.review__link { display: inline-flex; align-items: center; gap: .35rem; font-size: 14px; font-weight: 800; text-transform: uppercase; }
.review__link .icon { font-size: .75em; }

/* Veelgestelde vragen (partials/faq.php) */
.faq__list { display: grid; gap: .75rem; margin-top: 1.5rem; }
.faq__item { background: var(--light); border-radius: 3px; }
.faq__question { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; color: var(--slate); font-weight: 800; cursor: pointer; list-style: none; }
.faq__question::-webkit-details-marker { display: none; }
.faq__question:hover { color: var(--orange); }
.faq__question:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.faq__icon { flex: none; color: var(--orange); transition: transform .2s; }
.faq__item[open] .faq__icon { transform: rotate(180deg); }
.faq__answer { padding: 0 1.25rem 1.25rem; }
.faq__answer p { margin: 0; }

/* Werkgebied (plaatspagina's, partials/werkgebied-page.php) */
.wg-hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(380px, 62vh, 620px); color: var(--white); }
.wg-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wg-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(30 36 46 / .85), rgb(30 36 46 / .25) 70%, rgb(30 36 46 / .1)); }
.wg-hero__content { position: relative; z-index: 1; width: 100%; padding-block: clamp(2.5rem, 7vw, 5rem); }
.wg-hero__title { max-width: 14ch; margin: 0 0 1rem; color: var(--white); font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 800; line-height: 1; text-transform: uppercase; text-wrap: balance; }
.wg-hero__lead { max-width: 46ch; margin: 0 0 1.75rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.wg-hero__buttons { display: flex; flex-wrap: wrap; gap: .75rem; }
.wg-facts { background: var(--light); }
.wg-facts__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 0 auto; padding-block: 1.75rem; list-style: none; }
.wg-facts__list li { display: flex; align-items: baseline; gap: .75rem; }
.wg-facts__list b { color: var(--orange); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; line-height: 1; }
.wg-facts__list span { color: var(--slate); font-weight: 700; line-height: 1.3; }
.wg-intro__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.wg-intro__text h2 { color: var(--blue); font-size: clamp(1.5rem, 2.6vw, 2rem); }
.wg-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.wg-service { display: flex; flex-direction: column; height: 100%; background: var(--white); box-shadow: var(--shadow); color: var(--text); }
.wg-service__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.wg-service__body { display: flex; flex: 1; flex-direction: column; gap: .4rem; padding: 1.25rem 1.25rem 1.5rem; }
.wg-service__name { color: var(--slate); font-size: 1.15rem; font-weight: 800; text-transform: uppercase; }
.wg-service__more { display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; padding-top: .5rem; color: var(--orange); font-size: 14px; font-weight: 800; text-transform: uppercase; }
.wg-service__more .icon { font-size: .75em; }
.wg-service:hover .wg-service__name { color: var(--orange); }
.wg-project-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 230px; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.wg-projects__more { margin-top: 2rem; }
.wg-project-grid .is-featured { grid-column: span 2; grid-row: span 2; }
.wg-project { position: relative; display: block; height: 100%; min-height: 220px; overflow: hidden; color: var(--white); }
.wg-project__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.wg-project:hover .wg-project__img { transform: scale(1.04); }
.wg-project__caption { position: absolute; inset: auto 0 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .25rem 1rem; padding: 2.5rem 1rem 1rem; background: linear-gradient(to top, rgb(30 36 46 / .85), transparent); }
.wg-project__title { font-size: 1.05rem; font-weight: 800; text-transform: uppercase; }
.is-featured .wg-project__title { font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
.wg-project__more { display: inline-flex; align-items: center; gap: .4rem; font-size: 14px; }
.wg-project:hover .wg-project__more, .wg-project:focus-visible .wg-project__more { color: var(--orange); }
.wg-project:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.wg-quote { font-size: 1.15rem; font-style: italic; line-height: 1.6; }
.wg-places { padding-block: 2.5rem; border-top: 1px solid var(--light); }
.wg-places__title { margin: 0 0 1rem; color: var(--slate); font-size: 20px; text-transform: uppercase; }
.wg-places__list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.wg-places__list a { display: inline-block; padding: .45rem 1rem; border: 2px solid var(--light); border-radius: 24px; color: var(--slate); font-weight: 700; }
.wg-places__list a:hover { border-color: var(--orange); color: var(--orange); }
.wg-cta { background: var(--slate); color: var(--white); }
.wg-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.wg-cta__title { margin: 0 0 .35rem; color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); text-transform: uppercase; }
.wg-cta p { margin: 0; }
.concept-note { display: inline-block; margin-bottom: 1rem; padding: .35rem .75rem; background: #fff3cd; color: #664d03; font-size: 14px; font-weight: 700; }

/* Kenniscentrum: overzicht (pages/kenniscentrum.php), kaarten (partials/post-card.php) en artikel (blog-post.php) */
.kc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 50px); align-items: start; }
.kc-layout > * { min-width: 0; }
.kc-sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.topic-filter__title { margin: 0 0 .75rem; color: var(--slate); font-size: 20px; font-weight: 800; text-transform: uppercase; }
.topic-filter ul { display: grid; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.topic-filter a { display: flex; justify-content: space-between; gap: .5rem; padding: .55rem .75rem; border-left: 3px solid transparent; color: var(--text); font-weight: 700; }
.topic-filter a span { color: var(--blue); font-size: 14px; }
.topic-filter a:hover { background: var(--light); color: var(--orange); }
.topic-filter a[aria-current="page"] { border-left-color: var(--orange); background: var(--light); color: var(--slate); }
.kc-sidebar__card .button { margin-top: .5rem; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.post-card { height: 100%; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.post-card__link { display: flex; flex-direction: column; height: 100%; color: var(--text); }
.post-card__media { position: relative; }
.post-card__img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.post-card__category, .post-card__draft { position: absolute; top: 12px; padding: .25rem .6rem; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.post-card__category { left: 12px; background: var(--orange); color: var(--white); }
.post-card__draft { right: 12px; background: #fff3cd; color: #664d03; }
.post-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.25rem 1.5rem 1.5rem; }
.post-card__meta, .post-date { display: flex; gap: .5rem; margin: 0 0 .5rem; color: var(--blue); font-size: 14px; font-weight: 700; }
.post-card__title { margin: 0 0 1rem; color: var(--slate); font-size: 1.2rem; line-height: 1.3; }
.post-card__more { display: inline-flex; align-items: center; gap: .35rem; margin: auto 0 0; color: var(--orange); font-size: 14px; font-weight: 800; text-transform: uppercase; }
.post-card__more .icon { font-size: .75em; }
.post-card__link:hover .post-card__title { color: var(--orange); }
.post-grid--related { margin-block: 2rem; }
.article-wrap { max-width: calc(820px + 2 * var(--gutter)); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1rem; font-size: 14px; font-weight: 800; text-transform: uppercase; }
.breadcrumb .icon { color: var(--blue); font-size: 10px; }
.article__title { margin-bottom: .5rem; font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.1; }
.article { font-size: 18px; line-height: 1.7; }
.article h2, .article h3 { margin-top: 1.6em; color: var(--slate); }
.article-tip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding: 1.5rem 2rem; background: var(--light); border-left: 4px solid var(--orange); }
.article-tip__question { margin: 0; color: var(--slate); font-size: 1.2rem; font-weight: 800; }

/* Contact */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 50px; align-items: start; }
.contact__form .title--sub { margin: .25rem 0 1rem; }
.contact__form .form { margin-top: 1.5rem; }
.contact__aside { padding: 20px; background: var(--light); }
.contact__list { margin: 0 0 1.5rem; padding: 0; list-style: none; }
.contact__list li { display: flex; align-items: center; gap: .5rem; margin-bottom: .35rem; }
.contact__list .icon { color: var(--orange); font-size: 13px; }
.contact__list a { color: var(--text); }
.contact__list a:hover { color: var(--orange); }

/* Projecten (overzicht): zoals de oude site. In rust alleen de foto; bij hover/focus een zwarte laag (57%)
   met een wit kader (4px, radius 6px) met type-labels, titel en "Bekijk project ->". Geen overgangsanimatie. */
.projecten-head { padding-block: 100px; text-align: center; }
.projecten-head__title { margin: 0 0 20px; color: var(--orange); font-size: clamp(2.2rem, 5vw, 3.75rem); font-weight: 800; line-height: 1; }
.projecten-head__intro { max-width: 58%; margin: 0 auto 14.4px; }
.project-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; }
.project-card { position: relative; display: flex; min-height: 340px; color: #e5e5e5; text-align: center; }
.project-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-card__overlay { position: relative; display: flex; flex: 1; padding: 20px; background: rgb(0 0 0 / .57); opacity: 0; }
.project-card:hover .project-card__overlay, .project-card:focus-visible .project-card__overlay { opacity: 1; }
.project-card:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.project-card__frame { display: flex; flex: 1; flex-direction: column; justify-content: center; align-items: center; gap: 30px; min-height: 300px; padding: 20px; border: 4px solid var(--white); border-radius: 6px; }
.project-card__types { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; margin: 0; }
.project-card__type { margin: 0 3px; padding: 2px 10px; border-radius: 5px; background: var(--orange); color: #e5e5e5; font-size: 12px; line-height: 18px; }
.project-card__title { margin: 0; color: #e5e5e5; font-size: 35px; font-weight: 800; line-height: 1; text-transform: none; }
.project-card__more { font-size: 16px; }
.project-card:hover { color: #e5e5e5; }

.photo-banner--project img { height: clamp(240px, 34vh, 420px); }
.project__details-title { margin: 0 0 .4rem; font-size: 16px; font-weight: 700; text-transform: none; }
.project__details { display: flex; gap: .75rem; margin: 0 0 2.5rem; }
.project__details dt { font-weight: 600; }
.project__details dd { margin: 0; }
.project__details a { color: var(--text); font-weight: 300; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.gallery a { display: block; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }

/* Tekstpagina's en sitemap */
.text-page .title { font-size: clamp(2rem, 4.5vw, 3.75rem); }
.sitemap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 4rem; }
.sitemap__title { color: var(--blue); font-size: 1.5rem; text-transform: uppercase; }
.sitemap__list { margin: 0; padding-left: 1.2rem; }
.sitemap__list li { margin-bottom: .3rem; }

/* Bedankt */
.thanks { padding-block: calc(var(--section) * 1.5); }
.thanks__title { color: var(--slate); font-size: clamp(1.6rem, 3.5vw, 2.5rem); text-transform: none; }
.thanks__title span { color: var(--orange); }

/* Totaalverbouwing */
.tv-title { color: var(--slate); font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; line-height: 1.15; }
.tv-title span { color: var(--orange); }
.tv-title--light { color: var(--white); }
.tv-hero { position: relative; display: flex; align-items: center; min-height: min(100vh, 860px); padding-block: calc(var(--header-h) + 3rem) 4rem; color: var(--white); text-align: center; isolation: isolate; }
.tv-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.tv-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(25 28 34 / .62); }
.tv-hero__title { max-width: 900px; margin: 0 auto 1rem; color: var(--white); font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; line-height: 1.1; }
.tv-hero__title span { color: var(--orange); }
.tv-hero__lead { margin-bottom: 2rem; }
.tv-hero__checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 3rem; margin: 0 auto; padding: 0; list-style: none; }
.tv-hero__checks li { display: flex; align-items: center; gap: .7rem; max-width: 230px; font-size: 14px; text-align: left; }
.tv-hero__checks .icon { color: var(--orange); font-size: 22px; }
.tv-quote { position: relative; }
.tv-quote__box { position: relative; z-index: 1; margin: 0 0 -60px; padding: clamp(1.5rem, 4vw, 40px) clamp(1.5rem, 5vw, 70px); background: var(--light); border-radius: 15px; color: var(--slate); font-weight: 600; font-style: italic; text-transform: uppercase; }
.tv-quote__box p { margin: 0; }
.tv-quote__img { width: 100%; height: clamp(260px, 50vw, 620px); object-fit: cover; }
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; max-width: 900px; margin: 0 auto; padding: 0; list-style: none; text-align: center; }
.partner-grid__icon { width: 56px; height: 56px; margin: 0 auto .75rem; }
.partner-grid p { max-width: 230px; margin: 0 auto; font-size: 15px; }
.tv-review { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; align-items: end; }
.tv-review__card { margin: 0 0 2rem -60px; padding: 2rem; background: var(--blue); border-radius: 15px; color: var(--white); position: relative; z-index: 1; }
.tv-review__card p { font-style: italic; }
.tv-review__footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.tv-review__name { margin: 0; font-style: normal !important; font-weight: 600; }
.steps { counter-reset: none; }
.step { display: grid; justify-items: center; align-content: start; gap: .75rem; }
.step__card { display: grid; justify-items: center; align-content: center; width: 100%; min-height: 190px; padding: 1.5rem 1rem; background: var(--white); border-radius: 10px; text-align: center; }
.step__icon { width: 64px; height: 64px; margin-bottom: 1rem; }
.step__title { margin: 0; font-size: 15px; font-weight: 600; }
.tv-form { background: var(--slate); color: var(--white); }
.tv-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 60px); align-items: start; }
.tv-form__panel { padding: clamp(1.25rem, 3vw, 2rem); background: var(--white); border-radius: 10px; color: var(--text); }

/* 7. Footer ================================================================ */
.rating-band { background: var(--blue); color: var(--white); overflow: hidden; }
.rating-band__inner { display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 4vw, 2.5rem); min-height: 100px; }
.rating-band__text { margin: 0; font-size: clamp(14px, 1.6vw, 18px); font-weight: 800; text-transform: uppercase; }
.rating-band__score { display: flex; align-items: baseline; justify-content: center; flex: none; width: 120px; height: 120px; margin: -10px 0; padding-top: 38px; border-radius: 50%; background: var(--orange); font-size: 40px; font-weight: 800; line-height: 1; }
.rating-band__score span { font-size: 22px; }

.site-footer { position: relative; padding-block: 3.5rem 2rem; background: var(--slate) url(../img/footer-patroon-480.webp) right 5% top 30px / 260px auto no-repeat; color: var(--white); }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--orange); }
.site-footer__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 50px; }
.site-footer__title { margin-bottom: 1.25rem; color: var(--white); font-size: 22px; text-transform: uppercase; }
.site-footer__list { margin: 0; padding: 0; list-style: none; }
.site-footer__list li { margin-bottom: .1rem; }
.site-footer__list--2col { columns: 2; column-gap: 50px; }
.site-footer__contact { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 50px; }
.site-footer address { font-style: normal; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin: 3rem 0 0; padding: 0; list-style: none; font-size: 13px; }

.sticky-cta { position: fixed; right: 30px; bottom: 0; z-index: 90; padding: 12px 24px; border-radius: 6px 6px 0 0; background: var(--orange); color: var(--white); font-size: 18px; font-weight: 700; box-shadow: var(--shadow); }
.sticky-cta:hover { background: var(--orange-dark); color: var(--white); }

/* 8. Pop-ups en cookiebanner ================================================ */
.dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: clamp(1.5rem, 4vw, 40px); border: 0; border-radius: 5px; background: var(--white); color: var(--text); box-shadow: 0 20px 60px rgb(0 0 0 / .3); }
.dialog::backdrop { background: rgb(0 0 0 / .8); }
.dialog__close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: none; color: var(--slate); font-size: 20px; cursor: pointer; }
.dialog__close:hover { color: var(--orange); }
.dialog__title { margin: 0 0 1.25rem; color: var(--orange); font-size: clamp(2rem, 5vw, 3rem); line-height: 1; text-transform: uppercase; }
.dialog__title-small { display: block; color: var(--blue); font-size: .6em; }
.dialog__title--brochure { color: var(--slate); font-size: clamp(1.25rem, 3vw, 1.6rem); line-height: 1.25; text-transform: none; }
.dialog__title--brochure span { color: var(--orange); }

.consent {
    position: fixed; left: 16px; bottom: 16px; z-index: 300; width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto;
    padding: 1.5rem; background: var(--white); color: var(--text); border-radius: 5px; box-shadow: 0 10px 40px rgb(0 0 0 / .25); font-size: 14px; line-height: 1.55;
}
.consent[hidden] { display: none; }
.consent__title { margin: 0 0 .5rem; color: var(--slate); font-size: 1.1rem; font-weight: 800; }
.consent__text a { font-weight: 600; }
.consent__options { display: grid; gap: .75rem; margin: 1rem 0; }
.consent__option { display: flex; align-items: flex-start; gap: .6rem; }
.consent__option input { width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--orange); }
.consent__buttons { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.consent__buttons .button { flex: 1 1 auto; padding: 10px 14px; font-size: 14px; }
.button--ghost-dark { background: transparent; border-color: var(--slate); color: var(--slate); }
.button--ghost-dark:hover { background: var(--slate); border-color: var(--slate); color: var(--white); }

/* 9. Responsive ============================================================= */
@media (max-width: 1200px) {
    .wg-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wg-project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-nav__link { padding-inline: .45rem; font-size: 15px; }
    .carousel__track { grid-auto-columns: calc((100% - 2 * 1.25rem) / 3); }
    .site-footer__contact { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
    .project-grid { grid-template-columns: repeat(2, 1fr); }
    .projecten-head { padding: 50px 0; }
    .projecten-head__intro { max-width: none; }
    :root { --header-h: 80px; }
    .site-logo, .site-logo__img { width: 160px; }
    .nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--white); font-size: 24px; cursor: pointer; }
    .nav-toggle__close, .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
    .nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
    .site-nav {
        position: fixed; inset: var(--header-h) 0 0; z-index: 99; display: none; flex-direction: column; align-items: stretch; gap: 1.5rem;
        padding: 1.5rem var(--gutter) 2rem; background: var(--slate); overflow-y: auto;
    }
    .site-nav.is-open { display: flex; }
    .site-nav__list { flex-direction: column; align-items: stretch; }
    .site-nav__item { flex-wrap: wrap; border-bottom: 1px solid rgb(255 255 255 / .12); }
    .site-nav__link { flex: 1; padding: .9rem 0; font-size: 17px; }
    .submenu-toggle { width: 44px; height: 44px; }
    .submenu-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
    .submenu { position: static; display: none; width: 100%; min-width: 0; padding: 0 0 .5rem 1rem; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
    .submenu.is-open { display: block; }
    .has-submenu:hover .submenu:not(.is-open), .has-submenu:focus-within .submenu:not(.is-open) { display: none; }
    .site-nav__phone { align-self: flex-start; }

    .content-page__grid, .contact__grid { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .tabs { grid-template-columns: 1fr; }
    .tabs__list { flex-direction: row; flex-wrap: wrap; padding-top: 0; }
    .tabs__tab { border-left: 0; border-bottom: 3px solid transparent; }
    .tabs__tab[aria-selected="true"] { border-bottom-color: var(--orange); }
}

@media (max-width: 900px) {
    .wg-facts__list { grid-template-columns: 1fr; gap: .75rem; }
    .wg-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kc-layout { grid-template-columns: minmax(0, 1fr); }
    .kc-sidebar { position: static; }
    .kc-sidebar__card { display: none; }
    .topic-filter ul { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; }
    .topic-filter a { padding: .45rem .9rem; border: 2px solid var(--light); border-radius: 24px; white-space: nowrap; }
    .topic-filter a[aria-current="page"] { border-color: var(--orange); }
    .split, .tv-form__grid { grid-template-columns: 1fr; }
    .split--reverse .split__media { order: 0; }
    .usp-bar__list { grid-template-columns: 1fr; gap: 1rem; padding-block: 2rem; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .partner-grid { grid-template-columns: repeat(2, 1fr); }
    .tv-review { grid-template-columns: 1fr; }
    .tv-review__card { margin: -2rem 1rem 0; }
    .carousel__track { grid-auto-columns: calc((100% - 1.25rem) / 2); }
    .site-footer__grid, .site-footer__contact { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .wg-services { grid-template-columns: 1fr; }
    .wg-project-grid { grid-template-columns: 1fr; }
    .wg-project-grid { grid-auto-rows: 240px; }
    .wg-project-grid .is-featured { grid-column: auto; grid-row: auto; }
    .wg-hero__buttons .button { width: 100%; justify-content: center; }
    .post-grid { grid-template-columns: 1fr; }
    .article { font-size: 17px; }
    .article-tip { padding: 1.25rem; }
    .article-tip .button { width: 100%; text-align: center; }
    .project-grid { grid-template-columns: 1fr; }
    .projecten-head { text-align: left; }
}

@media (max-width: 600px) {
    .hero-slider { height: 80vh; min-height: 460px; }
    .hero-slider__box { padding: 1.25rem; }
    .hero-slider__btn { top: auto; bottom: 16px; transform: none; }
    .gallery { grid-template-columns: 1fr; }
    .partner-grid { grid-template-columns: 1fr; }
    .sitemap { grid-template-columns: 1fr; }
    .form { grid-template-columns: 1fr; }
    .form > .form__field--half { grid-column: 1 / -1; }
    .rating-band__inner { flex-wrap: wrap; gap: .75rem 1rem; padding-block: 1.25rem; text-align: center; }
    .rating-band__text { flex: 1 1 100%; }
    .rating-band__score { order: -1; width: 90px; height: 90px; margin: 0; padding-top: 26px; font-size: 32px; }
    .carousel__track { grid-auto-columns: 80%; }
    .site-footer__list--2col { columns: 1; }
    .sticky-cta { right: 16px; font-size: 16px; padding: 10px 18px; }
    .tv-hero__checks { flex-direction: column; align-items: center; }
    .button-row .button { flex: 1 1 100%; }
}

/* Aanbevelen (/aanbevelen/): kortere kop en drie stappen */
.tv-hero--compact { min-height: min(70vh, 620px); }
.aanbeveel-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.aanbeveel-step { padding: 1.5rem; background: var(--white); border-radius: 10px; }
.aanbeveel-step__nr { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 1rem; border-radius: 50%; background: var(--orange); color: var(--white); font-weight: 800; }
.aanbeveel-step__title { margin: 0 0 .5rem; color: var(--slate); font-size: 1.2rem; }
.aanbeveel-step p { margin: 0; }
@media (max-width: 800px) {
    .aanbeveel-steps { grid-template-columns: 1fr; }
}
