/*
Theme Name: Masiphathisane School
Author: Dynamics Digital
Description: A modern, accessible WordPress theme created for Masiphathisane Primary School in Vredenburg.
Version: 2.2.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: masiphathisane-school
Tags: education, custom-logo, custom-menu, featured-images, one-column, accessibility-ready
*/

:root {
  --school-green-950: #082f25;
  --school-green-900: #0b3b2d;
  --school-green-800: #12513d;
  --school-green-700: #176d4f;
  --school-yellow: #f6c90e;
  --school-yellow-soft: #fff2a8;
  --school-ink: #17211d;
  --school-slate: #5b6862;
  --school-mist: #eef3f0;
  --school-white: #ffffff;
  --school-line: rgba(8, 47, 37, 0.14);
  --school-shadow: 0 24px 70px rgba(8, 47, 37, 0.13);
  --school-radius-lg: 2rem;
  --school-radius-md: 1.25rem;
  --school-container: 1180px;
  --school-display: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
  --school-body: "Aptos", "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--school-ink);
  background: var(--school-white);
  font-family: var(--school-body);
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--school-green-950);
  font-family: var(--school-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.1rem, 8vw, 6.9rem);
}

h2 {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
}

h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

p {
  margin: 0;
}

.site-shell {
  width: min(calc(100% - 2rem), var(--school-container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 1rem;
  left: 1rem;
  padding: 0.8rem 1rem;
  transform: translateY(-160%);
  border-radius: 0.7rem;
  color: var(--school-white);
  background: var(--school-green-950);
  font-weight: 800;
}

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

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

.screen-reader-text:focus {
  z-index: 100000;
  top: 0.5rem;
  left: 0.5rem;
  width: auto;
  height: auto;
  padding: 0.8rem 1rem;
  clip: auto;
  color: var(--school-white);
  background: var(--school-green-950);
  white-space: normal;
}

:focus-visible {
  outline: 3px solid var(--school-yellow);
  outline-offset: 4px;
}

.utility-bar {
  color: rgba(255, 255, 255, 0.86);
  background: var(--school-green-950);
  font-size: 0.9rem;
}

.utility-inner {
  display: flex;
  min-height: 2.6rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.utility-inner p {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.utility-mark {
  color: var(--school-yellow);
}

.utility-inner a {
  color: var(--school-white);
  font-weight: 700;
  text-decoration: none;
}

.site-header {
  position: sticky;
  z-index: 80;
  top: 0;
  border-bottom: 1px solid var(--school-line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 35px rgba(8, 47, 37, 0.05);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 5.6rem;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.8rem, 1.4vw, 1.5rem);
}

.site-brand,
.custom-logo-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.85rem;
  color: var(--school-green-950);
  text-decoration: none;
}

.site-brand img,
.custom-logo {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 0.1rem;
}

.brand-copy strong {
  max-width: 21rem;
  font-family: var(--school-display);
  font-size: 1.05rem;
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.brand-copy small {
  color: var(--school-green-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.primary-navigation {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: clamp(0rem, 0.25vw, 0.2rem);
}

.primary-navigation a {
  flex: 0 0 auto;
  padding: 0.62rem 0.58rem;
  border-radius: 999px;
  color: var(--school-green-950);
  font-size: clamp(0.8rem, 0.76vw, 0.9rem);
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.primary-navigation a:hover,
.primary-navigation a:focus-visible {
  background: var(--school-mist);
}

.primary-navigation .nav-cta {
  margin-left: 0.25rem;
  padding-inline: 0.95rem;
  color: var(--school-green-950);
  background: var(--school-yellow);
}

.menu-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--school-white);
  background: var(--school-green-950);
  cursor: pointer;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block;
  width: 1.2rem;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  content: "";
  transition: transform 180ms ease;
}

.menu-toggle-lines {
  position: relative;
}

.menu-toggle-lines::before {
  position: absolute;
  top: -0.38rem;
}

.menu-toggle-lines::after {
  position: absolute;
  top: 0.38rem;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--school-white);
  background: var(--school-green-950);
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 47, 37, 0.99) 0%, rgba(8, 47, 37, 0.94) 42%, rgba(8, 47, 37, 0.32) 72%, rgba(8, 47, 37, 0.1) 100%);
  content: "";
}

.hero::after {
  position: absolute;
  z-index: -2;
  top: -22rem;
  left: -13rem;
  width: 42rem;
  height: 42rem;
  border: 1px solid rgba(246, 201, 14, 0.25);
  border-radius: 50%;
  box-shadow: 0 0 0 7rem rgba(246, 201, 14, 0.025), 0 0 0 14rem rgba(246, 201, 14, 0.018);
  content: "";
}

.hero-media {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% center;
}

.hero-inner {
  display: grid;
  min-height: clamp(42rem, 79vh, 55rem);
  align-items: center;
  padding-block: clamp(5rem, 10vw, 8rem);
}

.hero-copy {
  width: min(48rem, 78%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
  color: var(--school-green-700);
  font-size: 0.84rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.9rem;
  height: 3px;
  border-radius: 99px;
  background: var(--school-yellow);
  content: "";
}

.hero .eyebrow {
  color: var(--school-yellow);
}

.hero h1 {
  color: var(--school-white);
  text-wrap: balance;
}

.hero h1 em {
  color: var(--school-yellow);
  font-style: normal;
}

.hero-lede {
  max-width: 42rem;
  margin-top: 1.6rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.2rem;
}

.button {
  display: inline-flex;
  min-height: 3.45rem;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.3rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--school-green-950);
  background: var(--school-yellow);
  box-shadow: 0 14px 35px rgba(246, 201, 14, 0.22);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--school-white);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.button-dark {
  color: var(--school-white);
  background: var(--school-green-950);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 2.8rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.93rem;
  font-weight: 700;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-proof span::before {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--school-yellow);
  content: "";
}

.quick-links {
  position: relative;
  z-index: 2;
  margin-top: -3.5rem;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--school-line);
  border-radius: var(--school-radius-lg);
  background: var(--school-white);
  box-shadow: var(--school-shadow);
}

.quick-card {
  display: grid;
  min-height: 11rem;
  padding: 1.7rem;
  color: var(--school-green-950);
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.quick-card + .quick-card {
  border-left: 1px solid var(--school-line);
}

.quick-card:hover,
.quick-card:focus-visible {
  color: var(--school-white);
  background: var(--school-green-800);
}

.quick-index {
  color: var(--school-green-700);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.quick-card:hover .quick-index,
.quick-card:focus-visible .quick-index {
  color: var(--school-yellow);
}

.quick-card strong {
  align-self: end;
  font-family: var(--school-display);
  font-size: 1.5rem;
  line-height: 1.1;
}

.quick-card span:last-child {
  margin-top: 0.5rem;
  color: var(--school-slate);
  font-size: 0.93rem;
}

.quick-card:hover span:last-child,
.quick-card:focus-visible span:last-child {
  color: rgba(255, 255, 255, 0.76);
}

.section {
  padding-block: clamp(5rem, 10vw, 8.5rem);
  scroll-margin-top: 6rem;
}

.section-muted {
  background: var(--school-mist);
}

.section-dark {
  color: var(--school-white);
  background: var(--school-green-950);
}

.section-heading {
  max-width: 53rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.section-heading p:not(.eyebrow) {
  max-width: 43rem;
  margin-top: 1.25rem;
  color: var(--school-slate);
  font-size: 1.08rem;
}

.section-dark .section-heading h2,
.section-dark .section-heading h3 {
  color: var(--school-white);
}

.section-dark .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.68);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
}

.about-intro {
  position: sticky;
  top: 8rem;
}

.about-intro > p:not(.eyebrow) {
  margin-top: 1.5rem;
  color: var(--school-slate);
  font-size: 1.12rem;
}

.principles {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--school-line);
}

.principle {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--school-line);
}

.principle-number {
  color: var(--school-green-700);
  font-family: var(--school-display);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.principle p {
  margin-top: 0.65rem;
  color: var(--school-slate);
}

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

.statement-card {
  position: relative;
  overflow: hidden;
  min-height: 30rem;
  padding: clamp(2rem, 5vw, 3.4rem);
  border-radius: var(--school-radius-lg);
}

.statement-card:first-child {
  color: var(--school-white);
  background: var(--school-green-800);
}

.statement-card:last-child {
  color: var(--school-green-950);
  background: var(--school-yellow);
}

.statement-card::after {
  position: absolute;
  right: -5rem;
  bottom: -5rem;
  width: 19rem;
  height: 19rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: 0.12;
  content: "";
}

.statement-label {
  display: block;
  margin-bottom: 5rem;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.statement-card blockquote {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--school-display);
  font-size: clamp(2.1rem, 4.2vw, 4rem);
  font-weight: 850;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.statement-card:first-child blockquote {
  color: var(--school-white);
}

/* Student life, sport and enrichment */
.section-student-life {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 5%, rgba(246, 201, 14, 0.22), transparent 22rem),
    linear-gradient(180deg, var(--school-mist), var(--school-white));
}

.section-student-life::before {
  position: absolute;
  top: 8rem;
  right: -8rem;
  width: 22rem;
  height: 22rem;
  border: 1px solid rgba(20, 107, 69, 0.12);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.section-student-life .site-shell {
  position: relative;
  z-index: 1;
}

.student-life-heading {
  max-width: 68rem;
}

.student-life-heading > p:not(.eyebrow) {
  max-width: 56rem;
}

.activity-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.activity-pills span {
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(20, 107, 69, 0.2);
  border-radius: 999px;
  color: var(--school-green-800);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 850;
}

.sports-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.life-card,
.highlight-card,
.growth-card {
  overflow: hidden;
  border: 1px solid var(--school-line);
  border-radius: var(--school-radius-lg);
  background: var(--school-white);
  box-shadow: 0 18px 50px rgba(8, 47, 37, 0.08);
}

.life-card-media,
.highlight-card > a,
.growth-media,
.moments-gallery a {
  position: relative;
  display: block;
  overflow: hidden;
}

.life-card-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 420ms ease;
}

.rugby-media img {
  object-position: center 63%;
}

.mini-cricket-media img {
  object-position: center 68%;
}

.life-card-media:hover img,
.moments-gallery a:hover img {
  transform: scale(1.025);
}

.life-card-media > span {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.48rem 0.72rem;
  border-radius: 999px;
  color: var(--school-green-950);
  background: var(--school-yellow);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.life-card-copy {
  padding: 1.45rem;
}

.life-card-copy h3 {
  font-size: 1.45rem;
}

.life-card-copy p {
  margin-top: 0.65rem;
  color: var(--school-slate);
  font-size: 0.96rem;
}

.student-life-subheading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem 2rem;
  align-items: end;
  margin-top: clamp(3.5rem, 7vw, 6rem);
  margin-bottom: 1.4rem;
}

.student-life-subheading .eyebrow {
  grid-column: 1 / -1;
}

.student-life-subheading h3 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.student-life-subheading > p:last-child {
  color: var(--school-slate);
  font-size: 0.92rem;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.highlight-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.highlight-card > a {
  aspect-ratio: 16 / 9;
  background: #f8f4e9;
}

.highlight-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.highlight-card > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.15rem;
}

.highlight-card span,
.growth-copy > span {
  color: var(--school-green-700);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.highlight-card h4 {
  margin-top: 0.55rem;
  color: var(--school-green-950);
  font-family: var(--school-display);
  font-size: 1.15rem;
  line-height: 1.18;
}

.highlight-card p {
  margin-top: 0.65rem;
  color: var(--school-slate);
  font-size: 0.86rem;
}

.highlight-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--school-green-800);
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

.highlight-link:hover,
.highlight-link:focus-visible,
.growth-copy a:hover,
.growth-copy a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.24em;
}

.growth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: clamp(3.5rem, 7vw, 6rem);
}

.growth-card {
  display: grid;
  grid-template-columns: minmax(11rem, 0.78fr) minmax(0, 1.22fr);
  min-height: 28rem;
}

.growth-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.innovation-media img {
  object-position: center 42%;
}

.growth-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 2.4rem);
}

.growth-copy h3 {
  margin-top: 0.55rem;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.growth-copy p {
  margin-top: 0.85rem;
  color: var(--school-slate);
  font-size: 0.94rem;
}

.growth-copy a {
  align-self: flex-start;
  margin-top: 1.2rem;
  color: var(--school-green-800);
  font-weight: 900;
}

.moments-panel {
  display: grid;
  grid-template-columns: minmax(16rem, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin-top: 1.15rem;
  padding: clamp(1.4rem, 4vw, 3rem);
  border-radius: var(--school-radius-lg);
  color: var(--school-white);
  background: var(--school-green-950);
}

.moments-copy .eyebrow {
  color: var(--school-yellow);
}

.moments-copy h3 {
  margin-top: 0.85rem;
  color: var(--school-white);
  font-size: clamp(2rem, 4vw, 3rem);
}

.moments-copy > p:last-child {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.74);
}

.moments-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.moments-gallery a {
  border-radius: var(--school-radius-md);
}

.moments-gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 420ms ease;
}

.parent-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}

.parent-copy > p:not(.eyebrow) {
  margin-top: 1.3rem;
  color: var(--school-slate);
  font-size: 1.08rem;
}

.parent-copy .button {
  margin-top: 2rem;
}

.parent-steps {
  display: grid;
  gap: 0.8rem;
}

.step-card {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 1rem;
  padding: 1.35rem;
  border: 1px solid var(--school-line);
  border-radius: var(--school-radius-md);
  background: var(--school-white);
}

.step-card > span {
  display: grid;
  width: 3.1rem;
  height: 3.1rem;
  place-items: center;
  border-radius: 50%;
  color: var(--school-green-950);
  background: var(--school-yellow);
  font-weight: 900;
}

.step-card h3 {
  font-size: 1.2rem;
  letter-spacing: -0.015em;
}

.step-card p {
  margin-top: 0.35rem;
  color: var(--school-slate);
  font-size: 0.95rem;
}

/* School uniform guide and price list */
.section-uniforms {
  background:
    linear-gradient(180deg, var(--school-white), rgba(238, 243, 240, 0.72));
}

.uniform-heading-row {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.uniform-heading-row > div:first-child {
  max-width: 53rem;
}

.uniform-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 1rem;
}

.uniform-enquiry-link {
  color: var(--school-green-800);
  font-weight: 850;
  text-decoration: none;
}

.uniform-enquiry-link:hover {
  color: var(--school-green-950);
}

.uniform-showcase {
  display: grid;
  grid-template-columns: minmax(18rem, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.uniform-visual {
  position: sticky;
  top: 8rem;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--school-line);
  border-radius: var(--school-radius-lg);
  background: var(--school-green-950);
  box-shadow: var(--school-shadow);
}

.uniform-visual img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.uniform-visual figcaption {
  padding: 1rem 1.2rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
}

.uniform-price-panel {
  min-width: 0;
}

.uniform-price-intro {
  margin-bottom: 1rem;
}

.uniform-price-intro h3 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.uniform-price-intro > p:last-child {
  margin-top: 0.45rem;
  color: var(--school-slate);
  font-size: 0.92rem;
}

.uniform-year {
  margin-bottom: 0.3rem;
  color: var(--school-green-700);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.uniform-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--school-line);
  border-radius: var(--school-radius-md);
  background: var(--school-white);
  box-shadow: 0 16px 45px rgba(8, 47, 37, 0.08);
}

.uniform-price-table {
  width: 100%;
  min-width: 48rem;
  border-collapse: collapse;
  font-size: 0.88rem;
  line-height: 1.35;
}

.uniform-price-table th,
.uniform-price-table td {
  padding: 0.86rem 0.68rem;
  border-right: 1px solid var(--school-line);
  border-bottom: 1px solid var(--school-line);
  text-align: center;
  white-space: nowrap;
}

.uniform-price-table tr > *:last-child {
  border-right: 0;
}

.uniform-price-table tbody tr:last-child > * {
  border-bottom: 0;
}

.uniform-price-table thead th {
  color: var(--school-white);
  background: var(--school-green-900);
  font-weight: 900;
}

.uniform-price-table thead th:first-child,
.uniform-price-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  text-align: left;
}

.uniform-price-table tbody th {
  color: var(--school-green-950);
  background: var(--school-white);
  font-weight: 850;
}

.uniform-price-table tbody tr:nth-child(even) td,
.uniform-price-table tbody tr:nth-child(even) th {
  background: var(--school-mist);
}

.uniform-one-size,
.uniform-contact-price {
  color: var(--school-green-800);
  font-weight: 900;
}

.uniform-table-footnote {
  margin-top: 1rem;
  color: var(--school-slate);
  font-size: 0.9rem;
}

.uniform-table-footnote strong {
  color: #9e1b1b;
}

.anthem-layout {
  display: grid;
  grid-template-columns: minmax(17rem, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
}

.anthem-intro {
  position: sticky;
  top: 8rem;
}

.anthem-intro h2 {
  color: var(--school-white);
}

.anthem-intro > p:not(.eyebrow) {
  margin-top: 1.3rem;
  color: rgba(255, 255, 255, 0.68);
}

.anthem-motto {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(246, 201, 14, 0.4);
  border-radius: 999px;
  color: var(--school-yellow);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lyrics {
  display: grid;
  gap: 1rem;
}

.verse {
  padding: clamp(1.5rem, 4vw, 2.3rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--school-radius-md);
  background: rgba(255, 255, 255, 0.055);
}

.verse:last-child {
  border-color: rgba(246, 201, 14, 0.5);
  background: rgba(246, 201, 14, 0.09);
}

.verse-label {
  display: block;
  margin-bottom: 0.85rem;
  color: var(--school-yellow);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.verse p {
  color: rgba(255, 255, 255, 0.92);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.75;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
  overflow: hidden;
  border-radius: var(--school-radius-lg);
  background: var(--school-green-950);
  box-shadow: var(--school-shadow);
}

.contact-copy,
.contact-details {
  padding: clamp(2.2rem, 6vw, 4.6rem);
}

.contact-copy {
  color: var(--school-white);
}

.contact-copy h2 {
  color: var(--school-white);
}

.contact-copy > p:not(.eyebrow) {
  max-width: 35rem;
  margin-top: 1.3rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.08rem;
}

.contact-copy .hero-actions {
  margin-top: 2rem;
}

.contact-details {
  display: grid;
  align-content: center;
  gap: 1.3rem;
  background: var(--school-yellow);
}

.contact-item {
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(8, 47, 37, 0.2);
}

.contact-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-item span {
  display: block;
  margin-bottom: 0.25rem;
  color: rgba(8, 47, 37, 0.7);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-item strong,
.contact-item a,
.contact-item address {
  color: var(--school-green-950);
  font-family: var(--school-display);
  font-size: clamp(1.12rem, 2vw, 1.4rem);
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.contact-note {
  margin-top: 1.3rem;
  color: var(--school-slate);
  font-size: 0.9rem;
}

.site-footer {
  color: rgba(255, 255, 255, 0.72);
  background: #061f19;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 3rem;
  padding-block: 4.2rem;
}

.footer-brand strong {
  display: block;
  max-width: 26rem;
  color: var(--school-white);
  font-family: var(--school-display);
  font-size: 1.45rem;
  line-height: 1.1;
}

.footer-brand p {
  max-width: 30rem;
  margin-top: 0.9rem;
}

.footer-column h2 {
  margin-bottom: 0.9rem;
  color: var(--school-yellow);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-column a {
  display: block;
  width: fit-content;
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.footer-column a:hover {
  color: var(--school-yellow);
}

.footer-bottom {
  display: flex;
  padding-block: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer-credit strong {
  color: var(--school-white);
}

.content-page {
  min-height: 50vh;
  padding-block: 5rem;
}

.content-page article {
  max-width: 52rem;
}

.entry-title {
  margin-bottom: 1.8rem;
  font-size: clamp(2.3rem, 6vw, 4.5rem);
}

.entry-content > * + * {
  margin-top: 1.2rem;
}

.post-list {
  display: grid;
  gap: 1.2rem;
}

.post-card {
  padding: 1.6rem;
  border: 1px solid var(--school-line);
  border-radius: var(--school-radius-md);
}

/* School newsletter */
.section-newsletter {
  background:
    radial-gradient(circle at 92% 8%, rgba(246, 201, 14, 0.2), transparent 18rem),
    var(--school-mist);
}

.newsletter-heading-row {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.newsletter-heading-row > div {
  max-width: 53rem;
}

.newsletter-heading-row .button {
  flex: 0 0 auto;
}

.newsletter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.newsletter-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--school-line);
  border-radius: var(--school-radius-md);
  background: var(--school-white);
  box-shadow: 0 18px 50px rgba(8, 47, 37, 0.08);
  flex-direction: column;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.newsletter-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--school-shadow);
}

.newsletter-card-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--school-green-900);
}

.newsletter-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.newsletter-card:hover .newsletter-card-media img {
  transform: scale(1.025);
}

.newsletter-card-placeholder {
  position: relative;
  display: grid;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  place-items: center;
  color: var(--school-yellow);
  background:
    linear-gradient(135deg, rgba(246, 201, 14, 0.08), transparent 56%),
    var(--school-green-900);
}

.newsletter-card-placeholder::before,
.newsletter-card-placeholder::after {
  position: absolute;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.24;
  content: "";
}

.newsletter-card-placeholder::before {
  width: 9rem;
  height: 9rem;
  transform: translate(45%, 35%);
}

.newsletter-card-placeholder::after {
  width: 4rem;
  height: 4rem;
  transform: translate(-120%, -65%);
}

.newsletter-card-placeholder span {
  position: relative;
  z-index: 1;
  font-family: var(--school-display);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.newsletter-card-body {
  display: flex;
  padding: 1.6rem;
  flex: 1;
  flex-direction: column;
}

.newsletter-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.8rem;
  margin-bottom: 0.9rem;
  color: var(--school-green-700);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.newsletter-meta time,
.newsletter-meta span,
.newsletter-meta a {
  color: inherit;
}

.newsletter-meta > * + *::before {
  margin-right: 0.8rem;
  content: "·";
}

.newsletter-card h3 {
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
}

.newsletter-card h3 a {
  text-decoration: none;
}

.newsletter-card h3 a:hover {
  color: var(--school-green-700);
}

.newsletter-summary {
  margin-top: 0.85rem;
  color: var(--school-slate);
}

.newsletter-read-more {
  display: inline-flex;
  width: fit-content;
  margin-top: auto;
  padding-top: 1.3rem;
  color: var(--school-green-800);
  font-weight: 850;
  text-decoration: none;
  gap: 0.45rem;
}

.newsletter-read-more:hover {
  color: var(--school-green-950);
}

.newsletter-empty {
  padding: clamp(2rem, 6vw, 4.5rem);
  border: 1px solid var(--school-line);
  border-radius: var(--school-radius-lg);
  text-align: center;
  background: var(--school-white);
}

.newsletter-empty-mark {
  display: grid;
  width: 3.6rem;
  height: 3.6rem;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  place-items: center;
  color: var(--school-green-950);
  background: var(--school-yellow);
  font-family: var(--school-display);
  font-size: 1.25rem;
  font-weight: 900;
}

.newsletter-empty p {
  max-width: 36rem;
  margin: 0.8rem auto 0;
  color: var(--school-slate);
}

.newsletter-empty .button {
  margin-top: 1.5rem;
}

.newsletter-archive-hero {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
  color: var(--school-white);
  background:
    radial-gradient(circle at 84% 20%, rgba(246, 201, 14, 0.28), transparent 16rem),
    linear-gradient(125deg, var(--school-green-950), var(--school-green-800));
}

.newsletter-archive-hero .eyebrow,
.newsletter-single-hero .eyebrow {
  color: var(--school-yellow);
}

.newsletter-archive-hero h1,
.newsletter-single-hero h1 {
  max-width: 58rem;
  color: var(--school-white);
  font-size: clamp(3.2rem, 8vw, 6.3rem);
}

.newsletter-archive-hero p:not(.eyebrow),
.newsletter-single-hero .newsletter-single-intro {
  max-width: 44rem;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.12rem;
}

.newsletter-archive-content {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.newsletter-pagination {
  margin-top: 3rem;
}

.newsletter-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.newsletter-pagination .page-numbers {
  display: grid;
  min-width: 2.8rem;
  min-height: 2.8rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--school-line);
  border-radius: 0.75rem;
  place-items: center;
  background: var(--school-white);
  font-weight: 800;
  text-decoration: none;
}

.newsletter-pagination .page-numbers.current,
.newsletter-pagination a.page-numbers:hover {
  color: var(--school-white);
  background: var(--school-green-800);
}

.newsletter-single-hero {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  color: var(--school-white);
  background: var(--school-green-950);
}

.newsletter-back {
  display: inline-flex;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 800;
  text-decoration: none;
}

.newsletter-back:hover {
  color: var(--school-yellow);
}

.newsletter-single-hero .newsletter-meta {
  color: var(--school-yellow);
}

.newsletter-featured-image {
  width: min(calc(100% - 2rem), 1040px);
  margin: clamp(-2rem, -4vw, -3.5rem) auto 0;
  overflow: hidden;
  border: 0.45rem solid var(--school-white);
  border-radius: var(--school-radius-lg);
  box-shadow: var(--school-shadow);
  aspect-ratio: 16 / 9;
  background: var(--school-mist);
}

.newsletter-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.newsletter-article-wrap {
  width: min(calc(100% - 2rem), 780px);
  margin-inline: auto;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.newsletter-article .entry-content {
  color: #29342f;
  font-size: 1.08rem;
}

.newsletter-article .entry-content h2,
.newsletter-article .entry-content h3 {
  margin-top: 2.25rem;
}

.newsletter-article .entry-content a {
  color: var(--school-green-700);
  font-weight: 750;
}

.newsletter-article .entry-content img {
  border-radius: 1rem;
}

.newsletter-office-note {
  margin-top: 3rem;
  padding: 1.4rem;
  border-left: 0.35rem solid var(--school-yellow);
  border-radius: 0 var(--school-radius-md) var(--school-radius-md) 0;
  background: var(--school-mist);
}

.newsletter-office-note strong {
  color: var(--school-green-950);
}

.newsletter-post-navigation {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--school-line);
}

.newsletter-post-navigation .nav-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.newsletter-post-navigation a {
  display: block;
  padding: 1rem;
  border: 1px solid var(--school-line);
  border-radius: 1rem;
  color: var(--school-green-800);
  font-weight: 800;
  text-decoration: none;
}

.newsletter-post-navigation .nav-next {
  text-align: right;
}

.not-found {
  min-height: 58vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.not-found p {
  margin: 1rem auto 1.5rem;
  color: var(--school-slate);
}

@media (max-width: 1180px) {
  .menu-toggle {
    display: grid;
  }

  .primary-navigation {
    position: fixed;
    top: 8.2rem;
    right: 1rem;
    left: 1rem;
    display: grid;
    max-height: calc(100dvh - 9rem);
    padding: 1rem;
    overflow-y: auto;
    visibility: hidden;
    border: 1px solid var(--school-line);
    border-radius: var(--school-radius-md);
    background: var(--school-white);
    box-shadow: var(--school-shadow);
    opacity: 0;
    transform: translateY(-0.7rem);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  }

  .primary-navigation.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .primary-navigation a {
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    line-height: 1.3;
  }

  .primary-navigation .nav-cta {
    margin: 0.3rem 0 0;
    text-align: center;
  }
}

@media (max-width: 980px) {

  .hero-copy {
    width: min(42rem, 88%);
  }

  .about-layout,
  .anthem-layout {
    grid-template-columns: 1fr;
  }

  .about-intro,
  .anthem-intro {
    position: static;
  }

  .parent-layout,
  .uniform-showcase,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .uniform-visual {
    position: static;
  }

  .uniform-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .growth-grid,
  .moments-panel {
    grid-template-columns: 1fr;
  }

  .growth-card {
    grid-template-columns: minmax(14rem, 0.7fr) minmax(0, 1.3fr);
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

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

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

@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 1.2rem), var(--school-container));
  }

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

  .utility-inner p:first-child {
    display: none;
  }

  .header-inner {
    min-height: 5rem;
  }

  .site-brand img,
  .custom-logo {
    width: 3.4rem;
    height: 3.4rem;
  }

  .brand-copy strong {
    max-width: 12rem;
    font-size: 0.84rem;
  }

  .brand-copy small {
    font-size: 0.65rem;
  }

  .primary-navigation {
    top: 7.6rem;
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(8, 47, 37, 0.99) 0%, rgba(8, 47, 37, 0.93) 68%, rgba(8, 47, 37, 0.58) 100%);
  }

  .hero-media {
    object-position: 63% center;
    opacity: 0.72;
  }

  .hero-inner {
    min-height: 43rem;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .quick-links {
    margin-top: -2rem;
  }

  .quick-grid,
  .vision-grid {
    grid-template-columns: 1fr;
  }

  .sports-grid,
  .highlight-grid,
  .growth-card,
  .moments-gallery {
    grid-template-columns: 1fr;
  }

  .student-life-subheading {
    grid-template-columns: 1fr;
  }

  .growth-media {
    max-height: 34rem;
  }

  .growth-media-poster {
    aspect-ratio: 3 / 4;
  }

  .newsletter-heading-row {
    align-items: start;
    flex-direction: column;
  }

  .uniform-heading-row,
  .uniform-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .uniform-heading-row .button,
  .uniform-enquiry-link {
    width: 100%;
    text-align: center;
  }

  .newsletter-heading-row .button {
    width: auto;
  }

  .newsletter-grid,
  .newsletter-post-navigation .nav-links {
    grid-template-columns: 1fr;
  }

  .newsletter-post-navigation .nav-next {
    text-align: left;
  }

  .quick-card + .quick-card {
    border-top: 1px solid var(--school-line);
    border-left: 0;
  }

  .quick-card {
    min-height: 9.5rem;
  }

  .statement-card {
    min-height: 24rem;
  }

  .statement-label {
    margin-bottom: 3.2rem;
  }

  .principle,
  .step-card {
    grid-template-columns: 3.2rem 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

@media print {
  .utility-bar,
  .site-header,
  .quick-links,
  .hero-actions,
  .site-footer {
    display: none !important;
  }

  .hero {
    color: var(--school-ink);
    background: var(--school-white);
  }

  .hero::before,
  .hero::after,
  .hero-media {
    display: none;
  }

  .hero h1,
  .hero .eyebrow,
  .hero-lede {
    color: var(--school-ink);
  }

  .section {
    padding-block: 2rem;
  }
}
