/*
 * front-page.css — homepage only (see loading matrix, reference.md §8).
 */

/* ---------- Hero ---------- */

.hero {
	background: var(--gray-bg);
	overflow: hidden;
}

.hero__grid {
	display: grid;
	grid-template-columns: 7fr 5fr;
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
	padding-block: clamp(3rem, 6vw, 5.5rem);
}

.hero__title {
	margin-bottom: 0.5em;
}

/* Key phrase: accent marker with navy text (accent-on-white text fails AA) */
.hero__highlight {
	background: linear-gradient(transparent 55%, var(--accent) 55%);
	padding-inline: 0.08em;
}

.hero__sub {
	max-width: 36rem;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
	margin-block: 1.8rem 2.4rem;
}

.hero__trust {
	display: flex;
	gap: clamp(1.5rem, 4vw, 3.5rem);
	margin: 0;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
}

.hero__stat dd {
	margin: 0;
	display: grid;
	gap: 0.15rem;
}

.hero__stat-number {
	font-size: 1.75rem;
	color: var(--navy);
	letter-spacing: 0;
}

.hero__stat-label {
	color: var(--muted);
	font-size: var(--fs-small);
}

.hero__media {
	position: relative;
	max-width: 26rem;
	justify-self: end;
	width: 100%;
}

.hero__media img,
.hero__placeholder {
	position: relative;
	z-index: 1;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.hero__placeholder {
	aspect-ratio: 4 / 5;
	background: var(--white);
	border: 1px dashed var(--border);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: var(--muted);
}

/* Decorative offset frame — separate element, never over the LCP image */
.hero__media-accent {
	position: absolute;
	z-index: 0;
	inset: 1.25rem -1.25rem -1.25rem 1.25rem;
	border-radius: var(--radius);
	background: var(--accent);
	opacity: 0.35;
}

/* ---------- About summary ---------- */

.home-about .zigzag__media {
	align-self: stretch;
}

.home-about .media-placeholder {
	height: 100%;
	aspect-ratio: auto;
	min-height: 18rem;
	background: var(--white);
}

/* ---------- Services summary ---------- */

.home-services__layout {
	display: grid;
	grid-template-columns: 4fr 7fr;
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
}

.home-services__intro {
	position: sticky;
	top: calc(var(--header-h) + 1.5rem);
}

.home-services__intro .btn {
	margin-top: 0.5rem;
}

.home-services__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.home-services__item {
	display: grid;
	grid-template-columns: 3rem 1fr;
	gap: 1.25rem;
	padding-block: 1.5rem;
	border-bottom: 1px solid var(--border);
}

.home-services__item:first-child {
	padding-top: 0;
}

.home-services__num {
	color: var(--accent-dark);
	padding-top: 0.35rem;
}

.home-services__item h3 {
	margin-bottom: 0.3em;
}

.home-services__item h3 a {
	color: var(--navy);
	text-decoration: none;
}

.home-services__item p {
	margin: 0;
	color: var(--muted);
}

@media (hover: hover) and (pointer: fine) {
	.home-services__item h3 a:hover {
		color: var(--accent-dark);
	}
}

/* ---------- Steps (navy band) ---------- */

.steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1.5rem, 3vw, 3rem);
	counter-reset: steps;
}

.steps__item {
	border-top: 2px solid var(--accent);
	padding-top: 1.25rem;
}

.steps__num {
	color: var(--accent);
	display: block;
	margin-bottom: 0.75rem;
}

.steps__item p {
	color: var(--border);
	margin: 0;
}

.home-steps__cta {
	margin-top: clamp(2rem, 4vw, 3.5rem);
}

/* ---------- FAQ layout ---------- */

.home-faq__layout {
	display: grid;
	grid-template-columns: 4fr 7fr;
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
}

/* ---------- Final CTA band ---------- */

.home-cta__inner {
	max-width: 46rem;
}

.home-cta__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	margin-top: 1.75rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.hero__grid {
		grid-template-columns: 6fr 5fr;
	}

	.home-services__layout,
	.home-faq__layout {
		grid-template-columns: 1fr;
	}

	.home-services__intro {
		position: static;
	}

	.steps {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

@media (max-width: 767px) {
	.hero__grid {
		grid-template-columns: 1fr;
	}

	.hero__media {
		justify-self: stretch;
		max-width: 22rem;
		margin-inline: auto;
	}

	.hero__media-accent {
		inset: 0.75rem -0.75rem -0.75rem 0.75rem;
	}
}
