/* ---------------------------------------------------------------------------
 * Blok: Tekst en media (Figma 124:8027 desktop, 182:12086 mobiel).
 * Foto in een afgeronde kaart met blauwe vink-decoratie rechtsonder,
 * daarnaast kop, tekst en twee knoppen. Foto links of rechts instelbaar.
 * ------------------------------------------------------------------------- */

.blok-tekst-media {
	padding-block: var(--blok-pt) var(--blok-pb);
}

.blok-tekst-media__rij {
	display: flex;
	align-items: center;
	gap: min(134px, 7vw);
}

.blok-tekst-media--foto-rechts .blok-tekst-media__rij {
	flex-direction: row-reverse;
}

/* Fotokaart: afgeronde hoeken, verhouding 635:550 uit het ontwerp. */
.blok-tekst-media__media {
	position: relative;
	flex: 0 0 45.357%; /* 635px van de 1400px wrapper */
	aspect-ratio: 635 / 550;
	border-radius: var(--radius-sectie);
	overflow: hidden;
	isolation: isolate;
}

.blok-tekst-media__media .blok-tekst-media__foto {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Donkere verlopen boven- en onderaan de foto, zoals in het ontwerp. */
.blok-tekst-media__media::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background-image:
		linear-gradient(to top, rgb(0 0 0 / 0%), rgb(0 0 0 / 60%)),
		linear-gradient(to bottom, rgb(0 0 0 / 0%), rgb(0 0 0 / 60%)),
		linear-gradient(to bottom, rgb(0 0 0 / 0%), rgb(0 0 0 / 80%));
	background-repeat: no-repeat;
	background-size: 100% 19.2%, 100% 19.2%, 100% 34.1%;
	background-position: top, bottom, bottom;
}

/* Blauwe vink-decoratie rechtsonder, loopt iets van de kaart af. */
.blok-tekst-media__vink {
	position: absolute;
	right: 8.03%;
	bottom: -0.64%;
	z-index: 2;
	width: 28.33%;
	color: var(--c-blauw);
	pointer-events: none;
}

.blok-tekst-media__vink svg {
	display: block;
	width: 100%;
	height: auto;
}

.blok-tekst-media__inhoud {
	flex: 1 1 0;
	min-width: 0;
}

.blok-tekst-media__titel {
	margin: 0 0 16px;
	font-size: 36px;
	line-height: 46px; /* vast uit het ontwerp, bewust geen --fs-h2 */
	font-weight: 700;
	color: var(--c-donkerblauw);
}

.blok-tekst-media__tekst {
	color: var(--c-zwart);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
}

.blok-tekst-media__tekst p {
	margin: 0;
}

.blok-tekst-media__tekst p + p {
	margin-top: 26px; /* precies een witregel */
}

/* Tussenkoppen in de tekst (klantcases: fases van een project). */
.blok-tekst-media__tekst h3,
.blok-tekst-media__tekst h4 {
	margin: 26px 0 6px;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--c-donkerblauw);
}

.blok-tekst-media__tekst > :first-child {
	margin-top: 0;
}

.blok-tekst-media__knoppen {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-top: 33px;
}

/* Mobiel: foto boven, alles onder elkaar (ontwerp 390). */
@media (max-width: 767px) {

	.blok-tekst-media__rij,
	.blok-tekst-media--foto-rechts .blok-tekst-media__rij {
		flex-direction: column;
		align-items: stretch;
		gap: 40px;
	}

	.blok-tekst-media__media {
		flex-basis: auto;
		width: 100%;
	}

	.blok-tekst-media__titel {
		margin-bottom: 15px;
		font-size: 22px;
		line-height: 28px;
	}

	.blok-tekst-media__knoppen {
		margin-top: 15px;
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ---------------------------------------------------------------------------
 * Vrijstaand beeld (feedback designer, november 2026): een laptop- of
 * schermmockup op wit, zonder afgeronde kaart, verloop of vink. De blauwe
 * diagonaal zit in de mockup zelf. Mockups zijn 3:2 (1536x1024).
 * ------------------------------------------------------------------------- */

.blok-tekst-media--vrijstaand .blok-tekst-media__media {
	aspect-ratio: 3 / 2;
	border-radius: 0;
	overflow: visible;
}

.blok-tekst-media--vrijstaand .blok-tekst-media__media::after {
	content: none;
}

.blok-tekst-media--vrijstaand .blok-tekst-media__media .blok-tekst-media__foto {
	object-fit: contain;
}

/* ---------------------------------------------------------------------------
 * Donkere achtergrond: voor een blok tussen twee donkere blokken, zodat het
 * donkere vlak doorloopt (feedback designer op de NOC*NSF-case).
 * ------------------------------------------------------------------------- */

.blok-tekst-media--donker {
	background: var(--c-donkerblauw);
	color: var(--c-wit);
}

.blok-tekst-media--donker .blok-tekst-media__titel,
.blok-tekst-media--donker .blok-tekst-media__tekst,
.blok-tekst-media--donker .blok-tekst-media__tekst h3,
.blok-tekst-media--donker .blok-tekst-media__tekst h4 {
	color: var(--c-wit);
}
