/* home-cta.css — task_0025 mid-page conversion banner
 * Pure CSS, tokens-only. Dark band breaks the white sections above + below.
 */

.home-cta {
	padding: 3.5rem 1rem;
	background: var(--c-dark);
	background-image:
		radial-gradient(circle at 15% 30%, rgba(244, 111, 12, .22) 0%, transparent 55%),
		radial-gradient(circle at 85% 70%, rgba(120, 166, 54, .16) 0%, transparent 55%);
	color: var(--c-white);
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.home-cta::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	width: 96px;
	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;
	z-index: 1;
}

/* Oversized brand-orange ghost mark (4-pointed compass star) — decorative texture
 * mirrors the home-process bg-numeral treatment. Pure SVG via inline currentColor. */
.home-cta__bg-mark {
	position: absolute;
	right: -3rem;
	top: 50%;
	transform: translateY(-50%) rotate(-12deg);
	width: 320px;
	height: 320px;
	color: var(--c-orange-brand);
	opacity: .07;
	z-index: 0;
	pointer-events: none;
}

.home-cta__bg-mark svg {
	width: 100%;
	height: 100%;
}

.home-cta__container {
	max-width: 1160px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.75rem;
	text-align: center;
	position: relative;
	z-index: 1;
}

.home-cta__copy {
	display: flex;
	flex-direction: column;
	gap: .5rem;
}

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

.home-cta__heading {
	margin: 0;
	font-size: clamp(1.75rem, 5vw, 3rem);
	font-weight: 900;
	letter-spacing: -.015em;
	line-height: 1.05;
	color: var(--c-white);
}

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

.home-cta__subhead {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.5;
	color: var(--c-white);
	opacity: .85;
	max-width: 56ch;
	margin-inline: auto;
}

.home-cta__actions {
	display: flex;
	flex-direction: column;
	gap: .75rem;
	width: 100%;
	max-width: 420px;
}

.home-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .65rem;
	padding: .5rem 1.25rem;
	min-height: 44px;
	border: 2px solid transparent;
	border-radius: 12px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: .03em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	line-height: 1;
	transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.home-cta__btn-icon {
	flex-shrink: 0;
}

.home-cta__btn-label {
	white-space: nowrap;
}

.home-cta__btn--primary {
	background: linear-gradient(140deg, var(--c-orange-brand) 0%, var(--c-orange-shade) 100%);
	color: var(--c-dark);
	box-shadow:
		0 0 0 6px rgba(244, 111, 12, .12),
		0 0 0 14px rgba(244, 111, 12, .05),
		0 14px 32px rgba(244, 111, 12, .45);
}

.home-cta__btn--primary:hover,
.home-cta__btn--primary:focus-visible {
	background: var(--c-white);
	color: var(--c-dark);
	transform: translateY(-2px);
	box-shadow:
		0 0 0 6px rgba(244, 111, 12, .18),
		0 0 0 14px rgba(244, 111, 12, .08),
		0 18px 40px rgba(244, 111, 12, .55);
	outline: none;
}

.home-cta__btn--secondary {
	background: transparent;
	color: var(--c-white);
	border-color: rgba(255, 255, 255, .35);
}

.home-cta__btn--secondary:hover,
.home-cta__btn--secondary:focus-visible {
	background: rgba(255, 255, 255, .1);
	border-color: var(--c-orange-brand);
	color: var(--c-white);
	transform: translateY(-1px);
	outline: none;
}

.home-cta__btn:focus-visible {
	box-shadow: 0 0 0 3px rgba(244, 111, 12, .55);
}

/* ── Tablet (≥640) ─────────────────────────────────────────── */
@media (min-width: 640px) {
	.home-cta { padding: 4.5rem 1.5rem; }
	.home-cta__container { gap: 2rem; }
	.home-cta__actions {
		flex-direction: row;
		max-width: none;
		justify-content: center;
		gap: 1rem;
	}
	.home-cta__btn {
		flex: 0 0 auto;
		min-width: 220px;
	}
	.home-cta__bg-mark { width: 420px; height: 420px; right: -4rem; }
}

/* ── Wide desktop (≥1200) ──────────────────────────────────── */
@media (min-width: 1200px) {
	.home-cta { padding: 5.5rem 2rem; }
	.home-cta__container { gap: 2.5rem; }
	.home-cta__btn { min-width: 240px; padding: .8rem 1.8rem; }
	.home-cta__bg-mark { width: 520px; height: 520px; right: -5rem; }
}

/* Load-in stagger — gated to no-preference; reduce-motion gets immediate appearance */
@media (prefers-reduced-motion: no-preference) {
	.home-cta__container[data-stagger] > * {
		opacity: 0;
		transform: translateY(14px);
		animation: home-cta-fade-in 600ms cubic-bezier(.22, .61, .36, 1) forwards;
	}
	.home-cta__container[data-stagger] > .home-cta__copy { animation-delay: 0ms; }
	.home-cta__container[data-stagger] > .home-cta__actions { animation-delay: 160ms; }

	.home-cta__bg-mark {
		animation: home-cta-mark-drift 14s ease-in-out infinite alternate;
	}
}

@keyframes home-cta-fade-in {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: translateY(0); }
}

@keyframes home-cta-mark-drift {
	from { transform: translateY(-50%) rotate(-12deg); }
	to   { transform: translateY(-52%) rotate(-6deg); }
}

@media (prefers-reduced-motion: reduce) {
	.home-cta__btn { transition: none; }
	.home-cta__btn:hover,
	.home-cta__btn:focus-visible { transform: none; }
}
