/* De Alva — shared inner-page chrome (hero + prose container)
   Tokens: --navy, --blue, --red, --ink, --muted, --line, --paper, --white, --maxw, --sans */

/* ── Inner-page hero band ─────────────────────────────────── */
.dealva-pagehero {
	background:
		radial-gradient(120% 140% at 85% -20%, rgba(33, 98, 172, 0.55) 0%, rgba(33, 98, 172, 0) 60%),
		linear-gradient(120deg, var(--navy, #15254c) 0%, #0f1b39 100%);
	padding: 64px 0;
}

/* Background-photo variant: navy gradient overlay (set inline) over a header image */
.dealva-pagehero--image {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	padding: 132px 0;
	display: flex;
	align-items: center;
	min-height: 460px;
}

.dealva-pagehero__inner {
	width: 100%; /* fill the flex parent (--image hero) so margin:auto can center it */
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 24px;
	text-align: center; /* centered hero, matching the original service pages */
}

.dealva-pagehero__title {
	font-family: var(--sans);
	color: var(--white, #ffffff);
	font-size: clamp(1.875rem, 4vw, 2.75rem);
	font-weight: 900;
	line-height: 1.15;
	letter-spacing: 0.01em;
	margin: 0;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45); /* legibility over the photo */
}

.dealva-pagehero__subtitle {
	font-family: var(--sans);
	color: rgba(255, 255, 255, 0.88);
	font-size: 1.0625rem;
	line-height: 1.6;
	max-width: 640px;
	margin: 14px auto 0;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

/* ── Generic page body container ──────────────────────────── */
.dealva-page {
	background: var(--white);
	padding: 72px 0;
}

.dealva-page__inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 24px;
}

/* ── Prose typography (for the_content fallback) ──────────── */
.dealva-prose {
	font-family: var(--sans);
	color: var(--ink, #272727);
	font-size: 1.0625rem;
	line-height: 1.75;
}

.dealva-prose h2 {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 900;
	color: var(--navy);
	margin: 1.8em 0 0.6em;
}

.dealva-prose h3 {
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--navy);
	margin: 1.5em 0 0.5em;
}

.dealva-prose a {
	color: var(--blue);
	text-decoration: underline;
}

.dealva-prose ul,
.dealva-prose ol {
	padding-left: 1.4em;
	margin: 1em 0;
}

.dealva-prose img,
.dealva-figure img {
	max-width: 100%;
	height: auto;
	display: block;
}

.dealva-figure {
	margin: 28px 0;
	border: 1px solid var(--line, #e6e3dd);
	border-radius: 8px;
	overflow: hidden;
	background: var(--white, #fff);
}

@media (max-width: 768px) {
	.dealva-pagehero {
		padding: 48px 0;
	}

	.dealva-pagehero--image {
		padding: 80px 0;
		min-height: 320px;
	}

	.dealva-pagehero__inner,
	.dealva-page__inner {
		padding: 0 16px;
	}

	.dealva-page {
		padding: 48px 0;
	}
}
