/* ═══════════════════════════════════════════════════════════
   SERVICES – Figma "Services" (12049:4066). Mobile-first.
   ═══════════════════════════════════════════════════════════ */

/* ── Intro ───────────────────────────────────────────────── */

.services-intro {
	position: relative;
	padding-top: 56px;
}

.services-intro__pill {
	display: none;
	--deco-color: var(--color-orange);
}

.services-intro__grid {
	display: grid;
	gap: 40px;
}

.services-intro__lead {
	font-size: 18px;
	line-height: 1.5;
}

.services-intro__lead > * + * {
	margin-top: 1em;
}

.services-intro__text .btn {
	margin-top: 32px;
}

.services-intro__image {
	position: relative;
	aspect-ratio: 400 / 497;
	max-height: 460px;
	overflow: hidden;
}

.services-intro__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 31% center;
}

.services-rule {
	--rule-w: 73.68%;   /* 840 / 1140 */
	margin-top: 56px;
}

/* ── Service grid ────────────────────────────────────────── */

.services-grid {
	display: grid;
	grid-template-columns: 1fr;
}

.service-card {
	padding-block: 40px;
	border-bottom: 1px solid var(--color-line);
	scroll-margin-top: 24px;
}

.service-card:last-child {
	border-bottom: 0;
}

.service-card__title {
	color: var(--color-green-dark);
	font-size: var(--text-h2);
	font-weight: 600;
	line-height: var(--lh-h2);
	letter-spacing: var(--ls-tight);
	text-transform: uppercase;
}

.service-card__text {
	margin-top: 20px;
}

/* Arriving from a homepage link: brief highlight of the target block. */
.service-card:target .service-card__title span {
	background: linear-gradient(transparent 60%, var(--color-green-light) 60%);
}

@media (min-width: 768px) {
	.services-intro {
		padding-top: 80px;
	}

	.services-intro__grid {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
		align-items: center;
		gap: 56px;
	}

	.services-intro__lead {
		font-size: 20px;
	}

	.services-intro__pill {
		display: block;
		right: 0;
		width: 140px;
		height: 300px;
		top: 260px;
		left: auto;
	}

	.services-intro__image {
		max-height: none;
	}

	/* Two columns with a vertical divider between them. */
	.services-grid {
		grid-template-columns: 1fr 1fr;
		column-gap: 80px;
	}

	.service-card {
		position: relative;
		border-bottom: 0;
	}

	.service-card:nth-child(odd)::after {
		content: "";
		position: absolute;
		top: 0;
		bottom: 0;
		right: -40px;
		border-right: 1px solid var(--color-line);
	}

	/* Titles share a bottom-aligned 2-line box (Figma h 76). */
	.service-card__title {
		display: flex;
		align-items: flex-end;
		min-height: calc(var(--text-h2) * 1.2 * 2);
	}
}

@media (min-width: 1200px) {
	/* Image y 634 → 234 under the band; text y 843 (+209). */
	.services-intro {
		padding-top: 234px;
	}

	/* Text x 250 (w 426) · image x 790 (400 × 497). */
	.services-intro__grid {
		grid-template-columns: 426px 400px;
		justify-content: space-between;
		align-items: start;
		gap: 0;
		padding-inline: 50px;
	}

	.services-intro__text {
		padding-top: 209px;
	}

	.services-intro__lead {
		font-size: 22px;
	}

	.services-intro__text .btn {
		margin-top: 40px;
	}

	/* Orange pill 335 × 509 at x 1126, y 922 (288 below image top), over the image. */
	.services-intro__pill {
		z-index: 2;
		left: calc(50% + 406px);
		right: auto;
		top: calc(234px + 288px);
		/* Figma width at 1440; on wider screens stretch to the viewport edge. */
		width: max(335px, 50% - 406px);
		height: 509px;
	}

	/* Rule y 1275 → 144 below the image. */
	.services-rule {
		margin-top: 144px;
	}

	/* Rows of 343 + 40 gap, columns 387 at x 250 and 803, divider x 710. */
	.services-list {
		padding-top: 60px;
	}

	.services-grid {
		grid-template-columns: 387px 387px;
		justify-content: space-between;
		column-gap: 0;
		row-gap: 40px;
		padding-inline: 50px;
	}

	.service-card {
		min-height: 343px;
	}

	.service-card:nth-child(odd)::after {
		right: -73px;
	}

	.service-card__title {
		min-height: 76px;
	}

	.service-card__text {
		margin-top: 40px;
	}
}
