/* Shared hero, section, grid, and structural layout rules. */

.page-hero {
position: relative;
	--page-hero-image: url("../../images/preschool-centre-2026.jpg");
	--page-hero-position: center 58%;
	min-height: min(680px, 86vh);
	display: flex;
	align-items: end;
	padding: 154px max(22px, calc((100% - var(--max)) / 2)) 76px;
	color: #fff;
	background:
		linear-gradient(90deg, rgba(37, 50, 56, 0.64) 0%, rgba(37, 50, 56, 0.26) 48%, rgba(37, 50, 56, 0.04) 100%),
		linear-gradient(180deg, rgba(255, 244, 191, 0.05) 0%, rgba(37, 50, 56, 0.34) 100%),
		var(--page-hero-image) var(--page-hero-position) / cover no-repeat;
}

.page-hero::after {
content: "";
	position: absolute;
	inset: auto 0 -1px;
	height: 92px;
	background: linear-gradient(
		180deg,
		rgba(255, 250, 240, 0) 0%,
		rgba(255, 250, 240, 0.08) 36%,
		rgba(255, 250, 240, 0.32) 68%,
		var(--paper) 100%
	);
	pointer-events: none;
}

.page-hero-content {
position: relative;
	z-index: 1;
	width: min(780px, 100%);
}

.eyebrow {
display: inline-flex;
	align-items: center;
	padding: 6px 11px;
	color: var(--primary);
	background: var(--primary-soft);
	border: 1px solid rgba(217, 74, 56, 0.18);
	border-radius: var(--radius-button);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.page-hero .eyebrow,
.visit-cta .eyebrow {
color: #fff;
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.28);
}

h1,
h2,
h3 {
margin: 0;
	line-height: 1.08;
	letter-spacing: 0;
}

.page-hero h1 {
margin-top: 18px;
	font-size: clamp(42px, 6vw, 70px);
	font-weight: 900;
}

.page-hero p {
max-width: 680px;
	margin: 20px 0 0;
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(17px, 2vw, 21px);
}

.section {
width: min(var(--max), calc(100% - 32px));
	margin: 0 auto;
	padding: 88px 0;
}

.section-soft {
width: 100%;
	max-width: none;
	padding-right: max(16px, calc((100% - var(--max)) / 2));
	padding-left: max(16px, calc((100% - var(--max)) / 2));
	background:
		linear-gradient(
			180deg,
			rgba(255, 253, 248, 0.72) 0%,
			rgba(223, 245, 232, 0.52) 50%,
			rgba(255, 253, 248, 0.72) 100%
		);
	border-top: 1px solid var(--pastel-line);
	border-bottom: 1px solid var(--pastel-line);
}

.section-heading {
max-width: 680px;
	margin: 0 auto 40px;
	text-align: center;
}

.section-heading.left {
margin-left: 0;
	text-align: left;
}

.section-heading h2,
.visit-cta h2 {
margin-top: 14px;
	font-size: clamp(31px, 4.4vw, 50px);
	font-weight: 900;
}

.section-heading p,
.visit-cta p {
max-width: 640px;
	margin: 15px 0 0;
	color: var(--muted);
	font-size: 17px;
}

.section-actions {
display: flex;
	justify-content: center;
	margin-top: 28px;
}

.feature-grid,
.reason-grid,
.programme-grid,
.moments-grid,
.contact-grid {
display: grid;
	gap: 20px;
}
