/*
Theme Name: Website Ontzorgers
Theme URI: https://website-ontzorgers.nl
Author: Website Ontzorgers
Description: Rustig, modern block theme voor Website Ontzorgers.
Version: 1.1.0
Requires at least: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: website-ontzorgers
*/

:root {
	--wo-radius: 20px;
	--wo-radius-sm: 12px;
	--wo-shadow: 0 18px 40px -22px rgba(17, 21, 19, .28);
	--wo-section: clamp(72px, 9vw, 128px);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--wp--preset--color--tint); }

/* Layout: full-width sections sit flush against each other */
.wp-site-blocks > * + * { margin-block-start: 0; }
.entry-content > .alignfull,
.wp-block-post-content > .alignfull { margin-block: 0; }
main.wp-block-group { margin-block: 0; }

.wo-section { padding-block: var(--wo-section); }
.wo-section--tight { padding-block: calc(var(--wo-section) * .6); }
.wo-section--flush-top { padding-top: 0; }

/* Eyebrow + lead text */
.wo-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	letter-spacing: .01em;
}
.wo-eyebrow::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
}
.wo-lead { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--muted); line-height: 1.55; max-width: 38rem; }
.has-ink-background-color .wo-lead,
.has-ink-background-color .wo-muted { color: #B9C0BC; }
.has-ink-background-color .wo-eyebrow { color: #B9C0BC; }
.has-ink-background-color .wo-eyebrow::before { background: #8FC7AE; }
.wo-muted { color: var(--wp--preset--color--muted); }

/* Header */
.wo-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .88);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding-block: 14px;
}
.admin-bar .wo-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .wo-header { top: 0; } }
.wo-header .wp-block-site-title { margin: 0; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }
.wo-header .wp-block-site-title a { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.wo-header .wp-block-site-title a::before {
	content: "";
	width: 30px;
	height: 30px;
	border-radius: 9px;
	background: var(--wp--preset--color--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / 17px no-repeat;
}
.wo-header .wp-block-navigation { font-size: .9375rem; gap: 6px 28px; }
.wo-header .wp-block-navigation-item__content { color: #3E4541; text-decoration: none; }
.wo-header .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--ink); }
.wo-header .wo-nav-cta > .wp-block-navigation-item__content {
	background: var(--wp--preset--color--ink);
	color: #fff;
	padding: 10px 18px;
	border-radius: 10px;
	font-weight: 500;
}
.wo-header .wo-nav-cta > .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--accent); color: #fff; }
.wo-header .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--line) !important;
	border-radius: 14px;
	padding: 8px !important;
	box-shadow: var(--wo-shadow);
	min-width: 240px !important;
}
.wo-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 9px 12px !important; border-radius: 8px; }
.wo-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--surface); }
.wp-block-navigation__responsive-container.is-menu-open { padding: 28px 24px; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.25rem; }

/* Buttons */
.wp-block-button__link { transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ink);
	border: 1px solid #D3D4CD;
	padding: 14px 23px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: var(--wp--preset--color--ink); background: transparent; color: var(--wp--preset--color--ink); }
.has-ink-background-color .wp-block-button:not(.is-style-outline) > .wp-block-button__link { background: #fff; color: var(--wp--preset--color--ink); }
.has-ink-background-color .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover { background: #DDEBE3; }
.has-ink-background-color .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; border-color: #3B423E; }
.has-ink-background-color a:not(.wp-block-button__link) { color: #fff; }

/* Images */
.wp-block-image.is-style-rounded-lg img,
.wo-photo img { border-radius: var(--wo-radius); display: block; width: 100%; height: 100%; object-fit: cover; }
.wo-photo--tall img { aspect-ratio: 4 / 5; }
.wo-photo--wide img { aspect-ratio: 16 / 10; }
.wo-photo--hero img { aspect-ratio: 16 / 8; }
@media (max-width: 781px) { .wo-photo--hero img { aspect-ratio: 4 / 3; } }

/* Hero photo with floating status chip */
.wo-hero-media { position: relative; }
.wo-chip {
	position: absolute;
	left: 24px;
	bottom: 24px;
	margin: 0 !important;
	background: #fff;
	border-radius: 14px;
	padding: 12px 18px 12px 14px;
	box-shadow: var(--wo-shadow);
	font-size: .9375rem;
	line-height: 1.35;
	display: block;
	padding-left: 60px;
	color: var(--wp--preset--color--muted);
}
.wo-chip strong { color: var(--wp--preset--color--ink); font-weight: 500; }
.wo-chip::before {
	content: "";
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--wp--preset--color--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F5C46' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.wo-chip--right { left: auto; right: 24px; bottom: auto; top: 24px; }
/* On phones the photo stays clean so heading and button stay in view */
@media (max-width: 781px) { .wo-chip { display: none; } }

/* Cards */
.wp-block-group.is-style-card {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wo-radius);
	padding: 32px;
	height: 100%;
	box-sizing: border-box;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.wp-block-group.is-style-card:hover { transform: translateY(-4px); box-shadow: var(--wo-shadow); border-color: #D6D8D0; }
.wp-block-group.is-style-card.has-ink-background-color { border-color: var(--wp--preset--color--ink); }
.wp-block-group.is-style-card.has-tint-background-color { border-color: #D5E4DA; }
.is-style-card > :first-child { margin-top: 0; }
.wo-card-photo { margin: -32px -32px 8px !important; }
.wo-card-photo img { border-radius: var(--wo-radius) var(--wo-radius) 0 0 !important; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; display: block; }
.wo-card-link { margin-top: auto !important; font-weight: 500; }
.wo-card-link a { text-decoration: none; }
.wo-card-link a::after { content: " →"; }
.is-style-card { display: flex; flex-direction: column; }

/* Icon badge */
.wo-icon {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--wp--preset--color--tint);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 0 6px !important;
}
.wo-icon svg { width: 24px; height: 24px; }

/* Check lists */
.wp-block-list.is-style-checks { list-style: none; padding-left: 0; display: grid; gap: 10px; }
.wp-block-list.is-style-checks li { position: relative; padding-left: 30px; }
.wp-block-list.is-style-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .25em;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--wp--preset--color--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F5C46' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.has-ink-background-color .wp-block-list.is-style-checks li::before {
	background: #24302A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238FC7AE' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Numbered rows (diensten list) */
.wo-rows { border-top: 1px solid var(--wp--preset--color--line); }
.wo-row {
	display: grid !important;
	grid-template-columns: 56px minmax(0, 1fr) auto;
	gap: 16px;
	align-items: start;
	padding: 26px 8px;
	border-bottom: 1px solid var(--wp--preset--color--line);
	margin: 0 !important;
	transition: background-color .2s ease;
	border-radius: 4px;
	position: relative;
}
.wo-row:hover { background: var(--wp--preset--color--surface); }
.wo-row > * { margin: 0 !important; }
.wo-row .wo-num { color: #8C928E; font-size: .9375rem; padding-top: 4px; }
.wo-row h3 { font-size: 1.375rem; }
.wo-row h3 a { text-decoration: none; }
.wo-row h3 a::after { content: ""; position: absolute; inset: 0; }
.wo-row .wo-row-text { display: grid; gap: 6px; }
.wo-row .wo-row-text p { color: var(--wp--preset--color--muted); }
.wo-row .wo-arrow { padding-top: 6px; font-size: 1.25rem; transition: transform .2s ease; }
.wo-row:hover .wo-arrow { transform: translate(3px, -3px); }
/* Compact list on phones: title + arrow only */
@media (max-width: 600px) {
	.wo-row { grid-template-columns: minmax(0, 1fr) auto; padding: 18px 4px; }
	.wo-row .wo-num, .wo-row .wo-row-text p { display: none !important; }
}

/* Steps */
.wo-step { border-top: 1px solid var(--wp--preset--color--ink); padding-top: 20px; }
.wo-step .wo-num { color: var(--wp--preset--color--accent); font-weight: 500; font-size: .9375rem; }
.has-ink-background-color .wo-step { border-top-color: #3B423E; }
.has-ink-background-color .wo-step .wo-num { color: #8FC7AE; }

/* Highlights row */
.wo-facts > * { border-top: 1px solid var(--wp--preset--color--line); padding-top: 18px; }
.wo-facts p { margin: 0; }
.wo-facts strong { font-weight: 500; display: block; }

/* Pricing */
.wo-price { font-size: 1.75rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; margin: 4px 0 0 !important; }
.wo-badge {
	display: inline-block;
	font-size: .75rem;
	font-weight: 500;
	padding: 4px 10px;
	border-radius: 999px;
	background: #24302A;
	color: #CFE3D8;
	margin: 0 !important;
	align-self: flex-start;
}
.wo-divider { border: 0; border-top: 1px solid var(--wp--preset--color--line); margin: 6px 0 !important; width: 100%; }
.has-ink-background-color .wo-divider { border-top-color: #2B322E; }
.is-style-card .wp-block-buttons { margin-top: auto; }
.is-style-card .wp-block-button, .is-style-card .wp-block-button__link { width: 100%; text-align: center; }
.wo-plan-note { font-size: .9375rem; color: var(--wp--preset--color--muted); }

/* FAQ */
.wo-faq { border-top: 1px solid var(--wp--preset--color--line); }
.wo-faq .wp-block-details {
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding: 22px 0;
	margin: 0 !important;
}
.wo-faq summary {
	font-weight: 500;
	font-size: 1.125rem;
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 16px;
}
.wo-faq summary::-webkit-details-marker { display: none; }
.wo-faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--wp--preset--color--muted); transition: transform .2s ease; }
.wo-faq details[open] summary::after { transform: rotate(45deg); }
.wo-faq details p { color: var(--wp--preset--color--muted); margin-top: 12px; }

/* CTA band */
.wo-cta {
	border-radius: 28px;
	padding: clamp(32px, 5vw, 72px) !important;
	overflow: hidden;
}
.wo-cta-meta { font-size: .875rem; color: var(--wp--preset--color--muted); }

/* Footer */
.wo-footer { padding-block: 80px 32px; font-size: .9375rem; }
.wo-footer h4 { font-size: .9375rem; font-weight: 500; color: #fff; margin-bottom: 14px; }
.wo-footer p { margin: 0; }
.wo-footer .wo-footer-links p + p { margin-top: 8px; }
.wo-footer a { color: #B9C0BC !important; text-decoration: none; }
.wo-footer a:hover { color: #fff !important; }
.wo-footer .wo-footer-bottom { border-top: 1px solid #2B322E; padding-top: 24px; margin-top: 56px; color: #8C928E; }
.wo-footer .wo-brand { font-weight: 600; color: #fff; font-size: 1.0625rem; }

/* Section rhythm */
.wo-section > .alignwide + .alignwide,
.wo-section > .wp-block-columns + .alignwide { margin-top: clamp(32px, 4vw, 56px); }
.wo-section--home-hero { padding-top: clamp(48px, 7vw, 96px); }
.wo-section--home-hero h1 { max-width: 15ch; margin-top: 18px; }
.wo-section--home-hero .wp-block-columns { margin-top: 28px; margin-bottom: 0; }
.wo-section--home-hero .wp-block-buttons { justify-content: flex-end; }
@media (max-width: 781px) { .wo-section--home-hero .wp-block-buttons { justify-content: flex-start; } }
.wo-section h1 + .wo-lead, .wo-section h2 + .wo-lead { margin-top: 18px; }
.wo-section .wp-block-column > .wp-block-buttons { margin-top: 28px; }
.wo-section .wp-block-columns { gap: clamp(32px, 6vw, 80px); }
.wo-hero-media.wo-photo--tall img { aspect-ratio: 4 / 4.4; }
.wp-block-group.is-layout-grid { row-gap: 20px; }
.wo-facts.is-layout-grid { row-gap: 24px; }
.wo-cta h2 { max-width: 18ch; }

/* Card headings: keep them readable on small screens */
body h3.wp-block-heading { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.375rem); }

/* "Voor wie": horizontal swipe on phones instead of a long strip */
@media (max-width: 781px) {
	.wo-swipe {
		display: flex !important;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: 16px !important;
		margin-inline: -24px !important;
		padding-inline: 24px;
		padding-bottom: 8px;
		scrollbar-width: none;
	}
	.wo-swipe::-webkit-scrollbar { display: none; }
	.wo-swipe > * { flex: 0 0 80%; scroll-snap-align: start; }
	.wo-swipe .is-style-card:hover { transform: none; }
}

/* Sticky "Plan een kennismaking" on phones */
.wo-sticky-cta {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 60;
	display: none;
	text-align: center;
	background: var(--wp--preset--color--ink);
	color: #fff !important;
	font-weight: 500;
	font-size: 1rem;
	padding: 15px 20px;
	border-radius: 14px;
	text-decoration: none;
	box-shadow: 0 14px 30px -12px rgba(17, 21, 19, .5);
	transform: translateY(140%);
	transition: transform .3s ease;
}
@media (max-width: 781px) {
	.wo-sticky-cta { display: block; }
	.wo-sticky-cta.is-visible { transform: none; }
	body { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) { .wo-sticky-cta { transition: none; } }

/* Contact Form 7 */
.wpcf7 form { display: grid; gap: 16px; }
.wpcf7 form p { margin: 0; }
.wpcf7 label { display: grid; gap: 6px; font-size: .9375rem; color: #3E4541; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	font-size: 1rem;
	color: var(--wp--preset--color--ink);
	background: #fff;
	border: 1px solid #D3D4CD;
	border-radius: 10px;
	padding: 13px 14px;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.wpcf7 textarea { min-height: 140px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--accent);
	box-shadow: 0 0 0 3px rgba(31, 92, 70, .15);
}
.wpcf7 .wo-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.wpcf7 .wpcf7-checkbox { display: flex; flex-wrap: wrap; gap: 8px; }
.wpcf7 .wpcf7-list-item { margin: 0; }
.wpcf7 .wpcf7-list-item label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid #D3D4CD;
	border-radius: 999px;
	padding: 8px 14px;
	cursor: pointer;
	color: var(--wp--preset--color--ink);
}
.wpcf7 .wpcf7-list-item label:has(input:checked) { border-color: var(--wp--preset--color--accent); background: var(--wp--preset--color--tint); }
.wpcf7 .wpcf7-list-item input { accent-color: var(--wp--preset--color--accent); }
.wpcf7 .wpcf7-acceptance .wpcf7-list-item label { border: 0; padding: 0; border-radius: 0; background: none; font-size: .875rem; color: var(--wp--preset--color--muted); }
.wpcf7 input[type="submit"] {
	font: inherit;
	font-weight: 500;
	background: var(--wp--preset--color--ink);
	color: #fff;
	border: 0;
	border-radius: 12px;
	padding: 15px 28px;
	cursor: pointer;
	transition: background-color .2s ease;
	justify-self: start;
}
.wpcf7 input[type="submit"]:hover { background: var(--wp--preset--color--accent); }
.wpcf7 .wpcf7-spinner { margin: 0 0 0 12px; }
.wpcf7 .wpcf7-not-valid-tip { font-size: .875rem; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { margin: 0; border-radius: 10px; padding: 12px 16px; }
.wpcf7 .wo-label { display: block; font-size: .9375rem; color: #3E4541; margin-bottom: 8px; }
.wo-form-card { background: #fff; border-radius: var(--wo-radius); padding: clamp(24px, 4vw, 40px) !important; box-shadow: 0 1px 0 var(--wp--preset--color--line), var(--wo-shadow); }
.wo-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.grecaptcha-badge { visibility: hidden; }
.wo-recaptcha-note { font-size: .8125rem; color: var(--wp--preset--color--muted); }

/* Gentle reveal on scroll (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		.wo-reveal > * { animation: wo-fade linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
		@keyframes wo-fade { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
	}
}
