/* home-trust.css — task_0023 trust + process strips
 * Pure CSS, tokens-only. Two paired 3-col strips below services grid.
 */

/* ── Why Gorilla (de-boxed trust strip) ────────────────────
 * task_0033: re-skinned from cards → inline icon-headline-body rows.
 * Breaks the visual rhythm with the services grid (which stays box-style).
 */
.home-trust {
	padding: 3.5rem 1rem;
	background:
		linear-gradient(180deg, rgba(244, 111, 12, .04) 0%, transparent 50%, rgba(120, 166, 54, .04) 100%),
		var(--c-white);
	position: relative;
}

.home-trust::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	width: 80px;
	height: 4px;
	transform: translateX(-50%);
	background: linear-gradient(90deg, var(--c-orange-brand), var(--c-green-brand));
	border-radius: 0 0 4px 4px;
	pointer-events: none;
}

.home-trust__container {
	max-width: 1180px;
	margin: 0 auto;
}

.home-trust__eyebrow {
	margin: 0 auto .5rem;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--c-orange-brand);
	text-align: center;
}

.home-trust__heading {
	margin: 0 auto 2.5rem;
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	font-weight: 900;
	letter-spacing: -.015em;
	line-height: 1.1;
	color: var(--c-dark);
	text-align: center;
}

.home-trust__heading-accent {
	color: var(--c-orange-brand);
	display: inline-block;
}

.home-trust__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

.home-trust__card {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 1.25rem;
	row-gap: .4rem;
	align-items: start;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
}

/* Quiet outline icon tile (task_0051) — soft-tint rounded square, single brand-orange tone.
 * Replaces the loud gradient-disc + multi-ring halos and drops the orange/green alternation
 * so the row reads as a unified credentials strip rather than competing badges. */
.home-trust__icon-wrap {
	grid-row: 1 / span 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 16px;
	color: var(--c-orange-brand);
	flex-shrink: 0;
	position: relative;
	background: rgba(244, 111, 12, .06);
	border: 1.5px solid rgba(244, 111, 12, .25);
	transition: transform .35s ease, border-color .35s ease, background-color .35s ease;
	z-index: 1;
}

.home-trust__card:hover .home-trust__icon-wrap {
	transform: translateY(-2px);
	border-color: rgba(244, 111, 12, .55);
	background: rgba(244, 111, 12, .1);
}

.home-trust__icon {
	position: relative;
	z-index: 1;
	width: 28px;
	height: 28px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.home-trust__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 900;
	letter-spacing: -.005em;
	line-height: 1.2;
	color: var(--c-dark);
	position: relative;
	padding-bottom: .5rem;
}

.home-trust__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 36px;
	height: 3px;
	background: linear-gradient(90deg, var(--c-orange-brand), var(--c-orange-shade));
	border-radius: 3px;
	transition: width .35s ease;
}

.home-trust__card:hover .home-trust__title::after {
	width: 56px;
}

.home-trust__body {
	margin: 0;
	font-size: .9375rem;
	line-height: 1.6;
	color: var(--c-dark);
	opacity: .82;
}

/* ── How It Works (process strip) ─────────────────────────── */
.home-process {
	padding: 3.5rem 1rem;
	position: relative;
	isolation: isolate;
	background: var(--c-dark);
	color: var(--c-white);
	overflow: hidden;
}

.home-process::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(circle at 12% 18%, rgba(244, 111, 12, .22) 0%, transparent 48%),
		radial-gradient(circle at 88% 82%, rgba(120, 166, 54, .18) 0%, transparent 50%);
	pointer-events: none;
}

.home-process__container {
	max-width: 1320px;
	margin: 0 auto;
	text-align: center;
}

.home-process__eyebrow {
	margin: 0 auto .5rem;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--c-orange-brand);
}

.home-process__heading {
	margin: 0 auto .75rem;
	font-size: clamp(1.75rem, 4.5vw, 2.5rem);
	font-weight: 900;
	letter-spacing: -.015em;
	line-height: 1.1;
	color: var(--c-white);
}

.home-process__heading-accent {
	color: var(--c-orange-brand);
	display: inline-block;
}

.home-process__intro {
	margin: 0 auto 2.5rem;
	max-width: 56ch;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--c-white);
	opacity: .8;
}

.home-process__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	counter-reset: process-step;
	text-align: center;
}

.home-process__step {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	padding: 0 1rem;
}

.home-process__bg-numeral {
	position: absolute;
	top: -.5rem;
	right: 0;
	z-index: 0;
	font-size: 5rem;
	font-weight: 900;
	line-height: .85;
	letter-spacing: -.05em;
	color: var(--c-orange-brand);
	opacity: .1;
	pointer-events: none;
	user-select: none;
	font-feature-settings: "tnum";
}

.home-process__numeral-wrap,
.home-process__body {
	position: relative;
	z-index: 1;
}

.home-process__numeral-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 96px;
	height: 96px;
}

.home-process__numeral {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	background: linear-gradient(140deg, var(--c-orange-brand) 0%, var(--c-orange-shade) 100%);
	color: var(--c-dark);
	font-size: 2.75rem;
	font-weight: 900;
	line-height: 1;
	letter-spacing: -.04em;
	box-shadow:
		0 0 0 6px rgba(244, 111, 12, .12),
		0 0 0 14px rgba(244, 111, 12, .06),
		0 14px 32px rgba(244, 111, 12, .35);
	transition: transform .35s ease, box-shadow .35s ease;
}

.home-process__icon-badge {
	position: absolute;
	z-index: 3;
	bottom: -6px;
	right: -6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--c-white);
	color: var(--c-dark);
	box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
}

.home-process__icon {
	width: 18px;
	height: 18px;
	stroke: currentColor;
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.home-process__step:hover .home-process__numeral {
	transform: translateY(-4px) rotate(-3deg);
	box-shadow:
		0 0 0 6px rgba(244, 111, 12, .15),
		0 0 0 14px rgba(244, 111, 12, .08),
		0 18px 40px rgba(244, 111, 12, .45);
}

.home-process__body {
	display: flex;
	flex-direction: column;
	gap: .4rem;
	max-width: 36ch;
}

.home-process__label {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 900;
	color: var(--c-white);
	line-height: 1.15;
	letter-spacing: -.005em;
}

.home-process__copy {
	margin: 0;
	font-size: .9375rem;
	line-height: 1.55;
	color: var(--c-white);
	opacity: .8;
}

/* ── Tablet / desktop (≥640) ──────────────────────────────── */
@media (min-width: 640px) {
	.home-trust { padding: 4rem 1.5rem 3rem; }
	.home-process { padding: 4.5rem 1.5rem; }

	.home-trust__list {
		grid-template-columns: repeat(3, 1fr);
		gap: 4rem;
		position: relative;
	}

	.home-trust__card {
		grid-template-columns: 1fr;
		text-align: left;
		row-gap: .5rem;
		position: relative;
	}

	.home-trust__card:not(:last-child)::after {
		content: "";
		position: absolute;
		top: .5rem;
		bottom: .5rem;
		right: -2rem;
		width: 1px;
		background: linear-gradient(180deg,
			transparent 0%,
			rgba(244, 111, 12, .3) 30%,
			rgba(244, 111, 12, .3) 70%,
			transparent 100%);
		pointer-events: none;
	}

	.home-trust__icon-wrap {
		grid-row: auto;
	}

	.home-process__list {
		grid-template-columns: repeat(3, 1fr);
		gap: 1rem;
		position: relative;
	}

	/* Connecting dashed line between steps with arrowheads pointing right */
	.home-process__list::before {
		content: "";
		position: absolute;
		top: 48px;
		left: calc(16.66% + 2rem);
		right: calc(16.66% + 2rem);
		height: 2px;
		background-image: linear-gradient(
			90deg,
			rgba(244, 111, 12, .55) 0,
			rgba(244, 111, 12, .55) 6px,
			transparent 6px,
			transparent 14px
		);
		background-size: 14px 2px;
		background-repeat: repeat-x;
		z-index: 0;
		pointer-events: none;
	}

	/* Arrowhead at end of connector — pseudo-element on each step except the last */
	.home-process__step:not(:last-child)::after {
		content: "";
		position: absolute;
		top: 42px;
		right: -7px;
		width: 0;
		height: 0;
		border-top: 7px solid transparent;
		border-bottom: 7px solid transparent;
		border-left: 10px solid var(--c-orange-brand);
		opacity: .7;
		z-index: 0;
		pointer-events: none;
	}

	.home-process__bg-numeral {
		font-size: 7rem;
		top: -1rem;
		right: -.25rem;
	}
}

/* Load-in stagger — gated to no-preference; reduce-motion gets immediate appearance */
@media (prefers-reduced-motion: no-preference) {
	.home-process__list[data-stagger] .home-process__step,
	.home-trust__list[data-stagger] .home-trust__card {
		opacity: 0;
		transform: translateY(14px);
		animation: home-process-step-in 600ms cubic-bezier(.22, .61, .36, 1) forwards;
	}
	.home-process__list[data-stagger] .home-process__step:nth-child(1),
	.home-trust__list[data-stagger]   .home-trust__card:nth-child(1) { animation-delay: 0ms; }
	.home-process__list[data-stagger] .home-process__step:nth-child(2),
	.home-trust__list[data-stagger]   .home-trust__card:nth-child(2) { animation-delay: 100ms; }
	.home-process__list[data-stagger] .home-process__step:nth-child(3),
	.home-trust__list[data-stagger]   .home-trust__card:nth-child(3) { animation-delay: 200ms; }
}

@keyframes home-process-step-in {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ── Wide desktop (≥1200) ─────────────────────────────────── */
@media (min-width: 1200px) {
	.home-trust { padding: 5rem 2rem 4rem; }
	.home-process { padding: 5.5rem 2rem; }

	.home-trust__list { gap: 4.5rem; }
	.home-trust__card:not(:last-child)::after { right: -2.25rem; }

	.home-trust__heading { margin-bottom: 2.5rem; }
	.home-process__heading { font-size: 2.75rem; }
	.home-process__intro { margin-bottom: 3rem; }

	.home-process__numeral-wrap,
	.home-process__numeral { width: 110px; height: 110px; }
	.home-process__numeral { font-size: 3.25rem; }

	.home-process__icon-badge { width: 42px; height: 42px; }
	.home-process__icon { width: 20px; height: 20px; }

	.home-process__list::before { top: 55px; }
	.home-process__step:not(:last-child)::after { top: 49px; }
	.home-process__bg-numeral { font-size: 9rem; top: -1.5rem; right: -.5rem; }
	.home-process__label { font-size: 1.375rem; }
}

@media (prefers-reduced-motion: reduce) {
	.home-process__numeral,
	.home-trust__icon-wrap,
	.home-trust__title::after { transition: none; }
	.home-process__step:hover .home-process__numeral,
	.home-trust__card:hover .home-trust__icon-wrap { transform: none; }
	.home-trust__card:hover .home-trust__title::after { width: 36px; }
}
