/*
 * Basis-CSS: reset, typografie, container, knoppen, header en footer.
 * Alle kleuren, fonts en maten komen uit theme.json (var(--wp--preset--...)).
 * Blokken hebben hun eigen style.css in /blocks/<naam>/.
 */

/* ---------- Kortere namen voor de tokens uit theme.json ---------- */
:root {
	--c-primary: var(--wp--preset--color--primary);
	--c-on-primary: var(--wp--preset--color--primary-contrast);
	--c-accent: var(--wp--preset--color--accent);
	--c-ink: var(--wp--preset--color--ink);
	--c-muted: var(--wp--preset--color--muted);
	--c-surface: var(--wp--preset--color--surface);
	--c-surface-alt: var(--wp--preset--color--surface-alt);
	--c-border: var(--wp--preset--color--border);
	--c-sand: var(--wp--preset--color--sand);
	--c-taupe: var(--wp--preset--color--taupe);
	--f-heading: var(--wp--preset--font-family--heading);
	--f-body: var(--wp--preset--font-family--body);
	--fs-sm: var(--wp--preset--font-size--sm);
	--fs-base: var(--wp--preset--font-size--base);
	--fs-lg: var(--wp--preset--font-size--lg);
	--fs-h3: var(--wp--preset--font-size--h-3);
	--fs-h2: var(--wp--preset--font-size--h-2);
	--fs-h1: var(--wp--preset--font-size--h-1);
	--sp-xs: var(--wp--preset--spacing--xs);
	--sp-s: var(--wp--preset--spacing--s);
	--sp-m: var(--wp--preset--spacing--m);
	--sp-l: var(--wp--preset--spacing--l);
	--sp-xl: var(--wp--preset--spacing--xl);
	--radius: var(--wp--custom--radius);
	--radius-btn: var(--wp--custom--radius-button);
	--gutter: var(--wp--custom--gutter);
	--wide: var(--wp--style--global--wide-size, 1240px);
	--narrow: var(--wp--style--global--content-size, 760px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--f-body); font-size: var(--fs-base); line-height: var(--wp--custom--line-height); color: var(--c-ink); background: var(--c-surface); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3, h4 { font-family: var(--f-heading); font-weight: var(--wp--custom--heading-weight); line-height: var(--wp--custom--heading-line-height); text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wide) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.section { padding-block: var(--sp-xl); }
.section--alt { background: var(--c-surface-alt); }
.section--dark { background: var(--c-primary); color: var(--c-on-primary); }

.eyebrow { font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-accent); margin-bottom: var(--sp-s); }

/* Lopende tekst uit een wysiwyg-veld of blogbericht. */
.prose > * + * { margin-top: var(--sp-s); }
.prose h2, .prose h3 { margin-top: var(--sp-l); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose a { color: var(--c-primary); text-underline-offset: 3px; }
.section--dark .prose a { color: inherit; }

/* ---------- Knoppen ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 48px; padding: 0.75em 1.5em; border-radius: var(--radius-btn); border: 2px solid transparent; font-weight: 600; line-height: 1.2; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s; }
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { filter: brightness(0.93); }
.btn--secondary { border-color: currentColor; color: inherit; }
.btn--secondary:hover { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-surface); }
.btn--light { background: #fff; color: var(--c-ink); }
.btn--text { padding-inline: 0; min-height: 0; text-decoration: underline; text-underline-offset: 4px; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-s); margin-top: var(--sp-m); }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }

/* ---------- Header ---------- */
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 16px; background: var(--c-ink); color: #fff; }
.skip-link:focus { left: 8px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--c-surface); border-bottom: 1px solid var(--c-border); }
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 0); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-m); min-height: 72px; }
.site-header__brand { font-family: var(--f-heading); font-size: var(--fs-lg); font-weight: 600; text-decoration: none; }
.site-header__logo { max-height: 44px; width: auto; }
.site-nav__list { display: flex; align-items: center; gap: var(--sp-m); list-style: none; padding: 0; }
.site-nav__list a { text-decoration: none; font-weight: 500; }
.site-nav__list a:hover, .site-nav__list .current-menu-item > a { color: var(--c-primary); }
.site-nav__list .is-cta > a { display: inline-flex; padding: 0.6em 1.25em; border-radius: var(--radius-btn); background: var(--c-accent); color: #fff; }
.site-nav__list .sub-menu { display: none; }
.site-header__toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.site-header__bars, .site-header__bars::before, .site-header__bars::after { position: absolute; left: 10px; width: 24px; height: 2px; background: var(--c-ink); transition: transform .2s; content: ""; }
.site-header__bars { top: 21px; }
.site-header__bars::before { left: 0; top: -7px; }
.site-header__bars::after { left: 0; top: 7px; }
.nav-open .site-header__bars { background: transparent; }
.nav-open .site-header__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .site-header__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
	.site-header__toggle { display: block; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--c-surface); border-bottom: 1px solid var(--c-border); padding: var(--sp-s) var(--gutter) var(--sp-m); }
	.nav-open .site-nav { display: block; }
	.site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav__list a { display: block; padding: 12px 0; }
	.site-nav__list .is-cta > a { justify-content: center; margin-top: var(--sp-s); }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--c-ink); color: var(--c-surface); padding-block: var(--sp-l); font-size: var(--fs-sm); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-m); }
.site-footer__brand { font-family: var(--f-heading); font-size: var(--fs-lg); }
.site-footer__menu { display: flex; flex-wrap: wrap; gap: var(--sp-m); list-style: none; padding: 0; }
.site-footer__menu a { text-decoration: none; opacity: .85; }
.site-footer__menu a:hover { opacity: 1; }
.site-footer__copy { opacity: .7; }

/* ---------- Blog ---------- */
.post-list { list-style: none; padding: 0; }
.post-list li { padding-block: var(--sp-s); border-bottom: 1px solid var(--c-border); }
.post-list__date, .post-meta { color: var(--c-muted); font-size: var(--fs-sm); }
.post-image img { border-radius: var(--radius); }

/* ---------- Editor: blokken gebruiken de volle breedte ---------- */
.editor-styles-wrapper .is-root-container > [data-type^="spendima/"] { max-width: none; margin-block: 0; }

/* ---------- Slider (gedeeld, zie assets/js/slider.js) ---------- */
.slider-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-track > * { scroll-snap-align: start; flex: none; }
.slider-dots { display: flex; justify-content: center; gap: 4.75px; }
.slider-dot { position: relative; width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: var(--dot, var(--c-surface-alt)); cursor: pointer; }
.slider-dot::before { content: ""; position: absolute; inset: -8px -2px; }
.slider-dot[aria-current="true"] { background: var(--dot-active, var(--c-accent)); }
