/*
 * Sharada Gurukula - main stylesheet
 * ---------------------------------------------------------------------------
 * Organised as:
 *   1. Fonts and design tokens
 *   2. Base elements and typography
 *   3. Icons and animation
 *   4. Layout primitives
 *   5. Header and navigation
 *   6. Page sections
 *   7. Forms
 *   8. Footer and floating contact
 *   9. Responsive: desktop, laptop, tablet, mobile
 *  10. Reduced motion and no-JavaScript fallbacks
 *
 * Two rules run through the whole file. Nothing is ever hidden by an animation
 * unless JavaScript is confirmed to be running, and every control a finger has
 * to hit is at least 44px tall.
 */

/* ==========================================================================
   1. Fonts and design tokens
   ========================================================================== */

@font-face {
	font-family: "Nunito Local";
	src: url("../fonts/nunito.woff2") format("woff2");
	font-display: swap;
	font-style: normal;
	font-weight: 100 900;
}

@font-face {
	font-family: "Montserrat Local";
	src: url("../fonts/montserrat.woff2") format("woff2");
	font-display: swap;
	font-style: normal;
	font-weight: 100 900;
}

:root {
	--pink: #f54288;
	--pink-dark: #d92d70;
	--pink-soft: #fff0f6;
	--teal: #328a86;
	--teal-dark: #1f6664;
	--teal-soft: #eaf7f6;
	--gold: #f4bb38;
	--orange: #e9633c;
	--ink: #173d3b;
	--muted: #5e7371;
	--paper: #ffffff;
	--soft: #f6f8f8;
	--border: #dce9e8;
	--shadow: 0 18px 50px rgba(36, 89, 85, 0.13);
	--shadow-sm: 0 8px 24px rgba(36, 89, 85, 0.1);
	--radius-lg: 32px;
	--radius-md: 22px;
	--container: 1180px;
	--gutter: 48px;
	--tap: 48px;

	--font-body: "Nunito Local", Nunito, "Avenir Next", "Segoe UI", Arial, sans-serif;
	--font-head: "Montserrat Local", Montserrat, "Avenir Next", "Segoe UI", Arial, sans-serif;

	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--reveal-distance: 26px;
}

/* ==========================================================================
   2. Base elements and typography
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	/* Keeps an anchored heading clear of the sticky header. */
	scroll-padding-top: 130px;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.7;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
	font-family: var(--font-body);
}

img,
svg,
video {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: var(--teal-dark);
	text-underline-offset: 4px;
	transition: color 160ms var(--ease);
}

a:hover,
a:focus {
	color: var(--pink-dark);
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-head);
	margin: 0 0 18px;
	line-height: 1.16;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

h1 {
	font-size: clamp(2.3rem, 5vw, 5.15rem);
	color: var(--teal);
}

h2 {
	font-size: clamp(1.85rem, 3.6vw, 3.55rem);
}

h3 {
	font-size: 1.32rem;
	letter-spacing: -0.02em;
}

h4 {
	font-size: 1.1rem;
}

p {
	margin: 0 0 20px;
	text-wrap: pretty;
}

address {
	font-style: normal;
}

ul,
ol {
	padding-left: 1.2em;
}

:focus-visible {
	outline: 3px solid var(--gold);
	outline-offset: 4px;
	border-radius: 4px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: fixed;
	z-index: 1000;
	top: 10px;
	left: 10px;
	padding: 12px 18px;
	border-radius: 8px;
	background: var(--ink);
	color: #fff;
	font-weight: 800;
	text-decoration: none;
	transform: translateY(-160%);
	transition: transform 180ms var(--ease);
}

.skip-link:focus {
	color: #fff;
	transform: translateY(0);
}

/* ==========================================================================
   3. Icons and animation
   ========================================================================== */

.sg-icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	color: inherit;
	line-height: 0;
}

.sg-icon svg {
	width: 1.5em;
	height: 1.5em;
	overflow: visible;
}

.sg-icon-inline svg {
	width: 1.15em;
	height: 1.15em;
}

.sg-icon--eyebrow svg {
	width: 1.25em;
	height: 1.25em;
}

/*
 * Icon headings. The icon itself is what animates, so the text beside it never
 * moves and stays comfortable to read. The animation runs once when the icon
 * scrolls into view, and again on hover, so the page feels alive without
 * anything looping forever in the corner of a parent's eye.
 */
.sg-icon-animate svg {
	transform-origin: center;
}

.sg-icon-animate svg > * {
	stroke-dasharray: var(--sg-len, 90);
	stroke-dashoffset: var(--sg-len, 90);
}

.js .sg-is-visible .sg-icon-animate svg > *,
.no-js .sg-icon-animate svg > * {
	animation: sg-draw 900ms var(--ease) forwards;
}

.js .sg-is-visible .sg-icon-animate svg > *:nth-child(2) {
	animation-delay: 120ms;
}

.js .sg-is-visible .sg-icon-animate svg > *:nth-child(3) {
	animation-delay: 240ms;
}

.js .sg-is-visible .sg-icon-animate svg > *:nth-child(n + 4) {
	animation-delay: 340ms;
}

@keyframes sg-draw {
	from {
		stroke-dashoffset: var(--sg-len, 90);
		opacity: 0.35;
	}

	to {
		stroke-dashoffset: 0;
		opacity: 1;
	}
}

/* A gentle lift on the icon when its card is hovered or focused. */
.card-icon .sg-icon svg,
.programme-number .sg-icon svg {
	transition: transform 260ms var(--ease);
}

article:hover .card-icon .sg-icon svg,
article:focus-within .card-icon .sg-icon svg,
.programme-card:hover .programme-number .sg-icon svg,
.programme-card:focus-within .programme-number .sg-icon svg {
	transform: scale(1.12) rotate(-6deg);
}

/* Arrows that slide forward on hover, hinting at where the link goes. */
.sg-icon-slide svg {
	transition: transform 220ms var(--ease);
}

a:hover .sg-icon-slide svg,
a:focus-visible .sg-icon-slide svg {
	transform: translateX(5px);
}

/* The phone icon in the announcement bar gives a small, single nudge. */
.sg-icon-ring svg {
	transition: transform 220ms var(--ease);
}

a:hover .sg-icon-ring svg {
	transform: rotate(-12deg) scale(1.1);
}

/*
 * Scroll-in reveals.
 * The hidden state is applied only under .js, so if the script never loads the
 * content is simply visible. That is the whole safety net: no blank sections.
 */
.js .sg-reveal {
	opacity: 0;
	transition:
		opacity 640ms var(--ease),
		transform 640ms var(--ease);
	transition-delay: var(--sg-delay, 0ms);
	will-change: opacity, transform;
}

.js .sg-reveal--up {
	transform: translate3d(0, var(--reveal-distance), 0);
}

.js .sg-reveal--left {
	transform: translate3d(calc(var(--reveal-distance) * -1), 0, 0);
}

.js .sg-reveal--right {
	transform: translate3d(var(--reveal-distance), 0, 0);
}

.js .sg-reveal--zoom {
	transform: scale(0.94);
}

.js .sg-reveal.sg-is-visible {
	opacity: 1;
	transform: none;
}

/* ==========================================================================
   4. Layout primitives
   ========================================================================== */

.container {
	width: min(var(--container), calc(100% - var(--gutter)));
	margin-inline: auto;
}

.narrow-container {
	width: min(820px, calc(100% - var(--gutter)));
}

.section {
	padding: clamp(64px, 9vw, 126px) 0;
}

.soft-section {
	background: var(--soft);
}

.eyebrow,
.hero-kicker {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 14px;
	color: var(--pink-dark);
	font-size: 0.78rem;
	font-weight: 950;
	letter-spacing: 0.14em;
	line-height: 1.4;
	text-transform: uppercase;
}

.section-heading-center .eyebrow,
.section-heading-center .hero-kicker {
	justify-content: center;
}

.eyebrow-tight {
	margin-top: 28px;
}

.lead {
	color: #455f5d;
	font-size: clamp(1.05rem, 1.7vw, 1.28rem);
	line-height: 1.65;
}

.section-heading {
	max-width: 800px;
	margin-bottom: clamp(34px, 5vw, 54px);
}

.section-heading-center {
	margin-inline: auto;
	text-align: center;
}

.section-heading h2,
.section-heading h3 {
	color: var(--ink);
}

.section-heading p:last-child {
	margin-bottom: 0;
	color: var(--muted);
	font-size: 1.08rem;
}

/* Buttons -------------------------------------------------------------- */

.button,
button.button {
	display: inline-flex;
	min-height: var(--tap);
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 13px 24px;
	border: 2px solid var(--pink);
	border-radius: 999px;
	background: var(--pink);
	color: #fff;
	font-size: 0.94rem;
	font-weight: 900;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition:
		transform 160ms var(--ease),
		background 160ms var(--ease),
		border-color 160ms var(--ease),
		box-shadow 160ms var(--ease);
}

.button:hover,
.button:focus-visible {
	background: var(--pink-dark);
	border-color: var(--pink-dark);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: var(--shadow-sm);
}

.button:active {
	transform: translateY(0);
}

.button-small {
	min-height: 44px;
	padding: 10px 18px;
	font-size: 0.84rem;
}

.button-block {
	width: 100%;
}

.button-outline {
	background: transparent;
	color: var(--teal-dark);
	border-color: var(--teal);
}

.button-outline:hover,
.button-outline:focus-visible {
	background: var(--teal);
	border-color: var(--teal);
	color: #fff;
}

.button-light {
	background: #fff;
	border-color: #fff;
	color: var(--teal-dark);
}

.button-light:hover,
.button-light:focus-visible {
	background: var(--gold);
	border-color: var(--gold);
	color: var(--ink);
}

.button-ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.55);
	color: #fff;
}

.button-ghost:hover,
.button-ghost:focus-visible {
	background: #fff;
	border-color: #fff;
	color: var(--teal-dark);
}

.button-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.centered-button {
	width: fit-content;
	margin: 42px auto 0;
}

.text-link {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	gap: 7px;
	color: var(--pink-dark);
	font-weight: 900;
}

/* ==========================================================================
   5. Header and navigation
   ========================================================================== */

.topbar {
	background: var(--teal-dark);
	color: #fff;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.03em;
}

.topbar-inner {
	min-height: 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding-block: 4px;
}

.topbar-tagline,
.topbar-phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.topbar a {
	color: #fff;
	text-decoration: none;
}

.topbar a:hover {
	color: var(--gold);
}

.site-header {
	position: sticky;
	z-index: 100;
	top: 0;
	background: rgba(255, 255, 255, 0.96);
	border-bottom: 1px solid rgba(50, 138, 134, 0.13);
	backdrop-filter: blur(14px);
	transition: box-shadow 220ms var(--ease);
}

.site-header.is-stuck {
	box-shadow: 0 10px 30px rgba(23, 61, 59, 0.09);
}

.header-inner {
	min-height: 100px;
	display: grid;
	grid-template-columns: 190px 1fr auto auto;
	align-items: center;
	gap: 24px;
}

.brand {
	display: flex;
	align-items: center;
}

.brand img,
.brand .custom-logo {
	width: 150px;
	height: auto;
}

.nav-toggle {
	display: none;
	width: var(--tap);
	height: var(--tap);
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 2px solid var(--teal);
	border-radius: 14px;
	background: #fff;
	color: var(--teal-dark);
	cursor: pointer;
	transition:
		background 160ms var(--ease),
		color 160ms var(--ease);
}

.nav-toggle:hover {
	background: var(--teal-soft);
}

.nav-toggle .sg-icon svg {
	width: 26px;
	height: 26px;
}

.nav-toggle-close {
	display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-open {
	display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-close {
	display: inline-flex;
}

.primary-nav .sg-menu {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: clamp(10px, 2vw, 30px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav .sg-menu > li {
	position: relative;
	display: flex;
	align-items: center;
}

.primary-nav .sg-menu > li > a {
	position: relative;
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	color: #6f8785;
	font-size: 0.96rem;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
}

.primary-nav .sg-menu > li > a::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 6px;
	left: 0;
	height: 3px;
	border-radius: 3px;
	background: var(--pink);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 200ms var(--ease);
}

.primary-nav .sg-menu > li > a:hover,
.primary-nav .sg-menu > li > a:focus-visible,
.primary-nav .sg-menu > li > a[aria-current="page"],
.primary-nav .sg-menu > li.current-menu-item > a {
	color: var(--pink);
}

.primary-nav .sg-menu > li > a:hover::after,
.primary-nav .sg-menu > li > a:focus-visible::after,
.primary-nav .sg-menu > li > a[aria-current="page"]::after,
.primary-nav .sg-menu > li.current-menu-item > a::after {
	transform: scaleX(1);
}

/* Dropdowns ------------------------------------------------------------ */

.sg-dropdown-toggle {
	display: inline-flex;
	width: 34px;
	height: 34px;
	align-items: center;
	justify-content: center;
	margin-left: 2px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #6f8785;
	cursor: pointer;
	transition:
		transform 200ms var(--ease),
		background 160ms var(--ease);
}

.sg-dropdown-toggle:hover {
	background: var(--teal-soft);
	color: var(--teal-dark);
}

.sg-dropdown-toggle[aria-expanded="true"] {
	transform: rotate(180deg);
}

.primary-nav .sub-menu {
	position: absolute;
	z-index: 20;
	top: calc(100% + 10px);
	left: 50%;
	min-width: 230px;
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 10px;
	border: 1px solid var(--border);
	border-radius: 18px;
	background: #fff;
	list-style: none;
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 8px);
	transition:
		opacity 180ms var(--ease),
		transform 180ms var(--ease),
		visibility 180ms;
}

.primary-nav .sub-menu a {
	display: flex;
	min-height: 44px;
	align-items: center;
	padding: 8px 14px;
	border-radius: 12px;
	color: var(--teal-dark);
	font-weight: 800;
	text-decoration: none;
}

.primary-nav .sub-menu a:hover,
.primary-nav .sub-menu a:focus-visible {
	background: var(--teal-soft);
	color: var(--pink-dark);
}

.primary-nav .sg-has-dropdown.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

/*
 * Without JavaScript there is no way to open a dropdown by click, so it opens
 * on hover and on keyboard focus instead. Nothing becomes unreachable.
 */
.no-js .primary-nav .sg-has-dropdown:hover > .sub-menu,
.no-js .primary-nav .sg-has-dropdown:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.no-js .sg-dropdown-toggle {
	display: none;
}

.nav-drawer-footer {
	display: none;
}

.nav-overlay {
	position: fixed;
	z-index: 95;
	inset: 0;
	background: rgba(23, 61, 59, 0.42);
	opacity: 0;
	transition: opacity 240ms var(--ease);
}

.nav-overlay.is-visible {
	opacity: 1;
}

.header-cta {
	white-space: nowrap;
}

/* Breadcrumbs ---------------------------------------------------------- */

.breadcrumbs {
	padding: 14px 0;
	border-bottom: 1px solid var(--border);
	background: #fff;
	font-size: 0.85rem;
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.breadcrumbs li + li::before {
	content: "/";
	margin-right: 8px;
	color: var(--border);
}

.breadcrumbs a {
	font-weight: 800;
}

.breadcrumbs [aria-current="page"] {
	color: var(--muted);
}

/* ==========================================================================
   6. Page sections
   ========================================================================== */

.home-hero,
.page-hero {
	position: relative;
	overflow: hidden;
	background: #f8fafa;
}

.home-hero-grid {
	min-height: 720px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
	align-items: center;
	gap: 58px;
	padding-block: 76px 96px;
}

.hero-images {
	position: relative;
	min-height: 560px;
}

.hero-image-large,
.hero-image-small {
	position: absolute;
	object-fit: cover;
	border-radius: 50%;
	box-shadow: var(--shadow);
}

.hero-image-large {
	top: 0;
	right: 0;
	width: min(440px, 78%);
	aspect-ratio: 1;
}

.hero-image-small {
	bottom: 2px;
	left: 0;
	width: min(310px, 56%);
	aspect-ratio: 1;
	border: 14px solid #f8fafa;
}

.hero-copy h1 {
	margin-bottom: 24px;
}

.programme-line {
	margin: 26px 0;
	color: var(--teal-dark);
	font-weight: 950;
}

.page-hero-grid {
	min-height: 560px;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
	align-items: center;
	gap: 70px;
	padding-block: 76px;
}

.page-hero h1 {
	font-size: clamp(2.3rem, 5vw, 4.8rem);
}

.page-hero-image {
	padding: 26px;
	border-radius: 50%;
	background: var(--pink);
}

.page-hero-image img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 50%;
	border: 12px solid #f8fafa;
}

.page-hero-simple {
	padding-block: clamp(48px, 7vw, 88px);
	text-align: center;
}

.page-hero-simple .eyebrow {
	justify-content: center;
}

.prose-intro {
	text-align: center;
}

.prose-intro .section-heading {
	margin-bottom: 24px;
}

.split-layout {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	align-items: center;
	gap: clamp(40px, 7vw, 96px);
}

.split-layout-reverse > :first-child {
	order: 2;
}

.color-panel {
	padding: clamp(20px, 3vw, 34px);
	border-radius: var(--radius-lg);
	background: var(--pink);
}

.color-panel-teal {
	background: var(--teal);
}

.color-panel img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: calc(var(--radius-lg) - 10px);
}

/* Card grids ------------------------------------------------------------ */

.reason-grid,
.value-pill-grid,
.areas-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.areas-grid {
	grid-template-columns: repeat(4, 1fr);
}

.reason-grid article,
.areas-grid article,
.value-pill-grid article {
	padding: 30px;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: #fff;
	transition:
		transform 260ms var(--ease),
		box-shadow 260ms var(--ease),
		border-color 260ms var(--ease);
}

.reason-grid article:hover,
.areas-grid article:hover,
.value-pill-grid article:hover,
.reason-grid article:focus-within,
.areas-grid article:focus-within,
.value-pill-grid article:focus-within {
	transform: translateY(-6px);
	border-color: rgba(245, 66, 136, 0.35);
	box-shadow: var(--shadow);
}

.areas-grid article {
	border-top: 5px solid var(--teal);
}

.value-pill-grid article:nth-child(2n) {
	background: var(--pink-soft);
}

.card-icon {
	display: inline-flex;
	width: 52px;
	height: 52px;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
	border-radius: 16px;
	background: var(--pink-soft);
	color: var(--pink-dark);
}

.card-icon .sg-icon svg {
	width: 26px;
	height: 26px;
}

.areas-grid .card-icon,
.three-feature-grid .card-icon {
	background: var(--teal-soft);
	color: var(--teal-dark);
}

.reason-grid h3,
.areas-grid h3,
.value-pill-grid h3,
.principles-grid h3 {
	color: var(--teal-dark);
}

.reason-grid p,
.areas-grid p,
.value-pill-grid p,
.principles-grid p {
	margin-bottom: 0;
	color: var(--muted);
}

.principles-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
}

.principles-grid article {
	padding: 28px 24px;
	border-top: 5px solid var(--pink);
	border-radius: 0 0 18px 18px;
	background: #fff;
	transition:
		transform 260ms var(--ease),
		box-shadow 260ms var(--ease);
}

.principles-grid article:hover,
.principles-grid article:focus-within {
	transform: translateY(-6px);
	box-shadow: var(--shadow);
}

.principles-grid p {
	font-size: 0.94rem;
}

.values-list-section {
	background: var(--teal-soft);
}

.three-feature-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.three-feature-grid article {
	padding: clamp(30px, 5vw, 60px);
	border-radius: var(--radius-lg);
	background: var(--teal-soft);
}

.three-feature-grid article:nth-child(2) {
	background: var(--pink-soft);
}

.three-feature-grid article:nth-child(3) {
	background: #fff7df;
}

.three-feature-grid h2 {
	font-size: clamp(1.6rem, 3vw, 2.7rem);
}

.three-feature-grid p:last-child {
	margin-bottom: 0;
}

.vision-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

.vision-card {
	padding: clamp(30px, 5vw, 60px);
	border-radius: var(--radius-lg);
}

.vision-card h2 {
	font-size: clamp(1.6rem, 3vw, 2.7rem);
}

.vision-card-pink {
	background: var(--pink);
	color: #fff;
}

.vision-card-teal {
	background: var(--teal);
	color: #fff;
}

.vision-card h2,
.vision-card .eyebrow {
	color: #fff;
}

.vision-card p:last-child {
	margin-bottom: 0;
}

/* Programmes ------------------------------------------------------------ */

.programmes-section {
	background: var(--teal);
	color: #fff;
}

.programmes-section .section-heading h2,
.programmes-section .section-heading p:last-child {
	color: #fff;
}

.programmes-section .eyebrow {
	color: #ffd7e7;
}

.programme-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 20px;
}

.programme-card {
	grid-column: span 2;
	min-height: 340px;
	display: flex;
	flex-direction: column;
	padding: 30px;
	border-radius: 28px;
	background: #fff;
	color: var(--ink);
	box-shadow: 0 14px 38px rgba(21, 77, 73, 0.16);
	transition:
		transform 260ms var(--ease),
		box-shadow 260ms var(--ease);
}

.programme-card:hover,
.programme-card:focus-within {
	transform: translateY(-7px);
	box-shadow: 0 24px 52px rgba(21, 77, 73, 0.24);
}

.programme-card:nth-child(4) {
	grid-column: 2 / span 2;
}

.programme-card h3 {
	margin-bottom: 8px;
	color: var(--teal-dark);
	font-size: 1.5rem;
}

.programme-card p {
	color: var(--muted);
}

.programme-card .card-link {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	gap: 7px;
	margin-top: auto;
	color: var(--pink-dark);
	font-weight: 900;
	text-decoration: none;
}

.programme-card .card-link:hover {
	text-decoration: underline;
}

.programme-number {
	display: inline-flex;
	width: 52px;
	height: 52px;
	align-items: center;
	justify-content: center;
	margin-bottom: 22px;
	border-radius: 50%;
	background: var(--pink-soft);
	color: var(--pink-dark);
}

.programme-number .sg-icon svg {
	width: 26px;
	height: 26px;
}

.programme-age {
	margin-bottom: 12px;
	font-size: 0.9rem;
	font-weight: 900;
}

/* Lists and notes ------------------------------------------------------- */

.check-list {
	display: grid;
	gap: 12px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.check-list li {
	display: flex;
	align-items: flex-start;
	gap: 11px;
}

.check-list .check-mark {
	margin-top: 6px;
	color: var(--pink);
}

.area-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.area-list li {
	padding: 7px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.18);
	font-size: 0.86rem;
	font-weight: 800;
}

.language-note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 11px;
	max-width: 700px;
	margin: 36px auto 0;
	padding: 16px 22px;
	border-left: 4px solid var(--gold);
	border-radius: 8px;
	background: #fff9e9;
	font-weight: 800;
	text-align: center;
}

.language-note-left {
	margin-left: 0;
	justify-content: flex-start;
	text-align: left;
}

.value-card {
	padding: clamp(30px, 5vw, 62px);
	border-radius: var(--radius-lg);
	background: var(--pink-soft);
}

.value-card h3 {
	color: var(--teal-dark);
	font-size: clamp(1.6rem, 3vw, 2.6rem);
}

/* Gallery --------------------------------------------------------------- */

.gallery-preview {
	overflow: hidden;
}

.gallery-strip {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 14px;
}

.gallery-strip-short {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-strip img {
	width: 100%;
	height: 360px;
	object-fit: cover;
	border-radius: 90px;
	transition:
		transform 380ms var(--ease),
		box-shadow 380ms var(--ease);
}

.gallery-strip img:hover {
	transform: scale(1.03);
	box-shadow: var(--shadow);
}

.masonry-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.masonry-gallery figure {
	margin: 0;
	overflow: hidden;
	border-radius: var(--radius-md);
	background: #fff;
	box-shadow: var(--shadow);
	transition: transform 300ms var(--ease);
}

.masonry-gallery figure:hover {
	transform: translateY(-6px);
}

.masonry-gallery img {
	width: 100%;
	height: 420px;
	object-fit: cover;
	transition: transform 500ms var(--ease);
}

.masonry-gallery figure:hover img {
	transform: scale(1.05);
}

.masonry-gallery figcaption {
	padding: 22px;
	color: var(--muted);
	font-weight: 750;
}

.masonry-gallery .gallery-wide {
	grid-column: span 2;
}

.masonry-gallery .gallery-wide img {
	height: 420px;
}

/* Events ---------------------------------------------------------------- */

.events-section {
	padding-top: 0;
}

.events-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.event-card {
	min-height: 300px;
	padding: 34px;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	transition:
		transform 260ms var(--ease),
		box-shadow 260ms var(--ease);
}

.event-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow);
}

.event-card h2 {
	font-size: 1.6rem;
}

.event-card p:last-child {
	margin-bottom: 0;
	color: var(--muted);
}

.event-card-featured {
	grid-column: span 2;
	background: var(--pink);
	color: #fff;
}

.event-card-featured h2,
.event-card-featured p:last-child {
	color: #fff;
}

.event-card-featured .card-icon {
	background: rgba(255, 255, 255, 0.22);
	color: #fff;
}

.upcoming-grid {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: clamp(36px, 6vw, 70px);
	align-items: center;
}

.event-template {
	padding: clamp(26px, 4vw, 36px);
	border-radius: var(--radius-md);
	background: #fff;
	box-shadow: var(--shadow);
}

/* Calls to action ------------------------------------------------------- */

.visit-cta {
	padding: clamp(60px, 8vw, 104px) 0;
	background: var(--teal-dark);
	color: #fff;
}

.visit-cta-inner {
	display: grid;
	grid-template-columns: 1.3fr auto;
	align-items: center;
	gap: clamp(30px, 5vw, 50px);
}

.visit-cta h2 {
	color: #fff;
}

.visit-cta .eyebrow {
	color: #ffd7e7;
}

.visit-cta p:last-child {
	margin-bottom: 0;
}

/* FAQs ------------------------------------------------------------------ */

.faq-list {
	border-top: 1px solid var(--border);
}

.faq-list details {
	border-bottom: 1px solid var(--border);
}

.faq-list summary {
	display: flex;
	min-height: var(--tap);
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 4px;
	color: var(--ink);
	font-family: var(--font-head);
	font-size: 1.02rem;
	font-weight: 850;
	line-height: 1.4;
	cursor: pointer;
	list-style: none;
}

.faq-list summary::-webkit-details-marker {
	display: none;
}

.faq-list summary:hover {
	color: var(--pink-dark);
}

.faq-marker {
	color: var(--pink);
	transition: transform 220ms var(--ease);
}

.faq-list details[open] .faq-marker {
	transform: rotate(180deg);
}

.faq-answer {
	padding: 0 30px 22px 4px;
}

.faq-answer p {
	margin: 0;
	color: var(--muted);
}

.faq-contact {
	margin-top: 30px;
	text-align: center;
}

/* Contact --------------------------------------------------------------- */

.contact-details-section {
	padding: 0;
	transform: translateY(-28px);
}

.contact-details-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-radius: var(--radius-md);
	background: #fff;
	box-shadow: var(--shadow);
}

.contact-details-grid article {
	padding: 34px;
	border-right: 1px solid var(--border);
}

.contact-details-grid article:last-child {
	border-right: 0;
}

.contact-details-grid h2 {
	color: var(--teal-dark);
	font-size: 1.45rem;
}

.contact-details-grid p:last-child,
.contact-details-grid address {
	margin-bottom: 0;
	color: var(--muted);
}

.contact-form-grid {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: clamp(36px, 5vw, 70px);
	align-items: start;
}

.contact-aside {
	margin-top: 40px;
	padding-top: 30px;
	border-top: 1px solid var(--border);
}

.contact-aside strong {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 8px;
}

.location-section {
	background: var(--teal);
	color: #fff;
}

.map-card {
	padding: clamp(30px, 5vw, 60px);
	border-radius: var(--radius-lg);
	background: var(--teal-dark);
}

.map-card h2,
.map-card .eyebrow {
	color: #fff;
}

.location-address {
	font-size: 1.15rem;
}

.location-address a,
.location-section a {
	color: #fff;
}

.location-address .eyebrow {
	color: #ffd7e7;
}

.footer-line {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.footer-line .sg-icon {
	margin-top: 6px;
	color: var(--pink);
}

.location-section .footer-line .sg-icon {
	color: #ffd7e7;
}

/* Blog fallbacks -------------------------------------------------------- */

.entry-content > * {
	max-width: 100%;
}

.entry-thumbnail {
	margin-bottom: 28px;
	border-radius: var(--radius-md);
}

.post-list {
	display: grid;
	gap: 22px;
}

.post-card {
	padding: 30px;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
}

.post-meta {
	color: var(--muted);
	font-size: 0.86rem;
}

.pagination {
	margin-top: 36px;
}

.pagination .page-numbers {
	display: inline-flex;
	min-width: 44px;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 0 10px;
	border-radius: 12px;
	font-weight: 800;
	text-decoration: none;
}

.pagination .page-numbers.current {
	background: var(--pink);
	color: #fff;
}

/* Section tints and hero variants --------------------------------------- */

/*
 * Alternating backgrounds give each section a visible edge so a long page
 * reads as distinct chapters rather than one continuous scroll.
 */

.intro-section {
	background: #fff;
}

.values-section {
	background: var(--pink-soft);
}

.gallery-page-section {
	background: #fff;
}

.faq-section {
	background: var(--soft);
}

.faq-section .faq-list details {
	background: #fff;
}

.curriculum-hero {
	background:
		radial-gradient(circle at 82% 18%, rgba(244, 187, 56, 0.16), transparent 46%),
		linear-gradient(160deg, var(--teal-soft) 0%, #fff 62%);
}

.page-hero-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.site-main {
	display: block;
}

.custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.page-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
	font-weight: 800;
}

.footer-explore,
.footer-visit {
	min-width: 0;
}

/* ==========================================================================
   7. Forms
   ========================================================================== */

/*
 * Every text control is 16px or larger. Below 16px iOS Safari zooms the whole
 * page the moment a field receives focus, which throws the layout sideways and
 * is the single most common mobile form complaint.
 */

.visit-form-wrap {
	padding: clamp(26px, 4vw, 44px);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: #fff;
	box-shadow: var(--shadow);
}

.visit-form {
	display: grid;
	gap: 18px;
}

.form-field {
	display: grid;
	gap: 8px;
	margin: 0;
}

.form-field label {
	color: var(--ink);
	font-family: var(--font-head);
	font-size: 0.95rem;
	font-weight: 800;
}

.required {
	color: var(--pink);
}

.optional {
	color: var(--muted);
	font-weight: 700;
}

.visit-form input[type="text"],
.visit-form input[type="tel"],
.visit-form input[type="email"],
.visit-form select,
.visit-form textarea,
.search-field {
	width: 100%;
	min-height: var(--tap);
	padding: 12px 16px;
	border: 2px solid var(--border);
	border-radius: 14px;
	background: #fff;
	color: var(--ink);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	transition:
		border-color 160ms var(--ease),
		box-shadow 160ms var(--ease);
	-webkit-appearance: none;
	appearance: none;
}

.visit-form textarea {
	min-height: 130px;
	resize: vertical;
}

.visit-form select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e7371' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 20px 20px;
	padding-right: 44px;
}

.visit-form input:focus,
.visit-form select:focus,
.visit-form textarea:focus,
.search-field:focus {
	border-color: var(--teal);
	outline: none;
	box-shadow: 0 0 0 4px rgba(50, 138, 134, 0.16);
}

.visit-form [aria-invalid="true"] {
	border-color: var(--pink-dark);
}

.visit-form [aria-invalid="true"]:focus {
	box-shadow: 0 0 0 4px rgba(217, 45, 112, 0.16);
}

.field-error {
	color: var(--pink-dark);
	font-size: 0.86rem;
	font-weight: 800;
}

.form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

/*
 * The honeypot. Hidden from people and from screen readers, but a bot that
 * fills every field in the form will fill this one too and be discarded.
 */
.form-trap {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	border: 0;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.form-note {
	margin: 0;
	color: var(--muted);
	font-size: 0.86rem;
}

.form-message {
	margin-bottom: 22px;
	padding: 18px 20px;
	border-radius: var(--radius-md);
	font-weight: 700;
}

.form-message h2,
.form-message h3 {
	margin: 0 0 6px;
	font-size: 1.15rem;
}

.form-message p:last-child {
	margin-bottom: 0;
}

.form-message-success {
	border: 2px solid rgba(50, 138, 134, 0.35);
	background: var(--teal-soft);
	color: var(--teal-dark);
}

.form-message-error {
	border: 2px solid rgba(217, 45, 112, 0.3);
	background: var(--pink-soft);
	color: var(--pink-dark);
}

.form-message-error ul {
	margin: 8px 0 0;
	padding-left: 20px;
}

.search-form {
	display: flex;
	gap: 10px;
	margin-top: 30px;
}

.search-form .button {
	flex-shrink: 0;
}

/* ==========================================================================
   8. Footer and floating contact
   ========================================================================== */

.site-footer {
	position: relative;
	background: var(--teal-dark);
	color: rgba(255, 255, 255, 0.86);
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.25fr 0.75fr 1fr;
	gap: clamp(30px, 5vw, 64px);
	padding-block: clamp(48px, 6vw, 78px);
}

.footer-logo {
	width: 168px;
	height: auto;
	margin-bottom: 20px;
	padding: 12px 16px;
	border-radius: 18px;
	background: #fff;
}

.site-footer h2 {
	margin-bottom: 18px;
	color: #fff;
	font-size: 1.12rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.site-footer p,
.site-footer address {
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.96rem;
	font-style: normal;
	line-height: 1.75;
}

.site-footer a {
	color: #fff;
	text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
	color: var(--gold);
	text-decoration: underline;
}

.site-footer .footer-line .sg-icon {
	flex-shrink: 0;
	color: var(--gold);
}

.footer-social,
.footer-links,
.hours-list {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-social {
	margin-top: 20px;
}

.footer-social a,
.footer-links a {
	display: inline-flex;
	min-height: 40px;
	align-items: center;
	gap: 9px;
	font-weight: 700;
}

.hours-list {
	margin-top: 18px;
	font-size: 0.94rem;
}

.hours-list li {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	justify-content: space-between;
	padding: 6px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hours-list li:last-child {
	border-bottom: 0;
}

.hours-list strong {
	color: #fff;
}

.footer-note {
	margin-top: 16px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.88rem;
}

/*
 * The bottom bar is white on purpose. The logo above it is dark teal and pink
 * with a transparent background, so white gives the strongest contrast and the
 * small print stays comfortably readable.
 */
.footer-bottom {
	background: #fff;
	border-top: 1px solid var(--border);
	color: var(--ink);
}

.footer-bottom-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	align-items: center;
	justify-content: space-between;
	min-height: 66px;
	padding-block: 12px;
	font-size: 0.9rem;
	font-weight: 700;
}

.footer-bottom span {
	color: var(--ink);
}

.back-to-top {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	gap: 8px;
	padding: 8px 18px;
	border: 2px solid var(--teal);
	border-radius: 999px;
	background: #fff;
	color: var(--teal-dark);
	font-family: var(--font-head);
	font-size: 0.88rem;
	font-weight: 800;
	cursor: pointer;
	transition:
		background 160ms var(--ease),
		color 160ms var(--ease),
		transform 160ms var(--ease);
}

.back-to-top:hover,
.back-to-top:focus-visible {
	background: var(--teal);
	color: #fff;
	transform: translateY(-2px);
}

/* Floating WhatsApp ----------------------------------------------------- */

/*
 * Pinned clear of the iOS home indicator with env(safe-area-inset-bottom) so it
 * never sits under the browser chrome on a phone.
 */
.floating-contact {
	position: fixed;
	z-index: 90;
	right: clamp(16px, 3vw, 30px);
	bottom: calc(clamp(16px, 3vw, 30px) + env(safe-area-inset-bottom, 0px));
	display: inline-flex;
	min-height: 56px;
	align-items: center;
	gap: 10px;
	padding: 0 22px;
	border-radius: 999px;
	background: #25d366;
	color: #08351a;
	font-family: var(--font-head);
	font-size: 0.95rem;
	font-weight: 800;
	text-decoration: none;
	box-shadow: 0 14px 34px rgba(37, 211, 102, 0.42);
	transition:
		transform 200ms var(--ease),
		box-shadow 200ms var(--ease);
}

.floating-contact:hover,
.floating-contact:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 18px 40px rgba(37, 211, 102, 0.5);
}

.floating-contact .sg-icon svg {
	width: 24px;
	height: 24px;
}

/* ==========================================================================
   9. Responsive: desktop, laptop, tablet, mobile
   ========================================================================== */

/* Large desktop --------------------------------------------------------- */

@media (min-width: 1401px) {
	:root {
		--container: 1240px;
	}

	.home-hero,
	.page-hero {
		padding-block: 96px 104px;
	}
}

/* Laptop ---------------------------------------------------------------- */

@media (max-width: 1400px) {
	:root {
		--gutter: 44px;
	}

	.header-inner {
		gap: 18px;
	}

	.principles-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.programme-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.gallery-strip {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* Small laptop and large tablet ----------------------------------------- */

@media (max-width: 1200px) {
	.header-inner {
		grid-template-columns: 160px 1fr auto;
		min-height: 88px;
	}

	.brand img,
	.brand .custom-logo {
		width: 130px;
	}

	.header-cta {
		display: none;
	}

	.areas-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.upcoming-grid,
	.contact-form-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.visit-cta-inner {
		grid-template-columns: minmax(0, 1fr);
		text-align: center;
	}

	.visit-cta-inner .button-row {
		justify-content: center;
	}
}

/*
 * Tablet and below: the horizontal menu becomes a drawer.
 *
 * The breakpoint is deliberately wide. Six items plus a call-to-action stop
 * fitting comfortably well before a phone width, and a cramped menu is harder
 * to use than a drawer.
 */

@media (max-width: 1060px) {
	:root {
		--gutter: 36px;
		--reveal-distance: 20px;
	}

	.topbar-tagline {
		display: none;
	}

	.topbar-inner {
		justify-content: center;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.primary-nav {
		position: fixed;
		z-index: 96;
		top: 0;
		right: 0;
		bottom: 0;
		width: min(360px, 88vw);
		display: flex;
		flex-direction: column;
		gap: 10px;
		padding: 26px 22px calc(30px + env(safe-area-inset-bottom, 0px));
		overflow-y: auto;
		background: #fff;
		box-shadow: -18px 0 44px rgba(23, 61, 59, 0.16);
		transform: translate3d(100%, 0, 0);
		visibility: hidden;
		transition:
			transform 280ms var(--ease),
			visibility 280ms;
		-webkit-overflow-scrolling: touch;
	}

	.primary-nav.is-open {
		transform: translate3d(0, 0, 0);
		visibility: visible;
	}

	.primary-nav .sg-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
		margin-top: 44px;
	}

	.primary-nav .sg-menu > li {
		flex-wrap: wrap;
		justify-content: space-between;
		border-bottom: 1px solid var(--border);
	}

	.primary-nav .sg-menu > li > a {
		flex: 1;
		min-height: 54px;
		font-size: 1.05rem;
	}

	.primary-nav .sg-menu > li > a::after {
		display: none;
	}

	.sg-dropdown-toggle {
		width: var(--tap);
		height: var(--tap);
		border-radius: 12px;
		background: var(--teal-soft);
	}

	/* In the drawer the submenu pushes the list down instead of floating. */
	.primary-nav .sub-menu {
		position: static;
		width: 100%;
		display: none;
		padding: 4px 0 12px 12px;
		border: 0;
		border-left: 3px solid var(--teal-soft);
		border-radius: 0;
		transform: none;
		opacity: 1;
		visibility: visible;
		box-shadow: none;
	}

	.primary-nav .sg-has-dropdown.is-open > .sub-menu {
		display: grid;
		transform: none;
	}

	.no-js .primary-nav .sub-menu {
		display: grid;
	}

	.nav-drawer-footer {
		display: grid;
		gap: 12px;
		margin-top: auto;
		padding-top: 24px;
	}

	.nav-drawer-footer .button {
		justify-content: center;
	}

	.nav-drawer-call {
		display: inline-flex;
		min-height: var(--tap);
		align-items: center;
		justify-content: center;
		gap: 9px;
		border-radius: 999px;
		border: 2px solid var(--teal);
		color: var(--teal-dark);
		font-family: var(--font-head);
		font-weight: 800;
		text-decoration: none;
	}

	/* The drawer is closed, so nothing inside it may be focusable. */
	body:not(.sg-nav-open) .primary-nav {
		pointer-events: none;
	}

	body.sg-nav-open .primary-nav {
		pointer-events: auto;
	}

	body.sg-nav-open {
		overflow: hidden;
	}

	.home-hero-grid,
	.page-hero-grid,
	.split-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 34px;
	}

	.split-layout-reverse > :first-child {
		order: 0;
	}

	.reason-grid,
	.value-pill-grid,
	.three-feature-grid,
	.events-grid,
	.contact-details-grid,
	.principles-grid,
	.programme-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.footer-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.footer-about {
		grid-column: 1 / -1;
	}
}

/* Large phone ----------------------------------------------------------- */

@media (max-width: 820px) {
	:root {
		--gutter: 32px;
		--radius-lg: 26px;
		--radius-md: 18px;
	}

	.section {
		padding-block: clamp(46px, 9vw, 64px);
	}

	.home-hero,
	.page-hero {
		padding-block: 46px 54px;
	}

	.hero-images {
		justify-content: center;
	}

	.masonry-gallery,
	.gallery-strip,
	.gallery-strip-short {
		grid-template-columns: repeat(2, 1fr);
	}

	.masonry-gallery .gallery-wide {
		grid-column: 1 / -1;
	}

	.form-row {
		grid-template-columns: minmax(0, 1fr);
	}

	.faq-list summary {
		font-size: 1rem;
	}

	.floating-contact {
		min-height: 54px;
		padding: 0 18px;
	}
}

/* Phone ----------------------------------------------------------------- */

@media (max-width: 560px) {
	:root {
		--gutter: 28px;
		--tap: 50px;
	}

	body {
		font-size: 1rem;
		line-height: 1.75;
	}

	h1 {
		font-size: clamp(1.85rem, 8vw, 2.3rem);
		line-height: 1.2;
	}

	h2 {
		font-size: clamp(1.45rem, 6.4vw, 1.8rem);
		line-height: 1.28;
	}

	h3 {
		font-size: 1.15rem;
	}

	.lead {
		font-size: 1.03rem;
	}

	p {
		margin-bottom: 16px;
	}

	.section {
		padding-block: 42px;
	}

	.section-heading {
		margin-bottom: 26px;
	}

	/*
	 * One column. Two 140px-wide cards side by side on a phone are unreadable,
	 * and the gallery in particular needs the full width to show faces.
	 */
	.reason-grid,
	.areas-grid,
	.value-pill-grid,
	.principles-grid,
	.three-feature-grid,
	.vision-grid,
	.programme-grid,
	.events-grid,
	.contact-details-grid,
	.masonry-gallery,
	.gallery-strip,
	.gallery-strip-short,
	.footer-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.masonry-gallery img,
	.gallery-strip img {
		aspect-ratio: 4 / 3;
		height: auto;
		object-fit: cover;
	}

	.masonry-gallery figure,
	.gallery-strip figure {
		grid-row: auto;
	}

	.reason-grid article,
	.areas-grid article,
	.value-pill-grid article,
	.principles-grid article,
	.three-feature-grid article,
	.event-card,
	.programme-card,
	.vision-card,
	.post-card {
		padding: 24px;
	}

	/* Full-width buttons: an easier target than a row of small ones. */
	.button-row {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.button,
	.button-small {
		width: 100%;
		min-height: var(--tap);
		justify-content: center;
		padding-inline: 20px;
		font-size: 1rem;
	}

	.button-row .button {
		width: 100%;
	}

	.back-to-top,
	.nav-toggle,
	.floating-contact {
		width: auto;
	}

	.topbar {
		font-size: 0.76rem;
	}

	.topbar-phone {
		min-height: 40px;
	}

	.header-inner {
		min-height: 76px;
		gap: 12px;
	}

	.brand img,
	.brand .custom-logo {
		width: 112px;
	}

	.visit-form-wrap,
	.map-card {
		padding: 22px;
	}

	.footer-grid {
		gap: 34px;
	}

	.footer-about {
		grid-column: auto;
	}

	.footer-bottom-inner {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
	}

	/*
	 * The label is dropped and the button becomes a circle so it never covers
	 * the content or the back-to-top control on a narrow screen.
	 */
	.floating-contact {
		right: 16px;
		bottom: calc(16px + env(safe-area-inset-bottom, 0px));
		width: 58px;
		min-height: 58px;
		padding: 0;
		justify-content: center;
	}

	.floating-contact-label {
		position: absolute !important;
		width: 1px;
		height: 1px;
		margin: -1px;
		padding: 0;
		overflow: hidden;
		border: 0;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.search-form {
		flex-direction: column;
	}

	.search-form .button {
		width: 100%;
	}
}

@media (max-width: 380px) {
	:root {
		--gutter: 24px;
	}

	.card-icon {
		width: 52px;
		height: 52px;
	}
}

/* Landscape phones: give the drawer room to scroll. */
@media (max-height: 460px) and (max-width: 1060px) {
	.primary-nav {
		padding-block: 18px;
	}

	.primary-nav .sg-menu {
		margin-top: 34px;
	}
}

/* ==========================================================================
   10. Reduced motion and no-JavaScript fallbacks
   ========================================================================== */

/*
 * A visitor who has asked their system to reduce motion gets the finished
 * state instantly: everything visible, nothing sliding, drawing or floating.
 */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}

	.js .sg-reveal,
	.js .sg-reveal--up,
	.js .sg-reveal--left,
	.js .sg-reveal--right,
	.js .sg-reveal--zoom {
		opacity: 1;
		transform: none;
	}

	.sg-icon-animate svg > * {
		stroke-dasharray: none;
		stroke-dashoffset: 0;
	}

	.sg-icon-float,
	.sg-icon-ring,
	.sg-icon-pulse {
		animation: none;
	}

	.reason-grid article:hover,
	.areas-grid article:hover,
	.value-pill-grid article:hover,
	.principles-grid article:hover,
	.event-card:hover,
	.programme-card:hover,
	.button:hover,
	.back-to-top:hover,
	.floating-contact:hover {
		transform: none;
	}

	.primary-nav {
		transition: none;
	}
}

/*
 * No JavaScript, or JavaScript that failed to run: .sg-reveal never applies its
 * hidden state because every hiding rule is scoped to .js, which only the head
 * script adds. The drawer would be unreachable, so the menu falls back to a
 * plain wrapped list in the normal flow.
 */
.no-js .sg-reveal {
	opacity: 1;
	transform: none;
}

.no-js .nav-toggle,
.no-js .nav-overlay,
.no-js .back-to-top {
	display: none;
}

@media (max-width: 1060px) {
	.no-js .primary-nav {
		position: static;
		width: 100%;
		grid-column: 1 / -1;
		padding: 0 0 16px;
		overflow: visible;
		background: transparent;
		transform: none;
		visibility: visible;
		box-shadow: none;
		pointer-events: auto;
	}

	.no-js .primary-nav .sg-menu {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 4px 18px;
		margin-top: 0;
	}

	.no-js .primary-nav .sg-menu > li {
		border-bottom: 0;
	}

	.no-js .nav-drawer-footer {
		display: none;
	}
}

/*
 * IntersectionObserver missing (very old browsers): main.js adds this class and
 * the reveal states are cancelled outright rather than left half-applied.
 */
.sg-no-observer .sg-reveal {
	opacity: 1 !important;
	transform: none !important;
}

.sg-no-observer .sg-icon-animate svg > * {
	stroke-dasharray: none;
	stroke-dashoffset: 0;
}

/* Print: drop the furniture, keep the words and the phone number. */
@media print {
	.topbar,
	.site-header,
	.nav-overlay,
	.floating-contact,
	.back-to-top,
	.visit-cta,
	.skip-link {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
	}

	.site-footer {
		background: #fff;
		color: #000;
	}

	.site-footer a,
	.site-footer p,
	.site-footer address {
		color: #000;
	}
}
