:root {
	--bg: #fafbfc;
	--paper: #ffffff;
	--ink: #2e3a36;
	--text: #3d4a45;
	--muted: #5f6d67;
	--accent: #5d756c;
	--accent-dark: #475d55;
	--soft: #e9eeec;
	--line: #d7dedb;
	--button: #4f3261;
	--button-dark: #3b2449;
	--radius: 12px;
	--head: "Avenir Next", Avenir, Montserrat, "Century Gothic", "Segoe UI", "Trebuchet MS", system-ui, sans-serif;
	--serif: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	overflow-x: clip;
	background: var(--bg);
	color: var(--text);
	font: 1.125rem/1.8 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-dark); text-underline-offset: 0.15em; }
a:hover { color: var(--button); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--button); outline-offset: 2px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 30; padding: 0.5rem 1rem; background: var(--paper); }

/* Header and menu */
.site-header { position: relative; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.bar {
	max-width: 72rem;
	margin: 0 auto;
	padding: 0.75rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}
.brand img { display: block; height: 5.5rem; width: auto; }
@media (max-width: 40rem) { .brand img { height: 4.25rem; } }
.nav-toggle {
	display: none;
	padding: 0.5rem 1rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--paper);
	color: var(--ink);
	font: inherit;
	cursor: pointer;
}
#site-nav ul { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; align-items: center; gap: 0.25rem; }
.nav-list > li { position: relative; }
.nav-list a {
	display: block;
	padding: 0.5rem 0.8rem;
	border-radius: 8px;
	color: var(--ink);
	text-decoration: none;
}
.nav-list a:hover, .nav-list .is-active > a { background: var(--soft); }
.nav-list .is-cta > a { background: var(--button); color: #fff; }
.nav-list .is-cta > a:hover { background: var(--button-dark); }

.nav-sub {
	display: none;
	position: absolute;
	left: 0;
	top: 100%;
	min-width: 15rem;
	padding: 0.4rem;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 12px 30px rgba(46, 58, 54, 0.12);
}
.has-sub:hover > .nav-sub, .has-sub:focus-within > .nav-sub { display: block; }
.nav-sub li { position: static; }
.nav-sub .nav-sub {
	display: block;
	position: static;
	min-width: 0;
	padding: 0 0 0 0.9rem;
	border: 0;
	box-shadow: none;
}

@media (max-width: 60rem) {
	.nav-toggle { display: inline-block; }
	.bar { flex-wrap: wrap; }
	#site-nav { display: none; width: 100%; }
	.site-header.nav-open #site-nav { display: block; }
	.nav-list { flex-direction: column; align-items: stretch; padding-bottom: 0.75rem; }
	.nav-list .is-cta { margin-top: 0.5rem; }
	.nav-list .is-cta > a { text-align: center; }
	.nav-sub, .nav-sub .nav-sub {
		display: block;
		position: static;
		min-width: 0;
		padding: 0 0 0 1rem;
		border: 0;
		box-shadow: none;
	}
}

/* Banner under the menu: a soft sage band, or a photo with a sage tint (see
   $hero_photos in theme/templates/index.php) */
.hero {
	height: clamp(7rem, 18vw, 14rem);
	background:
		radial-gradient(circle at 12% 25%, rgba(255, 255, 255, 0.18), transparent 42%),
		radial-gradient(circle at 88% 85%, rgba(255, 255, 255, 0.12), transparent 40%),
		linear-gradient(120deg, var(--accent-dark), var(--accent) 60%, #8aa097);
}
.hero.has-photo {
	background:
		linear-gradient(rgba(93, 117, 108, 0.55), rgba(93, 117, 108, 0.55)),
		var(--hero) center / cover no-repeat;
}

/* Page */
main { max-width: 64rem; margin: 0 auto; padding: 2.75rem 1.25rem 4rem; }
h1, h2, h3 {
	margin: 0;
	color: var(--accent-dark);
	font-family: var(--head);
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.25;
}
h1 { margin-bottom: 1.75rem; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.is-home h1 { font-size: clamp(2rem, 5vw, 2.8rem); }

/* Text: one calm column, generous air, no lines above headings */
.prose h2 { margin: 3.5rem 0 1rem; font-size: 1.5rem; }
.prose h3 { margin: 2.25rem 0 0.75rem; font-size: 1.2rem; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.5rem; }
.prose > p:first-child { color: var(--ink); font-size: 1.28rem; line-height: 1.7; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin: 0.6rem 0; }
.prose li::marker { color: var(--accent); }
.prose figure { margin: 0 0 1.5rem; }
.prose figure img {
	display: block;
	width: 100%;
	max-width: 16rem;
	margin: 0 auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 50% 25%;
	border-radius: var(--radius);
}
.prose table {
	width: 100%;
	margin: 1.5rem 0;
	border-collapse: collapse;
	background: var(--paper);
	border-radius: var(--radius);
	overflow: hidden;
}
.prose th, .prose td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--soft); font-family: var(--head); }

/* Reviews: a full-width soft band; every quote is a white block, a run of quotes
   becomes a slider (see site.js). One or two quotes stand centred. */
.prose blockquote {
	position: relative;
	margin: 0 0 1rem;
	padding: 3.4rem 1.6rem 1.75rem;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--ink);
	font: 1.12rem/1.65 var(--serif);
}
.prose blockquote::before {
	content: "\201C";
	position: absolute;
	left: 1.5rem;
	top: 0.85rem;
	color: var(--accent);
	opacity: 0.45;
	font: 4rem/1 var(--serif);
}
.reviews-band {
	clear: both;
	width: 100vw;
	margin: 3.5rem 0 2rem calc(50% - 50vw);
	padding: 3rem 1.25rem 3.25rem;
	background: var(--soft);
}
.reviews-inner { max-width: 64rem; margin: 0 auto; }
.prose .reviews-band h2 { margin: 0 0 1.75rem; text-align: center; }
.reviews-track {
	display: flex;
	gap: 1rem;
	padding: 0.25rem 0 0.5rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.reviews-track::-webkit-scrollbar { display: none; }
.reviews-track blockquote { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.reviews-track blockquote:first-child { margin-left: auto; }
.reviews-track blockquote:last-child { margin-right: auto; }
@media (min-width: 40rem) { .reviews-track blockquote { flex-basis: calc((100% - 1rem) / 2); } }
@media (min-width: 56rem) { .reviews-track blockquote { flex-basis: calc((100% - 2rem) / 3); } }
.reviews-track:has(> blockquote:only-child) > blockquote { flex-basis: min(100%, 40rem); }
@media (prefers-reduced-motion: no-preference) { .reviews-track { scroll-behavior: smooth; } }
.reviews-nav { display: flex; justify-content: center; gap: 0.75rem; margin-top: 1.25rem; }
.reviews-nav[hidden] { display: none; }
.reviews-btn {
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--paper);
	color: var(--accent-dark);
	font: 1.6rem/1 system-ui, sans-serif;
	cursor: pointer;
}
.reviews-btn:hover:not(:disabled) { background: var(--button); border-color: var(--button); color: #fff; }
.reviews-btn:disabled { opacity: 0.35; cursor: default; }

/* Layout on wider screens:
   - a page with a photo: the photo stands on the right and the text runs beside it;
   - a page without a photo: one column with a comfortable line length. */
.prose:not(:has(figure)) > :is(p, ul, ol, h2, h3, table) { max-width: 46rem; }
@media (min-width: 40rem) {
	.prose:has(figure) { display: flow-root; }
	.prose figure {
		float: right;
		width: 32%;
		max-width: 20rem;
		margin: 0.25rem 0 1.5rem 2.5rem;
	}
	.prose figure img { max-width: none; }
	.prose:has(figure) > p,
	.prose:has(figure) > ul { max-width: 42rem; }
}

/* Contact: the text and the form on the left, the map on the right (stacked on a phone) */
.map { margin-top: 2rem; }
.map iframe {
	display: block;
	width: 100%;
	height: 22rem;
	border: 0;
	border-radius: var(--radius);
	background: var(--soft);
}
@media (min-width: 48rem) {
	.page-contact .page {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
		column-gap: 3.5rem;
		align-items: start;
	}
	.page-contact .page > h1 { grid-column: 1 / -1; }
	.page-contact .page > .prose,
	.page-contact .page > .form-wrap { grid-column: 1; }
	.page-contact .map { grid-column: 2; grid-row: 2 / span 2; margin-top: 0; }
	.page-contact .map iframe { height: 30rem; }
}

/* Forms (contact and intake) */
.form-wrap { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.form-wrap h2 { margin-bottom: 1.25rem; font-size: 1.5rem; }
.contact-form .field { margin: 0 0 1.1rem; }
.contact-form label { display: block; margin-bottom: 0.3rem; font-weight: 600; font-size: 0.95rem; }
.contact-form input,
.contact-form textarea,
.contact-form select {
	display: block;
	width: 100%;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--paper);
	color: var(--ink);
	font: inherit;
}
.contact-form textarea { resize: vertical; min-height: 8rem; }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.contact-form select:focus-visible { outline: 3px solid var(--button); outline-offset: 1px; border-color: var(--button); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .note { margin: 0 0 1.1rem; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.contact-form button { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.contact-form button:disabled { opacity: 0.6; cursor: wait; }
.contact-form .form-status { margin: 0.75rem 0 0; min-height: 1.5rem; color: var(--accent-dark); font-weight: 600; }
.contact-form .form-status.is-error { color: #9a2f2f; }
.contact-form.is-sent .field,
.contact-form.is-sent .note,
.contact-form.is-sent fieldset,
.contact-form.is-sent p:has(button) { display: none; }

/* Intake form: sections as cards, fields side by side on wider screens */
.intake { max-width: 46rem; }
.intake .lead { margin: 0 0 2rem; font-size: 1.1rem; }
.intake-form fieldset {
	margin: 0 0 1.5rem;
	padding: 1.25rem 1.25rem 0.25rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
}
.intake-form legend { padding: 0 0.5rem; font-family: var(--head); font-weight: 600; font-size: 1.1rem; }
.intake-form textarea { min-height: 4.5rem; }
.intake-form .row { display: grid; gap: 0 1rem; }
@media (min-width: 40rem) {
	.intake-form .row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.intake-form .check label { display: flex; align-items: flex-start; gap: 0.7rem; font-weight: 400; font-size: 1rem; }
.intake-form .check input { flex: none; width: 1.25rem; height: 1.25rem; margin-top: 0.3rem; padding: 0; accent-color: var(--button); }

/* Call to action and footer */
.cta { padding: 3rem 1.25rem; background: var(--soft); text-align: center; }
.cta h2 { margin: 0 0 1.25rem; font-size: 1.4rem; }
.btn {
	display: inline-block;
	padding: 0.8rem 1.6rem;
	border-radius: 999px;
	background: var(--button);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}
.btn:hover { background: var(--button-dark); color: #fff; }

.site-footer { padding: 2rem 1.25rem; background: var(--accent); color: #f2f5f4; font-size: 0.95rem; }
.site-footer .inner {
	max-width: 72rem;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
}
.site-footer p { margin: 0; }
.site-footer a { color: #fff; }

/* Steps on the About page: numbered steps on one line (a vertical line on a phone) */
.page-over-praktijk-5 .prose ol { list-style: none; margin: 0 0 1.5rem; padding: 0; counter-reset: step; display: grid; gap: 0; clear: both; }
.page-over-praktijk-5 .prose ol li { counter-increment: step; position: relative; margin: 0; padding: 0 0 1.5rem 3rem; }
.page-over-praktijk-5 .prose ol li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: 0;
	width: 2rem;
	height: 2rem;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--accent);
	color: #fff;
	font-weight: 600;
}
.page-over-praktijk-5 .prose ol li::after {
	content: "";
	position: absolute;
	left: calc(1rem - 1px);
	top: 2.25rem;
	bottom: 0.25rem;
	width: 2px;
	background: var(--line);
}
.page-over-praktijk-5 .prose ol li:last-child::after { display: none; }
@media (min-width: 48rem) {
	.page-over-praktijk-5 .prose ol { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 1rem; }
	.page-over-praktijk-5 .prose ol li { padding: 3rem 0 0; font-size: 0.97rem; line-height: 1.55; }
	.page-over-praktijk-5 .prose ol li::after {
		left: 2.5rem;
		right: -0.75rem;
		top: calc(1rem - 1px);
		bottom: auto;
		width: auto;
		height: 2px;
	}
}
