/**
 * Altus — categorie-band op de homepage ([altus_categorie_band], zie
 * mu-plugins/altus-categorie-band.php).
 *
 * Opgemaakt in vaste px (de site zet html op 10px, dus rem is hier niet
 * 16px — zie de lettergrootte-ontdekking van 30/09/2026).
 */

.altus-cband {
	position: relative;
	width: 100%;
	box-sizing: border-box;
	/* Even breed als de snelzoeker erboven (volle breedte); de zijmarge
	   houdt ruimte voor de pijltjes, zodat die niet buiten beeld vallen. */
	padding: 0 60px;
}

.altus-cband__spoor {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 4px 2px 8px;
}

.altus-cband__spoor::-webkit-scrollbar {
	display: none;
}

/* 6 tegels zichtbaar op desktop; de rest schuift. */
.altus-cband__tegel {
	flex: 0 0 calc((100% - 5 * 20px) / 6);
	min-width: 150px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	text-decoration: none;
	scroll-snap-align: start;
}

/* Gekleurd, afgerond blok bovenaan; de afbeelding steekt er onderaan iets
   over uit (zoals in het voorbeeld). multiply laat de witte achtergrond van
   jpg-categoriefoto's wegvallen tegen het kleurblok. */
.altus-cband__blok {
	position: relative;
	display: block;
	height: 150px;
	border-radius: 14px 14px 0 0;
	background: #dfe6f5;
	transition: background 0.2s ease;
}

.altus-cband__img {
	position: absolute;
	left: 50%;
	bottom: -10px;
	transform: translateX(-50%);
	width: 88%;
	height: 150px;
	object-fit: contain;
	object-position: center bottom;
	mix-blend-mode: multiply;
	transition: transform 0.25s ease;
}

.altus-cband__naam {
	display: block;
	margin-top: 22px;
	padding: 0 6px 4px;
	text-align: center;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--altus-navy, #223a80);
	transition: color 0.2s ease;
}

/* Bij hover wordt het blok wit (Sylvie, 05/10/2026), niet donkerder. De afbeeldingen staan op
   mix-blend-mode: multiply, dus hun witte achtergrond valt mee weg. */
.altus-cband__tegel:hover .altus-cband__blok {
	background: #fff;
}

.altus-cband__tegel:hover .altus-cband__img {
	transform: translateX(-50%) translateY(-4px);
}

.altus-cband__tegel:hover .altus-cband__naam {
	color: var(--altus-oranje, #ff6a00);
}

/* Pijltjes — alleen zichtbaar als er iets te schuiven valt (JS haalt
   [hidden] weg). */
.altus-cband__pijl {
	position: absolute;
	top: 66px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid #e2e6ec;
	border-radius: 50%;
	background: #fff;
	color: var(--altus-navy, #223a80);
	box-shadow: 0 2px 8px rgba(34, 58, 128, 0.18);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.altus-cband__pijl[hidden] {
	display: none;
}

.altus-cband__pijl:hover {
	background: var(--altus-navy, #223a80);
	color: #fff;
}

.altus-cband__pijl--vorige {
	left: 10px;
}

.altus-cband__pijl--volgende {
	right: 10px;
}

@media (max-width: 991px) {
	.altus-cband__tegel {
		flex-basis: calc((100% - 3 * 20px) / 4);
	}
}

@media (max-width: 767px) {
	.altus-cband {
		padding: 0 16px;
	}

	.altus-cband__spoor {
		gap: 14px;
	}

	.altus-cband__tegel {
		flex-basis: calc((100% - 14px) / 2.4);
		min-width: 0;
	}

	.altus-cband__blok,
	.altus-cband__img {
		height: 120px;
	}

	.altus-cband__naam {
		font-size: 16px;
	}

	/* Op telefoon: vingerzwiepen, geen pijltjes. */
	.altus-cband__pijl {
		display: none !important;
	}
}
