/*
Theme Name: KIM. Osteopathie
Theme URI: https://kim-osteopathie.nl
Author: KIM. Osteopathie
Description: Rustig, minimalistisch thema voor KIM. Osteopathie (Zwolle & Hardenberg).
Version: 1.0.13
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: kim-osteopathie
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--ink: var(--wp--preset--color--contrast);
	--ink-soft: var(--wp--preset--color--contrast-soft);
	--accent: var(--wp--preset--color--accent);
	--line: var(--wp--preset--color--line);
	--bg-alt: var(--wp--preset--color--base-alt);
	--serif: var(--wp--preset--font-family--serif);
	--max: 1032px;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
.wp-site-blocks > * { margin-block-start: 0; }
.wp-block-post-content > * { margin-block-start: 0; }
.site-main { overflow-x: clip; }
h1, h2, h3 { margin-top: 0; }

/* ---------- Kop ---------- */
.site-header {
	position: sticky; top: var(--wp-admin--admin-bar--height, 0); z-index: 20;
	background: #fff;
	border-bottom: 1px solid var(--line);
}
.header-inner { max-width: calc(var(--max) + 48px); margin: 0 auto; padding: 0 24px; min-height: 90px; gap: 24px; }
.kim-logo { margin: 0; flex-shrink: 0; }
.kim-logo.wp-block-image img { height: 66px; width: auto; max-width: none; mix-blend-mode: multiply; display: block; }
.header-right { gap: 28px; }
.kim-menu { font-size: .95rem; gap: 28px; }
.kim-menu a { text-decoration: none; color: var(--ink); }
.kim-menu a:hover { color: var(--accent); }
/* Uitklapmenu op telefoon: over het hele scherm */
.kim-menu .wp-block-navigation__responsive-container.is-menu-open {
	background: #fff; padding: 32px 24px; top: var(--wp-admin--admin-bar--height, 0);
}
.kim-menu .is-menu-open .wp-block-navigation__container { gap: 18px; }
.kim-menu .is-menu-open a { font-family: var(--serif); font-size: 1.5rem; }
.nav-cta .wp-block-button__link { padding: 9px 20px; font-size: .9rem; white-space: nowrap; }

/* Menu inklappen tot het naast elkaar past */
@media (min-width: 600px) and (max-width: 960px) {
	.kim-menu .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.kim-menu .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
@media (max-width: 960px) {
	.header-right { gap: 12px; }
	.nav-cta { order: 1; }
	.kim-menu { order: 2; }
}
@media (max-width: 400px) {
	.header-inner { padding: 0 16px; }
	.kim-logo.wp-block-image img { height: 54px; }
	.nav-cta .wp-block-button__link { padding: 7px 12px; }
}

/* ---------- Secties ---------- */
.kim-section { padding: clamp(64px, 10vw, 112px) 24px; scroll-margin-top: 90px; }
.kim-section.is-alt { background: var(--bg-alt); }
.kim-section.hero { padding-top: clamp(56px, 9vw, 104px); padding-bottom: clamp(56px, 9vw, 104px); }
.crumbs { max-width: calc(var(--max) + 48px); margin: 0 auto; padding: 24px 24px 0; font-size: .85rem; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }
.crumbs + .hero { padding-top: 40px; }

.eyebrow {
	font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
	color: var(--accent); font-weight: 600; margin-bottom: 0;
}
.eyebrow + .wp-block-heading { margin-top: .9rem; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.badge { font-size: .9rem; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; margin-top: 28px; }
.badge::before { content: ""; width: 28px; height: 1px; background: var(--accent); }

/* Knoppen */
.wp-block-buttons { gap: 8px; }
.wp-block-buttons.is-centered { justify-content: center; }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent; color: var(--ink); border: 1px solid var(--line); padding: 13px 27px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--bg-alt); color: var(--ink); }
.hero .wp-block-buttons { margin-top: 2rem; }

/* Foto en tekst om en om */
.wp-block-columns.split { gap: 72px; align-items: center; }
.split .col-photo, .split .col-quote { flex: 0 0 42%; }
.wp-block-image { margin: 0; }
.wp-block-image img { width: 100%; height: auto; display: block; }
.is-arch img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 200px 200px 16px 16px; }
.is-rounded img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; }
.two-col { gap: 56px; }

/* Klachten */
.wp-block-columns.cards { gap: 24px; margin-top: 48px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px 28px; }
.card ul { margin: 0; padding: 0; list-style: none; }
.card li { padding: 8px 0 8px 22px; position: relative; border-top: 1px solid var(--line); font-size: .97rem; }
.card li:first-child { border-top: 0; }
.card li::before { content: ""; position: absolute; left: 0; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: .6; }
.note { margin-top: 40px; color: var(--ink-soft); }
.more a { font-weight: 500; }

/* Werkwijze */
.steps-list { counter-reset: step; margin-top: 36px; display: grid; gap: 28px; }
.steps-list > * { margin: 0 !important; }
.step { counter-increment: step; position: relative; padding-left: 76px; }
.step::before {
	content: "0" counter(step); position: absolute; left: 0; top: -10px;
	font-family: var(--serif); font-size: 2.6rem; color: var(--accent); opacity: .7;
}
.step h3 { margin: 0; }
.step p { margin: .4em 0 0; }

/* Citaat */
.wp-block-quote.pull-quote { margin: 0; padding: 8px 0 8px 36px; border-left: 1px solid var(--accent); position: relative; }
.wp-block-quote.pull-quote::before {
	content: "\201C"; position: absolute; left: 28px; top: -58px;
	font-family: var(--serif); font-size: 7rem; line-height: 1; color: var(--line);
}
.wp-block-quote.pull-quote p {
	position: relative; font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.35; margin: 0;
}
.wp-block-quote.pull-quote cite {
	display: block; margin-top: 20px; font-style: normal; font-size: .78rem; letter-spacing: .18em;
	text-transform: uppercase; color: var(--ink-soft);
}

/* Over Kim */
.signature { font-family: var(--serif); font-style: italic; font-size: 1.35rem; margin-top: 1.4em; }
.callout { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; font-size: .95rem; }

/* Tarieven */
.wp-block-columns.price-grid { gap: 24px; margin: 40px 0; }
.price { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.price h3 { margin-bottom: 0; }
.price .amount { font-family: var(--serif); font-size: 2.6rem; line-height: 1; margin: 12px 0 6px; }
.price .dur { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* Veelgestelde vragen */
.faq .wp-block-details { border-top: 1px solid var(--line); padding: 18px 0; margin: 0; }
.faq .wp-block-details:last-child { border-bottom: 1px solid var(--line); }
.faq .wp-block-heading + .wp-block-details { margin-top: 32px; }
.faq summary {
	cursor: pointer; font-family: var(--serif); font-weight: 600; font-size: 1.15rem;
	list-style: none; position: relative; padding-right: 32px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 1.4rem; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--ink-soft); }

/* Locaties */
.wp-block-columns.loc-grid { gap: 24px; margin-top: 40px; }
.loc { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.loc h3 a { color: inherit; text-decoration: none; }
.wp-block-table.hours { margin: 12px 0 0; }
.wp-block-table.hours table { width: 100%; border-collapse: collapse; }
.wp-block-table.hours td { border: 0; border-top: 1px solid var(--line); padding: 10px 0; }
.wp-block-table.hours td:last-child { text-align: right; }
.small-note { font-size: .95rem; color: var(--ink-soft); }

/* Contact */
.contact { text-align: center; }
.contact .hint { font-size: .9rem; color: var(--ink-soft); margin-bottom: 2.4em; }
.contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 640px !important; margin: 2.4em auto 0 !important; }
.contact-list > * { margin: 0 !important; }
.contact-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 20px; }
.contact-item p { margin: 0; }
.contact-item .label { color: var(--ink-soft); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
.contact-item .value a { color: var(--ink); text-decoration: none; font-weight: 500; word-break: break-word; }

/* Tekstpagina's (privacy, klachtenregeling) */
.text-page > * { max-width: 720px !important; }
.text-page h3 { margin-top: 1.6em; }

/* Voettekst */
.site-footer { border-top: 1px solid var(--line); padding: 40px 24px; font-size: .9rem; color: var(--ink-soft); }
.footer-inner { max-width: var(--max); margin: 0 auto; gap: 12px 24px; }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--ink-soft); }
.footer-inner .footer-ig { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ink); transition: color .2s, background .2s; }
.footer-inner .footer-ig:hover, .footer-inner .footer-ig:focus-visible { color: var(--ink); background: var(--bg-alt); }
.footer-ig svg { display: block; }

/* Pop-up */
.popup {
	width: min(600px, calc(100% - 32px)); max-height: 85vh; border: 0; border-radius: 16px;
	padding: 36px 32px 28px; background: #fff; color: var(--ink);
	box-shadow: 0 20px 60px rgba(0, 0, 0, .18); font-size: .95rem; overflow: auto;
}
.popup::backdrop { background: rgba(46, 45, 36, .4); }
.popup .kim-section { padding: 0; }
.popup .text-page > * { max-width: none !important; }
.popup h1 { font-size: 1.6rem; }
.popup h3 { font-size: 1.05rem; margin: 1.4em 0 .4em; }
.popup p { color: var(--ink-soft); }
.popup-close {
	position: absolute; top: 12px; right: 14px; background: none; border: 0; cursor: pointer;
	font-size: 1.8rem; line-height: 1; color: var(--ink-soft); padding: 4px 8px;
}

/* Mobiel */
@media (max-width: 781px) {
	.wp-block-columns.split, .two-col { gap: 32px; }
	.split .col-photo, .split .col-quote { flex-basis: 100% !important; }
	.split .col-photo .wp-block-image { max-width: 420px; }
	.wp-block-quote.pull-quote { padding-left: 24px; margin-top: 8px; }
	.wp-block-quote.pull-quote::before { left: 16px; top: -46px; font-size: 5.5rem; }
}
@media (max-width: 480px) {
	.kim-section { padding-left: 16px; padding-right: 16px; }
	.crumbs { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 560px) {
	.contact-list { grid-template-columns: 1fr; }
}
