/*
 * WHS Schools public website. Plain CSS, no build step.
 * Colours and font match the app (src/styles/index.css, D-043).
 */
@font-face { font-family: Poppins; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: Poppins; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: Poppins; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: Poppins; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/poppins-latin-700-normal.woff2") format("woff2"); }

:root {
	--navy: #0b2447;
	--blue: #1764e0;
	--blue-dark: #1253bd;
	--muted: #4a5875;
	--ground: #f4f6fa;
	--surface-muted: #eef1f6;
	--border: #d8dee9;
	--border-strong: #c3cad8;
	--green: #1f6b45;
	--white: #ffffff;
	--wide: 1200px;
	--gutter: 24px;
	--section: clamp(3rem, 7vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--white);
	color: var(--navy);
	font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:where(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 88px; }

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; font-weight: 700; }
h1 { font-size: clamp(2.125rem, 4.5vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.625rem, 3vw, 2rem); }
h3 { font-size: 1.1875rem; }
p { margin: 0; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--navy); color: var(--white); }
.skip-link:focus { left: 8px; }

.wrap { width: 100%; max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.band { background: var(--ground); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stack { display: flex; flex-direction: column; gap: 1.25rem; }
.lead { font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.intro { max-width: 720px; display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.75rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font-size: 1.25rem; line-height: 1; white-space: nowrap; }
.brand img { width: 32px; height: 32px; }
.brand strong { font-weight: 700; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--muted); font-weight: 500; text-decoration: none; }
.nav a:hover { color: var(--navy); background: var(--ground); }
@media (max-width: 640px) { .nav .nav-section { display: none; } }

/* ---------- Buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 8px; background: var(--blue); color: var(--white); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--blue-dark); color: var(--white); }
.button.small { min-height: 44px; padding: 0 18px; }
.button.outline { background: var(--white); border-color: var(--border-strong); color: var(--navy); }
.button.outline:hover { background: var(--ground); color: var(--navy); }
.nav a.button { margin-left: 6px; color: var(--white); font-weight: 600; }
.nav a.button:hover { background: var(--blue-dark); }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-text { flex: 1 1 420px; min-width: 0; }
.hero-media { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.eyebrow { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); }
.sample { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--navy); }
.sample iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sample-start { position: absolute; inset: 0; display: block; color: inherit; }
.sample-start img { width: 100%; height: 100%; object-fit: cover; }
.sample-start::after { content: ""; position: absolute; inset: 0; background: rgba(11, 36, 71, 0); transition: background 0.15s; }
.sample-start:hover::after { background: rgba(11, 36, 71, 0.08); }
.sample-start:hover .sample-play { transform: translate(-50%, -50%) scale(1.06); }
.sample-label, .sample-play { z-index: 1; }
.sample-label { position: absolute; top: 14px; right: 16px; padding: 2px 8px; border-radius: 6px; background: rgba(11, 36, 71, 0.7); font-size: 0.8125rem; font-weight: 600; color: #fff; }
.sample-play { transition: transform 0.15s; }
.sample-play { position: absolute; top: 50%; left: 72%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 999px; background: rgba(255, 255, 255, 0.96); box-shadow: 0 6px 24px rgba(11, 36, 71, 0.35); display: flex; align-items: center; justify-content: center; }
.sample-play svg { width: 30px; height: 30px; margin-left: 4px; }
@media (max-width: 560px) { .sample-play { width: 56px; height: 56px; } .sample-play svg { width: 22px; height: 22px; } }

/* ---------- Topics ---------- */
.topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 12px; }
.topics li { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--white); font-weight: 600; line-height: 1.35; }
.topics li svg { flex: none; width: 20px; height: 20px; color: var(--blue); }
.topics li.soon { border-style: dashed; border-color: var(--border-strong); background: var(--ground); color: var(--muted); justify-content: space-between; }
.tag { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--surface-muted); font-size: 0.75rem; font-weight: 600; color: var(--muted); }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card.is-muted { background: var(--surface-muted); }
.steps { list-style: none; margin: 0; padding: 0; }
.step-number { width: 40px; height: 40px; border-radius: 999px; background: var(--blue); color: var(--white); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 10px; }
.checklist svg { flex: none; width: 20px; height: 20px; margin-top: 3px; }
.checklist.ticks svg { color: var(--green); }
.checklist.dashes svg { color: var(--muted); }

/* ---------- Scenes gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery figure { position: relative; margin: 0; border-radius: 12px; overflow: hidden; background: var(--navy); aspect-ratio: 16 / 9; }
.gallery figure.is-large { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 12px; background: linear-gradient(to top, rgba(11, 36, 71, 0.85), rgba(11, 36, 71, 0)); color: var(--white); font-weight: 600; font-size: 0.9375rem; }
@media (max-width: 900px) {
	.gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gallery figure.is-large { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.pricing-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--white); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.pricing-card img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.pricing-text { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
@media (max-width: 800px) { .pricing-card { grid-template-columns: 1fr; } .pricing-card img { aspect-ratio: 16 / 9; min-height: 0; } }


/* ---------- Enquiry form ---------- */
.enquire .wrap { display: flex; flex-wrap: wrap; gap: 48px; }
.enquire-text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.enquire-form { flex: 1 1 520px; min-width: 0; }
.form { border: 1px solid var(--border); border-radius: 12px; padding: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; background: var(--white); }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.form .optional { font-weight: 400; color: var(--muted); }
.form .wide { grid-column: 1 / -1; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; color: var(--navy); min-height: 46px; width: 100%; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--white); }
.form textarea { padding: 10px 12px; resize: vertical; }
.form button[disabled] { opacity: 0.6; cursor: progress; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.form-note { font-size: 0.8125rem; color: var(--muted); }
/* The hidden field bots fill in (D-068). Off-screen rather than display:none. */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { grid-column: 1 / -1; padding: 12px 16px; border: 1px solid #f1b5b0; border-radius: 8px; background: #fdeceb; color: #8a1c13; }
.thanks { border: 1px solid #b9dec8; background: #e6f4ec; border-radius: 12px; padding: 32px; color: #133f29; }
.thanks strong { display: block; font-size: 1.375rem; margin-bottom: 6px; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; padding: 20px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ground); border-top: 1px solid var(--border); color: var(--muted); font-size: 0.875rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 28px; padding-bottom: 28px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--navy); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* ---------- Simple text pages (privacy, licence terms) ---------- */
.prose { max-width: 720px; display: flex; flex-direction: column; gap: 1rem; }
.prose h2 { font-size: 1.375rem; margin-top: 1rem; }
.h3-size { font-size: 1.5rem; }
