/**
 * Starter – aanvullende CSS op theme.json.
 * Alles wat in theme.json kan, staat daar. Hier alleen wat blokken zelf niet kunnen.
 */

/* ---------- Basis ---------- */

/* Vloeiend scrollen naar ankers, behalve bij voorkeur voor minder beweging */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

:where(.wp-site-blocks) > footer.wp-block-template-part,
:where(.wp-site-blocks) > main {
	margin-block-start: 0;
}

:where(a, button, input, textarea, select, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-1);
	outline-offset: 3px;
}

::selection {
	background: var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--contrast);
}

/* Tekstlink-knop (secundaire actie) */
.wp-block-button.is-style-tekstlink .wp-block-button__link {
	background: transparent;
	color: currentColor;
	padding: 0;
	border-radius: 0;
	text-decoration: underline;
	text-underline-offset: 0.3em;
	font-weight: 500;
}
.wp-block-button.is-style-tekstlink .wp-block-button__link:hover,
.wp-block-button.is-style-tekstlink .wp-block-button__link:focus {
	background: transparent;
	color: currentColor;
	text-decoration: none;
}

/* Outline-knop volgt de radius en kleur van de variant */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: currentColor;
	border: 1px solid currentColor;
	padding: calc(0.85rem - 1px) calc(1.6rem - 1px);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

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

.site-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	padding: var(--wp--preset--spacing--50);
}
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	font-size: var(--wp--preset--font-size--large);
	gap: var(--wp--preset--spacing--40);
}

@media (max-width: 781px) {
	.site-header__cta {
		display: none;
	}
}

/*
 * Header over beeld: staat er een Cover met stijl "Onder het menu" bovenaan de pagina,
 * dan ligt de header transparant over dat beeld.
 */
body:has(.wp-block-post-content > .is-style-onder-menu:first-child) header.wp-block-template-part {
	position: absolute;
	inset-inline: 0;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 20;
}
body:has(.wp-block-post-content > .is-style-onder-menu:first-child) .site-header {
	background: transparent;
	color: #fff;
}
body:has(.wp-block-post-content > .is-style-onder-menu:first-child) .site-header :where(a:not(.wp-element-button)),
body:has(.wp-block-post-content > .is-style-onder-menu:first-child) .site-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content,
body:has(.wp-block-post-content > .is-style-onder-menu:first-child) .site-header .wp-block-navigation__responsive-container-open {
	color: #fff;
}
body:has(.wp-block-post-content > .is-style-onder-menu:first-child) .site-header .wp-element-button {
	background: var(--wp--custom--cover--button-background);
	color: var(--wp--custom--cover--button-text);
}
.wp-block-cover.is-style-onder-menu {
	padding-top: calc(var(--wp--custom--header-height) + var(--wp--preset--spacing--60));
}

/* ---------- Cover ---------- */

.wp-block-cover .wp-block-button:not(.is-style-tekstlink):not(.is-style-outline) .wp-block-button__link {
	background: var(--wp--custom--cover--button-background);
	color: var(--wp--custom--cover--button-text);
}
.wp-block-cover .wp-block-button:not(.is-style-tekstlink):not(.is-style-outline) .wp-block-button__link:hover {
	background: #fff;
	color: var(--wp--preset--color--contrast);
}
.wp-block-cover :where(p, .wp-block-heading) {
	color: inherit;
}
.wp-block-cover .dhv-gedempt {
	color: rgb(255 255 255 / 0.88);
}
@media (prefers-reduced-motion: reduce) {
	.wp-block-cover__video-background {
		display: none;
	}
}

/* Kaart op een beeld (Over mij met achtergrond) */
.dhv-overlay-kaart {
	max-width: 520px;
	margin-inline-start: auto !important;
	margin-inline-end: 0 !important;
	color: var(--wp--preset--color--contrast);
}
.dhv-overlay-kaart .wp-block-heading {
	color: var(--wp--preset--color--contrast);
}

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

.dhv-gedempt {
	color: var(--wp--preset--color--contrast-2);
}

/* Beschikbaarheidslabel op de heroportret */
.dhv-hero-media {
	position: relative;
}
.dhv-badge {
	position: absolute;
	left: -3rem;
	bottom: 2.5rem;
	gap: 0.75rem;
	padding: 1rem 1.4rem;
	background: var(--wp--preset--color--base-3);
	border: 1px solid var(--wp--preset--color--contrast-3);
	border-radius: var(--wp--custom--radius--card);
}
.dhv-badge::before,
.dhv-beschikbaar::before {
	content: "";
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-1);
}
.dhv-badge p {
	margin: 0;
	font-weight: 500;
}
.dhv-beschikbaar {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
}
.wp-block-cover .dhv-beschikbaar::before {
	background: #fff;
}
@media (max-width: 781px) {
	.dhv-badge {
		left: 1rem;
		right: 1rem;
		bottom: 1rem;
	}
}

/* Logostrook */
.dhv-logos {
	border-block: 1px solid var(--wp--preset--color--contrast-3);
}
.dhv-logos .wp-block-image img {
	filter: grayscale(1);
	opacity: 0.7;
	border-radius: 0;
}

/* Herkenning (probleem) */
.dhv-probleem {
	border-top: 2px solid var(--wp--preset--color--accent-1);
	padding-top: var(--wp--preset--spacing--40);
}

/* Aanbod en reviews: lijn boven elk item */
.dhv-lijn {
	border-top: 1px solid var(--wp--preset--color--contrast-3);
	padding-top: var(--wp--preset--spacing--40);
}
.dhv-lijn-onder {
	border-bottom: 1px solid var(--wp--preset--color--contrast-3);
	padding-bottom: var(--wp--preset--spacing--40);
}

/* Werkwijze */
.dhv-stap {
	border-top: 1px solid var(--wp--preset--color--contrast-3);
	padding-block: var(--wp--preset--spacing--40);
}
.dhv-stap:last-of-type {
	border-bottom: 1px solid var(--wp--preset--color--contrast-3);
}
.dhv-stap__nummer {
	min-width: 2.5rem;
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--heading);
	line-height: 1;
	color: var(--wp--preset--color--accent-1);
}

/* Reviews */
.dhv-quote {
	font-family: var(--wp--preset--font-family--display);
	font-weight: var(--wp--custom--quote-weight, inherit);
}

/* ---------- Icoon-blok ---------- */

.dhv-icoon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	line-height: 0;
}
.dhv-icoon.is-vorm-vlak {
	width: 56px;
	height: 56px;
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--accent-1);
}
.dhv-icoon.is-vorm-los {
	color: inherit;
}
.dhv-contactrij {
	gap: 0.85rem;
}
.dhv-contactrij .wp-block-buttons,
.dhv-contactrij p {
	margin: 0;
}

/* ---------- Blog ---------- */

.wp-block-post-template .wp-block-post-featured-image {
	margin-bottom: var(--wp--preset--spacing--30);
}
.wp-block-post-template .wp-block-post-title {
	margin-top: 0.35rem;
}
.wp-block-post-template .wp-block-post-title a:hover {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

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

.site-footer {
	border-top: 1px solid var(--wp--preset--color--contrast-3);
}
.site-footer a {
	color: var(--wp--preset--color--contrast-2);
	text-decoration: none;
}
.site-footer a:hover {
	color: var(--wp--preset--color--contrast);
	text-decoration: underline;
}
.site-footer .dhv-footer-onder {
	border-top: 1px solid var(--wp--preset--color--contrast-3);
}
.wp-block-social-links.is-style-logos-only .wp-social-link {
	color: var(--wp--preset--color--contrast);
}

/* ---------- Contactformulier ---------- */

.dhv-contactformulier form {
	display: grid;
	gap: 1.1rem;
}
.dhv-contactformulier p {
	margin: 0;
}
.dhv-cf-rij {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: 1.1rem;
}
.dhv-cf-veld {
	display: grid;
	gap: 0.4rem;
}
.dhv-cf-veld label {
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
}
.dhv-cf-optioneel {
	font-weight: 400;
	color: var(--wp--preset--color--contrast-2);
}
.dhv-contactformulier input:not([type="checkbox"]),
.dhv-contactformulier textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.8rem 1rem;
	font: inherit;
	color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--base-3);
	border: 1px solid var(--wp--preset--color--contrast-3);
	border-radius: min(var(--wp--custom--radius--card), 12px);
}
.dhv-contactformulier input:focus,
.dhv-contactformulier textarea:focus {
	border-color: var(--wp--preset--color--accent-1);
	outline: 2px solid var(--wp--preset--color--accent-2);
	outline-offset: 0;
}
.dhv-cf-check {
	display: flex;
	gap: 0.7rem;
	align-items: flex-start;
	font-size: var(--wp--preset--font-size--small);
}
.dhv-cf-check input {
	width: 1.15rem;
	height: 1.15rem;
	margin-top: 0.2rem;
	accent-color: var(--wp--preset--color--accent-1);
}
.dhv-cf-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.dhv-cf-status:empty {
	display: none;
}
.dhv-cf-status {
	font-size: var(--wp--preset--font-size--small);
}
.dhv-cf-status.is-fout {
	color: #b3261e;
	font-weight: 500;
}
.dhv-cf-status.is-succes {
	padding: 1.25rem 1.5rem;
	background: var(--wp--preset--color--accent-2);
	border-radius: var(--wp--custom--radius--card);
	font-size: var(--wp--preset--font-size--medium);
}
.dhv-contactformulier button[disabled] {
	opacity: 0.6;
	cursor: progress;
}

.dhv-overlay-kaart .dhv-gedempt {
	color: var(--wp--preset--color--contrast-2);
}
