/* ==========================================================================
   Blok: Diensten — fotokaarten met verloop; de tekst schuift open op hover.
   Vijf diensten + een CTA-tegel vullen samen een net rooster van 3x2.
   ========================================================================== */

.services {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}
@media (min-width: 560px) {
	.services { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
	.services { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.service-card {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border-radius: var(--radius-l);
	box-shadow: var(--shadow-card);
	aspect-ratio: 3 / 4;
	transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.service-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-pop);
}

.service-card picture,
.service-card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--ease);
}
.service-card:hover img { transform: scale(1.06); }

.service-card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to top, rgba(var(--ink-rgb), 0.92) 0%, rgba(var(--ink-rgb), 0.42) 48%, rgba(var(--ink-rgb), 0) 78%);
}

.service-card__body {
	position: relative;
	z-index: 2;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 26px 26px 28px;
	color: #fff;
}
.service-card__body h3 {
	font-size: clamp(1.2rem, 1.8vw, 1.45rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-bottom: 8px;
	color: #fff;
}
.service-card__body p {
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.95rem;
	max-width: 32ch;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease), margin-top 0.4s var(--ease);
}
.service-card:hover .service-card__body p,
.service-card:focus .service-card__body p,
.service-card:focus-within .service-card__body p {
	max-height: 120px;
	opacity: 1;
	margin-top: 8px;
}
/* Op aanraakschermen bestaat hover niet: tekst dan meteen tonen */
@media (hover: none) {
	.service-card__body p { max-height: 120px; opacity: 1; margin-top: 8px; }
}

/* ---------- CTA-tegel ----------
   Vult de zesde cel en heeft hetzelfde formaat als de fotokaarten. De foto
   krijgt een blauwe waas eroverheen zodat de tekst leesbaar blijft. */
.service-card--cta {
	display: block;
	background: linear-gradient(155deg, var(--rinse) 0%, var(--rinse-dark) 100%);
}
.service-card--cta::after {
	background: linear-gradient(155deg, rgba(65, 95, 157, 0.88) 0%, rgba(24, 34, 56, 0.94) 100%);
}
.service-card--cta .service-card__body p {
	max-height: none;
	opacity: 1;
	margin-top: 0;
	color: rgba(255, 255, 255, 0.85);
}
.service-card--cta:hover img { transform: none; }

.service-card__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
	font-weight: 600;
	font-size: 0.95rem;
	color: #fff;
}
.service-card__link svg {
	width: 18px;
	height: 18px;
	transition: transform 0.3s var(--ease);
}
.service-card--cta:hover .service-card__link svg { transform: translateX(4px); }
