/*
 * Home page. Mobile composition first, desktop (>= 1024px) below.
 * Measurements come from the prototype (Main.html at 1440px, Home-mobiel.html at 390px).
 */

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

.hero {
	padding: 40px 0 48px;
	overflow: clip;
}

.hero__grid {
	display: grid;
	gap: 16px;
	align-items: center;
}

.hero__text {
	display: flex;
	flex-direction: column;
	gap: 22px;
	min-width: 0;
}

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

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

.hero__lead {
	max-width: 480px;
	margin: 0;
}

/* Search box: see components/search.css */
/* Photos and badge: desktop only. */
.hero__art {
	display: none;
}

/* ------------------------------------------------------------- Quick links */

.quick {
	display: none;
}

/* ------------------------------------------------------------------ Picker */

.picker-section {
	padding: 0;
}

.band--picker {
	padding-block: 40px;
}

.picker {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
	text-align: center;
}

.picker .section-head {
	align-items: center;
}

.picker__groups {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	max-width: 480px;
}

.picker__group {
	display: flex;
	flex-direction: column;
}

.picker__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 56px;
	padding: 0 20px 0 24px;
	border: 0;
	border-radius: var(--rbnl-radius-pill);
	background: var(--rbnl-white);
	color: var(--rbnl-ink);
	font-family: var(--rbnl-font-heading);
	font-size: 19px;
	font-weight: 600;
	cursor: pointer;
	transition:
		background-color 0.45s var(--rbnl-ease),
		color 0.45s var(--rbnl-ease),
		box-shadow 0.3s var(--rbnl-ease);
}

.picker__btn:hover {
	box-shadow: inset 0 0 0 1.5px var(--rbnl-ink);
}

.picker__group.is-open .picker__btn {
	background: var(--rbnl-ink);
	color: var(--rbnl-white);
}

.picker__chev {
	transition: transform 0.4s var(--rbnl-ease);
	transform: rotate(-90deg);
}

.picker__group.is-open .picker__chev {
	transform: none;
}

/* Panel: height animation on mobile. */
.picker__panel {
	display: grid;
	grid-template-rows: 0fr;
	visibility: hidden;
	transition:
		grid-template-rows 0.55s var(--rbnl-ease),
		visibility 0s linear 0.55s;
}

.picker__group.is-open .picker__panel {
	grid-template-rows: 1fr;
	visibility: visible;
	transition-delay: 0s;
}

.picker__clip {
	min-height: 0;
	overflow: hidden;
}

.picker__chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 14px 0 6px;
	list-style: none;
}

.picker__chip {
	justify-content: center;
	gap: 8px;
	min-width: 44px;
	padding: 0 14px;
	border-radius: 14px;
	font-size: 16px;
}

.picker__horsie {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border-radius: 9px;
	object-fit: contain;
}

/* Horsie chip: the picture sits 6px from the chip edge, concentric with its corner. */
.picker__chip--horsie {
	gap: 10px;
	padding-left: 6px;
}

html:not(.js) .picker__panel {
	grid-template-rows: 1fr;
	visibility: visible;
}

/* ----------------------------------------------------------- Agenda teaser */

.home-agenda__grid {
	display: grid;
	gap: 20px;
	align-items: center;
}

.home-agenda__intro {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

.home-agenda__intro .section-head__text {
	max-width: 400px;
}

/* ------------------------------------------------------------------- Perks */

.home-perks__grid {
	display: grid;
	gap: 28px;
	align-items: start;
}

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

.perks {
	padding: 18px 18px 8px;
	border-radius: 28px;
	background: var(--rbnl-white);
	box-shadow: 0 24px 50px rgba(33, 30, 100, 0.08);
}

.perks__label {
	margin: 0;
	padding: 2px 4px 12px;
	color: var(--rbnl-orange-dark);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.6;
}

.perk-feature {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 18px;
	border-radius: 22px;
	background: var(--rbnl-peach);
	transition:
		transform var(--rbnl-dur) var(--rbnl-ease),
		box-shadow var(--rbnl-dur) var(--rbnl-ease),
		background-color var(--rbnl-dur) var(--rbnl-ease);
}

.perk-feature:hover {
	transform: translateY(-3px);
	background: #fbdec7;
	box-shadow: 0 14px 30px rgba(33, 30, 100, 0.14);
}

.perk-feature__icon {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: var(--rbnl-orange);
	color: var(--rbnl-white);
}

.perk-feature__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.perk-feature__body p {
	margin: 0;
}

.perk-feature__kicker {
	color: var(--rbnl-orange-dark);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.6;
}

.perk-feature__title {
	font-size: 22px;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.perk-feature__text {
	font-size: 16px;
	line-height: 1.6;
}

.perk-feature__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin: -6px 0 -10px; /* 44px touch target, 24px of visual height */
	color: var(--rbnl-ink);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
}

.perk-feature__more svg {
	transition: transform 0.35s var(--rbnl-ease);
}

.perk-feature:hover .perk-feature__more svg {
	transform: translateX(4px);
}

/* ------------------------------------------------------------------ Horsie */

.horsie-wrap {
	padding-inline: 8px;
}

.horsie {
	position: relative;
	padding: 40px 0 0;
	overflow: hidden;
	border-radius: var(--rbnl-radius-section);
	background: var(--rbnl-peach);
}

.horsie__grid {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.horsie__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.horsie__text .section-head__text.lead {
	max-width: 560px;
}

.dips {
	position: relative;
	z-index: 1;
	height: 200px;
	cursor: pointer;
}

.dip {
	position: absolute;
	width: 118px;
	height: 167px;
	transition: transform 0.7s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.dip-1 {
	left: 14px;
	bottom: -4px;
	z-index: 1;
}

.dip-2 {
	left: 80px;
	bottom: 8px;
	z-index: 2;
}

.diploma {
	box-sizing: border-box;
	width: 118px;
	height: 167px;
	padding: 7px;
	border-radius: 14px;
	background: #fffdf8;
	box-shadow: 0 18px 40px rgba(33, 30, 100, 0.16);
	transition:
		transform 0.6s var(--rbnl-ease),
		box-shadow 0.6s var(--rbnl-ease);
}

.dip-1 .diploma {
	transform: rotate(-10deg);
}

.dip-2 .diploma {
	transform: rotate(6deg);
}

.diploma__inner {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	height: 100%;
	padding: 8px 6px;
	border-radius: 8px;
	box-shadow: inset 0 0 0 2px var(--rbnl-peach-2);
}

.diploma__logo {
	width: auto;
	height: 12px;
}

.diploma__text {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	text-align: center;
}

.diploma__title {
	max-width: 5.5em;
	color: var(--rbnl-ink);
	font-family: var(--rbnl-font-heading);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	hyphens: auto;
}

.diploma__sub {
	color: var(--rbnl-mute);
	font-size: 7px;
}

.diploma__name {
	display: block;
	width: 74px;
	margin-top: 6px;
	padding-bottom: 2px;
	border-bottom: 1.5px solid var(--rbnl-line);
	color: var(--rbnl-mute);
	font-size: 7px;
}

.diploma__checks {
	display: flex;
	gap: 4px;
}

.diploma__checks span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: var(--rbnl-orange);
	color: var(--rbnl-white);
}

.diploma__checks svg {
	width: 9px;
	height: 9px;
}

.diploma__proef {
	color: var(--rbnl-orange-dark);
	font-size: 7px;
	font-weight: 600;
}

.dips:hover {
	z-index: 6;
}

.dips:hover .dip-1 {
	z-index: 3;
	transform: translate(56px, -6px);
}

.dips:hover .dip-2 {
	z-index: 1;
	transform: translate(-56px, 6px);
}

.dips:hover .dip-1 .diploma {
	transform: rotate(4deg);
}

.dips:hover .dip-2 .diploma {
	transform: rotate(-12deg);
}

.horsie__mascot {
	position: absolute;
	right: 8px;
	bottom: 0;
	z-index: 2;
	pointer-events: none;
}

.horsie__img {
	width: auto;
	height: 240px;
}

/* Reserve the mascot's space so the diplomas do not slide under it. */
.horsie__grid {
	padding-bottom: 8px;
}

/* ----------------------------------------------------------------- CTA */

.home-cta__grid {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.home-cta__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.home-cta__text .section-head__text.lead {
	max-width: 480px;
}

.mduo {
	position: relative;
	height: 300px;
}

.mduo__a,
.mduo__b {
	position: absolute;
	overflow: hidden;
}

.mduo__a {
	right: 0;
	top: 0;
	width: 88%;
	height: 230px;
	border-radius: 28px 28px 28px 120px;
	box-shadow: 0 16px 34px rgba(33, 30, 100, 0.12);
}

.mduo__b {
	right: 0;
	bottom: 0;
	width: 160px;
	height: 160px;
	border: 8px solid var(--rbnl-white);
	border-radius: 20px;
	box-shadow: 0 16px 34px rgba(33, 30, 100, 0.18);
	transform: rotate(5deg);
	transition:
		transform 0.6s var(--rbnl-ease),
		box-shadow 0.6s var(--rbnl-ease);
}

.mduo:hover .mduo__b {
	transform: rotate(-1deg) translateY(-6px);
	box-shadow: 0 24px 46px rgba(33, 30, 100, 0.22);
}

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

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

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

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

	.hero__text {
		gap: 30px;
	}

	/* Hero art */
	.hero__art {
		position: relative;
		display: block;
		height: 620px;
	}

	.hero__layer {
		position: absolute;
		transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
		will-change: transform;
	}

	.hero__layer--main {
		right: 0;
		top: 0;
		width: 82%;
		height: 580px;
		overflow: hidden;
		border-radius: 32px;
	}

	.hero__layer--small {
		left: 0;
		bottom: 0;
		width: 210px;
		height: 210px;
		box-sizing: border-box;
		overflow: hidden;
		border: 10px solid var(--rbnl-cream);
		border-radius: 50%;
	}

	.hero__layer--badge {
		right: -24px;
		top: 24px;
	}

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

	.hero__layer--main:hover .hero__photo,
	.hero__layer--small:hover .hero__photo {
		transform: scale(1.06);
	}

	/* Badge */
	.badge {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 6px;
		box-sizing: border-box;
		width: 156px;
		height: 156px;
		padding: 16px;
		border-radius: 50%;
		background: var(--rbnl-peach-2);
		box-shadow: 0 10px 30px rgba(33, 30, 100, 0.12);
		color: var(--rbnl-ink);
		text-align: center;
		text-decoration: none;
		transform: rotate(10deg);
		transition:
			transform 0.5s var(--rbnl-ease),
			box-shadow 0.5s var(--rbnl-ease),
			background-color 0.4s var(--rbnl-ease);
	}

	.badge__text {
		font-family: var(--rbnl-font-heading);
		font-size: 16px;
		font-weight: 600;
		line-height: 1.15;
	}

	.badge:hover,
	.badge:focus-visible {
		transform: rotate(0deg) scale(1.1);
		background: #f6b98a;
		box-shadow: 0 22px 44px rgba(33, 30, 100, 0.22);
		color: var(--rbnl-ink);
	}

	.badge__go {
		display: flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 auto;
		width: 30px;
		height: 30px;
		max-height: 0;
		margin-top: -6px;
		overflow: hidden;
		border-radius: 50%;
		background: var(--rbnl-ink);
		color: var(--rbnl-white);
		opacity: 0;
		transform: translateY(6px);
		transition:
			max-height 0.45s var(--rbnl-ease),
			margin-top 0.45s var(--rbnl-ease),
			opacity 0.35s var(--rbnl-ease),
			transform 0.45s var(--rbnl-ease);
	}

	.badge:hover .badge__go,
	.badge:focus-visible .badge__go {
		max-height: 30px;
		margin-top: 0;
		opacity: 1;
		transform: none;
	}

	/* Quick links overlap the picker band. */
	.picker-section {
		padding: 40px 0 0;
	}

	.quick {
		position: relative;
		z-index: 1;
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		align-items: end;
		gap: 16px;
		margin: 0 -24px -54px;
		padding: 0 24px;
		list-style: none;
	}

	.quick__link {
		display: flex;
		align-items: center;
		gap: 16px;
		padding: 12px 20px 12px 12px;
		border-radius: 26px;
		background: var(--rbnl-white);
		box-shadow:
			0 1px 0 var(--rbnl-line),
			0 18px 40px rgba(33, 30, 100, 0.08);
		color: var(--rbnl-ink);
		text-decoration: none;
		transition:
			transform var(--rbnl-dur) var(--rbnl-ease),
			box-shadow var(--rbnl-dur) var(--rbnl-ease);
	}

	.quick__item--tab .quick__link {
		padding: 14px 22px 22px 14px;
		border-radius: 28px 28px 0 0;
		background: var(--rbnl-sand);
		box-shadow: none;
	}

	.quick__link:hover,
	.quick__link:focus-visible {
		transform: translateY(-6px);
		color: var(--rbnl-ink);
		box-shadow:
			0 1px 0 var(--rbnl-line),
			0 28px 56px rgba(33, 30, 100, 0.16);
	}

	.quick__item--tab .quick__link:hover {
		box-shadow: none;
	}

	.quick__img {
		display: block;
		flex: 0 0 auto;
		width: 72px;
		height: 72px;
		overflow: hidden;
		border-radius: 20px;
	}

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

	.quick__link:hover .quick__img img {
		transform: scale(1.07);
	}

	.quick__text {
		display: flex;
		flex: 1 1 auto;
		flex-direction: column;
		min-width: 0;
	}

	.quick__title {
		font-family: var(--rbnl-font-heading);
		font-size: 21px;
		font-weight: 600;
		line-height: 1.2;
	}

	.quick__sub {
		color: var(--rbnl-mute);
		font-size: 15px;
		line-height: 1.6;
	}

	.quick__arrow {
		display: flex;
		flex: 0 0 auto;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		border-radius: 50%;
		background: var(--rbnl-sand);
		transition:
			background-color 0.35s var(--rbnl-ease),
			color 0.35s var(--rbnl-ease),
			transform 0.35s var(--rbnl-ease);
	}

	.quick__item--tab .quick__arrow {
		background: var(--rbnl-white);
	}

	.quick__link:hover .quick__arrow {
		background: var(--rbnl-ink);
		color: var(--rbnl-white);
		transform: translateX(3px);
	}

	/* Picker */
	.band--picker {
		padding-block: 0 60px;
	}

	.band--under-quick {
		padding-top: 104px;
	}

	.band--picker:not(.band--under-quick) {
		padding-top: 104px;
	}

	/* Same three columns and gap as the quick links above: heading in the first, disciplines and proeven in the other two. */
	.picker {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		align-items: start;
		gap: 32px 16px;
		text-align: left;
	}

	.picker .section-head {
		padding-right: 24px;
	}

	.picker__groups {
		grid-column: 2 / span 2;
	}

	.picker .section-head {
		align-items: flex-start;
		gap: 10px;
	}

	/* Disciplines in one row; the proeven of the open discipline get their own outlined row below. */
	.picker__groups {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 0 14px;
		max-width: none;
	}

	.picker__group {
		display: contents;
	}

	.picker__btn {
		order: 0;
		justify-content: space-between;
		margin-block: 5px;
	}

	.picker__panel {
		order: 1;
		flex: 0 0 100%;
	}

	.picker__chips {
		justify-content: flex-start;
		gap: 8px;
		width: fit-content;
		max-width: 100%;
		margin-top: 14px;
		padding: 6px;
		/* Chip radius (14px) + padding (6px): the outline curves concentrically around the chips. */
		border-radius: 20px;
		box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7);
	}

	.picker__chip {
		white-space: nowrap;
	}

	/* Agenda */
	.home-agenda__grid {
		grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
		gap: 56px;
	}

	/* Perks */
	.home-perks__grid {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: 64px;
	}

	.home-perks__intro {
		gap: 22px;
	}

	.perks {
		padding: 22px 28px 10px;
		border-radius: 36px;
	}

	.perk-feature {
		flex-direction: row;
		align-items: flex-start;
		gap: 16px;
	}

	/* Horsie */
	.horsie-wrap {
		padding-inline: 16px;
	}

	.horsie {
		padding: 64px 0;
		overflow: visible;
	}

	.horsie__grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: center;
		gap: 48px;
		padding-bottom: 0;
	}

	.horsie__text {
		gap: 18px;
	}

	.dips {
		height: 320px;
	}

	.dip {
		width: 190px;
		height: 269px;
	}

	.dip-1 {
		left: 10px;
		bottom: -24px;
	}

	.dip-2 {
		left: 150px;
		bottom: -12px;
	}

	.diploma {
		width: 190px;
		height: 269px;
		padding: 11px;
	}

	.diploma__inner {
		padding: 13px 10px;
	}

	.diploma__logo {
		height: 19px;
	}

	.diploma__title {
		font-size: 23px;
	}

	.diploma__sub {
		font-size: 10px;
	}

	.diploma__name {
		width: 118px;
		margin-top: 10px;
		font-size: 10px;
	}

	.diploma__checks {
		gap: 6px;
	}

	.diploma__checks span {
		width: 23px;
		height: 23px;
	}

	.diploma__checks svg {
		width: 12px;
		height: 12px;
	}

	.diploma__proef {
		font-size: 9px;
	}

	.dips:hover .dip-1 {
		transform: translate(170px, -40px);
	}

	.dips:hover .dip-2 {
		transform: translate(-110px, 12px);
	}

	.dips:hover .dip-1 .diploma {
		transform: rotate(5deg) scale(1.08);
		box-shadow: 0 30px 60px rgba(33, 30, 100, 0.25);
	}

	.dips:hover .dip-2 .diploma {
		transform: rotate(-12deg);
	}

	/* Horsie follows the grid: a container-wide strip with Horsie at its right edge. */
	.horsie__mascot {
		left: 0;
		right: 0;
		top: -22px;
		bottom: auto;
		display: flex;
		justify-content: flex-end;
		box-sizing: border-box;
		width: 100%;
		max-width: calc(var(--rbnl-content-max) + 2 * var(--rbnl-gutter));
		height: 470px;
		margin-inline: auto;
		padding-inline: var(--rbnl-gutter);
	}

	.horsie__img {
		height: 470px;
	}

	/* CTA */
	.home-cta__grid {
		display: grid;
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		align-items: center;
		gap: 64px;
	}

	.home-cta__text {
		gap: 20px;
	}

	.mduo {
		height: 470px;
	}

	.mduo__a {
		height: 400px;
		border-radius: 40px 40px 40px 220px;
		box-shadow: 0 20px 44px rgba(33, 30, 100, 0.12);
	}

	.mduo__b {
		left: 0;
		right: auto;
		width: 220px;
		height: 220px;
		border-radius: 24px;
		transform: rotate(-5deg);
		box-shadow: 0 18px 38px rgba(33, 30, 100, 0.18);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero__layer,
	.hero__photo,
	.badge,
	.picker__panel,
	.dip,
	.diploma,
	.duo__a,
	.duo__b,
	.mduo__b,
	.step-box,
	.step-box__photo,
	.step-box__photo img {
		transition: none;
	}
}
