/* ============================================================
   Stats Split section ("Supporting recovery in Lancashire since 2006")
   Design ref: designs/Homepage Design Desktop.jpg y5936-6670,
   Mobile y8160-8950. Teal band, 1072px inner column: content +
   caramel-barred stats + light button left; two staggered
   portrait photos right (desktop only - absent in mobile design).
   ============================================================ */

.stats-split {
	background: var(--color-teal);
	padding-block: 5rem 3rem;
}

.stats-split__inner {
	max-width: 1072px;
	margin-inline: auto;
}

.stats-split__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.stats-split__heading {
	margin-bottom: var(--space-md);
	color: var(--color-text-on-dark);
}

.stats-split__text {
	color: var(--color-text-on-dark);
}

.stats-split__text p {
	margin-bottom: 1em;
}

/* ---- Stats with caramel bars ---- */

.stats-split__stats {
	list-style: none;
	margin: var(--space-md) 0 var(--space-lg);
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
}

.stats-split__stat {
	border-left: 3px solid var(--color-caramel-light);
	padding-left: 1.5rem;
}

.stats-split__value {
	display: block;
	margin-bottom: 0.125rem;
	font-family: var(--font-heading);
	font-size: 1.75rem;
	line-height: 1;
	color: var(--color-text-on-dark);
}

.stats-split__label {
	display: block;
	font-size: var(--text-eyebrow);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: var(--tracking-eyebrow);
	color: var(--color-grey);
}

/* Button centred on mobile per the design */
.stats-split__button {
	align-self: center;
}

/* ---- Photos ----
   Mobile (per design): photos lead the section, lake upper-left,
   lupins overlapping it lower-right. Desktop: side-by-side staggered
   pair in the right column. */

.stats-split__inner {
	display: flex;
	flex-direction: column;
}

.stats-split__media {
	order: -1;
	margin-bottom: var(--space-lg);
}

.stats-split__photo img {
	width: 100%;
	height: auto;
	aspect-ratio: 15 / 16;
	object-fit: cover;
	border-radius: var(--radius-sm);
}

.stats-split__photo--first {
	width: 59%;
}

.stats-split__photo--second {
	width: 62%;
	margin-left: auto;
	/* overlaps the first photo's lower-right corner, per the design */
	margin-top: -15%;
	position: relative;
}

/* ---- Desktop ---- */

@media (min-width: 1024px) {
	.stats-split {
		padding-block: 6.5rem 2.5rem;
	}

	.stats-split__inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 496px);
		column-gap: 4.5rem;
		align-items: start;
	}

	.stats-split__content {
		grid-column: 1;
		grid-row: 1;
	}

	.stats-split__button {
		align-self: flex-start;
	}

	.stats-split__stats {
		flex-direction: row;
		gap: 4rem;
	}

	.stats-split__media {
		grid-column: 2;
		grid-row: 1;
		order: 0;
		margin-bottom: 0;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
		/* photos start below the heading line, per the design */
		margin-top: 3.5rem;
	}

	.stats-split__photo--first {
		width: auto;
	}

	/* Second photo staggered lower (no overlap on desktop) */
	.stats-split__photo--second {
		width: auto;
		margin-left: 0;
		margin-top: 8.5rem;
	}
}
