/* ============================================================
   Page Intro section (layout "page_intro")
   Design ref: About Us.png y150-620 (desktop), grounds mobile.png
   (mobile). Desktop: eyebrow/H1/text one side, rounded image the
   other (600x437 ~11/8), centred vertically, ~40px gutter.
   Mobile: full-bleed image leads, centred content below.
   ============================================================ */

.page-intro {
	background: var(--color-cream-light);
	/* Mobile: no top padding - the image sits flush under the fixed header */
	padding-block: 0 var(--section-padding);
}

.page-intro__inner {
	display: flex;
	flex-direction: column;
}

/* Mobile: image first, full-bleed to the viewport edges */
.page-intro__media {
	order: -1;
	margin-inline: calc(-1 * var(--container-pad));
	margin-bottom: var(--space-lg);
}

.page-intro__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 11 / 10;
	object-fit: cover;
	border-radius: 0;
}

/* Mobile: centred content */
.page-intro__content {
	text-align: center;
}

.page-intro__heading {
	margin-bottom: var(--space-md);
	font-family: var(--font-heading);
	font-size: 1.75rem;
	line-height: 1.2;
	color: var(--color-heading);
}

.page-intro__text {
	line-height: 1.6;
}

/* Opt-in semibold lead, used by the legal/statement pages (Complaints &
   Feedback, Promoting Diversity) where the whole intro paragraph is set
   heavier. Off by default so every existing page_intro is unaffected. */
.page-intro__text--lead {
	font-weight: 600;
	color: var(--color-heading);
}

.page-intro__text p {
	margin: 0 0 1em;
}

.page-intro__text p:last-child {
	margin-bottom: 0;
}

/* ---- Centred, image-less banner (e.g. Recovery Stories) ---- */

.page-intro--centered {
	/* No full-bleed image, so restore normal top padding at every breakpoint */
	padding-block: var(--section-padding);
}

.page-intro--centered .page-intro__inner {
	display: block;
	text-align: center;
}

.page-intro--centered .page-intro__content {
	text-align: center;
	max-width: 56rem;
	margin-inline: auto;
}

.page-intro--centered .page-intro__text {
	max-width: none;
}

/* ---- Tablet: contained, rounded image above the content (deliberate
       middle treatment - not the mobile full-bleed stretched wide) ---- */
@media (min-width: 768px) and (max-width: 1023.98px) {
	.page-intro {
		padding-block: var(--section-padding);
	}

	.page-intro__media {
		order: -1;
		margin-inline: auto;
		max-width: 520px;
		margin-bottom: var(--space-lg);
	}

	.page-intro__image {
		aspect-ratio: 11 / 8;
		border-radius: var(--radius-sm);
	}
}

@media (min-width: 1024px) {
	.page-intro {
		padding-block: var(--section-padding);
	}

	.page-intro__inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 600px);
		column-gap: 2.5rem;
		align-items: center;
	}

	.page-intro__content {
		grid-column: 1;
		text-align: left;
	}

	.page-intro__media {
		grid-column: 2;
		order: 0;
		margin-inline: 0;
		margin-bottom: 0;
	}

	.page-intro__image {
		aspect-ratio: 11 / 8;
		border-radius: var(--radius-sm);
	}

	.page-intro--image-left .page-intro__content {
		grid-column: 2;
	}

	.page-intro--image-left .page-intro__media {
		grid-column: 1;
	}

	.page-intro__heading {
		font-size: 2.25rem;
		line-height: 1.15;
	}

	.page-intro__text {
		font-size: 1.125rem;
		line-height: 1.55;
		max-width: 34rem;
	}
}
