/* Zorggroep Lindeweide: warm en rustig */

/* Source Sans 3 voor tekst, Source Serif 4 voor koppen: rustig, humanistisch, gratis en zelf gehost. */
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }

:root {
	--sand-50: #fbf8f3;
	--sand-100: #f4ede3;
	--sand-200: #e8ddcc;
	--sand-300: #d6c6ad;
	--ink: #1d2a27;
	--ink-soft: #4a5752;
	--green-700: #2e5b4e;
	--green-800: #224639;
	--green-50: #e6efea;
	--terra: #c06a3e;
	--terra-100: #f5e2d4;
	--error: #b42318;
	--white: #ffffff;
	--field-line: #8c8577;

	--font-body: "Source Sans 3", system-ui, sans-serif;
	--font-head: "Source Serif 4", Georgia, serif;

	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgb(29 42 39 / 0.06), 0 8px 24px rgb(29 42 39 / 0.06);
	--focus: 0 0 0 3px var(--sand-50), 0 0 0 6px var(--green-800);
	--gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body, .editor-styles-wrapper {
	margin: 0;
	background: var(--sand-50);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.125rem;
	line-height: 1.55;
	font-variant-numeric: lining-nums tabular-nums;
	-webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) { body { font-size: 1.1875rem; } }

img, svg { display: block; max-width: 100%; }
a { color: var(--green-800); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.18; margin: 0 0 0.5em; letter-spacing: -0.012em; text-wrap: balance; font-optical-sizing: auto; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap--narrow { max-width: 780px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--green-800); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm); z-index: 10; }
.skip-link:focus { top: 12px; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Kop */
.site-header { background: var(--sand-50); border-bottom: 1px solid var(--sand-200); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand__mark { width: 40px; height: 40px; fill: none; stroke: var(--green-700); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.brand__name { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; line-height: 1.1; }
.brand__name span { display: block; color: var(--green-700); }
.site-header__phone { display: none; }

/* Knoppen: thema-knoppen en de knopblokken van WordPress */
.btn, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 22px;
	border-radius: 999px; border: 2px solid transparent;
	font: inherit; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none;
	cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
	background: var(--green-700); color: var(--white);
}
.btn:hover, .wp-block-button__link:hover { background: var(--green-800); color: var(--white); }
.btn:focus-visible, .wp-block-button__link:focus-visible { border-radius: 999px; }
.btn--ghost, .is-style-secundair .wp-block-button__link { background: transparent; color: var(--green-800); border-color: var(--green-700); }
.btn--ghost:hover, .is-style-secundair .wp-block-button__link:hover { background: var(--green-50); color: var(--green-800); }
.is-style-secundair .wp-block-button__link[aria-pressed="true"] { background: var(--green-700); color: var(--white); }
.is-style-tekstlink .wp-block-button__link { min-height: 44px; padding: 8px 4px; background: none; color: var(--green-800); text-decoration: underline; text-underline-offset: 4px; }
.is-style-tekstlink .wp-block-button__link:hover { background: none; color: var(--green-800); text-decoration-thickness: 2px; }
.btn--small { min-height: 44px; padding: 8px 16px; font-size: 1rem; }
.btn--primary { background: var(--green-700); color: var(--white); }
.wp-block-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 0; }
.wp-block-buttons:not(:last-child) { margin-bottom: 1em; }

/* Hero */
.hero { padding: 48px 0 56px; background: radial-gradient(120% 90% at 100% 0%, var(--terra-100) 0%, rgb(245 226 212 / 0) 55%), var(--sand-50); }
.hero__grid { display: grid; gap: 32px; align-items: center; }
.eyebrow { display: inline-block; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px; background: var(--green-50); color: var(--green-800); font-weight: 700; font-size: 0.95rem; }
.lead { font-size: 1.2rem; max-width: 34em; }
.hero__card { background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.hero__card-title { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; margin-bottom: 12px; }
.steps-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: stap; }
.steps-mini li { position: relative; padding-left: 46px; min-height: 32px; counter-increment: stap; }
.steps-mini li::before { content: counter(stap); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--terra-100); color: #7b3a17; font-weight: 700; }

/* Secties */
.section { padding: 56px 0; }
.section--sand { background: var(--sand-100); }
.section__intro { max-width: 40em; color: var(--ink-soft); }

/* Meldingen */
.notice { padding: 14px 16px 14px 48px; border-radius: var(--radius-sm); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f4521' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l9.5 17h-19z'/%3E%3Cpath d='M12 10v4.5'/%3E%3Cpath d='M12 17.5v.01'/%3E%3C/svg%3E") no-repeat 16px 16px / 20px; border: 1px solid var(--sand-300); border-left: 5px solid var(--terra); font-size: 1rem; }
.notice p { margin: 0; }
.notice--urgent { margin: 24px 0; }
.notice--inline { margin: 20px 0 0; background-color: var(--sand-50); }

/* Situatiekiezer (opgebouwd door site.js) */
.chooser__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
.chooser__option {
	display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center;
	min-height: 84px; height: 100%; padding: 16px 18px;
	background: var(--white); border: 2px solid var(--sand-200); border-radius: var(--radius);
	color: var(--ink); text-decoration: none; transition: border-color .15s, background-color .15s;
}
.chooser__option:hover { border-color: var(--green-700); }
.chooser__option:focus-visible { border-radius: var(--radius); }
.chooser__icon { grid-row: span 3; width: 44px; height: 44px; padding: 9px; border-radius: 50%; background: var(--sand-100); fill: none; stroke: var(--green-700); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chooser__label { font-weight: 700; line-height: 1.3; }
.chooser__hint { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.35; }
.chooser__option[aria-current="true"] { border-color: var(--green-700); background: var(--green-50); box-shadow: inset 0 0 0 1px var(--green-700); }
.chooser__option[aria-current="true"] .chooser__icon { background: var(--green-700); stroke: var(--white); }
.chooser__option[aria-current="true"]::after { content: "Gekozen"; grid-column: 2; justify-self: start; margin-top: 6px; padding: 1px 10px; border-radius: 999px; background: var(--green-700); color: var(--white); font-size: 0.8rem; font-weight: 700; }
.chooser__empty { margin: 20px 0 0; padding: 18px; border: 2px dashed var(--sand-300); border-radius: var(--radius); color: var(--ink-soft); text-align: center; }
.chooser__empty[hidden] { display: none; }

/* Situaties */
.situatie-lijst { display: grid; gap: 20px; margin-top: 24px; }
.situatie { display: grid; background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 24px; }
.situatie[hidden] { display: none; }
.situatie__body { padding: 24px; }
.situatie__body h3 { font-size: 1.5rem; }
.situatie__body h3:focus { outline: none; }
.situatie__body h3:focus-visible { box-shadow: var(--focus); }
.situatie__hint { display: none; }
.situatie__lead { font-size: 1.15rem; }
.situatie__body h4 { margin: 14px 0 2px; padding-top: 14px; border-top: 1px solid var(--sand-200); font-family: var(--font-body); font-size: 1.125rem; font-weight: 700; color: var(--green-800); letter-spacing: 0; }
.situatie__body h4 + p { margin-bottom: 0; }
.situatie__actie { padding: 24px; background: var(--sand-100); }
.situatie__actie p { margin-bottom: 12px; }
.situatie__actie-titel { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; margin-bottom: 4px !important; }
.situatie__actie .wp-block-buttons { flex-direction: column; align-items: flex-start; gap: 6px; }
.situatie__actie .wp-block-button:first-child, .situatie__actie .wp-block-button:first-child .wp-block-button__link { width: 100%; }
.disclaimer { margin: 24px 0 0; font-size: 0.95rem; color: var(--ink-soft); max-width: 46em; }

/* Stappen */
.steps { margin-top: 24px; display: grid; gap: 16px; counter-reset: stap; }
.steps__item { padding: 24px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--sand-200); counter-increment: stap; }
.steps__item::before { content: counter(stap); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%; background: var(--green-700); color: var(--white); font-weight: 700; font-size: 1.1rem; font-family: var(--font-body); }
.steps__item p { margin: 0; color: var(--ink-soft); }

/* Contact en terugbelformulier */
.contact__grid { display: grid; gap: 32px; }
.contact__hours { color: var(--ink); font-size: 1.125rem; }
.callback { background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); scroll-margin-top: 24px; }
.callback:focus { outline: none; }
.callback__title { font-size: 1.4rem; }
.callback__note { color: var(--ink-soft); font-size: 1.0625rem; }
.form[hidden], .confirm[hidden], .error-summary[hidden], .field__error[hidden] { display: none; }
.field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 4px; padding: 0; }
.field__hint { margin: 0 0 6px; color: var(--ink-soft); font-size: 1.0625rem; }
.field__error { margin: 0 0 6px; color: var(--error); font-weight: 700; font-size: 1rem; }
.field input[type="text"], .field input[type="tel"] { width: 100%; min-height: 50px; padding: 10px 14px; font: inherit; color: var(--ink); background: var(--white); border: 2px solid var(--field-line); border-radius: var(--radius-sm); }
.field input:focus-visible { box-shadow: var(--focus); border-color: var(--green-800); }
.field--error { padding-left: 14px; border-left: 4px solid var(--error); }
.field--error input[type="text"], .field--error input[type="tel"] { border-color: var(--error); }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 18px; border: 2px solid var(--field-line); border-radius: 999px; cursor: pointer; }
.choice span::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--field-line); background: var(--white); flex: none; }
.choice input:checked + span { border-color: var(--green-700); background: var(--green-50); font-weight: 700; }
.choice input:checked + span::before { border-color: var(--green-700); background: radial-gradient(circle, var(--green-700) 0 45%, var(--white) 50%); }
.choice input:focus-visible + span { box-shadow: var(--focus); }
.error-summary { margin-bottom: 24px; padding: 16px 18px; border: 3px solid var(--error); border-radius: var(--radius-sm); }
.error-summary:focus { outline: none; box-shadow: var(--focus); }
.error-summary__title { font-family: var(--font-body); font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.error-summary ul { margin: 0; padding-left: 20px; }
.error-summary a { color: var(--error); font-weight: 700; }
.case-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--sand-100); color: var(--ink-soft); font-size: 0.95rem; line-height: 1.45; }
.case-note::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5752' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5'/%3E%3Cpath d='M12 7.5v.01'/%3E%3C/svg%3E") no-repeat center / contain; }
.contact__call .case-note { background: var(--white); border: 1px solid var(--sand-200); }
.confirm:focus { outline: none; }
.confirm__icon { width: 48px; height: 48px; margin-bottom: 12px; fill: none; stroke: var(--green-700); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Begrippen */
.accordion { display: grid; gap: 10px; margin-top: 20px; }
.wp-block-details { background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius-sm); }
.wp-block-details summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 12px 18px; cursor: pointer; font-weight: 700; list-style: none; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 2px solid var(--green-700); border-bottom: 2px solid var(--green-700); transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s; }
.wp-block-details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.wp-block-details summary:focus-visible { border-radius: var(--radius-sm); }
.wp-block-details p { margin: 0; padding: 0 18px 18px; }

/* Steun en feedback */
.support { display: grid; gap: 16px; align-items: center; padding: 28px; border-radius: var(--radius); background: var(--terra-100); }
.support p { margin: 0; }
.support .wp-block-buttons { margin: 0; }
.support .is-style-secundair .wp-block-button__link { background: var(--white); }
.support .is-style-secundair .wp-block-button__link:hover { background: var(--green-50); }
.feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--sand-200); }
.feedback__q { margin: 0; font-weight: 700; }
.feedback .wp-block-buttons { gap: 10px; margin: 0; }
.feedback .wp-block-button__link { min-height: 44px; padding: 8px 20px; font-size: 1rem; }
.feedback__thanks { margin: 0; width: 100%; color: var(--ink-soft); }
.feedback__thanks:empty { display: none; }

/* Footer */
.site-footer { background: var(--green-800); color: #eef3f0; padding: 48px 0; font-size: 1rem; }
.site-footer__grid { display: grid; gap: 24px; }
.site-footer__brand { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; margin-bottom: 4px; }
.site-footer__title { font-weight: 700; color: var(--white); margin-bottom: 4px; }
.site-footer a { color: var(--white); }
.site-footer__meta { color: #c9d8d0; }
.site-footer :focus-visible { box-shadow: 0 0 0 3px var(--green-800), 0 0 0 6px var(--white); }

@media (min-width: 640px) {
	:root { --gutter: 32px; }
	.chooser__list { grid-template-columns: 1fr 1fr; }
	.support { grid-template-columns: 1fr auto; }
	.site-header__phone { display: inline; }
}
@media (min-width: 900px) {
	.hero { padding: 80px 0 88px; }
	.hero__grid { grid-template-columns: 1.35fr 1fr; gap: 64px; }
	.section { padding: 80px 0; }
	.chooser__list { grid-template-columns: repeat(3, 1fr); }
	.chooser__option { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; align-items: start; row-gap: 8px; padding: 20px; }
	.chooser__icon { grid-row: auto; margin-bottom: 6px; }
	.chooser__option[aria-current="true"]::after { grid-column: 1; align-self: end; }
	.situatie { grid-template-columns: 1.6fr 1fr; }
	.situatie__body, .situatie__actie { padding: 32px; }
	.contact__grid { grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
	.callback { padding: 32px; }
	.site-footer__grid { grid-template-columns: 1.2fr 1fr 1.4fr; gap: 48px; }
}

/* Dialoog bij het fictieve telefoonnummer */
.dialog { max-width: min(480px, calc(100% - 32px)); padding: 28px; border: 0; border-radius: var(--radius); background: var(--white); color: var(--ink); box-shadow: 0 24px 64px rgb(0 0 0 / 0.25); }
.dialog::backdrop { background: rgb(29 42 39 / 0.55); }
.dialog__title { font-size: 1.3rem; }
.dialog form { margin: 0; }
.confirm .case-note { margin-top: 8px; }
.case-note[hidden] { display: none; }

/* Melding bij ziekenhuisontslag */
.notice--info { margin: -8px 0 24px; border-left-color: var(--green-700); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e5b4e' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5'/%3E%3Cpath d='M12 7.5v.01'/%3E%3C/svg%3E"); }

/* Gratis hulp buiten Lindeweide */
.hulp-lijst { display: grid; gap: 16px; margin-top: 24px; }
.hulp-kaart { display: flex; flex-direction: column; padding: 24px; background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius); }
.hulp-kaart h3 { font-size: 1.25rem; }
.hulp-kaart p { flex: 1; }
.hulp-kaart .wp-block-buttons { margin-top: auto; }
.hulp-kaart .wp-block-button__link { font-size: 1rem; padding: 10px 18px; }

@media (min-width: 640px) { .chooser__list > li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 900px) {
	.hulp-lijst { grid-template-columns: repeat(3, 1fr); }
	.steps { grid-template-columns: repeat(3, 1fr); }
	.chooser__list > li:last-child:nth-child(odd) { grid-column: auto; }
}
@media (min-width: 1100px) { .chooser__list { grid-template-columns: repeat(5, 1fr); } }

/* Kaarten in een raster: geen bovenmarge, dus altijd even hoog en op dezelfde lijn */
.hero__grid > *, .situatie-lijst > *, .steps > *, .contact__grid > *, .hulp-lijst > *, .situatie > * { margin-block: 0; }
.steps__item, .hulp-kaart { height: 100%; }
.hulp-kaart .wp-block-button__link { white-space: nowrap; }
