/*
 * Proeven overview (learning path). Mobile first, desktop >= 1024px.
 * Measurements from the prototype (Proeven.html 1440px, Proeven-mobiel.html 390px).
 */

/* -------------------------------------------------------------------- Hero */

.proeven-hero {
	padding: 40px 0 0;
}

.proeven-hero__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}

.proeven-hero__text {
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
	max-width: 630px;
}

.proeven-hero__text > .eyebrow {
	margin-bottom: -10px;
}

.proeven-hero__title {
	font-size: var(--rbnl-fs-h1-hero);
	line-height: 0.98;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.proeven-hero__text .lead {
	max-width: 560px;
	margin: 0;
}

.proeven-hero .btn {
	width: 100%;
}

/* ---------------------------------------------------------------- Sections */

.proeven-sec {
	margin-top: var(--rbnl-section-gap);
}

.proeven-sec .container {
	min-width: 0;
}

.proeven-sec__photo {
	overflow: hidden;
	border-radius: 24px;
}

.proeven-sec__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s var(--rbnl-ease);
}

.proeven-sec__photo:hover img {
	transform: scale(1.06);
}

/* ----------------------------------------------------- Learning path (leerlijn) */

.proeven-sec__grid {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.proeven-sec__side {
	display: flex;
	flex-direction: column;
	gap: 26px;
	min-width: 0;
}

.proeven-sec__side .section-head {
	gap: 18px;
}

.proeven-sec--path .proeven-sec__photo {
	display: none;
}

.path {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lrow {
	position: relative;
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	align-items: start;
	gap: 14px;
	padding: 8px 0;
}

.lrow__line {
	position: absolute;
	left: 21px;
	width: 3px;
}

.lrow__line--up {
	top: 0;
	height: 36px;
	background: var(--c);
}

.lrow__line--down {
	top: 36px;
	bottom: 0;
	background: linear-gradient(180deg, var(--c), var(--c-next, var(--c)));
}

.lrow__node {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-top: 14px;
	overflow: hidden;
	border-radius: 50%;
	background: var(--c);
	box-shadow: 0 0 0 5px var(--rbnl-cream);
	color: var(--rbnl-white);
	font-family: var(--rbnl-font-heading);
	font-size: 18px;
	font-weight: 700;
}

.lrow__node--horsie {
	background: var(--rbnl-peach-2);
}

/* Horsie arrives as a square picture: it fills the round node, the peach background shows through. */
.lrow__node--horsie img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.lrow-card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
	min-width: 0;
	padding: 16px;
	border-radius: 20px;
	background: var(--rbnl-sand);
	transition:
		transform var(--rbnl-dur) var(--rbnl-ease),
		box-shadow var(--rbnl-dur) var(--rbnl-ease);
}

.lrow-card--horsie {
	background: var(--rbnl-peach);
}

.lrow:hover .lrow-card {
	transform: translateX(6px);
	box-shadow: 0 16px 34px rgba(33, 30, 100, 0.1);
}

.lrow-card__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.lrow-card__title {
	font-size: 20px;
	line-height: 1.6;
	letter-spacing: -0.01em;
}

.lrow-card__sub {
	margin: 0;
	color: var(--rbnl-mute);
	font-size: 15px;
	line-height: 1.6;
}

.lrow-card--horsie .lrow-card__sub {
	color: var(--rbnl-orange-dark);
}

.lrow-card__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.chip--code {
	justify-content: center;
	min-width: 58px;
	min-height: 46px;
	padding: 0 14px;
	border-radius: 14px;
	font-family: var(--rbnl-font-heading);
	font-size: 18px;
	font-weight: 600;
}

/* ------------------------------------------------------- Kür (two columns) */

.band--peach2 {
	background: var(--rbnl-peach-2);
}

.proeven-sec.band {
	margin-inline: 8px;
	padding-block: 32px;
}

.proeven-duo__grid {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.proeven-duo__side {
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
}

.proeven-duo__side .proeven-sec__photo {
	height: 180px;
}

.section-head--on-peach > .eyebrow {
	color: var(--rbnl-ink); /* orange-dark is only 4.1:1 on the stronger peach */
}

.duo-cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	min-width: 0;
}

.duo-col {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.duo-col__head {
	padding: 0 4px 6px;
}

.duo-col__head p {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
}

.duo-col__title {
	font-size: 24px;
	line-height: 1.6;
	letter-spacing: -0.01em;
}

.krows {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.krow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 58px;
	padding: 0 20px;
	border-radius: 18px;
	background: var(--rbnl-white);
	color: var(--rbnl-ink);
	text-decoration: none;
	transition:
		background-color 0.35s var(--rbnl-ease),
		color 0.35s var(--rbnl-ease),
		transform 0.35s var(--rbnl-ease);
}

.krow:hover,
.krow:focus-visible {
	background: var(--rbnl-ink);
	color: var(--rbnl-white);
	transform: translateY(-2px);
}

.krow__main {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.krow__icon {
	display: inline-flex;
	gap: 3px;
	width: 42px;
	color: var(--rbnl-orange);
	transition: color 0.35s var(--rbnl-ease);
}

.krow__label {
	font-family: var(--rbnl-font-heading);
	font-size: 20px;
	font-weight: 600;
}

.krow__arrow {
	flex: 0 0 auto;
	color: var(--rbnl-orange);
	font-size: 20px;
	line-height: 1.6;
	transition:
		transform 0.35s var(--rbnl-ease),
		color 0.35s var(--rbnl-ease);
}

.krow:hover .krow__arrow,
.krow:hover .krow__icon {
	color: var(--rbnl-orange-light);
}

.krow:hover .krow__arrow {
	transform: translateX(4px);
}

/* --------------------------------------------------- Jumping (fence cards) */

.proeven-grid {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.proeven-grid__head {
	gap: 18px;
	max-width: 640px;
}

.jumps {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.jumps__horsie {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 20px;
	padding: 20px;
	border-radius: 24px;
	background: var(--rbnl-peach);
}

.jumps__horsie-top {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.jumps__avatar {
	position: relative;
	display: inline-block;
	width: 72px;
	height: 72px;
	overflow: hidden;
	border-radius: 50%;
	background: var(--rbnl-peach-2);
}

.jumps__avatar img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.jumps__title {
	font-size: 24px;
	line-height: 1.2;
}

.jumps__sub {
	margin: 0;
	color: var(--rbnl-orange-dark);
	font-size: 15px;
	line-height: 1.6;
}

.jump {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 18px;
	min-width: 0;
	min-height: 135px;
	padding: 16px;
	border-radius: 20px;
	background: var(--rbnl-white);
	box-shadow: var(--rbnl-shadow-card);
	color: var(--rbnl-ink);
	text-decoration: none;
	transition:
		transform var(--rbnl-dur) var(--rbnl-ease),
		box-shadow var(--rbnl-dur) var(--rbnl-ease);
}

.jump:hover,
.jump:focus-visible {
	transform: translateY(-8px);
	box-shadow: 0 18px 34px rgba(33, 30, 100, 0.12);
	color: var(--rbnl-ink);
}

.jump__fence {
	position: relative;
	display: block;
	width: 72px;
	height: 51px;
	border-bottom: 2px solid rgba(33, 30, 100, 0.18);
}

.jump__post,
.jump__foot {
	position: absolute;
	background: var(--rbnl-ink);
}

.jump__post {
	bottom: 5px;
	width: 5px;
	height: 46px;
	border-radius: 2px 2px 0 0;
}

.jump__foot {
	bottom: 0;
	width: 15px;
	height: 6px;
	border-radius: 3px 3px 0 0;
}

.jump__post--l {
	left: 8px;
}

.jump__foot--l {
	left: 3px;
}

.jump__post--r {
	right: 8px;
}

.jump__foot--r {
	right: 3px;
}

.jump__bar {
	position: absolute;
	left: 13px;
	right: 13px;
	bottom: 11px;
	height: 7px;
	background: repeating-linear-gradient(90deg, var(--rbnl-orange) 0 9px, var(--rbnl-white) 9px 18px);
	box-shadow: inset 0 0 0 1px rgba(237, 107, 15, 0.35);
	transition: transform var(--rbnl-dur) var(--rbnl-ease);
}

.jump:hover .jump__bar {
	transform: translateY(-4px);
}

.jump__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
}

.jump__label {
	font-family: var(--rbnl-font-heading);
	font-size: 20px;
	font-weight: 600;
}

.jump:hover .krow__arrow {
	transform: translateX(4px);
}

/* ------------------------------------------------------------- Officials */

.proeven-officials {
	margin-top: var(--rbnl-section-gap);
	padding-block: 48px;
}

.proeven-officials__grid {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.proeven-officials__photo {
	height: 200px;
	overflow: hidden;
	border-radius: 24px;
}

.proeven-officials__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.proeven-officials__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 18px;
	min-width: 0;
}

.proeven-officials__text .section-head__text.lead {
	max-width: 720px;
}

.proeven-officials__text .section-head__text p {
	margin-bottom: 1em;
}

/* ===================================================== Desktop (>= 1024px) */

@media (min-width: 1024px) {
	.proeven-hero {
		padding-top: 80px;
	}

	.proeven-hero__inner {
		gap: 32px;
	}

	.proeven-hero__text {
		gap: 26px;
	}

	.proeven-hero .btn {
		width: auto;
	}

	/* Path */
	.proeven-sec__grid {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
		align-items: start;
		gap: 56px;
	}

	.proeven-sec__side {
		position: sticky;
		top: 120px;
		gap: 26px;
	}

	.proeven-sec--path .proeven-sec__photo {
		display: block;
		height: 280px;
		margin-top: 10px;
		border-radius: 28px;
	}

	.lrow {
		grid-template-columns: 60px minmax(0, 1fr);
		align-items: center;
		gap: 28px;
		padding: 12px 0;
	}

	.lrow__line {
		left: 29px;
	}

	.lrow__line--up {
		height: 50%;
	}

	.lrow__line--down {
		top: 50%;
	}

	.lrow__node {
		width: 60px;
		height: 60px;
		margin-top: 0;
		box-shadow: 0 0 0 7px var(--rbnl-cream);
		font-size: 24px;
	}

	.lrow-card {
		gap: 16px;
		padding: 20px 24px;
		border-radius: 24px;
	}

	.lrow-card__title {
		font-size: 24px;
	}

	/* Kür band */
	.proeven-sec.band {
		margin-inline: 16px;
		padding-block: 56px;
	}

	.proeven-duo__grid {
		display: grid;
		grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
		align-items: center;
		gap: 56px;
	}

	.proeven-duo__side {
		gap: 26px;
	}

	.proeven-duo__side .proeven-sec__photo {
		height: 220px;
		border-radius: 28px;
	}

	.duo-cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}

	.krow {
		min-height: 64px;
	}

	/* Jumping */
	.proeven-grid {
		gap: 44px;
	}

	.proeven-grid__head {
		gap: 26px;
	}

	.jumps {
		grid-template-columns: 280px repeat(5, minmax(0, 1fr));
		gap: 12px;
	}

	.jumps__horsie {
		grid-column: 1;
		grid-row: span 2;
		padding: 24px;
		border-radius: 26px;
	}

	.jump {
		min-height: 144px;
		padding: 20px 20px 18px;
		border-radius: 22px;
	}

	.jump__label {
		font-size: 22px;
	}

	/* Officials */
	.proeven-officials {
		padding-block: 96px;
	}

	.proeven-officials__grid {
		display: grid;
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		align-items: stretch;
		gap: 64px;
	}

	.proeven-officials__photo {
		height: auto;
		min-height: 360px;
		border-radius: 32px;
	}

	.proeven-officials__text {
		gap: 26px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lrow-card,
	.krow,
	.jump,
	.jump__bar,
	.proeven-sec__photo img {
		transition: none;
	}
}
