/*
 * Componentstijlen die theme.json niet kan uitdrukken (pseudo-elementen,
 * tellers, grids met vaste verhoudingen). Kleuren en maten komen uit de
 * theme.json-variabelen.
 */

:root {
	color-scheme: light;
	--daif-line: var(--wp--custom--line);
	--daif-gradient: var(--wp--preset--gradient--line);
}

html {
	scroll-padding-top: calc(var(--wp--custom--header-height) + var(--wp-admin--admin-bar--height, 0px));
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
}

a:focus-visible,
.wp-element-button:focus-visible {
	outline: 3px solid var(--wp--preset--color--lblue);
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Blokken op topniveau staan tegen elkaar; secties regelen hun eigen ruimte. */
.wp-site-blocks > * + *,
.entry-content > * + * {
	margin-block-start: 0;
}

.entry-content {
	margin-block: 0;
}

/* De flow-layout van core zet marges op nul; koppen houden hun ruimte eronder. */
.daif-wrap .wp-block-heading {
	margin-block-end: .5em;
}

/* ---------- Knoppen ---------- */

.wp-element-button {
	transition: opacity .15s, transform .15s;
}

.wp-block-button:not(.is-style-daif-textlink) .wp-element-button:hover {
	opacity: .92;
	transform: translateY(-1px);
}

.wp-block-button.is-style-daif-textlink .wp-element-button,
.daif-textlink a,
.daif-team-line a {
	background: none;
	border: 0;
	padding: 0;
	border-radius: 0;
	color: inherit;
	font-weight: 400;
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-color: var(--wp--preset--color--lblue);
}

.wp-block-button.is-style-daif-textlink .wp-element-button {
	color: var(--wp--preset--color--blue);
}

/* ---------- Gradient-lijn boven sectiekoppen ---------- */

.wp-block-separator.is-style-daif-gline {
	width: 72px;
	max-width: 72px;
	height: 3px;
	margin: 0 0 28px;
	border: 0;
	background: var(--daif-gradient);
	opacity: 1;
}

.wp-block-separator.is-style-daif-gline.daif-gline--hero {
	width: 96px;
	max-width: 96px;
}

/* ---------- Header ---------- */

.daif-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 20;
	border-bottom: 1px solid var(--daif-line);
}

/*
 * Achtergrond en blur op een aparte laag: backdrop-filter op de header zelf
 * maakt hem het referentiekader voor position: fixed, waardoor het mobiele
 * menu niet hoger kan worden dan de header.
 */
.daif-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(255, 255, 255, .94);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.daif-header__bar {
	min-height: var(--wp--custom--header-height);
}

.daif-header__logo img {
	height: 38px;
	width: auto;
	display: block;
}

.daif-header .wp-block-navigation {
	gap: 30px;
	font-size: 1rem;
}

.daif-header .wp-block-navigation .wp-block-navigation-item__content {
	color: var(--wp--preset--color--grey);
}

.daif-header .wp-block-navigation .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--blue);
}

/* Actief menu-item: blauw met de gradient-lijn eronder. */
.daif-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
	position: relative;
	color: var(--wp--preset--color--blue);
}

.daif-header .current-menu-item > .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -6px;
	height: 2px;
	border-radius: 2px;
	background: var(--daif-gradient);
}

.daif-header .wp-block-navigation .wp-element-button {
	padding: 10px 22px;
	font-size: .95rem;
}

.daif-header .wp-block-navigation__responsive-container-open {
	color: var(--wp--preset--color--blue);
}

/* Mobiel menu (overlay): links uitgelijnd, grotere items. */
.daif-header .wp-block-navigation__responsive-container.is-menu-open {
	--navigation-layout-justification-setting: flex-start;
	--navigation-layout-justify: flex-start;
	padding: 24px 28px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--grey);
}

.daif-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	align-items: flex-start;
	text-align: left;
}

.daif-header .is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 48px;
	align-items: flex-start;
}

.daif-header .is-menu-open .wp-block-navigation__container {
	--navigation-layout-justification-setting: flex-start;
	align-items: flex-start;
	gap: 20px;
	font-size: 1.25rem;
}

.daif-header .is-menu-open .wp-block-buttons {
	margin-top: 12px;
}

.daif-header .is-menu-open .wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--blue);
}

/* Core schakelt pas onder 600px naar het mobiele menu; de mockup al onder 860px. */
@media (min-width: 600px) and (max-width: 860px) {
	.daif-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
	.daif-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

/* ---------- Secties ---------- */

.daif-section {
	padding-block: 88px;
}

.daif-section + .daif-section,
.daif-hero--full + .daif-section {
	border-top: 1px solid var(--wp--preset--color--lgray);
}

/*
 * Secties wisselen af: elke tweede sectie is lichtblauw. De hero telt niet
 * mee. Waar de kleur de scheiding al maakt, vervalt de lijn.
 */
.entry-content > .daif-section:nth-child(even of .daif-section),
.is-root-container > .daif-section:nth-child(even of .daif-section) {
	--daif-section-bg: var(--wp--preset--color--blue-50);
	background: var(--daif-section-bg);
	border-top: 0;
}

.entry-content > .daif-section:nth-child(even of .daif-section) + .daif-section,
.is-root-container > .daif-section:nth-child(even of .daif-section) + .daif-section {
	border-top: 0;
}

.daif-lead {
	font-size: var(--wp--preset--font-size--lead);
	max-width: 720px;
}

/* ---------- Hero ---------- */

.daif-hero {
	padding-block: 100px 88px;
}

.daif-hero .daif-wrap h1 {
	max-width: 760px;
	margin-bottom: 24px;
}

.daif-hero__sub {
	font-size: var(--wp--preset--font-size--sub);
	max-width: 640px;
	line-height: 1.5;
	margin-bottom: 38px;
}

.daif-hero .wp-block-buttons {
	gap: 28px;
	align-items: center;
}

/* ---------- Situatiekaarten ---------- */

.daif-grid {
	margin-top: 40px;
}

.wp-block-group.is-style-daif-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--daif-line);
	border-radius: var(--wp--custom--radius--card);
	padding: 28px 28px 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.is-style-daif-card > * {
	margin: 0;
}

.daif-sit__quote {
	font-size: 1.15rem;
	color: var(--wp--preset--color--blue);
	line-height: 1.35;
}

.daif-sit__quote::before { content: "\201C"; }
.daif-sit__quote::after { content: "\201D"; }

.daif-sit__step {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 400;
	color: var(--wp--preset--color--muted);
}

.daif-sit__text {
	font-size: .98rem;
}

.daif-after-grid {
	margin-top: 32px;
}

/* ---------- Vijf punten met tijdlijn ---------- */

.daif-five {
	margin-top: 8px;
}

.wp-block-list.is-style-daif-timeline {
	list-style: none;
	padding: 0;
	margin: 0;
}

.is-style-daif-timeline > li {
	position: relative;
	padding: 16px 0 16px 28px;
	border-left: 2px solid var(--wp--preset--color--blue-100);
	font-size: .98rem;
}

.is-style-daif-timeline > li::before {
	content: "";
	position: absolute;
	left: -6px;
	top: 24px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--wp--preset--color--lblue), var(--wp--preset--color--purple));
}

.is-style-daif-timeline > li strong,
.is-style-daif-chain > li strong {
	display: block;
	font-weight: 400;
	font-size: 17px;
	color: var(--wp--preset--color--blue);
}

/* ---------- Ketenlijst ---------- */

.wp-block-list.is-style-daif-chain {
	list-style: none;
	padding: 0;
	margin: 0;
	counter-reset: daif-chain;
}

.is-style-daif-chain > li {
	counter-increment: daif-chain;
	display: grid;
	grid-template-columns: 44px 1fr;
	column-gap: 16px;
	padding: 18px 0;
	border-bottom: 1px solid var(--wp--preset--color--lgray);
	font-size: .98rem;
}

.is-style-daif-chain > li::before {
	content: counter(daif-chain);
	grid-row: span 2;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1.5px solid var(--wp--preset--color--blue);
	color: var(--wp--preset--color--blue);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 400;
	font-size: 17px;
}

.is-style-daif-chain > li:first-child::before {
	background: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--white);
}

/* ---------- Casekaarten ---------- */

.wp-block-group.is-style-daif-case {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--daif-line);
	border-radius: var(--wp--custom--radius--card);
	box-shadow: var(--wp--preset--shadow--card);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.is-style-daif-case > * {
	margin: 0;
}

.daif-tag {
	align-self: flex-start;
	margin: 24px 28px 0 !important;
	padding: 4px 10px;
	border: 1px solid currentColor;
	border-radius: 4px;
	font-size: .72rem;
	letter-spacing: .04em;
	font-weight: 400;
	line-height: 1.6;
}

.daif-tag--gov { color: var(--wp--preset--color--blue); }
.daif-tag--biz { color: var(--wp--preset--color--purple); }

.is-style-daif-case > h3.wp-block-heading {
	margin: 0;
	padding: 16px 28px 0;
	color: var(--wp--preset--color--blue);
	font-size: 1.15rem;
}

/* Klantnaam onder de titel (alleen als die is vrijgegeven). */
.is-style-daif-case > .daif-case__client {
	margin: 4px 0 0;
	padding: 0 28px;
}

.daif-case__client {
	color: var(--wp--preset--color--grey);
	font-size: .72rem;
	letter-spacing: .04em;
	line-height: 1.6;
}

.daif-case__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px 28px 24px;
}

.daif-case__body > * {
	margin: 0;
}

.daif-case__body > p:first-child {
	margin-bottom: 10px;
}

.daif-case__meta p {
	margin: 0 0 6px;
	padding-left: calc(8.2em + 14px);
	font-size: .95rem;
}

.daif-case__meta p:last-child {
	margin-bottom: 0;
}

.daif-case__meta strong {
	display: inline-block;
	width: 8.2em;
	margin-left: calc(-8.2em - 14px);
	margin-right: 10px;
	color: var(--wp--preset--color--muted);
	font-weight: 400;
}

.daif-case__result {
	margin-top: auto !important;
	padding-top: 14px;
	border-top: 1px solid var(--wp--preset--color--lgray);
	display: flex;
	align-items: baseline;
	gap: 10px;
	font-size: .9rem;
	color: var(--wp--preset--color--muted);
}

.daif-case__result strong {
	font-size: 2.4rem;
	line-height: 1;
	font-weight: 300;
	color: var(--wp--preset--color--blue);
	letter-spacing: -.03em;
}

.daif-case__more a {
	display: block;
	padding: 14px 28px;
	border-top: 1px solid var(--wp--preset--color--lgray);
	background: var(--wp--preset--color--blue-50);
	text-decoration: none;
	font-weight: 400;
}

/* ---------- Logowall ---------- */

.daif-logos {
	margin-top: 64px;
}

.daif-logos__label {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	margin-bottom: 18px;
}

p.is-style-daif-tile {
	margin: 0;
	min-height: 64px;
	padding: 20px 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	border: 1px solid var(--wp--preset--color--lgray);
	border-radius: var(--wp--custom--radius--tile);
	color: #7a7c7d;
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: .02em;
	line-height: 1.3;
}

/* ---------- Logoslider (Group met stijl "Logoslider") ---------- */

/* In de editor en bij minder beweging: een gewone wand. */
.is-style-daif-logoslider {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 16px 48px;
}

.is-style-daif-logoslider > *,
.daif-logoslider__set > * {
	flex: none;
	margin: 0;
}

.is-style-daif-logoslider figure {
	margin: 0;
}

/* Logo's staan op een doek van 3:1 met wat ruimte eromheen (zie README, Logoslider). */
.is-style-daif-logoslider img {
	display: block;
	width: auto;
	height: 60px;
	max-width: 180px;
	object-fit: contain;
	filter: grayscale(1);
	opacity: .65;
}

.is-style-daif-logoslider p.is-style-daif-tile {
	min-width: 150px;
	white-space: nowrap;
}

/* Op de site: één rij die langzaam opzij schuift. De reeks staat er twee keer in; -50% is naadloos. */
.daif-logoslider--ready {
	display: block;
}

.daif-logoslider__viewport {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.daif-logoslider__track {
	display: flex;
	width: max-content;
	animation: daif-logoslider calc(var(--daif-logos, 8) * 3.5s) linear infinite;
}

.daif-logoslider__set {
	display: flex;
	align-items: center;
	gap: 48px;
	padding-right: 48px;
}

.daif-logoslider__set:has(> p.is-style-daif-tile) {
	gap: 16px;
	padding-right: 16px;
}

.daif-logoslider--ready:hover .daif-logoslider__track {
	animation-play-state: paused;
}

@keyframes daif-logoslider {
	to { transform: translateX(-50%); }
}


@media (max-width: 600px) {
	.is-style-daif-logoslider img {
		height: 48px;
		max-width: 144px;
	}

	.daif-logoslider__set {
		gap: 32px;
		padding-right: 32px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.daif-logoslider__track {
		width: auto;
		animation: none;
	}

	.daif-logoslider__set {
		flex-wrap: wrap;
		justify-content: center;
		padding-right: 0;
	}

	.daif-logoslider__set[aria-hidden="true"] {
		display: none;
	}

	.daif-logoslider__viewport {
		-webkit-mask-image: none;
		mask-image: none;
	}
}

.daif-team-line {
	margin-top: 56px;
}

/* ---------- CTA met contactkaart ---------- */

.daif-cta h2 {
	max-width: 760px;
}

.wp-block-group.is-style-daif-contactcard {
	background: var(--wp--preset--color--blue-50);
	border: 1px solid var(--daif-line);
	border-radius: var(--wp--custom--radius--card);
	padding: 28px;
}

.is-style-daif-contactcard strong:first-child {
	display: block;
	font-weight: 400;
	margin-bottom: 6px;
	color: var(--wp--preset--color--blue);
}

.is-style-daif-contactcard p {
	font-size: var(--wp--preset--font-size--small);
	margin-bottom: 0;
}

.is-style-daif-contactcard p + p {
	margin-top: 14px;
}

.daif-contactcard__phone a {
	font-size: 1.2rem;
	text-decoration: none;
}

/* ---------- Footer ---------- */

.daif-footer {
	background: var(--wp--preset--color--footer);
	color: rgba(255, 255, 255, .8);
	padding-block: 56px 28px;
	font-size: .92rem;
}

.daif-footer .daif-footer__logo img {
	height: 34px;
	width: auto;
	display: block;
	margin-bottom: 14px;
}

.daif-footer a {
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

.daif-footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
	line-height: 2;
}

.daif-footer__legal {
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, .15);
	font-size: .82rem;
}

.daif-footer__legal p {
	margin: 0;
}

/* ---------- Redactienotities ---------- */

mark.daif-note {
	display: inline-block;
	padding: 3px 9px;
	border: 1px dashed var(--wp--preset--color--orange);
	border-radius: 4px;
	background: #FFF6E5;
	color: #8a5a00;
	font-size: .72rem;
	font-weight: 400;
	letter-spacing: .03em;
	line-height: 1.5;
	vertical-align: middle;
}

.wp-block-group.is-style-redactienotitie {
	padding: 12px 16px;
	border: 1px dashed var(--wp--preset--color--orange);
	border-radius: 8px;
	background: #FFF6E5;
	color: #8a5a00;
	font-size: .9rem;
}

.wp-block-group.is-style-redactienotitie::before {
	content: "Redactienotitie, niet zichtbaar op de site";
	display: block;
	font-size: .72rem;
	font-weight: 400;
	letter-spacing: .04em;
	text-transform: uppercase;
	margin-bottom: 6px;
}

/* ---------- Editor: titel ----------
 * Alleen in de editor (add_editor_style): de titel is daar een korte naam, op de site staat
 * hij niet zo groot. .editor-post-title is een classname van de editor; na elke
 * WordPress-update controleren.
 */
.editor-styles-wrapper .editor-post-title {
	font-size: 1.8rem;
	line-height: 1.25;
}

/* ---------- Mobiel ---------- */

@media (max-width: 860px) {
	.daif-section { padding-block: 64px; }
	.daif-hero { padding-block: 72px; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
	html { scroll-behavior: auto; }
}

/* ---------- Kennismaking plannen (venster met de agenda) ---------- */

.daif-booking {
	width: min(1000px, calc(100vw - 32px));
	height: min(780px, calc(100dvh - 32px));
	padding: 0;
	border: 0;
	border-radius: var(--wp--custom--radius--card, 24px);
	background: #fff;
	box-shadow: 0 20px 60px rgba(29, 58, 77, .25);
	overflow: hidden;
}

.daif-booking[open] {
	display: flex;
	flex-direction: column;
}

.daif-booking::backdrop {
	background: rgba(29, 58, 77, .6);
}

.daif-booking__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 16px 12px 24px;
	border-bottom: 1px solid var(--wp--preset--color--lgray);
	color: var(--wp--preset--color--blue);
}

.daif-booking__close {
	padding: 6px 14px;
	border: 1px solid var(--wp--preset--color--lgray);
	border-radius: 100px;
	background: transparent;
	color: var(--wp--preset--color--grey);
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	cursor: pointer;
}

.daif-booking__close:hover {
	color: var(--wp--preset--color--blue);
	border-color: var(--wp--preset--color--blue);
}

.daif-booking__close:focus-visible {
	outline: 2px solid var(--wp--preset--color--lblue);
	outline-offset: 2px;
}

.daif-booking__frame {
	flex: 1;
	width: 100%;
	border: 0;
}

@media (max-width: 600px) {
	.daif-booking {
		width: 100vw;
		max-width: 100vw;
		height: 100dvh;
		max-height: 100dvh;
		border-radius: 0;
	}
}


/* ---------- Cookiemelding (alleen als Google Analytics aan staat) ---------- */

.daif-consent {
	position: fixed;
	z-index: 1000;
	right: 16px;
	bottom: 16px;
	left: 16px;
	max-width: 760px;
	margin: 0 auto;
	padding: 20px 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
	background: #fff;
	border: 1px solid var(--wp--preset--color--lgray);
	border-radius: var(--wp--custom--radius--small);
	box-shadow: 0 8px 32px rgba(29, 58, 77, .18);
}

.daif-consent[hidden] {
	display: none;
}

.daif-consent__text {
	flex: 1 1 320px;
	margin: 0;
	color: var(--wp--preset--color--grey);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}

.daif-consent__actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(140px, 1fr));
	gap: 12px;
}

/* Accepteren en Weigeren: precies dezelfde stijl en grootte (eis van de AP); twee gelijke kolommen. */
.daif-consent__button {
	width: 100%;
	padding: 10px 22px;
	border: 1.5px solid var(--wp--preset--color--blue);
	border-radius: var(--wp--custom--radius--pill);
	background: #fff;
	color: var(--wp--preset--color--blue);
	font: inherit;
	font-weight: 400;
	cursor: pointer;
}

.daif-consent__button:hover {
	background: var(--wp--preset--color--blue);
	color: #fff;
}

.daif-consent__button:focus-visible {
	outline: 2px solid var(--wp--preset--color--lblue);
	outline-offset: 2px;
}

@media (max-width: 600px) {
	.daif-consent {
		right: 8px;
		bottom: 8px;
		left: 8px;
		padding: 16px;
	}

	.daif-consent__actions {
		width: 100%;
		grid-template-columns: 1fr 1fr;
	}
}

/* ---------- Tagline onder het logo in de footer (link naar de definitie op Home) ---------- */

.daif-footer__tagline {
	margin-top: 10px;
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: .02em;
}

.daif-footer__tagline a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, .35);
}

.daif-footer__tagline a:hover,
.daif-footer__tagline a:focus-visible {
	border-bottom-color: currentColor;
}

