/* ==========================================================================
   Layout — containers, secties, grids
   ========================================================================== */

.cb-container {
	width: 100%;
	max-width: calc(var(--cb-container) + 2 * var(--cb-gutter));
	margin-inline: auto;
	padding-inline: var(--cb-gutter);
}
.cb-container--narrow { max-width: calc(var(--cb-container-narrow) + 2 * var(--cb-gutter)); }

.cb-section { padding-block: var(--cb-section); position: relative; }
.cb-section--tight { padding-block: calc(var(--cb-section) * 0.6); }
.cb-section--alt { background: var(--cb-alabaster); }
.cb-section--bordered { border-top: 1px solid var(--cb-border); }

.cb-section--dark {
	background: var(--cb-purple);
	color: rgba(255, 255, 255, 0.86);
	isolation: isolate;
	overflow: hidden;
}
.cb-section--dark h1,
.cb-section--dark h2,
.cb-section--dark h3 { color: var(--cb-white); }
.cb-section--dark h2 em,
.cb-section--dark h1 em { color: var(--cb-gold); }
.cb-section--dark a:not(.cb-btn) { color: var(--cb-gold); }
.cb-section--dark .cb-eyebrow { color: var(--cb-gold); }
.cb-section--dark .cb-eyebrow::before { background: var(--cb-amber); }

/* Zachte lichtaccenten op paars */
.cb-section--dark::before,
.cb-section--dark::after {
	content: "";
	position: absolute;
	z-index: -1;
	border-radius: 50%;
	filter: blur(70px);
	pointer-events: none;
}
.cb-section--dark::before {
	width: 520px; height: 520px;
	top: -220px; right: -140px;
	background: radial-gradient(circle, rgba(255, 167, 38, 0.32), transparent 65%);
}
.cb-section--dark::after {
	width: 600px; height: 600px;
	bottom: -320px; left: -200px;
	background: radial-gradient(circle, rgba(215, 38, 107, 0.28), transparent 65%);
}

.cb-sunset-line {
	display: block;
	height: 3px;
	background: var(--cb-sunset);
	border: 0;
	margin: 0;
}

.cb-grid { display: grid; gap: var(--cb-space-5); }
.cb-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: var(--cb-space-6); }
.cb-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

.cb-split {
	display: grid;
	gap: var(--cb-space-7);
	align-items: center;
}
@media (min-width: 900px) {
	.cb-split { grid-template-columns: 1fr 1fr; gap: var(--cb-space-9); }
	.cb-split--5-7 { grid-template-columns: 5fr 7fr; }
	.cb-split--7-5 { grid-template-columns: 7fr 5fr; }
}

.cb-stack > * + * { margin-top: var(--cb-space-5); }

.site-main { display: block; min-height: 50vh; }
/* Eerste sectie zonder eigen hero (bijv. 404): ruimte voor de zwevende header */
.site-main > .cb-section:first-child { padding-top: calc(var(--cb-section) + var(--cb-header-offset)); }

/* — Pagina-hero (subpagina's) — */
.cb-page-hero {
	position: relative;
	padding-block: calc(var(--cb-section) * 0.75 + var(--cb-header-offset)) calc(var(--cb-section) * 0.6);
	background: var(--cb-alabaster);
	border-bottom: 1px solid var(--cb-border);
	overflow: hidden;
}
.cb-page-hero__inner { max-width: 820px; }
.cb-page-hero h1 { margin-bottom: var(--cb-space-5); }
.cb-page-hero__lead { font-size: var(--cb-fs-lg); color: var(--cb-ink-soft); max-width: 640px; margin-bottom: 0; }
.cb-page-hero__actions { display: flex; flex-wrap: wrap; gap: var(--cb-space-3); margin-top: var(--cb-space-6); }
.cb-page-hero__hex {
	position: absolute;
	right: max(-80px, calc((100vw - var(--cb-container)) / 2 - 160px));
	top: 50%;
	width: clamp(220px, 30vw, 420px);
	transform: translateY(-50%);
	opacity: 0.9;
	pointer-events: none;
}
@media (max-width: 899px) {
	.cb-page-hero__hex { opacity: 0.18; right: -120px; }
}

.cb-breadcrumbs { font-size: var(--cb-fs-xs); color: var(--cb-ink-muted); margin-bottom: var(--cb-space-5); }
.cb-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--cb-space-2); list-style: none; padding: 0; margin: 0; }
.cb-breadcrumbs li { margin: 0; }
.cb-breadcrumbs li + li::before { content: "/"; margin-right: var(--cb-space-2); color: var(--cb-border-strong); }
.cb-breadcrumbs a { color: var(--cb-ink-soft); text-decoration: none; }
.cb-breadcrumbs a:hover { color: var(--cb-text-accent); text-decoration: underline; }

/* ==========================================================================
   Honingraatmotief — haarfijn, verloopt vanuit één hoek in de witruimte.
   Ligt altijd áchter de inhoud (z-index -1 binnen een geïsoleerde sectie).
   Positie per element via --hc-at (bijv. "100% 0%" = rechtsboven).
   ========================================================================== */
.cb-section:not(.cb-section--dark),
.cb-hero,
.cb-page-hero,
.cb-vdetail__hero {
	isolation: isolate;
}

.cb-section:not(.cb-section--dark)::before,
.cb-hero::after,
.cb-page-hero::before,
.cb-vdetail__hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: var(--cb-honeycomb);
	background-size: var(--cb-honeycomb-size);
	background-position: var(--hc-offset, 0 0);
	-webkit-mask-image: radial-gradient(var(--hc-shape, ellipse 60% 75%) at var(--hc-at, 100% 0%), #000 0%, rgba(0, 0, 0, 0.55) 35%, transparent 72%);
	mask-image: radial-gradient(var(--hc-shape, ellipse 60% 75%) at var(--hc-at, 100% 0%), #000 0%, rgba(0, 0, 0, 0.55) 35%, transparent 72%);
	pointer-events: none;
}

/* Afwisselende hoeken voor een natuurlijk ritme */
.site-main > .cb-section:nth-of-type(even):not(.cb-section--dark),
.site-main > * > .cb-section:nth-of-type(even):not(.cb-section--dark) { --hc-at: 0% 100%; --hc-offset: 28px 50px; }
.site-main > .cb-section:nth-of-type(3n):not(.cb-section--dark) { --hc-at: 0% 0%; }
.site-main > .cb-section:nth-of-type(4n):not(.cb-section--dark) { --hc-at: 100% 100%; }

/* Smalle secties (filters, gerelateerd): kleiner, zachter accent */
.cb-section--tight:not(.cb-section--dark) { --hc-shape: ellipse 40% 90%; }

/* Hero's: motief loopt achter de decoratie/visual weg */
.cb-hero { --hc-at: 100% 30%; --hc-shape: ellipse 55% 85%; }
.cb-page-hero { --hc-at: 100% 50%; --hc-shape: ellipse 50% 110%; }
.cb-vdetail__hero { --hc-at: 100% 0%; --hc-shape: ellipse 45% 120%; }

@media (max-width: 640px) {
	:root { --cb-honeycomb-size: 42px 75px; }
	.cb-section:not(.cb-section--dark)::before { --hc-shape: ellipse 90% 45%; }
}

@media print {
	.cb-section::before, .cb-hero::after, .cb-page-hero::before, .cb-vdetail__hero::before { display: none; }
}
.cb-vdetail__hero { position: relative; }
.cb-ervaringen { --hc-at: 0% 100%; --hc-offset: 28px 50px; }

/* ==========================================================================
   Hero-decoratie per pagina — "levende" groeiende raat
   Statisch prima leesbaar; animaties alleen bij prefers-reduced-motion: no-preference.
   ========================================================================== */
.cb-hero-deco text { font-family: var(--cb-font-serif); }
.cb-hd-num { font-size: 34px; font-weight: 600; fill: var(--cb-text-accent); }
.cb-hd-label { font-family: var(--cb-font-sans) !important; font-size: 9px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; fill: var(--cb-text-accent); opacity: 0.8; }
.cb-hd-glyph { font-size: 44px; font-weight: 600; fill: var(--cb-text-accent); }
.cb-hd-code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace !important; font-size: 26px; font-weight: 700; fill: #FFFFFF; }
.cb-hd-quote { font-size: 120px; font-weight: 600; fill: var(--cb-gold); }
.cb-hd-initials { font-size: 30px; font-style: italic; font-weight: 600; fill: var(--cb-text-accent); }

/* Elementen die schalen/draaien rond hun eigen midden */
.cb-hd-ping, .cb-hd-bar, .cb-hd-spark, .cb-hd-snap, .cb-hd-glow, .cb-hd-heart, .cb-hd-wing, .cb-hd-chip, .cb-hd-live { transform-box: fill-box; transform-origin: center; }
.cb-hd-bar { transform-origin: 50% 100%; }

/* Statische posities (ook de eindstand zonder animatie) */
.cb-hd-ping { opacity: 0; }
.cb-hd-packet { transform: translate(147.6px, 152.5px); }
.cb-hd-packet--2 { transform: translate(195.2px, 70px); opacity: 0; }
.cb-hd-climber { transform: translate(195.2px, 70px); }
.cb-hd-spark { opacity: 0; }
.cb-hd-glow { opacity: 0; }
.cb-hd-bee { transform: translate(236px, 128px); }

@media (prefers-reduced-motion: no-preference) {
	/* Vacatures: ping-golven, live-stip, oplichtende buurcellen */
	.cb-hd-ping { animation: cb-hd-ping 3s ease-out infinite; }
	.cb-hd-ping--2 { animation-delay: 1.5s; }
	.cb-hd-live { animation: cb-hd-blink 1.6s ease-in-out infinite; }
	.cb-hero-deco--vacatures .cb-hd-n { animation: cb-hd-cell 6s ease-in-out infinite; }
	.cb-hero-deco--vacatures .cb-hd-n--2 { animation-delay: 2s; }
	.cb-hero-deco--vacatures .cb-hd-n--3 { animation-delay: 4s; }

	/* Finance: staafjes groeien, trendlijn tekent zich */
	.cb-hd-bar { animation: cb-hd-grow 4.8s cubic-bezier(0.34, 1.3, 0.5, 1) infinite; animation-delay: calc(var(--i) * 0.18s); }
	.cb-hd-trend { stroke-dasharray: 90; animation: cb-hd-draw 4.8s ease-in-out infinite; }

	/* IT: datapakketjes reizen, cursor knippert, chip "pulseert" */
	.cb-hd-packet { animation: cb-hd-travel 3.2s linear infinite; }
	.cb-hd-packet--2 { animation-delay: 1.6s; }
	.cb-hd-cursor { animation: cb-hd-cursor 1.05s steps(1) infinite; }
	.cb-hd-chip { animation: cb-hd-pulse 3.2s ease-in-out infinite; }

	/* Professionals: klimmen cel voor cel, vonk bij de gouden cel */
	.cb-hd-climber { animation: cb-hd-climb 6s cubic-bezier(0.45, 0, 0.25, 1) infinite; }
	.cb-hd-spark { animation: cb-hd-spark 6s ease-out infinite; }

	/* Werkgevers: gouden cel klikt in het vak, vinkje tekent, gloed */
	.cb-hd-snap { animation: cb-hd-snap 6s cubic-bezier(0.34, 1.5, 0.5, 1) infinite; }
	.cb-hd-check { stroke-dasharray: 60; animation: cb-hd-check 6s ease-out infinite; }
	.cb-hd-glow { animation: cb-hd-glow 6s ease-out infinite; }
	.cb-hd-slot { animation: cb-hd-dash 6s linear infinite; }

	/* Ervaringen: puntjes knipperen (initialen rouleren via inline keyframes) */
	.cb-hd-star { animation: cb-hd-blink 1.8s ease-in-out infinite; animation-delay: calc(var(--i) * 0.25s); }

	/* Over: hartslag + bij vliegt een rondje */
	.cb-hd-heart { animation: cb-hd-beat 1.6s ease-in-out infinite; }
	.cb-hd-bee { animation: cb-hd-fly 11s ease-in-out infinite; }
	.cb-hd-wing { animation: cb-hd-flap 0.18s ease-in-out infinite alternate; }
	.cb-hd-wing--2 { animation-delay: 0.09s; }

	/* Contact: typende puntjes + belgolven */
	.cb-hd-dot { animation: cb-hd-type 1.2s ease-in-out infinite; animation-delay: calc(var(--i) * 0.16s); }
	.cb-hd-wave { animation: cb-hd-wave 2.4s ease-out infinite; }
	.cb-hd-wave--2 { animation-delay: 0.4s; }
}

@keyframes cb-hd-ping { 0% { transform: scale(1); opacity: 0.75; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes cb-hd-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes cb-hd-cell { 0%, 70%, 100% { fill: rgba(255, 167, 38, 0); stroke: #EAE4EC; } 20%, 40% { fill: rgba(255, 167, 38, 0.14); stroke: rgba(255, 167, 38, 0.55); } }
@keyframes cb-hd-grow { 0% { transform: scaleY(0.25); } 25%, 80% { transform: scaleY(1); } 100% { transform: scaleY(0.25); } }
@keyframes cb-hd-draw { 0% { stroke-dashoffset: 90; } 35%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -90; } }
@keyframes cb-hd-travel {
	0% { transform: translate(100px, 235px); opacity: 0; }
	10% { opacity: 1; }
	50% { transform: translate(147.6px, 152.5px); }
	90% { opacity: 1; }
	100% { transform: translate(195.2px, 70px); opacity: 0; }
}
@keyframes cb-hd-cursor { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes cb-hd-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes cb-hd-climb {
	0%, 8% { transform: translate(100px, 235px); opacity: 0; }
	12% { opacity: 1; }
	30%, 42% { transform: translate(147.6px, 152.5px); }
	64%, 88% { transform: translate(195.2px, 70px); opacity: 1; }
	96%, 100% { transform: translate(195.2px, 70px); opacity: 0; }
}
@keyframes cb-hd-spark { 0%, 62% { opacity: 0; transform: scale(0.6); } 70% { opacity: 1; transform: scale(1.15); } 86% { opacity: 0; transform: scale(1.5); } 100% { opacity: 0; } }
@keyframes cb-hd-snap {
	0% { transform: translate(46px, -38px) rotate(14deg); opacity: 0; }
	12% { opacity: 1; }
	34% { transform: translate(46px, -38px) rotate(14deg); }
	46%, 90% { transform: none; opacity: 1; }
	100% { transform: none; opacity: 0; }
}
@keyframes cb-hd-check { 0%, 46% { stroke-dashoffset: 60; } 58%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; } }
@keyframes cb-hd-glow { 0%, 44% { opacity: 0; transform: scale(1); } 48% { opacity: 0.9; } 66%, 100% { opacity: 0; transform: scale(1.35); } }
@keyframes cb-hd-dash { to { stroke-dashoffset: -60; } }
@keyframes cb-hd-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } 60% { transform: scale(1); } }
@keyframes cb-hd-fly {
	0%, 100% { transform: translate(236px, 128px) rotate(-6deg); }
	18% { transform: translate(240px, 212px) rotate(10deg); }
	36% { transform: translate(150px, 272px) rotate(-8deg); }
	54% { transform: translate(38px, 205px) rotate(8deg); }
	72% { transform: translate(50px, 100px) rotate(-10deg); }
	88% { transform: translate(140px, 40px) rotate(6deg); }
}
@keyframes cb-hd-flap { from { transform: scaleY(1); } to { transform: scaleY(0.35); } }
@keyframes cb-hd-type { 0%, 60%, 100% { transform: translateY(0); opacity: 0.45; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes cb-hd-wave { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }

/* Mobiel: decoratie staat al gedimd op de achtergrond; animaties mogen blijven, maar zachter */
@media (max-width: 899px) {
	.cb-hero-deco { opacity: 0.22; }
}

/* Honingraat over de hele hero (Customizer: Uitstraling → "Over de hele sectie").
   Volle dekking, alleen onderaan zacht uitlopend naar de volgende sectie. */
.cb-comb-full .cb-hero::after,
.cb-comb-full .cb-page-hero::before,
.cb-comb-full .cb-vdetail__hero::before,
.cb-comb-full .cb-hero__glint {
	-webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
}

/* Contactpagina: bij #match-check de witruimte boven het blok overslaan,
   zodat contactkaart + Match-check direct onder de menubalk staan. */
.cb-contact[id] { scroll-margin-top: calc(1.5rem - var(--cb-section)); }
/* Lang e-mailadres mag afbreken, zodat de contactkaart op mobiel binnen beeld blijft */
.cb-contact__grid > * { min-width: 0; }
.cb-contact__list a { overflow-wrap: anywhere; }
