/*
Theme Name: Van der Meij Fris
Theme URI: https://vandermeijafbouwbedrijf.nl/
Author: Van der Meij Afbouwbedrijf
Description: Fris, dynamisch thema voor Van der Meij Afbouwbedrijf. Neemt alle bestaande pagina's, projecten, menu's en URL's ongewijzigd over, met een automatisch opgebouwde homepage, filterbaar projectenoverzicht, lightbox, animaties en een AVG-vriendelijke cookiemelding (Google Consent Mode v2). Er wordt niets aan de inhoud gewijzigd.
Version: 1.2.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vandermeij-fris
Tags: one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ---------- Basis ---------- */
:root {
	--vdm-dark: #121212;
	--vdm-accent: #1b5c21;
	--vdm-accent-ink: #ffffff;
	--vdm-accent-light: #5cb85f;
	--vdm-accent-soft: #e9f3ea;
	--vdm-text: #222;
	--vdm-muted: #5f6661;
	--vdm-line: #e4e8e4;
	--vdm-tint: #f5f8f5;
	--vdm-white: #fff;
	--radius: 14px;
	--radius-lg: 22px;
	--shadow: 0 10px 30px -12px rgba(18, 18, 18, .18);
	--shadow-lg: 0 30px 60px -22px rgba(18, 18, 18, .28);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
	--font-head: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
	--header-h: 116px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.7;
	color: var(--vdm-text);
	background: var(--vdm-white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--vdm-accent); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .6em; color: var(--vdm-dark); }
p { margin: 0 0 1.2em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--vdm-accent); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 40px); }
.icon { width: 1.1em; height: 1.1em; flex: none; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--vdm-accent); color: var(--vdm-accent-ink); padding: .6em 1em; border-radius: 8px; font-weight: 700; }
.skip-link:focus { left: 8px; }

.linklike { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Knoppen ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	padding: .8em 1.35em; border-radius: 999px; border: 2px solid transparent;
	font-weight: 700; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s, border-color .25s;
	white-space: nowrap;
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .icon-arrow { transform: translateX(4px); }
.btn--lg { padding: 1em 1.7em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--accent { background: var(--vdm-accent); color: var(--vdm-accent-ink); box-shadow: 0 8px 20px -8px var(--vdm-accent); }
.btn--accent:hover { color: var(--vdm-accent-ink); filter: brightness(1.06); box-shadow: 0 14px 28px -10px var(--vdm-accent); }
.btn--dark { background: var(--vdm-dark); color: #fff; }
.btn--dark:hover { color: #fff; background: color-mix(in srgb, var(--vdm-dark) 85%, #fff); }
.btn--light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.btn--light:hover { background: #fff; color: var(--vdm-dark); }
.btn--ghost { background: transparent; color: var(--vdm-dark); border-color: var(--vdm-line); }
.btn--ghost:hover { border-color: var(--vdm-dark); color: var(--vdm-dark); }
.btn--link { background: none; color: var(--vdm-muted); text-decoration: underline; padding-inline: .6em; }
.btn--link:hover { color: var(--vdm-dark); transform: none; }

.eyebrow {
	display: inline-flex; align-items: center; gap: .7em;
	font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	color: var(--vdm-accent); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--dark { color: var(--vdm-accent); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; color: var(--vdm-dark); box-shadow: 0 1px 0 var(--vdm-line); transition: background .35s, box-shadow .35s, transform .35s var(--ease); }
.topbar { font-size: .82rem; background: var(--vdm-accent); color: #fff; transition: margin .35s var(--ease), opacity .3s; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.topbar__tag { opacity: .7; }
.topbar__links { display: flex; gap: 1.4rem; align-items: center; }
.topbar__links a { display: inline-flex; gap: .45em; align-items: center; text-decoration: none; opacity: .85; }
.topbar__links a:hover { opacity: 1; color: #fff; text-decoration: underline; }
.topbar .icon { width: 15px; height: 15px; }

.header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); transition: min-height .35s var(--ease); }
.site-logo { display: block; flex: none; }
.site-logo img { height: 58px; width: auto; transition: height .35s var(--ease), opacity .3s; }
.site-logo--header img { height: 96px; }
.header__inner { padding-block: 10px; }
.site-logo--header { position: relative; }
.site-logo__light { position: absolute; left: 0; top: 0; opacity: 0; }
.vdm-home .site-header.is-transparent:not(.is-scrolled) .site-logo__dark { opacity: 0; }
.vdm-home .site-header.is-transparent:not(.is-scrolled) .site-logo__light { opacity: 1; }

.main-nav { margin-left: auto; }
.main-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; align-items: center; }
.main-nav .menu > li { position: relative; }
.main-nav .menu > li > a {
	display: flex; align-items: center; gap: .35em; padding: .6em .95em; border-radius: 999px;
	font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--vdm-dark); transition: background .2s, color .2s;
}
.main-nav .menu > li > a:hover,
.main-nav .menu > li.current-menu-item > a,
.main-nav .menu > li.current-menu-ancestor > a,
.main-nav .menu > li.current_page_item > a { background: var(--vdm-accent-soft); color: var(--vdm-accent); }
.main-nav .menu > li.current-menu-item > a::after,
.main-nav .menu > li.current_page_item > a::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--vdm-accent); margin-left: .2em; }
.main-nav .menu-item-has-children > a .sub-toggle-icon,
.main-nav .menu-item-has-children > a::before { order: 2; }
.main-nav .menu > .menu-item-has-children > a::after { content: ""; width: .45em; height: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: .35em; opacity: .7; background: none; border-radius: 0; }

/* Submenu (projecten) als mega-dropdown */
.main-nav .sub-menu {
	list-style: none; margin: 0; padding: .8rem;
	position: absolute; top: calc(100% + 12px); left: 50%;
	transform: translate(-50%, 8px); opacity: 0; visibility: hidden;
	background: #fff; color: var(--vdm-text); border-radius: var(--radius);
	box-shadow: var(--shadow-lg); min-width: 280px; max-height: 70vh; overflow: auto;
	transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.main-nav .sub-menu::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.main-nav .menu > li:hover > .sub-menu,
.main-nav .menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.main-nav .sub-menu:has(> li:nth-child(8)) { columns: 3 200px; width: min(760px, 90vw); column-gap: .5rem; left: auto; right: -40px; transform: translateY(8px); }
.main-nav .menu > li:hover > .sub-menu:has(> li:nth-child(8)), .main-nav .menu > li:focus-within > .sub-menu:has(> li:nth-child(8)) { transform: none; }
.main-nav .sub-menu li { break-inside: avoid; }
.main-nav .sub-menu a { display: block; padding: .5em .8em; border-radius: 8px; font-size: .9rem; line-height: 1.35; text-decoration: none; }
.main-nav .sub-menu a:hover, .main-nav .sub-menu .current-menu-item > a { background: var(--vdm-tint); color: var(--vdm-dark); }
.main-nav .sub-menu .current-menu-item > a { box-shadow: inset 3px 0 0 var(--vdm-accent); }

.header__cta { flex: none; }
.nav-toggle { display: none; }

/* Transparante header over de hero op de homepage */
.vdm-home .site-header.is-transparent { position: fixed; left: 0; right: 0; background: linear-gradient(to bottom, rgba(10,12,10,.6), rgba(10,12,10,0)); box-shadow: none; color: #fff; }
.vdm-home .site-header.is-transparent .topbar { background: rgba(27,92,33,.85); }
@media (min-width: 981px) {
.vdm-home .site-header.is-transparent:not(.is-scrolled) .main-nav .menu > li > a { color: #fff; }
.vdm-home .site-header.is-transparent:not(.is-scrolled) .main-nav .menu > li > a:hover,
.vdm-home .site-header.is-transparent:not(.is-scrolled) .main-nav .menu > li.current-menu-item > a { background: rgba(255,255,255,.14); color: #fff; }
}
.site-header.is-scrolled { background: rgba(255,255,255,.96) !important; color: var(--vdm-dark); backdrop-filter: blur(10px); box-shadow: 0 10px 30px -18px rgba(0,0,0,.35); }
.site-header.is-scrolled .topbar { margin-top: -39px; opacity: 0; }
.site-header.is-scrolled .header__inner { min-height: 68px; }
.site-header.is-scrolled .site-logo img { height: 46px; }
.site-header.is-scrolled .site-logo--header img { height: 62px; }
.site-header.is-scrolled .header__inner { padding-block: 6px; }
.admin-bar .site-header { top: 32px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100vh, 940px); min-height: min(100svh, 940px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--vdm-dark); isolation: isolate; }
.hero__slides, .hero__slide, .hero__overlay { position: absolute; inset: 0; }
.hero__slide { background-size: cover; background-position: center; opacity: 0; transform: scale(1.12); transition: opacity 1.4s ease, transform 8s linear; }
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__overlay { background:
	linear-gradient(100deg, rgba(12,14,12,.9) 0%, rgba(12,14,12,.62) 45%, rgba(12,14,12,.15) 100%),
	linear-gradient(to top, rgba(12,14,12,.55), transparent 40%); }
.hero .eyebrow { color: var(--vdm-accent-light); }
.hero__content { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 80px); padding-bottom: 120px; }
.hero__title { color: #fff; font-size: clamp(2.3rem, 5.4vw, 4.4rem); font-weight: 800; max-width: 17ch; margin-bottom: .45em; }
.hero__text { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 52ch; opacity: .88; margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__dots { position: absolute; z-index: 3; right: max(20px, calc((100% - 1200px) / 2)); bottom: 46px; display: flex; gap: 8px; }
.hero__dots button { width: 34px; height: 4px; border-radius: 4px; border: 0; padding: 0; background: rgba(255,255,255,.35); cursor: pointer; transition: background .3s, width .3s; }
.hero__dots button.is-active { background: var(--vdm-accent-light); width: 54px; }
.hero__scroll { position: absolute; z-index: 3; left: 50%; bottom: 28px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 20px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Kerncijfers ---------- */
.stats { position: relative; z-index: 4; margin-top: -60px; }
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.stat { padding: 2rem 1.6rem; text-align: center; border-right: 1px solid var(--vdm-line); }
.stat:last-child { border-right: 0; }
.stat__num, .stat__suffix { font-family: var(--font-head); font-size: clamp(2.2rem, 3.6vw, 3rem); font-weight: 800; color: var(--vdm-dark); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat__suffix { color: var(--vdm-accent); }
.stat__label { display: block; margin-top: .5rem; color: var(--vdm-muted); font-size: .92rem; font-weight: 600; }

/* ---------- Secties ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--tint { background: var(--vdm-tint); }
.section__head { max-width: 700px; margin-bottom: 3rem; }
.section__head--split { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }
.section__title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; margin: 0; }
.section__foot { margin-top: 3rem; text-align: center; }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--vdm-text); }
.lead--muted { color: var(--vdm-muted); margin: 0; max-width: 560px; font-size: 1.1rem; }

/* Intro */
.intro__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.intro__media { position: relative; }
.intro__media img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.intro__media::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 2px solid var(--vdm-accent); border-radius: var(--radius-lg); z-index: -1; }
.intro__badge { position: absolute; left: -18px; bottom: 30px; background: var(--vdm-accent); color: var(--vdm-accent-ink); border-radius: var(--radius); padding: 1rem 1.3rem; box-shadow: var(--shadow); line-height: 1.1; }
.intro__badge strong { display: block; font-size: 2rem; font-family: var(--font-head); }
.intro__badge span { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.intro__text .section__title { margin-bottom: 1.2rem; }
.intro__text .btn { margin-top: .6rem; }

/* USP */
.usp { background: var(--vdm-tint); }
.usp__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.usp-card { background: #fff; border-radius: var(--radius-lg); padding: 2rem 1.7rem; border: 1px solid var(--vdm-line); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.usp-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.usp-card__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--vdm-accent-soft); color: var(--vdm-accent); margin-bottom: 1.3rem; transition: transform .35s var(--ease), background .35s, color .35s; }
.usp-card:hover .usp-card__icon { background: var(--vdm-accent); color: var(--vdm-accent-ink); transform: rotate(-6deg) scale(1.05); }
.usp-card__icon .icon { width: 26px; height: 26px; }
.usp-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.usp-card p { color: var(--vdm-muted); margin: 0; font-size: .97rem; }

/* ---------- Projecten ---------- */
.project-filter { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .5em; padding: .55em 1.1em; border-radius: 999px; border: 1.5px solid var(--vdm-line); background: #fff; color: var(--vdm-dark); font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .2s; }
.chip span { font-size: .78rem; background: var(--vdm-tint); border-radius: 999px; padding: .1em .55em; color: var(--vdm-muted); }
.chip:hover { border-color: var(--vdm-dark); }
.chip.is-active { background: var(--vdm-dark); border-color: var(--vdm-dark); color: #fff; }
.chip.is-active span { background: var(--vdm-accent); color: var(--vdm-accent-ink); }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.project-card { transition: opacity .35s, transform .35s var(--ease); }
.project-card.is-hidden { display: none; }
.project-card__link { display: block; height: 100%; text-decoration: none; background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--vdm-line); transition: box-shadow .35s, transform .35s var(--ease), border-color .35s; }
.project-card__link:hover { color: inherit; transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.project-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--vdm-tint); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-card__link:hover .project-card__media img { transform: scale(1.07); }
.project-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,20,10,.45), transparent 55%); opacity: 0; transition: opacity .35s; }
.project-card__link:hover .project-card__media::after { opacity: 1; }
.project-card__more { position: absolute; z-index: 2; right: 16px; bottom: 16px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--vdm-accent); color: var(--vdm-accent-ink); transform: translateY(12px) scale(.8); opacity: 0; transition: all .35s var(--ease); }
.project-card__link:hover .project-card__more { transform: none; opacity: 1; }
.project-card__body { padding: 1.3rem 1.4rem 1.5rem; }
.project-card__place { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--vdm-accent); margin-bottom: .35rem; }
.project-card__title { font-size: 1.2rem; margin: 0; }

/* Carousel meer projecten */
.carousel-nav { display: flex; gap: .5rem; }
.carousel-btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--vdm-line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--vdm-dark); transition: all .2s; }
.carousel-btn:hover { background: var(--vdm-dark); color: #fff; border-color: var(--vdm-dark); }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3.2rem) / 3); gap: 1.6rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: .4rem .2rem 1.6rem; scrollbar-width: thin; }
.carousel > * { scroll-snap-align: start; }

/* ---------- Werkwijze ---------- */
.process { background: var(--vdm-dark); color: #fff; position: relative; overflow: hidden; }
.process::before { content: ""; position: absolute; width: 600px; height: 600px; right: -200px; top: -250px; border-radius: 50%; background: radial-gradient(circle, rgba(92,184,95,.35), transparent 70%); opacity: .5; }
.process .section__title { color: #fff; }
.process .eyebrow { color: var(--vdm-accent-light); }
.process__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; position: relative; }
.process__steps li { position: relative; padding: 2rem 1.6rem; border-radius: var(--radius-lg); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); counter-increment: step; transition: background .3s, transform .35s var(--ease); }
.process__steps li:hover { background: rgba(255,255,255,.09); transform: translateY(-4px); }
.process__steps li::after { content: "0" counter(step); position: absolute; top: 1.4rem; right: 1.6rem; font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: rgba(255,255,255,.08); line-height: 1; }
.process__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--vdm-accent); color: #fff; box-shadow: 0 0 0 1px rgba(92,184,95,.4); margin-bottom: 1.2rem; }
.process__steps h3 { color: #fff; font-size: 1.15rem; margin-bottom: .45rem; }
.process__steps p { color: rgba(255,255,255,.72); margin: 0; font-size: .95rem; }

/* ---------- CTA ---------- */
.cta { padding: 0 0 clamp(4rem, 8vw, 6rem); }
.section + .cta, .process + .cta { padding-top: clamp(4rem, 8vw, 6rem); }
.cta__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; padding: clamp(2.2rem, 5vw, 3.6rem); border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--vdm-accent), #0f3a14); color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta__inner::after { content: ""; position: absolute; right: -60px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(255,255,255,.15); }
.cta__title { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .3em; }
.cta p { margin: 0; font-size: 1.05rem; max-width: 52ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; position: relative; z-index: 1; }
.cta .btn--accent { background: #fff; color: var(--vdm-accent); box-shadow: none; }
.cta .btn--accent:hover { color: var(--vdm-accent); }
.cta .btn--light { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.cta .btn--light:hover { background: #fff; color: var(--vdm-accent); }

/* ---------- Paginakop ---------- */
.page-hero { position: relative; background: var(--vdm-dark); color: #fff; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; isolation: isolate; }
.page-hero__bg { position: absolute; inset: -20px; background-size: cover; background-position: center; z-index: -2; filter: saturate(.9); transform: scale(1.05); animation: slowzoom 18s ease-out forwards; }
@keyframes slowzoom { to { transform: scale(1.15); } }
.page-hero.has-image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(12,14,12,.9), rgba(12,14,12,.5)); }
.page-hero .eyebrow { color: var(--vdm-accent-light); }
.page-hero:not(.has-image) { background: var(--vdm-tint); color: var(--vdm-dark); }
.page-hero:not(.has-image) .page-hero__title { color: var(--vdm-dark); }
.page-hero:not(.has-image) .eyebrow { color: var(--vdm-accent); }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--vdm-accent-light) 0 120px, transparent 120px); }
.page-hero__title { color: #fff; font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 800; margin: 0; max-width: 22ch; }
.page-hero__sub { margin: 1rem 0 0; font-size: 1.15rem; opacity: .85; max-width: 60ch; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .5em; font-size: .85rem; margin-bottom: 1.4rem; opacity: .75; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--vdm-accent-light); }

/* ---------- Inhoud (Gutenberg) ---------- */
.entry-content > * { margin-block: 0 1.3em; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 { font-size: 1.9rem; margin-top: 1.8em; }
.entry-content h3 { font-size: 1.4rem; margin-top: 1.5em; }
.entry-content p:empty { display: none; }
.entry-content strong { color: var(--vdm-dark); }
.entry-content > p:first-of-type strong:only-child { display: block; font-family: var(--font-head); font-size: 1.7rem; line-height: 1.25; letter-spacing: -.02em; }
.entry-content a { color: var(--vdm-accent); font-weight: 600; }
.entry-content ul { list-style: none; padding: 0; }
.entry-content ul li { position: relative; padding-left: 2.2em; margin-bottom: .8em; }
.entry-content ul li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--vdm-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b5c21' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 60% no-repeat; }
.entry-content ol { padding-left: 1.3em; }
.entry-content figure { margin-inline: 0; }
.entry-content .wp-block-image img, .entry-content img { border-radius: var(--radius); height: auto; }
.entry-content .wp-block-image { position: relative; }
.entry-content .wp-block-image img { cursor: zoom-in; box-shadow: var(--shadow); transition: transform .5s var(--ease), box-shadow .5s; }
.entry-content .wp-block-image img:hover { transform: scale(1.01); box-shadow: var(--shadow-lg); }
.entry-content figcaption, .entry-content .wp-element-caption { font-size: .88rem; color: var(--vdm-muted); text-align: center; margin-top: .7em; }
.entry-content blockquote { border-left: 4px solid var(--vdm-accent); margin-inline: 0; padding: .5em 0 .5em 1.4em; font-size: 1.2rem; }
.entry-content .alignwide { width: min(1100px, 100vw - 40px); margin-inline: calc(50% - min(550px, 50vw - 20px)); }
.entry-content .alignfull { width: 100vw; margin-inline: calc(50% - 50vw); }
.entry-content .alignfull img { border-radius: 0; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content .wp-block-columns { gap: 2rem; }
.page-body .entry-content .wp-block-image:has(+ .wp-block-image) { margin-bottom: 1.6rem; }
.vdm-unlinked { color: inherit; }

/* Afbeeldingen op 'Wat doen wij' e.d. als fotoraster als ze achter elkaar staan */
.page-body .entry-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.4rem; }
.page-body .entry-content > * { grid-column: 1 / -1; }
.page-body .entry-content > .wp-block-image + .wp-block-image,
.page-body .entry-content > .wp-block-image:has(+ .wp-block-image) { grid-column: auto; }
.page-body .entry-content > .wp-block-image + .wp-block-image img,
.page-body .entry-content > .wp-block-image:has(+ .wp-block-image) img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ---------- Projectpagina ---------- */
.project-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 2.5rem; align-items: start; }
.project-layout__main .wp-block-image img { width: 100%; }
.project-facts { position: sticky; top: 100px; background: var(--vdm-tint); border-radius: var(--radius-lg); padding: 1.8rem; }
.project-facts h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.project-facts dl { margin: 0 0 1.5rem; }
.project-facts dl div { display: flex; flex-direction: column; padding: .75rem 0; border-bottom: 1px solid var(--vdm-line); }
.project-facts dt { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--vdm-muted); }
.project-facts dd { margin: .1rem 0 0; font-weight: 600; color: var(--vdm-dark); }
.project-pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--vdm-line); }
.project-pager__link { display: flex; align-items: center; gap: .9rem; text-decoration: none; max-width: 40%; }
.project-pager__link small { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--vdm-muted); font-weight: 700; }
.project-pager__link span { font-weight: 700; line-height: 1.35; }
.project-pager__link .icon { width: 44px; height: 44px; padding: 11px; border-radius: 50%; border: 1.5px solid var(--vdm-line); transition: all .25s; }
.project-pager__link:hover .icon { background: var(--vdm-accent); border-color: var(--vdm-accent); color: var(--vdm-accent-ink); }
.project-pager__link--next { text-align: right; }
.project-pager__all { font-weight: 700; text-decoration: none; padding: .6em 1.2em; border-radius: 999px; background: var(--vdm-tint); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; }
.contact-card { display: flex; flex-direction: column; gap: .3rem; padding: 2rem 1.7rem; border-radius: var(--radius-lg); border: 1px solid var(--vdm-line); text-decoration: none; background: #fff; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.contact-card:hover { color: inherit; transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.contact-card__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--vdm-dark); color: #fff; margin-bottom: 1rem; transition: background .3s, color .3s; }
.contact-card:hover .contact-card__icon { background: var(--vdm-accent); color: var(--vdm-accent-ink); }
.contact-card__label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--vdm-muted); }
.contact-card strong { font-size: 1.1rem; color: var(--vdm-dark); word-break: break-word; }
.contact-extra { margin-top: 3rem; }
.company-strip { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 1rem 3rem; padding: 1.4rem 1.8rem; border-radius: var(--radius); background: var(--vdm-tint); font-weight: 600; }
.company-strip span { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--vdm-muted); }

/* ---------- Berichten ---------- */
.post-list { display: grid; gap: 1.2rem; }
.post-item a { display: block; padding: 1.8rem; border: 1px solid var(--vdm-line); border-radius: var(--radius-lg); text-decoration: none; transition: box-shadow .3s, transform .3s var(--ease); }
.post-item a:hover { color: inherit; box-shadow: var(--shadow); transform: translateY(-3px); }
.post-item__more { display: inline-flex; gap: .4em; align-items: center; font-weight: 700; color: var(--vdm-accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--vdm-dark); color: rgba(255,255,255,.75); font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding: clamp(3.5rem, 7vw, 5.5rem) 0 3rem; }
.site-logo--footer img { height: 72px; width: auto; margin-bottom: 1.4rem; }
.footer__credit a { color: var(--vdm-accent-light); font-weight: 700; text-decoration: none; }
.footer__credit a:hover { color: #fff; text-decoration: underline; }
.footer__brand p { max-width: 36ch; }
.footer__title { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1.3rem; }
.footer__list, .footer__menu { list-style: none; margin: 0; padding: 0; }
.footer__list li, .footer__menu li { margin-bottom: .75rem; }
.footer__list a { display: flex; gap: .7rem; align-items: flex-start; text-decoration: none; }
.footer__list .icon { margin-top: .3em; color: var(--vdm-accent-light); }
.footer__menu a { text-decoration: none; position: relative; }
.footer__menu a::before { content: "→"; margin-right: .5em; color: var(--vdm-accent-light); opacity: 0; display: inline-block; transform: translateX(-6px); transition: all .25s; }
.footer__menu a:hover::before { opacity: 1; transform: none; }
.site-footer a:hover { color: #fff; }
.footer__facts { margin: 0; }
.footer__facts div { margin-bottom: .8rem; }
.footer__facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.5); }
.footer__facts dd { margin: 0; color: #fff; }
.footer__facts a { text-decoration: none; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.4rem 0; }
.footer__legal { display: flex; gap: 1.4rem; }
.footer__legal a, .footer__legal .linklike { color: rgba(255,255,255,.75); }

/* ---------- Naar boven ---------- */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--vdm-accent); color: var(--vdm-accent-ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); pointer-events: none; transition: all .35s var(--ease); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(8,12,17,.94); display: flex; align-items: center; justify-content: center; padding: 60px 70px; opacity: 0; transition: opacity .3s; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox__figure img { max-height: calc(100vh - 150px); width: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox__figure figcaption { color: rgba(255,255,255,.8); margin-top: 1rem; text-align: center; }
.lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.lightbox button:hover { background: var(--vdm-accent); color: var(--vdm-accent-ink); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Cookiemelding ---------- */
.cookie-banner { position: fixed; z-index: 300; left: 20px; right: 20px; bottom: 20px; display: flex; justify-content: center; transform: translateY(30px); opacity: 0; transition: transform .45s var(--ease), opacity .35s; pointer-events: none; }
.cookie-banner.is-open { transform: none; opacity: 1; pointer-events: auto; }
.cookie-banner__inner { width: min(980px, 100%); background: #fff; border-radius: var(--radius-lg); box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); padding: 1.6rem 1.8rem; display: grid; grid-template-columns: auto 1fr auto; gap: 1.3rem; align-items: center; border: 1px solid var(--vdm-line); }
.cookie-banner__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--vdm-accent-soft); color: var(--vdm-accent); }
.cookie-banner__icon .icon { width: 26px; height: 26px; }
.cookie-banner h2 { font-size: 1.1rem; margin-bottom: .3rem; }
.cookie-banner p { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--vdm-muted); }
.cookie-banner p a, .cookie-banner p .linklike { color: var(--vdm-dark); font-weight: 600; }
.cookie-banner__actions { display: flex; flex-direction: column; gap: .5rem; }
.cookie-banner__actions .btn { padding: .7em 1.2em; font-size: .9rem; }
.cookie-prefs { margin-top: 1rem; display: grid; gap: .6rem; }
.switch { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; line-height: 1.45; cursor: pointer; }
.switch input { appearance: none; flex: none; width: 40px; height: 22px; border-radius: 22px; background: var(--vdm-line); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s var(--ease); }
.switch input:checked { background: var(--vdm-accent); }
.switch input:checked::after { transform: translateX(18px); }
.switch.is-disabled { opacity: .65; cursor: default; }
.cookie-modal { position: fixed; inset: 0; z-index: 350; background: rgba(8,12,17,.6); display: grid; place-items: center; padding: 20px; }
.cookie-modal[hidden] { display: none; }
.cookie-modal__box { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 2.2rem; width: min(640px, 100%); max-height: 90vh; overflow: auto; font-size: .95rem; }
.cookie-modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--vdm-tint); display: grid; place-items: center; cursor: pointer; }
.cookie-modal table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: .88rem; }
.cookie-modal th, .cookie-modal td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--vdm-line); vertical-align: top; }

/* ---------- Scroll-animaties ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Zoekformulier ---------- */
.search-form { display: flex; gap: .5rem; max-width: 480px; }
.search-form label { flex: 1; }
.search-field { width: 100%; padding: .8em 1em; border: 1.5px solid var(--vdm-line); border-radius: 999px; font: inherit; }
.search-submit { padding: .8em 1.3em; border-radius: 999px; border: 0; background: var(--vdm-dark); color: #fff; font-weight: 700; cursor: pointer; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.nav-links { display: flex; gap: .5rem; margin-top: 2rem; }
.page-numbers { padding: .5em .9em; border-radius: 8px; border: 1px solid var(--vdm-line); text-decoration: none; }
.page-numbers.current { background: var(--vdm-dark); color: #fff; }

/* ---------- Responsief ---------- */
@media (max-width: 1100px) {
	.usp__grid, .process__steps { grid-template-columns: repeat(2, 1fr); }
	.footer__grid { grid-template-columns: 1fr 1fr; }
	.header__cta span { display: none; }
	.header__cta { padding: .8em; }
}
@media (max-width: 980px) {
	:root { --header-h: 72px; }
	.topbar__tag { display: none; }
	.topbar__inner { justify-content: center; }
	.site-logo img { height: 48px; }
	.site-logo--header img, .site-header.is-scrolled .site-logo--header img { height: 60px; }
	.header__inner, .site-header.is-scrolled .header__inner { padding-block: 6px; }
	.nav-toggle { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 12px; background: var(--vdm-accent-soft); color: var(--vdm-accent); cursor: pointer; margin-left: .2rem; }
	.nav-toggle__bars { position: relative; width: 22px; height: 16px; }
	.nav-toggle__bars span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease); }
	.nav-toggle__bars span:nth-child(1) { top: 0; }
	.nav-toggle__bars span:nth-child(2) { top: 7px; }
	.nav-toggle__bars span:nth-child(3) { top: 14px; }
	.nav-open .nav-toggle__bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
	.nav-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
	.nav-open .nav-toggle__bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }
	.header__cta { margin-left: auto; }
	.main-nav { position: fixed; inset: 0 0 0 auto; width: min(400px, 88vw); background: #fff; padding: 100px 22px 40px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .45s var(--ease), visibility .45s; z-index: -1; box-shadow: -20px 0 60px rgba(0,0,0,.4); margin: 0; }
	.nav-open .main-nav { transform: none; visibility: visible; }
	.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 50; }
	.main-nav .menu { flex-direction: column; align-items: stretch; gap: .2rem; }
	.main-nav .menu > li > a { font-size: 1.15rem; padding: .85em 1em; border-radius: 12px; justify-content: space-between; }
	.main-nav .menu > .menu-item-has-children > a::after { transform: rotate(45deg); transition: transform .3s; }
	.main-nav .menu > .menu-item-has-children.is-open > a::after { transform: rotate(225deg); }
	.main-nav .sub-menu, .main-nav .sub-menu:has(> li:nth-child(8)) { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; background: var(--vdm-tint); color: var(--vdm-dark); border-radius: 12px; columns: auto; width: auto; max-height: 0; overflow: hidden; padding: 0 .4rem; transition: max-height .4s var(--ease), padding .3s; min-width: 0; }
	.main-nav .menu > li:hover > .sub-menu { transform: none; }
	.main-nav .is-open > .sub-menu, .main-nav .is-open > .sub-menu:has(> li:nth-child(8)) { max-height: 2000px; padding: .4rem; }
	.main-nav .sub-menu a { color: var(--vdm-text); }
	.main-nav .sub-menu a:hover, .main-nav .sub-menu .current-menu-item > a { background: #fff; color: var(--vdm-accent); }
	.vdm-home .site-header.is-transparent:not(.is-scrolled) .main-nav .menu > li > a { color: var(--vdm-dark); }
	.vdm-home .site-header.is-transparent:not(.is-scrolled) .nav-toggle { background: rgba(255,255,255,.15); color: #fff; }
	.nav-open .site-header.is-transparent:not(.is-scrolled) .nav-toggle { background: var(--vdm-accent-soft); color: var(--vdm-accent); }
	.nav-open .site-header .site-logo__dark { opacity: 1 !important; }
	.nav-open .site-header .site-logo__light { opacity: 0 !important; }
	.site-header, .site-header.is-scrolled { z-index: 200; backdrop-filter: none; }
	.nav-open { overflow: hidden; }
	.intro__grid, .project-layout { grid-template-columns: 1fr; }
	.intro__media { margin-right: 24px; }
	.project-grid { grid-template-columns: repeat(2, 1fr); }
	.carousel { grid-auto-columns: calc((100% - 1.6rem) / 2); }
	.project-facts { position: static; }
	.cookie-banner__inner { grid-template-columns: 1fr; }
	.cookie-banner__icon { display: none; }
	.cookie-banner__actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 640px) {
	body { font-size: 16px; }
	.topbar { display: none; }
	.site-header.is-scrolled .topbar { margin-top: 0; }
	.hero__content { padding-top: calc(var(--header-h) + 50px); padding-bottom: 110px; }
	.hero__actions .btn { width: 100%; }
	.hero__dots { left: 20px; right: auto; bottom: 36px; }
	.hero__scroll { display: none; }
	.stats__grid { grid-template-columns: 1fr 1fr; }
	.stat { padding: 1.5rem 1rem; border-bottom: 1px solid var(--vdm-line); }
	.stat:nth-child(2n) { border-right: 0; }
	.usp__grid, .process__steps, .project-grid, .footer__grid { grid-template-columns: 1fr; }
	.carousel { grid-auto-columns: 85%; }
	.page-body .entry-content { grid-template-columns: 1fr; }
	.project-pager { flex-wrap: wrap; }
	.project-pager__link { max-width: none; flex: 1 1 45%; }
	.project-pager__all { order: 3; width: 100%; text-align: center; }
	.cookie-banner { left: 10px; right: 10px; bottom: 10px; }
	.cookie-banner__actions .btn { flex: 1 1 auto; }
	.lightbox { padding: 60px 10px; }
	.lightbox__prev, .lightbox__next { top: auto; bottom: 14px; transform: none; }
	.header__cta { display: none; }
	.nav-toggle { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
	.site-header, .site-footer, .cta, .cookie-banner, .to-top, .more-projects { display: none !important; }
}
