/*
 * services.css — S5, the zig-zag.
 *
 * Alternating image/text rows on desktop (odd rows lead with the picture, even
 * rows lead with the words) collapsing to a single column with the picture on
 * top. No cards, no equal-thirds grid.
 */

/* Width in rem, not ch: this box is set in the body font while the heading
   inside it renders at ~3rem, so a ch cap here would be far too tight and
   would break long Finnish compounds mid-word. */
.services__head {
	max-width: 44rem;
	margin-bottom: var(--s-16);
}

.services__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: var(--fs-h2);
	font-weight: 500;
	line-height: var(--lh-heading);
	text-wrap: balance;
}

.services__rows {
	display: grid;
	gap: var(--s-16);
}

.services__row {
	display: grid;
	gap: var(--s-6);
	align-items: center;
}

/* The picture itself is the hover target: a slow, small push-in that says the
   page is alive without moving the layout a pixel. */
.services__figure {
	margin: 0;
	overflow: hidden;
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
}

.services__figure img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform 0.9s var(--ease);
}

.services__row:hover .services__figure img {
	transform: scale(1.035);
}

.services__row-title {
	margin: 0 0 var(--s-4);
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	font-weight: 500;
	line-height: var(--lh-heading);
}

.services__body p {
	margin: 0;
	color: var(--text-muted);
}

.services__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--s-6);
	margin: var(--s-16) 0 0;
	max-width: none;
}

.services__price-link {
	font-weight: 600;
	color: var(--koivu);
	text-underline-offset: 6px;
}

@media (min-width: 900px) {
	.services__rows {
		gap: var(--s-24);
	}

	.services__row {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
		gap: var(--s-16);
	}

	.services__body {
		padding-inline: var(--s-4);
	}

	/* Every other row turns around: words first, picture second. */
	.services__row:nth-child(even) .services__figure {
		order: 2;
	}

	.services__row:nth-child(even) .services__body {
		order: 1;
	}

	.services__row:nth-child(even) {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	}
}
