/*
Theme Name: PEX Ondernemersloket
Theme URI: https://pexondernemersloket.nl
Author: Odyssee
Author URI: https://odyssee.one
Description: Maatwerk-theme voor PEX Ondernemersloket, in dezelfde huisstijl en opbouw als PEX Academy en PEX Detachering. Zonder pagebuilder: handgeschreven templates, Filson Pro, en de PEX-huisstijl.
Version: 1.1.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-ol
*/

/* ============================================================
   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  (afgeleid 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: auto; }
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; }

/* ============================================================
   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; }
.center { text-align: center; }
.mt-btn { margin-top: 28px; }

/* ============================================================
   BUTTONS
   ============================================================ */
/* Buttons — identiek aan PEX Academy: Filson Pro 200, 16px, padding 15x20, radius 5px, plat */
.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;
}
/* hover wisselt van kleur: geel/zwart <-> blauw(teal)/wit en omgekeerd */
.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: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: 8px; }
.main-nav a {
	color: var(--ink); font-weight: 400; font-size: 16px; padding: 9px 16px; 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: 18px; 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__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;
	/* zuiver zwart verloop (links donker voor leesbare tekst), geen kleurzweem */
	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: 680px; }

/* scroll-hint (muis + bewegend puntje), zoals Studio Renders */
.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; }
}
/* ankerpunt onder de hero: compenseer de sticky header */
[id="na-hero"] { scroll-margin-top: var(--header-h); }
/* Hero-koppen: geen afbreekstreepjes, hele woorden. Font schaalt mee zodat
   het langste woord altijd op één regel past. */
.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: 540px; }
.hero .eyebrow { color: #fff; opacity: .9; }
/* accent band onder hero (teal + goud) zoals Academy */
.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); }

/* ============================================================
   SPLIT BLOCKS (tekst + beeld)
   ============================================================ */
.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; }

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

/* ============================================================
   CARD GRID  (trajecten / dienstverlening)
   ============================================================ */
.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;
	/* gelaagde, natuurlijke diepte i.p.v. een decoratief lijntje */
	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);
}
.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__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; }

/* pijler-kop met gekleurde balk */
.pillar { border-left: 4px solid var(--gold); padding-left: 18px; margin-bottom: 8px; }
.pillar--teal { border-color: var(--teal); }
/* Pijlertitel op Home is een h3 en botste qua grootte met de kaarttitels
   eronder (beide max 1.5rem), waardoor de groepskop wegviel. Zelfde maat
   als de pijlertitels op /trajecten/, die daar een h2 zijn. */
.pillar h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.15rem); }

/* ============================================================
   FEATURE / WAAROM  (icon-less value grid)
   ============================================================ */
/* Waarde-items centreren zodat 5 stuks netjes op één rij staan i.p.v. 4 + 1;
   bij smallere schermen wrappen ze gecentreerd (3 + 2 i.p.v. losse wees). */
.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 (werkwijze)
   ============================================================ */
.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; }

/* ============================================================
   "VOOR WIE" list
   ============================================================ */
.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--onwhite li { color: var(--ink); }

/* 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; }
/* klikbare kaarten: duidelijk aanwijsbaar */
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; }

/* ============================================================
   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;
	/* zuiver zwart verdonkerend filter, geen grijs/kleurzweem */
	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; }

/* ============================================================
   CONTACT
   ============================================================ */
.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 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-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; }

.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); }

/* ============================================================
   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; }

/* ============================================================
   PROSE (privacy / tekstpagina's)
   ============================================================ */
.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 { padding-left: 1.3em; }

/* ============================================================
   REVEAL ANIMATION  (CSS-only, content altijd zichtbaar als basis)
   ============================================================ */
@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: 980px) {
	:root { --section-y: 64px; }
	.split, .contact-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%); }
}

@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);
	}
	.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; }
}

@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 { transform: none; }
}
