/**
 * Hero Page template — full-width optional hero (template-hero-page.php)
 */

.recoveryquote-page-hero {
	position: relative;
	min-height: clamp(18rem, 72vh, 40rem);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: clamp(3rem, 8vw, 5rem) 1.25rem;
	background-color: #135a82;
	color: #fff;
}

/* Fallback gradient when no background image */
.recoveryquote-page-hero:not(.recoveryquote-page-hero--has-image) {
	background-image: linear-gradient(155deg, #135a82 0%, #0781be 42%, #1a3550 80%);
}

.recoveryquote-page-hero--has-image {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-image: var(--recoveryquote-page-hero-bg);
}

.recoveryquote-page-hero--has-image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(22, 32, 52, 0.4) 0%, rgba(22, 32, 52, 0.75) 100%);
	pointer-events: none;
}

.recoveryquote-page-hero__grid {
	display: grid;
	gap: 1.5rem;
	align-items: start;
	position: relative;
	z-index: 1;
}

.recoveryquote-page-hero--with-form .recoveryquote-page-hero__grid {
	grid-template-columns: 1fr;
	text-align: left;
}

.recoveryquote-page-hero__notices--full {
	grid-column: 1 / -1;
}

.recoveryquote-page-hero__notices--full .recoveryquote-hero-notice {
	max-width: 40rem;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.recoveryquote-page-hero--with-form {
	align-items: flex-start;
}

.recoveryquote-page-hero--with-form .recoveryquote-page-hero__subtitle {
	margin-left: 0;
	margin-right: 0;
}

.recoveryquote-page-hero--with-form .recoveryquote-page-hero__inner {
	margin-left: 0;
	margin-right: 0;
	max-width: none;
	text-align: left;
}

.recoveryquote-page-hero__form-wrap {
	width: 100%;
	max-width: 26rem;
	justify-self: center;
}

@media (min-width: 900px) {
	.recoveryquote-page-hero--with-form .recoveryquote-page-hero__grid {
		grid-template-columns: minmax(0, 1fr) minmax(280px, 26rem);
		gap: clamp(1.5rem, 4vw, 3rem);
		align-items: start;
	}

	.recoveryquote-page-hero--with-form .recoveryquote-page-hero__form-wrap {
		justify-self: end;
		max-width: 26rem;
	}
}

.recoveryquote-page-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 46rem;
	margin: 0 auto;
}


.recoveryquote-page-hero__title {
	font-family: var(--font-display, Georgia, serif);
	font-size: clamp(1.875rem, 5vw, 3rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0 0 0.75rem;
	color: #fff;
	text-wrap: balance;
}

.recoveryquote-page-hero__subtitle {
	font-size: clamp(1rem, 2.5vw, 1.25rem);
	line-height: 1.55;
	margin: 0 0 1.5rem;
	color: rgba(255, 255, 255, 0.92);
	max-width: 42ch;
	margin-left: auto;
	margin-right: auto;
}

.recoveryquote-page-hero__cta {
	margin: 0;
}

.recoveryquote-page-hero__btn {
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.recoveryquote-page-hero__btn:hover {
	filter: brightness(1.06);
}

.recoveryquote-hero-page-body {
	padding-top: clamp(2.5rem, 6vw, 4rem);
}

.recoveryquote-hero-page-article .entry-content > *:first-child {
	margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
	.recoveryquote-page-hero__btn:hover {
		filter: none;
	}
}

body.recoveryquote-recovery-theme.recoveryquote-brand .recoveryquote-page-hero {
	background-color: #f1f5f9;
	color: #0f172a;
}

body.recoveryquote-recovery-theme.recoveryquote-brand .recoveryquote-page-hero:not(.recoveryquote-page-hero--has-image) {
	background-image: linear-gradient(155deg, #ffffff 0%, #f1f5f9 50%, #e2e8f0 100%);
}

body.recoveryquote-recovery-theme.recoveryquote-brand
	.recoveryquote-page-hero:not(.recoveryquote-page-hero--has-image)
	.recoveryquote-page-hero__title {
	color: #0f172a;
}

body.recoveryquote-recovery-theme.recoveryquote-brand
	.recoveryquote-page-hero:not(.recoveryquote-page-hero--has-image)
	.recoveryquote-page-hero__subtitle {
	color: #475569;
}

body.recoveryquote-recovery-theme.recoveryquote-brand .recoveryquote-page-hero--has-image .recoveryquote-page-hero__title {
	color: #f8fafc;
}

body.recoveryquote-recovery-theme.recoveryquote-brand .recoveryquote-page-hero--has-image .recoveryquote-page-hero__subtitle {
	color: rgba(248, 250, 252, 0.92);
}

body.recoveryquote-recovery-theme.recoveryquote-brand .recoveryquote-page-hero--has-image::before {
	background: linear-gradient(
		to bottom,
		rgba(15, 23, 42, 0.38) 0%,
		rgba(15, 23, 42, 0.52) 45%,
		rgba(15, 23, 42, 0.76) 100%
	);
}
