/*
Theme Name: PEX Academy
Theme URI: https://pexacademy.nl
Author: Odyssee
Author URI: https://odyssee.one
Description: Maatwerk-theme voor PEX Academy, in dezelfde huisstijl en opbouw als PEX Ondernemersloket en PEX Detachering. Zonder pagebuilder: handgeschreven templates, Filson Pro en de PEX-huisstijl. Gepositioneerd op twee sporen: gemeenten en organisaties, en individuele professionals.
Version: 1.4.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pex-ac
*/

/* ============================================================
   FONTS
   ============================================================ */
@font-face {
	font-family: "Filson Pro";
	src: url("assets/fonts/FilsonProRegular.ttf") format("truetype");
	font-weight: 300 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Filson Pro";
	src: url("assets/fonts/FilsonProMedium.ttf") format("truetype");
	font-weight: 500 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Filson Pro";
	src: url("assets/fonts/FilsonProBold.ttf") format("truetype");
	font-weight: 700 900;
	font-style: normal;
	font-display: swap;
}

/* ============================================================
   TOKENS  (identiek aan de Elementor-kit van PEX Academy)
   ============================================================ */
:root {
	--gold: #F1B335;
	--gold-dark: #d99e28;
	--teal: #37A3A6;
	--teal-dark: #2c8385;
	--ink: #1B1B1B;
	--heading: #373737;
	--gray: #636362;
	--gray-light: #F0F0F0;
	--border: #D1D1D1;
	--white: #FFFFFF;

	--font: "Filson Pro", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;

	--container: 1280px;
	--radius-img: 30px;
	--radius-btn: 5px;
	--radius-card: 18px;

	--section-y: 88px;
	--header-h: 76px;
	--hero-band-h: 14px;

	--ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
	margin: 0;
	font-family: var(--font);
	font-weight: 300;
	font-size: 16px;
	line-height: 1.625;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--teal-dark); }

h1, h2, h3, h4 { color: var(--heading); font-weight: 700; margin: 0 0 .5em; line-height: 1.1; overflow-wrap: break-word; hyphens: manual; }
h1 { font-size: clamp(2rem, 1.3rem + 2.9vw, 3.125rem); font-weight: 600; line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.1vw, 2.5rem); line-height: 1.15; }
h3 { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 600; }
ul { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: .4em; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 200; background: #fff; padding: 12px 18px; border-radius: var(--radius-btn); box-shadow: 0 8px 24px rgba(0,0,0,.18); }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: var(--section-y); }
.section--gray { background: var(--gray-light); }
.section--tight { padding-block: 56px; }
.eyebrow { color: var(--teal); font-weight: 600; font-size: .9375rem; letter-spacing: .02em; margin: 0 0 .6em; }
.lead { font-size: 1.125rem; line-height: 1.6; }
.measure { max-width: 720px; }
/* Leeskolom van artikelen en tekstpagina's staat gecentreerd in beeld;
   secties-intro's (.pillar-head.measure) blijven bewust links uitlijnen. */
.measure--center { max-width: 720px; margin-inline: auto; }
.center { text-align: center; }
.mt-btn { margin-top: 28px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	font-family: var(--font); font-size: 16px; font-weight: 200; line-height: 1;
	padding: 15px 20px; border-radius: var(--radius-btn); border: 0; cursor: pointer;
	transition: background-color .18s var(--ease), color .18s var(--ease);
	text-align: center;
}
.btn--gold { background: var(--gold); color: #000; }
.btn--gold:hover { background: var(--teal); color: #fff; }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--gold); color: #000; }
.btn--ghost { background: transparent; color: var(--heading); border: 1.5px solid var(--border); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn--light { background: #fff; color: var(--heading); }
.btn--light:hover { background: var(--gold); color: #000; }
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.btn--block { width: 100%; justify-content: center; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
	box-shadow: 0 1px 0 #eee;
}
.site-header .container {
	min-height: var(--header-h);
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-logo { display: inline-flex; align-items: center; flex: none; }
.site-logo img { height: 38px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
	color: var(--ink); font-weight: 400; font-size: 16px; padding: 9px 14px; border-radius: var(--radius-btn);
	transition: color .18s var(--ease), background-color .18s var(--ease);
}
.main-nav a:hover, .main-nav a.current { color: var(--teal); }
.main-nav a.nav-cta { background: var(--gold); color: #000; padding: 11px 22px; font-weight: 200; margin-left: 14px; transition: background-color .18s var(--ease), color .18s var(--ease); }
.main-nav a.nav-cta:hover { background: var(--teal); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--heading); margin: 5px 0; transition: transform .2s var(--ease), opacity .2s var(--ease); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
	position: relative; color: #fff;
	min-height: calc(100vh - var(--header-h) - var(--hero-band-h));
	min-height: calc(100svh - var(--header-h) - var(--hero-band-h));
	display: flex; align-items: center;
}
.hero--short { min-height: 62vh; min-height: 62svh; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero__bg::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.6) 42%, rgba(0,0,0,.18) 100%);
}
.hero__inner { position: relative; z-index: 1; width: 100%; padding-block: clamp(64px, 8vw, 104px); }
.hero__content { max-width: 700px; }
.hero h1 {
	color: #fff; margin-bottom: .35em;
	font-size: clamp(1.55rem, 0.6rem + 3.05vw, 3.125rem);
	hyphens: none; overflow-wrap: normal; word-break: keep-all;
}
.hero p { color: rgba(255,255,255,.92); font-size: 1.0625rem; line-height: 1.6; max-width: 560px; }
.hero .eyebrow { color: #fff; opacity: .9; }
.hero-band { display: flex; height: var(--hero-band-h); }
.hero-band span:first-child { flex: 0 0 62%; background: var(--teal); }
.hero-band span:last-child { flex: 1; background: var(--gold); }

.scroll-hint {
	position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
	z-index: 2; display: block; width: 26px; height: 42px;
	border: 0; line-height: 0; opacity: .95;
	transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.scroll-hint:hover { opacity: 1; transform: translateX(-50%) translateY(2px); }
.scroll-hint:focus-visible { outline: 3px solid #fff; outline-offset: 4px; border-radius: 14px; }
.scroll-hint__mouse { display: block; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.75); border-radius: 14px; position: relative; }
.scroll-hint__dot {
	position: absolute; top: 7px; left: 50%; margin-left: -2px;
	width: 4px; height: 8px; background: #fff; border-radius: 2px;
	animation: pex-scroll-dot 1.7s var(--ease) infinite;
}
@keyframes pex-scroll-dot {
	0% { opacity: 0; transform: translateY(0); }
	25% { opacity: 1; }
	55% { opacity: 1; transform: translateY(13px); }
	100% { opacity: 0; transform: translateY(15px); }
}
@media (prefers-reduced-motion: reduce) { .scroll-hint__dot { animation: none; } }
[id="na-hero"] { scroll-margin-top: var(--header-h); }

/* ============================================================
   SPLIT BLOCKS
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; border-radius: var(--radius-img); }
.split__media.tall img { aspect-ratio: 5 / 4; }
.split__text h2 { margin-bottom: .5em; }

.statement { background: var(--teal); color: #fff; border-radius: var(--radius-card); padding: clamp(36px, 5vw, 64px); }
.statement h2 { color: #fff; margin: 0; }

/* ============================================================
   TWEE SPOREN  (gemeenten / professionals)
   ============================================================ */
.tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.track {
	display: flex; flex-direction: column;
	background: #fff; border: 1px solid #e8e8e6; border-radius: var(--radius-card);
	padding: clamp(28px, 3.4vw, 42px);
	box-shadow: 0 1px 2px rgba(28,38,42,.04), 0 16px 30px -14px rgba(28,38,42,.16);
	transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.track:hover { transform: translateY(-5px); box-shadow: 0 2px 4px rgba(28,38,42,.05), 0 34px 60px -20px rgba(28,38,42,.26); border-color: #dce6e6; }
.track__label {
	display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
	font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
	color: var(--heading); background: var(--gray-light);
	padding: 7px 12px; border-radius: 100px; margin-bottom: 18px;
}
.track--primary .track__label { background: rgba(55,163,166,.12); color: var(--teal-dark); }
.track--second .track__label { background: rgba(241,179,53,.18); color: #8a6512; }
.track h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.65rem); margin-bottom: .4em; }
.track p { color: var(--gray); }
.track .checklist { margin: 18px 0 26px; grid-template-columns: 1fr; gap: 9px; }
.track .checklist li { font-size: .9375rem; }
.track .btn { margin-top: auto; align-self: flex-start; }

/* ============================================================
   CARD GRID
   ============================================================ */
.pillar-head { margin-bottom: 32px; }
.pillar-head .eyebrow { margin-bottom: .3em; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.card {
	position: relative;
	background: #fff; border: 1px solid #e8e8e6; border-radius: var(--radius-card);
	padding: 34px 32px; display: flex; flex-direction: column;
	box-shadow: 0 1px 2px rgba(28,38,42,.04), 0 16px 30px -14px rgba(28,38,42,.16);
	transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
	color: inherit;
}
.section--gray .card { background: #fff; }
.card:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(28,38,42,.05), 0 34px 60px -20px rgba(28,38,42,.26); border-color: #dce6e6; }
.card:hover h3 { color: var(--teal); }
.card h3 { margin-bottom: .35em; color: var(--heading); transition: color .2s var(--ease); }
.card p { color: var(--gray); font-size: .9875rem; }
.card__tag { font-size: .8125rem; font-weight: 600; color: var(--teal); letter-spacing: .02em; margin-bottom: 10px; }
.card__meta { margin-top: 16px; padding-top: 16px; border-top: 1px solid #eee; font-size: .8125rem; color: var(--gray); line-height: 1.7; }
.card__meta b { color: var(--heading); font-weight: 600; }
.card__go { margin-top: auto; padding-top: 20px; display: inline-flex; align-items: center; gap: 7px; color: var(--teal); font-weight: 600; font-size: .9rem; }
.card__go svg { width: 16px; height: 16px; fill: currentColor; transition: transform .2s var(--ease); }
a.card:hover .card__go svg { transform: translateX(4px); }
a.card:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.pillar { border-left: 4px solid var(--gold); padding-left: 18px; margin-bottom: 8px; }
.pillar--teal { border-color: var(--teal); }

/* ============================================================
   VALUES / STEPS / CHECKLIST
   ============================================================ */
.values { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px 40px; }
.value { flex: 1 1 180px; max-width: 232px; }
.value h3 { font-size: 1.1875rem; color: var(--heading); margin-bottom: .3em; }
.value h3::before { content: ""; display: block; width: 34px; height: 3px; background: var(--gold); border-radius: 2px; margin-bottom: 14px; }
.value p { color: var(--gray); font-size: .9375rem; margin: 0; }

.steps { display: grid; gap: 20px; counter-reset: step; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; }
.step__num { width: 52px; height: 52px; border-radius: 50%; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.25rem; }
.step h3 { margin-bottom: .2em; font-size: 1.1875rem; }
.step p { color: var(--gray); margin: 0; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px 32px; }
.checklist li { position: relative; padding-left: 23px; margin: 0; color: var(--ink); }
.checklist li::before {
	content: ""; position: absolute; left: 0; top: .5em; width: 16px; height: 9px;
	border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg);
}
.checklist--gold li::before { border-color: var(--gold); }
.checklist--single { grid-template-columns: 1fr; }

/* family blok */
.family { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.family__item { display: flex; flex-direction: column; background: #fff; border: 1px solid #ececec; border-radius: var(--radius-card); padding: 28px; color: inherit; }
.section--gray .family__item { background: #fff; }
.family__item h3 { color: var(--teal); font-size: 1.1875rem; margin-bottom: .3em; }
.family__item p { color: var(--gray); font-size: .9375rem; margin: 0; }
a.family__item { box-shadow: 0 6px 22px rgba(30,40,44,.07); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
a.family__item:hover { transform: translateY(-5px); border-color: var(--teal); box-shadow: 0 24px 48px rgba(30,40,44,.15); }
a.family__item:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.family__go { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 7px; color: var(--teal); font-weight: 600; font-size: .9rem; }
.family__go svg { width: 16px; height: 16px; fill: currentColor; transition: transform .2s var(--ease); }
a.family__item:hover .family__go svg { transform: translateX(4px); }
.family__here { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 7px; color: var(--gray); font-weight: 500; font-size: .85rem; }
.family__here::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.family__item.is-self { border-color: var(--gold); border-width: 2px; }

/* ============================================================
   TRAJECTPAGINA
   ============================================================ */
.traject-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.traject-block { margin-bottom: 40px; }
.traject-block h2 { font-size: clamp(1.4rem, 1.15rem + .8vw, 1.75rem); margin-bottom: .6em; }
.traject-aside {
	background: var(--gray-light); border-radius: var(--radius-card); padding: clamp(26px, 3vw, 36px);
	position: sticky; top: calc(var(--header-h) + 24px);
}
.traject-aside h3 { font-size: 1.125rem; margin-bottom: .6em; }
.traject-aside .checklist li { font-size: .9375rem; }
.traject-aside__sep { border: 0; border-top: 1px solid var(--border); margin: 26px 0; }
.siblings { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.sibling {
	display: flex; flex-direction: column; gap: 4px;
	background: #fff; border: 1px solid #e8e8e6; border-radius: var(--radius-btn);
	padding: 18px 20px; color: inherit;
	transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.sibling:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(30,40,44,.1); }
.sibling strong { color: var(--heading); font-weight: 600; }
.sibling span { color: var(--gray); font-size: .875rem; }
.sibling.is-current { border-color: var(--gold); border-width: 2px; background: #fffdf7; }

/* ============================================================
   FAQ  (details/summary, geen JS nodig)
   ============================================================ */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
	list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
	font-weight: 600; color: var(--heading); font-size: 1.0625rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: ""; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px;
	border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
	transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--teal); }
.faq summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
/* De hoogte wordt door theme.js geanimeerd; de padding zit op de binnenlaag,
   anders blijft er bij hoogte 0 nog ruimte over. */
.faq__answer { overflow: hidden; color: var(--gray); }
.faq__answer-inner { padding: 0 44px 24px 0; }
.faq__answer p:last-child { margin-bottom: 0; }
/* Zonder JS blijft alles gewoon werken: dicht is dicht, open is open. */
.faq details:not([open]) .faq__answer { height: 0; }
@media (prefers-reduced-motion: reduce) {
	.faq__answer { transition: none !important; }
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { position: relative; background: #111; color: #fff; background-size: cover; background-position: center 28%; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(0,0,0,.58), rgba(0,0,0,.68)); }
.cta-band > .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 640px; }
.cta-band .btn-row { justify-content: center; }

/* ============================================================
   CONTACT / FORMULIER
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .875rem; font-weight: 500; color: var(--heading); margin-bottom: 6px; }
.field .req { color: var(--teal); }
.field .hint { display: block; font-weight: 400; color: var(--gray); font-size: .8125rem; margin-top: 5px; }
.field input, .field select, .field textarea {
	width: 100%; font-family: var(--font); font-size: 1rem; color: var(--ink);
	padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-btn); background: #fff;
	transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(55,163,166,.18); }
.field input[type="file"] { padding: 10px 12px; font-size: .9375rem; background: #fff; }
.field input[type="file"]::file-selector-button {
	font-family: var(--font); font-size: .875rem; font-weight: 500; color: var(--heading);
	background: var(--gray-light); border: 0; border-radius: var(--radius-btn);
	padding: 9px 14px; margin-right: 12px; cursor: pointer;
	transition: background-color .18s var(--ease), color .18s var(--ease);
}
.field input[type="file"]::file-selector-button:hover { background: var(--teal); color: #fff; }
.field-check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 24px; font-size: .9375rem; color: var(--gray); }
.field-check input { margin-top: 3px; flex: none; width: 18px; height: 18px; accent-color: var(--teal); }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .8125rem; color: var(--gray); margin-top: 14px; }
.alert { padding: 16px 18px; border-radius: var(--radius-btn); margin-bottom: 28px; font-size: .9375rem; }
.alert--ok { background: #e6f4f4; color: #1c6567; border: 1px solid #bfe1e1; }
.alert--err { background: #fbeaea; color: #9b2c2c; border: 1px solid #f0c9c9; }

/* doelgroepkeuze: segmented control */
.track-choice { margin-bottom: 26px; }
.track-choice__legend { font-size: .875rem; font-weight: 500; color: var(--heading); margin-bottom: 8px; padding: 0; }
.track-choice__options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.track-choice__option { position: relative; }
.track-choice__option input { position: absolute; opacity: 0; width: 0; height: 0; }
.track-choice__option span {
	display: block; text-align: center; cursor: pointer;
	border: 1.5px solid var(--border); border-radius: var(--radius-btn);
	padding: 14px 12px; font-size: .9375rem; color: var(--heading); background: #fff;
	transition: border-color .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease);
}
.track-choice__option span small { display: block; color: var(--gray); font-size: .78rem; margin-top: 3px; }
.track-choice__option input:checked + span { border-color: var(--teal); background: rgba(55,163,166,.08); color: var(--teal-dark); font-weight: 600; }
.track-choice__option input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
/* velden die bij één spoor horen; JS wisselt de class op het formulier */
.only-gemeente, .only-professional { display: none; }
form.track-gemeente .only-gemeente { display: block; }
form.track-professional .only-professional { display: block; }

.contact-info h3 { font-size: 1.125rem; margin-bottom: .5em; }
.contact-info__block { margin-bottom: 28px; }
.contact-info a { color: var(--teal); }
.contact-line { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; color: var(--ink); }
.contact-line svg { flex: none; width: 18px; height: 18px; fill: var(--teal); }

/* ============================================================
   NIEUWS / BLOG
   ============================================================ */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 28px; }
.post-card {
	display: flex; flex-direction: column; background: #fff; color: inherit;
	border: 1px solid #e8e8e6; border-radius: var(--radius-card); overflow: hidden;
	box-shadow: 0 1px 2px rgba(28,38,42,.04), 0 16px 30px -14px rgba(28,38,42,.16);
	transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(28,38,42,.05), 0 34px 60px -20px rgba(28,38,42,.26); border-color: #dce6e6; }
/* min-height:0 en overflow zijn essentieel: .post-card__media is een flex-item
   en zou met de standaard min-height:auto meegroeien met een foto die staander
   is dan 16:10 — dan wordt één kaart hoger dan de rest. Zo blijft het vak
   altijd 16:10, ongeacht de verhouding van de aangeleverde foto. */
.post-card__media { aspect-ratio: 16 / 10; background: var(--gray-light); min-height: 0; overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.1875rem; margin-bottom: .4em; transition: color .2s var(--ease); }
.post-card:hover h3 { color: var(--teal); }
.post-card p { color: var(--gray); font-size: .9375rem; }
.post-meta { font-size: .8125rem; color: var(--gray); margin-bottom: 10px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.post-meta time { color: var(--gray); }
.post-card__go { margin-top: auto; padding-top: 18px; color: var(--teal); font-weight: 600; font-size: .9rem; }

.post-hero { padding-top: 56px; }
.post-hero .post-meta { margin-bottom: 18px; }
.post-featured img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-img); margin-bottom: 40px; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--border); margin-top: 48px; padding-top: 28px; font-size: .9375rem; }

/* ============================================================
   PROSE (privacy / blogtekst)
   ============================================================ */
.prose h1 { margin-bottom: .6em; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink); }
.prose a { color: var(--teal); text-decoration: underline; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose img { border-radius: var(--radius-card); margin-block: 1.6em; }
.prose blockquote { margin: 1.8em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--gold); color: var(--gray); font-size: 1.0625rem; }
.prose figure { margin: 1.8em 0; }
.prose figcaption { font-size: .8125rem; color: var(--gray); margin-top: 8px; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
	.reveal { animation: pex-rise .6s var(--ease) both; }
	@keyframes pex-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
	.main-nav a { padding: 9px 11px; font-size: 15px; }
	.main-nav a.nav-cta { padding: 11px 18px; margin-left: 8px; }
}

@media (max-width: 980px) {
	:root { --section-y: 64px; }
	.split, .contact-grid, .tracks, .traject-grid { grid-template-columns: 1fr; gap: 32px; }
	.split--reverse .split__media { order: 0; }
	.split__media img, .split__media.tall img { aspect-ratio: 16 / 10; }
	.family { grid-template-columns: 1fr; }
	.hero__bg::after { background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.55) 100%); }
	.traject-aside { position: static; }
}

@media (max-width: 760px) {
	.nav-toggle { display: block; }
	.main-nav {
		position: fixed; inset: var(--header-h) 0 auto 0; background: #fff;
		flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px;
		border-bottom: 1px solid #eee; box-shadow: 0 20px 30px rgba(0,0,0,.06);
		transform: translateY(-8px); opacity: 0; pointer-events: none; transition: transform .2s var(--ease), opacity .2s var(--ease);
		max-height: calc(100svh - var(--header-h)); overflow-y: auto;
	}
	.main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
	.main-nav a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid #f2f2f2; font-size: 1.0625rem; }
	.main-nav a.nav-cta { margin-top: 12px; margin-left: 0; border-radius: var(--radius-btn); text-align: center; border-bottom: 0; }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
	.footer-bottom { flex-direction: column; }
	.track-choice__options { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
	.container { padding-inline: 18px; }
	.footer-grid { grid-template-columns: 1fr; }
	.step { grid-template-columns: 44px 1fr; gap: 14px; }
	.step__num { width: 42px; height: 42px; font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
	.btn:hover, .card:hover, .track:hover, .post-card:hover { transform: none; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #fff; border-top: 1px solid #eee; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-logo img { height: 84px; width: auto; margin-bottom: 8px; }
.site-footer h4 { color: var(--heading); font-size: 1rem; font-weight: 600; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; font-size: .9375rem; color: var(--gray); }
.site-footer a { color: var(--gray); }
.site-footer a:hover { color: var(--teal); }
.footer-contact li { display: flex; gap: 10px; align-items: center; }
.footer-contact svg { flex: none; width: 16px; height: 16px; fill: var(--teal); }
.footer-bottom { border-top: 1px solid #eee; padding-block: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8125rem; color: var(--gray); }
.footer-bottom a { color: var(--gray); }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* Bronvermelding onderaan een artikel (bijv. een ECLI-verwijzing) */
.prose .bron { margin-top: 2.2em; padding-top: 14px; border-top: 1px solid var(--border); font-size: .875rem; color: var(--gray); }

/* ============================================================
   AUTEURSBOX (E-E-A-T) onder een artikel
   ============================================================ */
.author-box {
	display: flex; gap: 22px; align-items: flex-start;
	background: var(--gray-light); border-radius: var(--radius-card);
	padding: 28px 30px; margin-top: 48px;
}
.author-box__foto {
	flex: 0 0 auto; width: 72px; height: 72px; border-radius: 50%;
	object-fit: cover; background: #fff;
}
.author-box__label { font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--teal); margin: 0 0 .3em; }
.author-box__tekst h3 { font-size: 1.1875rem; margin-bottom: .35em; }
.author-box__tekst p { color: var(--gray); font-size: .9375rem; margin-bottom: 0; }
.author-box__meer { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; color: var(--teal); font-weight: 600; font-size: .9rem; }
.author-box__meer svg { width: 16px; height: 16px; fill: currentColor; transition: transform .2s var(--ease); }
.author-box__meer:hover svg { transform: translateX(4px); }
@media (max-width: 560px) {
	.author-box { flex-direction: column; gap: 16px; padding: 24px; }
}
