/* ==========================================================================
   BOXSPRING LEASEN
   /boxspring-leasen/, zie page-boxspring-leasen.php. Kleuren, maten en
   radii uit de handoff van het ontwerp "Boxspring Leasen" uit Claude Design.

   Een eigen stylesheet, alleen op deze pagina geladen (zie functions.php):
   het palet hier — het warmere geel #F5C400, de crèmekleurige achtergrond —
   wordt nergens anders op de site gebruikt. Het lettertype is Roboto, dat van
   de site; het ontwerp noemde Figtree, met de aanwijzing het merkfont te
   gebruiken als het thema er een heeft.
   ========================================================================== */

.bb-lease {
	--bb-yellow: #f5c400;
	--bb-yellow-tint: #fffbea;
	--bb-ink: #1d1c1a;
	--bb-ink-80: #3d3a34;
	--bb-ink-60: #5a564d;
	--bb-bg: #faf8f3;
	--bb-surface: #fff;
	--bb-surface-2: #f1ede4;
	--bb-line: #ece8de;

	/* Astra zet .ast-container op display:flex; zonder breedte krimpt dit blok
	   als flex-item. */
	width: 100%;
	min-width: 0;
	background: var(--bb-bg);
	color: var(--bb-ink);
	font-family: Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.bb-lease *,
.bb-lease *::before,
.bb-lease *::after {
	box-sizing: border-box;
}

/* body ervoor: WooCommerce zet met .woocommerce-js h2 een ondermarge die
   anders zwaarder weegt. De ruimte tussen de blokken komt overal van gap.
   Omdat deze regel zwaar is, staan lijsten die zelf opvulling nodig hebben
   hieronder ook met body .bb-lease ervoor. */

body .bb-lease :is(h1, h2, h3, p, ol, ul) {
	margin: 0;
	color: inherit;
	font-family: inherit;
}

body .bb-lease :is(ol, ul) {
	padding: 0;
	list-style: none;
}

.bb-lease__binnen {
	width: 100%;
	max-width: 1240px;
	margin-inline: auto;
	padding-inline: 24px;
}

/* Ankers: de kop blijft vast staan, dus niet tot tegen de bovenrand. */

html:has(.bb-lease) {
	scroll-behavior: smooth;
}

.bb-lease [id] {
	scroll-margin-top: 120px;
}

/* --- Bouwstenen --- */

.bb-lease__eyebrow {
	display: flex;
	gap: 10px;
	align-items: center;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.bb-lease__eyebrow::before,
.bb-lease__eyebrow--dubbel::after {
	content: "";
	width: 28px;
	height: 4px;
	border-radius: 2px;
	background: var(--bb-yellow);
}

.bb-lease__eyebrow--lijn::before {
	height: 2px;
	border-radius: 0;
	background: var(--bb-ink);
}

.bb-lease__kop {
	font-size: clamp(32px, 4vw, 48px);
	font-weight: 900;
	letter-spacing: -0.02em;
	line-height: 1.05;
}

body .bb-lease .bb-lease__kop {
	font-size: clamp(32px, 4vw, 48px);
}

.bb-lease__knop {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 28px;
	border: 2px solid var(--bb-ink);
	border-radius: 999px;
	background: var(--bb-ink);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bb-lease__knop:hover,
.bb-lease__knop:focus-visible {
	border-color: #000;
	background: #000;
	color: #fff;
}

.bb-lease__knop--groot {
	padding: 18px 30px;
}

.bb-lease__knop--rand {
	padding: 14px 26px;
	background: transparent;
	color: var(--bb-ink);
}

.bb-lease__knop--rand:hover,
.bb-lease__knop--rand:focus-visible {
	border-color: var(--bb-ink);
	background: var(--bb-ink);
	color: var(--bb-yellow);
}

.bb-lease__knop--omlijnd {
	padding: 14px 26px;
	background: transparent;
	color: var(--bb-ink);
	font-size: 15px;
}

.bb-lease__knop--omlijnd:hover,
.bb-lease__knop--omlijnd:focus-visible {
	border-color: var(--bb-yellow);
	background: var(--bb-yellow);
	color: var(--bb-ink);
}

.bb-lease__knop--geel {
	padding: 14px 26px;
	border-color: var(--bb-yellow);
	background: var(--bb-yellow);
	color: var(--bb-ink);
	font-size: 15px;
}

.bb-lease__knop--geel:hover,
.bb-lease__knop--geel:focus-visible {
	border-color: var(--bb-ink);
	background: var(--bb-ink);
	color: var(--bb-yellow);
}

/* Focus: zwart op licht en geel, geel op donker. */

.bb-lease a:focus-visible,
.bb-lease summary:focus-visible {
	outline: 2px solid var(--bb-ink);
	outline-offset: 3px;
}

.bb-lease__strook a:focus-visible,
.bb-lease__knop:not(.bb-lease__knop--rand):not(.bb-lease__knop--omlijnd):not(.bb-lease__knop--geel):focus-visible {
	outline-color: var(--bb-yellow);
}

/* --- 2. Hero --- */

.bb-lease__hero {
	overflow: hidden;
	background: var(--bb-yellow);
}

.bb-lease__hero-raster {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: 56px;
	align-items: center;
	padding-top: 72px;
	padding-bottom: 80px;
}

.bb-lease__hero-tekst {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

body .bb-lease .bb-lease__titel {
	font-size: clamp(48px, 7vw, 92px);
	font-weight: 900;
	letter-spacing: -0.03em;
	line-height: 0.95;
	color: var(--bb-ink);
}

.bb-lease__intro {
	max-width: 520px;
	font-size: 19px;
	line-height: 1.55;
	text-wrap: pretty;
}

.bb-lease__knoppen {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
}

.bb-lease__hero-beeld {
	position: relative;
}

.bb-lease__hero-foto {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 28px;
	background: var(--bb-surface);
	box-shadow: 0 30px 60px -30px rgba(60, 45, 0, 0.45);
}

.bb-lease__hero-foto img,
.bb-lease__kaart-beeld img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bb-lease__looptijd {
	position: absolute;
	bottom: 32px;
	left: -20px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 18px 22px;
	border-radius: 20px;
	background: var(--bb-ink);
	color: #fff;
}

.bb-lease__looptijd-label {
	color: var(--bb-yellow);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.bb-lease__looptijd strong {
	font-size: 30px;
	font-weight: 900;
	line-height: 1;
}

.bb-lease__looptijd span:last-child {
	font-size: 13px;
	opacity: 0.8;
}

/* --- 3. Stappenstrook --- */

.bb-lease__strook {
	background: var(--bb-ink);
	color: #fff;
}

body .bb-lease .bb-lease__strook-lijst {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
	margin-inline: auto;
	padding: 28px 24px;
}

.bb-lease__strook-lijst li {
	display: flex;
	gap: 14px;
	align-items: center;
	font-size: 16px;
	font-weight: 600;
}

.bb-lease__strook-lijst span {
	color: var(--bb-yellow);
	font-size: 28px;
	font-weight: 900;
}

/* --- 4. Bestsellers --- */

.bb-lease__bestsellers {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-top: 96px;
	padding-bottom: 80px;
}

.bb-lease__bestsellers .bb-lease__kop {
	margin-bottom: 28px;
}

body .bb-lease .bb-lease__kaarten {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 24px;
}

.bb-lease__kaart {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--bb-line);
	border-radius: 24px;
	background: var(--bb-surface);
	color: var(--bb-ink);
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.bb-lease__kaart:hover,
.bb-lease__kaart:focus-visible {
	border-color: var(--bb-yellow);
	box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.25);
	color: var(--bb-ink);
	transform: translateY(-4px);
}

.bb-lease__kaart-beeld {
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--bb-surface-2);
}

.bb-lease__label {
	position: absolute;
	top: 16px;
	left: 16px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--bb-yellow);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.bb-lease__kaart-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 20px;
	padding: 24px;
}

body .bb-lease .bb-lease__kaart-naam {
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
}

.bb-lease__kaart-voet {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 18px;
	border-top: 1px solid var(--bb-line);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.bb-lease__pijl {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--bb-yellow);
	font-size: 20px;
	font-weight: 700;
}

/* --- 5. Banner --- */

.bb-lease__banner {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	align-items: center;
	justify-content: space-between;
	padding: 56px clamp(24px, 5vw, 72px);
	border-radius: 32px;
	background: var(--bb-yellow);
}

body .bb-lease .bb-lease__banner p {
	max-width: 720px;
	font-size: clamp(26px, 3.2vw, 40px);
	font-weight: 900;
	letter-spacing: -0.02em;
	line-height: 1.1;
	text-wrap: balance;
}

/* --- 6. Hoe werkt het --- */

.bb-lease__uitleg {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
	gap: 56px;
	padding-top: 96px;
	padding-bottom: 96px;
}

.bb-lease__uitleg-tekst {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

body .bb-lease .bb-lease__uitleg-tekst p {
	color: var(--bb-ink-80);
	font-size: 17px;
	line-height: 1.65;
	text-wrap: pretty;
}

body .bb-lease .bb-lease__stappen {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.bb-lease__stap {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	padding: 28px;
	border: 1px solid var(--bb-line);
	border-radius: 24px;
	background: var(--bb-surface);
}

.bb-lease__stap-nummer {
	display: grid;
	place-items: center;
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: var(--bb-yellow);
	font-size: 22px;
	font-weight: 900;
}

.bb-lease__stap-tekst {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

body .bb-lease .bb-lease__stap-tekst h3 {
	font-size: 19px;
	font-weight: 800;
}

body .bb-lease .bb-lease__stap-tekst p {
	color: var(--bb-ink-60);
	font-size: 15px;
	line-height: 1.55;
}

/* --- 7. Vragen --- */

.bb-lease__faq {
	border-top: 1px solid var(--bb-line);
	border-bottom: 1px solid var(--bb-line);
	background: var(--bb-surface);
}

.bb-lease__faq-binnen {
	display: flex;
	flex-direction: column;
	gap: 40px;
	max-width: 960px;
	margin-inline: auto;
	padding: 96px 24px;
}

.bb-lease__faq-kop {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: center;
	text-align: center;
}

.bb-lease__vragen {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bb-lease__vraag {
	overflow: hidden;
	border: 2px solid var(--bb-line);
	border-radius: 20px;
	background: var(--bb-bg);
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.bb-lease__vraag[open] {
	border-color: var(--bb-yellow);
	background: var(--bb-yellow-tint);
}

.bb-lease__vraag summary {
	display: flex;
	gap: 20px;
	align-items: center;
	justify-content: space-between;
	padding: 24px 28px;
	font-size: 19px;
	font-weight: 800;
	line-height: 1.3;
	list-style: none;
	cursor: pointer;
}

.bb-lease__vraag summary::-webkit-details-marker {
	display: none;
}

.bb-lease__vraag-icoon {
	display: grid;
	place-items: center;
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--bb-yellow);
	color: var(--bb-ink);
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
}

.bb-lease__vraag-icoon::before {
	content: "+";
}

.bb-lease__vraag[open] .bb-lease__vraag-icoon {
	background: var(--bb-ink);
	color: var(--bb-yellow);
}

.bb-lease__vraag[open] .bb-lease__vraag-icoon::before {
	content: "−";
}

.bb-lease__antwoord {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 0 28px 28px;
}

body .bb-lease .bb-lease__antwoord p {
	color: var(--bb-ink-80);
	font-size: 16px;
	line-height: 1.7;
	text-wrap: pretty;
}

.bb-lease__antwoord a {
	color: var(--bb-ink);
	text-decoration: underline;
	text-decoration-color: var(--bb-yellow);
	text-underline-offset: 3px;
}

.bb-lease__antwoord a:hover {
	color: #000;
	text-decoration-color: var(--bb-ink);
}

.bb-lease__faq-knoppen {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

/* --- Smal scherm --- */

@media (max-width: 599px) {
	.bb-lease__looptijd {
		left: 12px;
	}

	.bb-lease__hero-raster {
		gap: 40px;
		padding-top: 48px;
		padding-bottom: 56px;
	}

	.bb-lease__bestsellers,
	.bb-lease__uitleg {
		padding-top: 64px;
		padding-bottom: 64px;
	}

	.bb-lease__faq-binnen {
		padding-top: 64px;
		padding-bottom: 64px;
	}

	.bb-lease__vraag summary {
		padding: 20px;
		font-size: 17px;
	}

	.bb-lease__antwoord {
		padding: 0 20px 20px;
	}

	.bb-lease__stap {
		padding: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html:has(.bb-lease) {
		scroll-behavior: auto;
	}

	.bb-lease__knop,
	.bb-lease__kaart,
	.bb-lease__vraag {
		transition: none;
	}

	.bb-lease__kaart:hover,
	.bb-lease__kaart:focus-visible {
		transform: none;
	}
}
