/**
 * Warranty Cards — Warranties section 5.
 *
 * Every number here is read off the .fig node, not estimated:
 *   section   1920x837, black, padding 120 240
 *   container 1440x597, split 317 | 79 | 1044
 *   intro     317x270, stack gap 20 — heading 36/42, lede 20/32, button 204x50
 *   cards     3 x 328x597 on a 30px gap, #FFFFFF,
 *             padding 54 51 50, inner stack gap 51, copy column 228 wide
 *   shamrock  779x779 decorative vector at x -240, y 320
 */

.warranty-cards {
	position: relative;
	overflow: hidden;
}

/* The oversized mark is decoration, drawn from the icon set rather than
 * shipped as an asset. It sits on the black fill at a low alpha, which is why
 * the export reads it as a barely-lighter shape rather than #F2FAF5. */
.warranty-cards__mark {
	position: absolute;
	bottom: -200px;
	left: -240px;
	width: 779px;
	height: 779px;
	color: var(--pale-green);
	opacity: 0.04;
	pointer-events: none;
}

.warranty-cards__mark svg {
	width: 100%;
	height: 100%;
}

.warranty-cards__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 317fr 1044fr;
	align-items: start;
	gap: 79px;
}

/* --- intro column --------------------------------------------------- */
.warranty-cards__intro {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-20);
}

/* 400, with only the accent run bold — the `.section-title` convention (leading
 * words 400, accented word 700) that this block's own heading was never wired
 * to. Settled by ink density over one identical box (x 241..470, y 121..155,
 * i.e. the word "Comprehensive"): the export reads 21.4%, this at 700 read
 * 39.4%, at 400 it reads 27.9%. A same-weight control on the card title in the
 * same crop pair reads 23.1% against 25.6%, so the export runs a couple of
 * points light from JPEG softening — which puts 400 within the noise and leaves
 * 700 fifteen points outside it. */
.warranty-cards__heading {
	margin: 0;
	color: var(--white);
	font-family: var(--font-heading);
	font-size: var(--fs-36);
	font-weight: 400;
	line-height: 1.167; /* 42/36 */
}

.warranty-cards__heading span,
.warranty-cards__heading .is-accent {
	color: var(--primary-green);
	font-weight: 700;
}

.warranty-cards__text {
	margin: 0;
	color: var(--white);
	font-family: var(--font-body);
	font-size: var(--fs-20);
	font-weight: 400;
	line-height: var(--lh-body);
}

.warranty-cards__actions {
	margin-top: 0;
}

/* --- cards ---------------------------------------------------------- */
/* The cards are a fixed 597 in the design and equal height regardless of copy,
 * so the track stretches rather than letting each card size to its text. */
.warranty-cards__list {
	display: grid;
	grid-template-columns: repeat(var(--warranty-cards-count, 3), 1fr);
	align-items: stretch;
	gap: var(--space-30);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Measured ink-to-ink on the 1:1 export, inside the first card: the title's
 * glyphs end 78px below the card's top and the body's first line starts at 105
 * — a 26px gap. The 51 this was built with rendered 60 (the flex gap plus ~9px
 * of line-box slack under a 24px cap and over an 18/30 line), which made the
 * TALLEST card 34px too deep and the whole band 32px over its drawn 837.
 * Everything else in the card is already exact: top 120, left 636, width 328,
 * padding-top to title ink 59 against the design's 59, body pitch 30. */
.warranty-cards__card {
	display: flex;
	flex-direction: column;
	gap: 17px;
	padding: 54px 51px 50px;
	background-color: var(--white);
}

.warranty-cards__card-title {
	margin: 0;
	/* Roboto Bold here, not the heading face — 24/100% #010101. */
	color: var(--primary-black);
	font-family: var(--font-body);
	font-size: var(--fs-24);
	font-weight: 700;
	line-height: var(--lh-tight);
}

.warranty-cards__card-text {
	margin: 0;
	color: var(--body-grey);
	font-family: var(--font-body);
	font-size: var(--fs-18);
	font-weight: 400;
	line-height: 1.667; /* 30/18, not the 1.6 body default */
}

.warranty-cards__card-text a {
	color: var(--primary-green);
	text-decoration: underline;
}

.warranty-cards__card-text a:hover,
.warranty-cards__card-text a:focus-visible {
	color: var(--primary-black);
}

/* --- responsive ------------------------------------------------------ */


@media (max-width: 1600px) { 

	.warranty-cards__card {
		gap: var(--space-30);
		padding: var(--space-30);
	}

	.warranty-cards__inner {
		gap: var(--space-40);
	}

	.warranty-cards__list {
		gap: var(--space-15);
	}

}

@media (max-width: 1280px) {

	.warranty-cards__card-title {
		font-size: var(--fs-29);
	}

	.warranty-cards__list {
		grid-template-columns: repeat(2, 1fr);
	}

	.warranty-cards__inner {
		grid-template-columns: 1fr;
	}

}

@media (max-width: 767px) {

	.warranty-cards__list {
		grid-template-columns: 1fr;
	}

	.warranty-cards__mark {
		display: none;
	}
}
