/* Purpose: programme_hero – Family Meet / Mentorship banner (Elementor 6fbf3ef on pages 445 & 1337).
   Photo drawn at natural size from the top-left like the old CSS background (auto / 0 0). The band fills the screen (100svh):
   heading / line / button centred in the space under the overlaid header, tick points pinned to the bottom.
   Values from post-445/1337.css + computed styles (min-height 800/700, bottom padding 96/58/77). */

.programme-hero {
	position: relative;
	display: flex;
	background-color: var(--color-secondary); /* fallback behind the photo */
	flex-direction: column;
	min-height: 100svh;
	padding: calc(var(--header-h) + var(--space-32)) var(--space-16) var(--space-40);
}

.programme-hero .programme-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover; /* band is now full screen height, taller than the photo's natural size – cover so there is no bare strip */
	object-position: center top;
}

.programme-hero__inner {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: flex-start;
	gap: var(--space-32);
	width: 100%;
	max-width: var(--container-max);
	margin-inline: auto;
}

.programme-hero__intro {
	display: flex;
	flex-direction: column;
	gap: var(--space-24);
	margin-block: auto; /* centres the intro in the free space; the points below sit at the bottom of the band */
}

.programme-hero__heading {
	margin: 0;
	color: var(--color-white);
	font-family: var(--font-heading);
	font-size: var(--text-32);
	font-weight: var(--weight-bold);
	line-height: 1.2em;
	text-align: center;
}

.programme-hero__heading span {
	color: var(--color-primary);
}

.programme-hero__text {
	margin: 0;
	color: var(--color-white);
	font-family: var(--font-heading);
	font-size: var(--text-16);
	font-weight: var(--weight-light);
	line-height: 1.2em;
	text-align: center;
	text-wrap: balance;
}

.programme-hero__action {
	display: flex;
	justify-content: center;
	margin-top: var(--space-8);
}

/* Elementor button widget look: Heebo 700 uppercase, 24px line, gold → white on hover. Full width on mobile. */
.programme-hero .programme-btn {
	--btn-size: var(--text-14);
	--btn-weight: var(--weight-bold);
	--btn-pad: 8px 40px;
	width: 100%;
	font-family: var(--font-body);
	line-height: 24px;
	text-transform: uppercase;
}

.programme-hero__features {
	display: flex;
	flex-direction: column;
	gap: var(--space-24);
}

.programme-hero__subheading {
	margin: 0;
	color: var(--color-white);
	font-family: var(--font-heading);
	font-size: var(--text-16);
	font-weight: var(--weight-semibold);
	line-height: 1.2em;
	text-align: center;
}

.programme-hero__points {
	display: flex;
	flex-flow: row wrap;
	gap: var(--space-12);
	margin: 0;
	padding: 0;
	list-style: none;
}

.programme-hero__point {
	display: flex;
	flex: 1 1 auto;
	flex-direction: row;
	align-self: flex-start; /* Elementor icon-box: the row stretches the widget, not its centred content */
	align-items: center;
	gap: var(--space-12);
}

.programme-hero__icon {
	display: inline-flex;
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
}

.programme-hero__svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* Optional point title: gold uppercase label above the text; icon then sits level with the label. */
.programme-hero__point-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 4px;
}

.programme-hero__point-title {
	color: var(--color-primary);
	font-family: var(--font-body);
	font-size: var(--text-12);
	font-weight: var(--weight-bold);
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-transform: uppercase;
}

.programme-hero__point:has(.programme-hero__point-title) {
	align-items: flex-start;
}

.programme-hero__point-text {
	flex-grow: 1;
	color: var(--color-white);
	font-family: var(--font-body);
	font-size: var(--text-14);
	font-weight: var(--weight-regular);
	line-height: 1.2em;
	text-wrap: pretty;
}

/* ------------------------------------------------------------ Tablet */
@media (min-width: 768px) {
	.programme-hero {
		padding-top: calc(var(--header-h) + var(--space-40));
		padding-bottom: var(--space-48);
	}

	.programme-hero__inner {
		gap: var(--space-40);
	}

	.programme-hero__heading {
		font-size: 64px;
	}

	.programme-hero__text {
		font-size: var(--text-28);
	}

	.programme-hero .programme-btn {
		--btn-size: var(--text-16);
		--btn-pad: 12px 40px;
		width: auto;
	}

	.programme-hero__features {
		gap: var(--space-32);
	}

	.programme-hero__subheading {
		font-size: var(--text-24);
	}

	.programme-hero__points {
		flex-wrap: nowrap;
		gap: var(--space-20);
	}

	.programme-hero--points-narrow .programme-hero__points {
		align-self: center;
		width: 80%;
	}

	.programme-hero__icon {
		width: 32px;
		height: 32px;
	}

	.programme-hero__point-text {
		font-size: var(--text-16);
	}

	.programme-hero__point-title {
		font-size: var(--text-13);
	}

	/* Titled points: three equal columns so the labels line up. */
	.programme-hero__points:has(.programme-hero__point-title) .programme-hero__point {
		flex: 1 1 0;
	}
}

/* ------------------------------------------------------------ Desktop */
@media (min-width: 1025px) {
	.programme-hero {
		padding: calc(var(--header-min-h) + var(--space-40)) var(--gutter) var(--space-56);
	}

	.programme-hero__inner {
		gap: var(--space-56);
	}

	.programme-hero__points {
		gap: 68px;
	}
}

/* Wider than the 1440px photo: the old site tiled it (CSS default repeat). Scale it to cover instead so there is no seam or white gap. */
@media (min-width: 1441px) {
	.programme-hero .programme-hero__bg {
		object-fit: cover;
		object-position: center top;
	}
}
