/*
 * Base: document, links, focus, motion, and the components every page uses
 * (container, kicker, titles, buttons, photo). Values mirror the approved
 * prototype 1:1. Note: no global box-sizing reset, the prototype relies on
 * content-box widths (max-width 1200px + 24px gutters).
 */

/* Dark canvas: the browser bars and the overscroll above/below the page match header and footer. */
/* overflow-x: clip on the root: the page can never be wider than the screen (no zooming out on phones) */
html { scroll-behavior: smooth; background: var(--eba-donker); overflow-x: clip; }
/* The page background is dark (Safari tints its bars with it); the content area stays white. */
body { margin: 0; background: var(--eba-donker); color: var(--eba-tekst); }
a { color: inherit; }
a:hover { color: var(--eba-link); }
a, button {
	transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .25s ease;
}
:focus-visible { outline: 3px solid var(--eba-primair); outline-offset: 2px; }
input, select, button, textarea { font-family: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	html { scroll-behavior: auto; }
}

.eba-site {
	font-family: var(--eba-font-tekst);
	font-size: var(--eba-basis);
	line-height: 1.6;
	color: var(--eba-tekst);
	overflow-x: clip;
	/* Positioned, so absolutely placed helpers (screen-reader text in sliding rows) are clipped too */
	position: relative;
}
.eba-main { outline: none; display: block; background: #fff; }

/* Reflow (WCAG 1.4.10): long words may break instead of being clipped, and
   grid/flex children may shrink below their content width. Neither changes
   the layout at normal text sizes. */
.eba-site :is(h1, h2, h3, p, li, blockquote, figcaption, a, span, label) { overflow-wrap: break-word; }
.eba-site :is([class*="__raster"], [class*="__binnen"], [class*="__lijst"], [class*="__kolommen"]) > * { min-width: 0; }

/* Visually hidden, still read by screen readers */
/* .screen-reader-text is the WordPress core class, used by plugins (e.g. Complianz) */
.eba-sr, .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Skip link */
.eba-skiplink {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	padding: 12px 18px; background: var(--eba-primair); color: #fff; border-radius: 6px;
	font: 600 0.9375rem var(--eba-font-tekst); text-decoration: none;
}
.eba-skiplink:focus, .eba-skiplink:hover { top: 12px; color: #fff; }

/* ------------------------------------------------------------ layout */

.eba-binnen {
	max-width: var(--eba-max);
	margin: 0 auto;
	padding: var(--pad-boven, 0) var(--eba-goot) var(--pad-onder, var(--pad-boven, 0));
}
.eba-binnen--a { --pad-boven: var(--eba-pad-a); }
.eba-binnen--b { --pad-boven: var(--eba-pad-b); }
.eba-binnen--c { --pad-boven: var(--eba-pad-c); }
.eba-binnen--d { --pad-boven: var(--eba-pad-d); }
.eba-binnen--e { --pad-boven: var(--eba-pad-e); }

.eba-bg-wit { background: #fff; }
.eba-bg-licht { background: var(--eba-achtergrond); }
.eba-bg-donker { background: var(--eba-donker); color: #fff; }
.eba-bg-blauw { background: var(--eba-primair); color: #fff; }

/* Links on dark backgrounds hover light blue, not dark blue */
.eba-bg-donker a:hover, .eba-header a:hover, .eba-footer a:hover { color: var(--eba-lichtblauw); }
/* Focus ring must stay visible on blue */
.eba-bg-blauw :focus-visible { outline-color: #fff; }

/* ------------------------------------------------------------ type */

.eba-kicker {
	margin: 0;
	font: 600 0.8125rem var(--eba-font-tekst);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--eba-link);
}
.eba-bg-donker .eba-kicker, .eba-kicker--licht { color: var(--eba-lichtblauw); }

.eba-titel {
	margin: 0;
	font-family: var(--eba-font-kop);
	font-weight: 700;
	line-height: 1.15;
	text-wrap: pretty;
}
.eba-titel--h2 { font-size: var(--eba-h2); }
.eba-titel--groot { font-size: var(--eba-h2-groot); }
.eba-titel--cta { font-size: var(--eba-h2-cta); line-height: 1.2; }
.eba-titel--klein { font-size: var(--eba-h2-klein); line-height: 1.2; }
.eba-titel--h1 { font-size: var(--eba-h1-foto); line-height: 1.1; }

.eba-lead { margin: 0; font-size: 1.125rem; text-wrap: pretty; }
.eba-gedempt { color: var(--eba-gedempt); }
.eba-bg-donker .eba-gedempt { color: var(--eba-op-donker-zacht); }

/* Section head (kicker + title + intro) */
.eba-kop { display: grid; gap: 10px; }
.eba-kop--midden { text-align: center; margin-left: auto; margin-right: auto; }
.eba-kop p { margin: 0; }

/* ------------------------------------------------------------ buttons */

.eba-knop {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 26px;
	border-radius: var(--eba-r-knop);
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	border: 0;
	cursor: pointer;
}
.eba-knop--primair { background: var(--eba-primair); color: #fff; }
.eba-knop--primair:hover { background: var(--eba-primair-hover); color: #fff; }
.eba-knop--omlijnd-licht { border: 1px solid rgba(255, 255, 255, .6); color: #fff; }
.eba-knop--omlijnd-licht:hover { background: #fff; color: var(--eba-donker); }
.eba-knop--omlijnd { border: 1px solid var(--eba-tekst); color: var(--eba-tekst); }
.eba-knop--omlijnd:hover { background: var(--eba-tekst); color: #fff; }
.eba-knop--donker { background: var(--eba-donker); color: #fff; }
.eba-knop--donker:hover { background: var(--eba-donker-hover); color: #fff; }
.eba-knop--wit-omlijnd { border: 1px solid #fff; color: #fff; }
.eba-knop--wit-omlijnd:hover { background: #fff; color: var(--eba-link); }
.eba-knoppen { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sidebar buttons (full width, radius 6) */
.eba-knop-blok {
	display: flex; align-items: center; justify-content: center;
	min-height: 48px; border-radius: 6px; font-weight: 600; font-size: 0.9375rem; text-decoration: none;
}
.eba-knop-blok--primair { background: var(--eba-primair); color: #fff; }
.eba-knop-blok--primair:hover { background: var(--eba-primair-hover); color: #fff; }
.eba-knop-blok--omlijnd { border: 1px solid var(--eba-primair); color: var(--eba-link); }
.eba-knop-blok--omlijnd:hover { background: var(--eba-tint); color: var(--eba-link); }
.eba-knop-blok--licht { border: 1px solid rgba(255, 255, 255, .4); color: #fff; }
.eba-knop-blok--licht:hover { background: #fff; color: var(--eba-donker); }

/* Underlined text link ("Alle projecten →") */
.eba-pijllink {
	font-size: 1rem; font-weight: 600; text-decoration: none;
	border-bottom: 2px solid var(--eba-primair); padding-bottom: 2px;
}
.eba-pijllink:hover { color: var(--eba-link); }
.eba-pijllink--klein { font-size: 0.9375rem; width: fit-content; }

/* Tag (light blue chip) */
.eba-tag {
	font-size: 0.875rem; color: var(--eba-link); background: var(--eba-tint);
	padding: 4px 10px; border-radius: 5px; text-decoration: none;
}
a.eba-tag { padding: 5px 11px; }
a.eba-tag:hover { background: var(--eba-tint-hover); color: var(--eba-link); }
.eba-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* Blue label on photos */
.eba-label {
	font: 700 0.6875rem var(--eba-font-tekst); letter-spacing: .1em; text-transform: uppercase;
	color: #fff; background: var(--eba-primair); padding: 7px 12px; border-radius: 5px;
}

.eba-sterren { color: var(--eba-ster); letter-spacing: 1px; }

/* ------------------------------------------------------------ photo (Foto component) */

.eba-foto {
	width: 100%; height: 100%; min-height: 100%;
	overflow: hidden; position: relative; display: block;
}
.eba-foto img {
	width: 100%; height: 100%; min-height: 100%;
	object-fit: cover; display: block;
	transform: scale(1);
	transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
/* Zoom when hovering the element that hosts the photo (the card link, the
   article or the photo frame itself, exactly as in the prototype) */
.eba-zoom-host:hover .eba-foto--zoom img { transform: scale(1.06); }
.eba-foto--leeg { background: repeating-linear-gradient(135deg, #DEE3EC 0 14px, #E8ECF3 14px 28px); }
.eba-foto--leeg.eba-foto--donker { background: repeating-linear-gradient(135deg, #23272e 0 14px, #2b3038 14px 28px); }
.eba-foto--leeg span {
	position: absolute; left: 12px; bottom: 12px; font-family: ui-monospace, Menlo, monospace; font-size: 0.75rem;
	color: var(--eba-gedempt); background: rgba(244, 246, 250, .92); padding: 4px 8px; border-radius: 3px;
}
.eba-foto--leeg.eba-foto--donker span { color: var(--eba-op-donker); background: color-mix(in srgb, var(--eba-donker) 75%, transparent); }

/* Photo fills an absolutely positioned layer (heroes, tiles) */
.eba-laag { position: absolute; inset: 0; }

/* ------------------------------------------------------------ content from the block editor */

.eba-inhoud > * { margin: 0; }
.eba-inhoud { display: grid; gap: 22px; }
.eba-inhoud p, .eba-inhoud li { font-size: 1.125rem; line-height: 1.7; color: var(--eba-tekst-zacht); text-wrap: pretty; }
.eba-inhoud h2 { margin: 12px 0 0; font: 700 clamp(1.375rem, 2.2vw, 1.625rem)/1.25 var(--eba-font-kop); color: var(--eba-tekst); }
.eba-inhoud h3 { margin: 8px 0 0; font: 700 1.25rem/1.3 var(--eba-font-kop); color: var(--eba-tekst); }
.eba-inhoud ul, .eba-inhoud ol { padding-left: 1.25em; display: grid; gap: 8px; }
.eba-inhoud a { color: var(--eba-link); }
.eba-inhoud blockquote {
	margin: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--eba-primair);
	font-size: 1.1875rem; color: var(--eba-tekst);
}
.eba-inhoud figure { margin: 0; }
.eba-inhoud img { height: auto; border-radius: 8px; display: block; }
.eba-inhoud figcaption { font-size: 0.875rem; color: var(--eba-gedempt); margin-top: 8px; }

/* Breadcrumbs (small, above page heads) */
.eba-kruimels { font-size: 0.875rem; color: var(--eba-op-donker-zacht); }
.eba-kruimels ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.eba-kruimels li + li::before { content: "›"; margin-right: 8px; color: var(--eba-op-donker-grijs); }
.eba-kruimels a { text-decoration: none; color: var(--eba-op-donker-zacht); }
.eba-kruimels a:hover { color: #fff; }
.eba-kruimels [aria-current] { color: var(--eba-op-donker); }
