/* Blok / Hero. Zes varianten op één basis: roze vlak, tekstkolom met accentlijn, H1, intro en acties, plus een beeld.
   Maten uit Figma (1200 px): 80/48 ruimte, 56 px tussen de kolommen, 20 px tussen de onderdelen van de tekstkolom. */
.inc-sectie.inc-hero {
	display: flex;
	align-items: center;
	gap: 56px;
	background: var(--inc-roze);
	color: var(--inc-wit);
}
.inc-sectie.inc-hero > * { margin: 0; }

/* Tekstkolom */
.inc-hero .inc-hero__tekst { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.inc-hero .inc-hero__tekst > *, .inc-hero .inc-hero__acties > * { margin: 0; }
.inc-hero .inc-hero__tekst.inc-accentlijn::before { margin: 0; background: var(--inc-wit); }
.inc-hero .inc-hero__tekst h1 { color: var(--inc-wit); }
.inc-hero .inc-hero__tekst p { margin: 0; }

/* Acties: knop met daaronder (of daarnaast) tekstlinks in Regular 14/26. */
.inc-hero .inc-hero__acties { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.inc-hero .inc-hero__acties .inc-link, .inc-hero .inc-hero__acties .inc-link a { font-weight: 400; color: var(--inc-wit); }
/* De knop is in het ontwerp 48 px hoog; de basis komt met 11 px padding plus 1 px rand op 50 px. */
.inc-hero .wp-block-button .wp-block-button__link { padding: 10px 17px; }

/* Beeld: vast kader 524 x 560, bijgesneden. */
.inc-hero .inc-hero__beeld { flex: 1 1 0; min-width: 0; }
.inc-hero .inc-hero__beeld img { display: block; width: 100%; height: auto; aspect-ratio: 524 / 560; object-fit: cover; }

/* Flexibel: het beeld houdt zijn eigen verhouding. */
.inc-hero.is-flexibel .inc-hero__beeld img { aspect-ratio: auto; max-height: 560px; object-fit: contain; }

/* Boek: omslag 331 px breed met schaduw, 72 px boven en onder, acties naast elkaar. */
.inc-sectie.inc-hero.is-boek { padding-top: 72px; padding-bottom: 72px; }
.inc-hero.is-boek .inc-hero__beeld { flex: 0 0 331px; }
.inc-hero.is-boek .inc-hero__beeld img { aspect-ratio: auto; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .22)); }
.inc-hero.is-boek .inc-hero__tekst .inc-intro { max-width: 620px; line-height: 30px; }
.inc-hero:is(.is-boek, .is-zonder-beeld, .is-vlakvullend) .inc-hero__acties { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px; }
.inc-hero.is-boek .inc-hero__acties { column-gap: 20px; }

/* Zonder beeld: tekst over de volle breedte, bovenaan in een vlak van minimaal 500 px. */
.inc-sectie.inc-hero.is-zonder-beeld { align-items: flex-start; min-height: 500px; }

/* Vlakvullend: twee helften, het beeld loopt door tot de rand en volgt de hoogte van de tekst. Donkere tekst op roze. */
/* Boven 1200 px: vlak over de volle breedte, tekst en beeld binnen --inc-breedte. */
.inc-sectie.inc-hero.is-vlakvullend { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 0; padding: 0 max(0px, min(100% - var(--inc-breedte), (100% - var(--inc-breedte)) / 2 + var(--inc-marge))) 0 max(0px, calc((100% - var(--inc-breedte)) / 2)); color: var(--inc-donker); }
.inc-hero.is-vlakvullend .inc-hero__tekst { padding: 72px var(--inc-marge); }
.inc-hero.is-vlakvullend .inc-hero__tekst.inc-accentlijn::before { background: var(--inc-donker); }
.inc-hero.is-vlakvullend .inc-hero__tekst h1 { color: var(--inc-kop); }
.inc-hero.is-vlakvullend .inc-hero__acties { column-gap: 24px; }
.inc-hero.is-vlakvullend .inc-hero__acties .inc-link, .inc-hero.is-vlakvullend .inc-hero__acties .inc-link a { color: var(--inc-donker); }
.inc-hero.is-vlakvullend .inc-hero__beeld { position: relative; min-height: 320px; }
.inc-hero.is-vlakvullend .inc-hero__beeld img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }

/* Mobiel (Figma 43:4708): tekst boven beeld, 24 px ertussen, donkere tekst op roze, H1 32/40, beeld 350 x 350.
   De tekstkolom is minimaal 480 px hoog, zodat het beeld op elke pagina op dezelfde hoogte begint.
   Tussen 768 en 960 px blijven tekst en beeld naast elkaar staan. */
@media (max-width: 959px) {
	.inc-sectie.inc-hero, .inc-sectie.inc-hero.is-vlakvullend { color: var(--inc-kop); }
	.inc-sectie.inc-hero:not(.is-vlakvullend) { gap: 32px; }
	.inc-hero .inc-hero__tekst.inc-accentlijn::before { background: var(--inc-donker); }
	.inc-hero .inc-hero__tekst h1 { max-width: 100%; color: var(--inc-kop); font-size: 32px; line-height: 40px; }
	.inc-hero .inc-hero__acties .inc-link, .inc-hero .inc-hero__acties .inc-link a,
	.inc-hero.is-vlakvullend .inc-hero__acties .inc-link, .inc-hero.is-vlakvullend .inc-hero__acties .inc-link a { color: var(--inc-kop); line-height: 24px; }
	.inc-hero .wp-block-button .wp-block-button__link { padding: 11px 17px; line-height: 24px; }
	.inc-sectie.inc-hero .inc-hero__tekst > .inc-hero__extra { line-height: 24px; }
	.inc-sectie.inc-hero.inc-hero.is-flexibel.is-vaste-hoogte { min-height: 0; }
	.inc-sectie.inc-hero.is-zonder-beeld { min-height: 480px; }
	.inc-hero.is-vlakvullend .inc-hero__tekst { padding: var(--inc-sectie) var(--inc-marge); }

	/* Boek */
	.inc-sectie.inc-hero.is-boek { padding-block: var(--inc-sectie); }
	.inc-hero.is-boek .inc-hero__beeld { flex-basis: 260px; }
	.inc-hero.is-boek .inc-hero__tekst.inc-accentlijn::before { background: var(--inc-wit); }
	.inc-hero.is-boek .inc-hero__tekst .inc-intro { line-height: 28px; }
	.inc-sectie.inc-hero .inc-boekgegevens { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.inc-sectie.inc-hero .inc-boekgegeven p { font: 400 15px/26px var(--inc-sans); color: var(--inc-kop); }
	.inc-sectie.inc-hero .inc-boekgegeven p.inc-boekgegeven__label { font: 700 12px/20px var(--inc-sans); letter-spacing: 0; }
}
@media (max-width: 767px) {
	.inc-sectie.inc-hero, .inc-sectie.inc-hero:not(.is-vlakvullend), .inc-sectie.inc-hero.is-vlakvullend { display: flex; flex-direction: column; align-items: stretch; gap: 24px; padding: var(--inc-sectie) var(--inc-marge); }
	.inc-hero .inc-hero__tekst { flex: none; min-height: 480px; }
	.inc-hero:is(.is-boek, .is-zonder-beeld) .inc-hero__tekst { min-height: 0; }
	.inc-hero.is-vlakvullend .inc-hero__tekst { padding: 0; }
	.inc-hero .inc-hero__tekst > .inc-hero__acties, .inc-hero .inc-hero__acties > * { width: 100%; }
	.inc-hero:is(.is-boek, .is-zonder-beeld, .is-vlakvullend) .inc-hero__acties { flex-direction: column; align-items: flex-start; gap: 16px; }
	.inc-hero.is-boek .inc-hero__acties { gap: 20px; }
	.inc-hero .inc-hero__beeld, .inc-hero.is-vlakvullend .inc-hero__beeld, .inc-hero.is-boek .inc-hero__beeld { flex: none; order: 1; min-height: 0; }
	.inc-hero .inc-hero__beeld img, .inc-hero.is-flexibel .inc-hero__beeld img { aspect-ratio: 1; max-height: none; object-fit: cover; }
	.inc-hero.is-vlakvullend .inc-hero__beeld img { position: static; height: auto; aspect-ratio: 1; }
	.inc-hero.is-boek .inc-hero__beeld img { width: 100%; height: 320px; aspect-ratio: auto; }
	/* Portret: bovenkant van de foto blijft in beeld. */
	.inc-hero .inc-hero__beeld img[src*="portret"] { object-position: top; }
}
@media (min-width: 600px) and (max-width: 767px) {
	.inc-hero .inc-hero__tekst { min-height: 0; }
	.inc-hero .inc-hero__beeld img, .inc-hero.is-flexibel .inc-hero__beeld img, .inc-hero.is-vlakvullend .inc-hero__beeld img { aspect-ratio: auto; height: 400px; object-fit: cover; }
	.inc-hero .inc-hero__beeld img[src$=".png"] { object-fit: contain; }
}

/* Vrijstaande foto (wens Timo, 23-11; wijkt af van Figma): de hele persoon in beeld, op de onderrand van het roze vlak.
   Geldt voor de foto Bouchra-Talidi.png en voor elk herobeeld met de klasse is-vrijstaand. Het vlak blijft minimaal 720 px hoog. */
.inc-sectie.inc-hero .inc-hero__beeld:is(.is-vrijstaand, :has(> img[src*="/Bouchra-Talidi"])) { align-self: stretch; position: relative; min-height: 640px; margin-bottom: calc(-1 * var(--inc-sectie)); }
.inc-sectie.inc-hero .inc-hero__beeld:is(.is-vrijstaand, :has(> img[src*="/Bouchra-Talidi"])) img { position: absolute; inset: auto 0 0; width: 100%; height: calc(100% + 40px); max-height: none; aspect-ratio: auto; object-fit: contain; object-position: center bottom; }
@media (max-width: 959px) {
	.inc-sectie.inc-hero .inc-hero__beeld:is(.is-vrijstaand, :has(> img[src*="/Bouchra-Talidi"])) { min-height: 480px; }
	.inc-sectie.inc-hero .inc-hero__beeld:is(.is-vrijstaand, :has(> img[src*="/Bouchra-Talidi"])) img { height: 100%; }
}
@media (max-width: 767px) {
	.inc-sectie.inc-hero .inc-hero__beeld:is(.is-vrijstaand, :has(> img[src*="/Bouchra-Talidi"])) { min-height: 0; }
	.inc-sectie.inc-hero .inc-hero__beeld:is(.is-vrijstaand, :has(> img[src*="/Bouchra-Talidi"])) img { position: static; height: 460px; }
}

/* Korte hero voor juridische pagina's: alleen titel en inleiding. */
.inc-sectie.inc-hero.inc-hero.is-zonder-beeld.is-kort { min-height: 0; }
