/* Boksburg Educational Centre — redesign mockup (local only) */

:root {
  --navy: #12345b;
  --navy-deep: #0c2238;
  --ink: #1a2e40;
  --muted: #4d6170;
  --gold: #c9a04a;
  --gold-soft: #e8d5a3;
  --cream: #f6f1e8;
  --cream-dark: #efe6d6;
  --paper: #fffcf7;
  --sky: #e7eef4;
  --line: #d5c9b3;
  --white: #fff;
  --whatsapp: #1f7a46;
  --focus: #2b73b6;
  --header-h: 84px;
  --max: 1140px;
  --serif: "Fraunces", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: #1b4f86; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  background: var(--navy);
  color: #fff;
  padding: 8px 14px;
  z-index: 100;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}
.wrap-wide {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 550;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
  line-height: 1.15;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.85rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.25rem; color: var(--muted); max-width: 42rem; }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.eyebrow.ink { color: var(--navy); }
.draft-note {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6a5420;
  background: #f3e6c0;
  border: 1px solid #e0c87a;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 0.8rem;
}
.placeholder-fact { font-style: italic; color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.btn-gold:hover { background: #d4b05c; color: var(--navy-deep); }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-ghost-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost-dark:hover { background: var(--navy); color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; border-color: var(--whatsapp); }
.btn-whatsapp:hover { background: #17633a; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.link-plain { font-weight: 700; text-underline-offset: 4px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #f6f1e8;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(1280px, calc(100% - 36px));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy-deep);
  flex-shrink: 0;
}
.brand img { width: 58px; height: 58px; object-fit: contain; border-radius: 50%; background: transparent; }
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand-name span {
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: #3d6388;
  margin-top: 3px;
  text-transform: uppercase;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.05rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 650;
  font-size: 0.98rem;
}
.nav-list a {
  text-decoration: none;
  color: var(--navy);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] {
  border-bottom-color: var(--gold);
  color: var(--navy-deep);
}
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-actions .btn { padding: 0.65rem 1.05rem; font-size: 0.95rem; }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  position: relative;
  transition: transform .2s, opacity .2s;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.hero { background: var(--navy-deep); color: #fff; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) 1.15fr;
  min-height: calc(100svh - var(--header-h));
  max-height: 920px;
}
.hero-copy {
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.hero-copy h1 { color: #fff; margin: 0 0 0.55em; max-width: 11ch; }
.hero-copy .kicker {
  color: var(--gold-soft);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}
.hero-copy .intro {
  font-size: 1.2rem;
  color: #d9e4ee;
  max-width: 34rem;
  margin-bottom: 1.6rem;
}
.hero-copy .btn-row { margin-bottom: 1.1rem; }
.fee-link { color: var(--gold-soft); font-weight: 700; text-underline-offset: 4px; }
.fee-link:hover { color: #fff; }
.hero-photo { position: relative; min-height: 420px; overflow: hidden; }
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.hero-photo figcaption {
  position: absolute;
  right: 16px;
  bottom: 14px;
  margin: 0;
  font-size: 0.78rem;
  color: #fff;
  background: rgba(12,34,56,.55);
  padding: 4px 10px;
  border-radius: 4px;
}

.inclusive {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0;
}
.inclusive-head {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 1rem;
  text-align: center;
}
.inclusive-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.inclusive-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--navy);
  padding: 0.4rem 0.2rem;
}
.inclusive-list svg {
  width: 32px;
  height: 32px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section.alt { background: var(--paper); }
.section.navy { background: var(--navy-deep); color: #e8eef4; }
.section.navy h2, .section.navy h3 { color: #fff; }
.section.navy .lede { color: #c5d3df; }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head.center { margin-inline: auto; text-align: center; }

.welcome-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}
.welcome-photo {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(12,34,56,.18);
}
.welcome-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.welcome-photo.wide img { aspect-ratio: 3/2; object-position: center 30%; }

.prog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.prog-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.5rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.section.alt .prog-card { background: var(--cream); }
.prog-card h3 { margin-bottom: 0.2rem; }
.prog-card p { color: var(--muted); margin-bottom: 0; flex: 1; }
.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem; }
.phase { border-top: 2px solid var(--gold); padding-top: 0.9rem; }
.phase strong { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--navy-deep); font-weight: 550; }
.phase span { display: block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.35rem; }
.phase p { margin: 0.4rem 0 0; font-size: 1rem; color: var(--muted); }
.section.navy .phase strong { color: #fff; }
.section.navy .phase p { color: #c5d3df; }

.gallery-intro { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 1.6rem; }
.mosaic {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: 230px 230px 230px 230px;
  grid-template-areas:
    "main t1 t2"
    "main t3 t4"
    "b1 feat feat"
    "b2 feat feat";
  gap: 10px;
}
.mosaic a, .mosaic figure { margin: 0; overflow: hidden; position: relative; background: #c8c2b6; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mosaic a:hover img { transform: scale(1.04); }
.mosaic .area-main { grid-area: main; }
.mosaic .area-t1 { grid-area: t1; }
.mosaic .area-t2 { grid-area: t2; }
.mosaic .area-t3 { grid-area: t3; }
.mosaic .area-t4 { grid-area: t4; }
.mosaic .area-b1 { grid-area: b1; }
.mosaic .area-b2 { grid-area: b2; }
.mosaic .area-feat { grid-area: feat; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.photo-ph {
  background: var(--sky);
  border: 1px dashed #9bb0c0;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.6rem;
  padding: 2rem;
  color: var(--muted);
}
.photo-ph svg { width: 48px; height: 48px; stroke: var(--navy); fill: none; stroke-width: 1.5; }
.photo-ph strong { color: var(--navy); font-weight: 700; }
.photo-ph span { font-size: 0.95rem; max-width: 20rem; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.team-card { background: var(--paper); border: 1px solid var(--line); padding: 1.3rem; }
.avatar-ph {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--sky);
  border: 1px dashed #9bb0c0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 0.9rem;
}
.team-card h3 { margin: 0 0 0.15rem; font-size: 1.3rem; }
.role { color: #3d6388; font-weight: 700; font-size: 0.92rem; margin-bottom: 0.55rem; }
.team-card p { margin: 0; font-size: 1.02rem; color: var(--muted); }

.reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.review {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.5rem 1.5rem 1.3rem;
  border-top: 3px solid var(--gold);
}
.review blockquote {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.45;
  color: var(--navy-deep);
  font-weight: 500;
}
.review figcaption { font-weight: 700; color: var(--navy); }

.card-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.info-card { background: var(--paper); border: 1px solid var(--line); padding: 1.4rem; }
.info-card h3 { margin-bottom: 0.35rem; }
.info-card p, .info-card a { margin: 0; }
.info-card .icon-line {
  width: 36px; height: 36px; margin-bottom: 0.8rem;
  stroke: var(--navy); fill: none; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

.site-footer {
  background: var(--navy-deep);
  color: #d5dee6;
  padding: 3rem 0 1.5rem;
  font-size: 1rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2rem;
  margin-bottom: 2.2rem;
}
.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-brand img { width: 58px; height: 58px; background: #fff; border-radius: 50%; }
.footer-brand p { margin: 0.2rem 0 0; color: #c5d3df; }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 0.8rem;
  font-weight: 700;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 0.4rem; }
.footer-base {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: #b7c4cf;
}

.page-hero { background: var(--navy-deep); color: #fff; padding: 3.2rem 0 3rem; }
.page-hero h1 { color: #fff; margin-bottom: 0.4em; }
.page-hero .lede { color: #d0dbe5; }
.page-hero .kicker { color: var(--gold-soft); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.82rem; margin-bottom: 0.7rem; }

.prose { max-width: 42rem; }
.prose.wide { max-width: 48rem; }
.prose h2 { margin-top: 1.6em; }
.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.values li { border-top: 1px solid var(--line); padding-top: 0.8rem; }
.values strong { display: block; color: var(--navy-deep); font-size: 1.05rem; }

.action-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.6rem 1.6rem 1.4rem;
  margin: 0 0 1.2rem;
}
.action-panel h3 { margin-bottom: 0.4rem; }

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
  text-decoration: none;
}
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
.wa-float:hover { background: #17633a; color: #fff; }
.wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.credits { font-size: 0.95rem; color: var(--muted); }
.checklist { margin: 0 0 1.2rem; padding-left: 1.2rem; }
.checklist li { margin: 0 0 0.45rem; }

@media (max-width: 1100px) {
  .nav-list { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-list.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    bottom: 0;
    background: var(--cream);
    border-bottom: 0;
    padding: 0.6rem 1.4rem 2rem;
    gap: 0;
    box-shadow: none;
    overflow: auto;
    z-index: 60;
  }
  .nav-list.is-open li { width: 100%; }
  .nav-list.is-open a {
    display: block;
    padding: 0.75rem 0.2rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.15rem;
  }
}

@media (max-width: 1040px) {
  .inclusive-list { grid-template-columns: repeat(3, 1fr); }
  .prog-grid, .team-grid, .card-row, .phases { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; max-height: none; min-height: 0; }
  .hero-photo { min-height: 280px; order: -1; }
  .welcome-grid, .split, .reviews, .gallery-intro, .values { grid-template-columns: 1fr; }
  .mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 210px 200px 200px 200px 240px;
    grid-template-areas:
      "main main"
      "t1 t2"
      "t3 t4"
      "b1 b2"
      "feat feat";
  }
  .inclusive-list { grid-template-columns: repeat(2, 1fr); }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 560px) {
  body { font-size: 1.05rem; }
  .wrap, .wrap-wide { width: calc(100% - 32px); }
  .brand-name { display: none; }
  .prog-grid, .team-grid, .card-row, .phases, .footer-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 2rem 1.2rem 2.4rem; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .footer-base { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mosaic img, .btn { transition: none; }
}

@media (max-width: 800px) {
  .wa-float { display: none; }
  .hero-photo { min-height: 220px; }
  .hero-copy { padding: 1.5rem 1.2rem 1.8rem; }
  .hero-copy .intro { margin-bottom: 1.1rem; font-size: 1.08rem; }
}

.placeholder-fact { display: block; margin-top: 0.55rem; font-size: 0.95rem; }


/* ========== Agency polish ========== */
h1, h2, h3, h4 { font-weight: 500; }
h1 { letter-spacing: -0.035em; }
h2 { letter-spacing: -0.03em; }
h1 em, h2 em, .page-hero h1 em, .hero-copy h1 em {
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.025em;
}
body { line-height: 1.7; }
.lede { font-size: 1.28rem; line-height: 1.55; }

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(12, 34, 56, 0.06);
}
.brand img { width: 56px; height: 56px; }
.nav-list {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  gap: 0.1rem 1.2rem;
}
.btn { letter-spacing: 0.015em; }
.header-actions .btn { padding: 0.55rem 1.05rem; font-size: 0.9rem; }

.hero-copy h1 { max-width: 12ch; }
.hero-copy h1 em { display: block; }
.hero-copy .kicker {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.hero-copy .kicker::after {
  content: "";
  flex: 1;
  max-width: 4.5rem;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.hero-photo figcaption { left: 16px; right: auto; }

.section { padding: clamp(4rem, 8vw, 6.75rem) 0; }
.inclusive { padding: 2.1rem 0 1.9rem; }

.prog-card, .team-card, .info-card, .action-panel, .review {
  border-color: #e0d6c4;
}
.prog-card, .info-card, .action-panel { padding: 1.75rem 1.6rem 1.55rem; }
.team-card { padding: 1.6rem 1.5rem 1.5rem; }
.review { padding: 1.75rem 1.65rem 1.45rem; }

.avatar-ph {
  border: 1px solid var(--gold);
  background: #e8eef3;
  box-shadow: none;
}
.photo-ph {
  border: 0;
  background: linear-gradient(180deg, #e8eef3 0%, #dde6ee 100%);
  position: relative;
}
.photo-ph::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(18, 52, 91, 0.16);
  pointer-events: none;
}

.page-hero { padding: 4.25rem 0 4rem; }
.page-hero.has-photo { padding: 0; }
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(300px, 36rem) 1fr;
  min-height: 380px;
  align-items: stretch;
  gap: 0;
  width: 100%;
  margin: 0;
}
.page-hero-grid .copy {
  padding: 3.8rem 3rem 3.8rem max(1.5rem, calc((100vw - 1140px) / 2));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.page-hero-photo { margin: 0; min-height: 380px; height: 100%; position: relative; overflow: hidden; }
.page-hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.link-plain {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  padding-bottom: 2px;
}
.link-plain:hover { background-size: 100% 2px; }

.site-footer { padding: 3.6rem 0 1.6rem; }
.footer-base { letter-spacing: 0.01em; }

.wa-float { width: 52px; height: 52px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-photo img {
    animation: heroZoom 26s ease-out forwards;
    transform-origin: center 40%;
  }
  @keyframes heroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.06); }
  }
  .btn { transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
  .mosaic img { transition: transform .7s ease; }
}

@media (max-width: 1100px) {
  .nav-list.is-open a {
    transition: color .15s ease;
    padding: 0.85rem 0.2rem;
  }
}

@media (max-width: 800px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-photo { min-height: 220px; max-height: 240px; }
  .page-hero-grid .copy { padding: 2.2rem 1.2rem 2.4rem; }
  .page-hero.has-photo { padding: 0; }
  .hero-copy .kicker::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo img { animation: none; }
}

/* caption hide mobile */
@media (max-width: 800px) {
  .hero-photo figcaption { display: none; }
}


/* Hero crest medallion — prominent in the typography column on desktop,
   overlapping the photo on mobile. */
.hero-crest {
  margin: 0 0 1.35rem;
  line-height: 0;
}
.hero-crest img {
  width: 158px;
  height: 158px;
  object-fit: contain;
  background: #f6f1e8;
  border-radius: 50%;
  padding: 6px;
  box-shadow:
    0 0 0 1px rgba(201, 160, 74, 0.55),
    0 12px 32px rgba(0, 0, 0, 0.28);
}
@media (max-width: 800px) {
  .hero-crest {
    display: flex;
    justify-content: center;
    margin: -58px 0 1.1rem;
    position: relative;
    z-index: 3;
  }
  .hero-crest img {
    width: 114px;
    height: 114px;
    padding: 5px;
  }
  .hero-photo { min-height: 210px; }
}

/* Keep fee-sheet CTA on the first mobile screen with the crest in place */
@media (max-width: 800px) {
  .hero-photo { min-height: 188px; }
  .hero-crest { margin: -50px 0 0.65rem; }
  .hero-crest img { width: 102px; height: 102px; }
  .hero-copy { padding: 0.2rem 1.2rem 1.25rem; }
  .hero-copy .intro { margin-bottom: 0.8rem; font-size: 1.05rem; }
  .hero-copy .btn-row { margin-bottom: 0.65rem; }
  .hero-copy h1 { margin-bottom: 0.4em; }
}


/* ===== Hero option A: proud uniforms photo, shown in full ===== */
.hero--a .hero-photo {
  background: var(--navy-deep);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 1.5rem 1.6rem 1.35rem 0.35rem;
  gap: 0.7rem;
  min-height: 0;
}
.hero--a .hero-photo img {
  position: static;
  inset: auto;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  box-shadow: 0 0 0 1px rgba(201, 160, 74, 0.4), 0 18px 40px rgba(0, 0, 0, 0.28);
}
.hero--a .hero-photo figcaption {
  position: static;
  background: none;
  color: var(--gold-soft);
  padding: 0;
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ===== Hero option B: crest-led, tasteful collage, no single giant photo ===== */
.hero-collage { display: none; }
.hero--b .hero-photo--a { display: none; }
.hero--b .hero-collage {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  padding: 18px 18px 18px 0;
  min-height: 0;
  background: #0c2238;
}
.hero--b .hero-collage figure {
  margin: 0;
  overflow: hidden;
  position: relative;
  background: #17324d;
}
.hero--b .hero-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}
.hero--b .hero-collage .c-main {
  grid-row: 1 / span 2;
}
.hero--b .hero-collage figure:nth-child(2) img {
  object-position: 32% 48%;
}
.hero--b .hero-collage figure { min-height: 160px; }

@media (max-width: 800px) {
  .hero--a .hero-photo {
    min-height: 0;
    aspect-ratio: 720 / 398;
    max-height: 240px;
    padding: 0;
    gap: 0;
  }
  .hero--a .hero-photo img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    box-shadow: none;
  }
  .hero--a .hero-photo figcaption { display: none; }
  .hero--b .hero-collage {
    padding: 0;
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-rows: 120px 120px;
    order: -1;
  }
}

/* Why parents choose BEC */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.why-card {
  background: var(--paper);
  border: 1px solid #e0d6c4;
  border-top: 3px solid var(--gold);
  padding: 1.6rem 1.5rem 1.35rem;
}
.why-card .why-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}
.why-card blockquote {
  margin: 0 0 0.9rem;
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.45;
  color: var(--navy-deep);
  font-weight: 500;
}
.why-card figcaption { font-weight: 700; color: var(--navy); font-size: 0.98rem; }
@media (max-width: 800px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* Subtle motion + hover */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal {
    opacity: 0;
    transform: translateY(16px);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity .7s ease, transform .7s ease;
    transition-delay: var(--delay, 0ms);
  }
  .prog-card, .team-card, .info-card, .review, .why-card, .action-panel {
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  }
  .prog-card:hover, .team-card:hover, .info-card:hover, .review:hover, .why-card:hover, .action-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(12, 34, 56, 0.09);
  }
  .btn:hover { box-shadow: 0 8px 20px rgba(12, 34, 56, 0.14); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}


/* ========== Premium visual upgrade (in place; content unchanged) ========== */
:root {
  --paper-shadow: 0 18px 44px rgba(12, 34, 56, 0.08);
  --paper-shadow-hover: 0 22px 50px rgba(12, 34, 56, 0.13);
  --gold-line: rgba(201, 160, 74, 0.45);
}

body {
  font-size: 1.1875rem;
  background-color: var(--cream);
  background-image:
    radial-gradient(ellipse 80% 55% at 100% -10%, rgba(18, 52, 91, 0.07), transparent 58%),
    radial-gradient(ellipse 55% 45% at -8% 28%, rgba(201, 160, 74, 0.10), transparent 52%),
    radial-gradient(ellipse 50% 40% at 90% 88%, rgba(18, 52, 91, 0.05), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-attachment: scroll;
}

h1, h2, h3, h4 { font-optical-sizing: auto; }
h1 { font-size: clamp(2.55rem, 5.2vw, 4.6rem); }
.hero-copy h1 { max-width: 14ch; font-size: clamp(2.45rem, 4.5vw, 4.25rem); }
h2 { font-size: clamp(2.15rem, 3.8vw, 3.35rem); }
h3 { font-size: 1.42rem; }
.lede { font-size: 1.36rem; line-height: 1.55; max-width: 44rem; }

.site-header {
  background: #f6f1e8;
  border-bottom: 1px solid var(--gold-line);
}
.site-header.is-scrolled {
  box-shadow: 0 10px 28px rgba(12, 34, 56, 0.07);
}
.nav-list {
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  gap: 0.15rem 1.55rem;
}

.section { padding: clamp(4.2rem, 8.5vw, 7.25rem) 0; }
.section-head { margin-bottom: 2.4rem; }
.section:not(.alt):not(.navy) {
  background: transparent;
}
.section.alt {
  background-color: #fffcf7;
  background-image:
    radial-gradient(ellipse 70% 80% at 0% 0%, rgba(201, 160, 74, 0.09), transparent 58%),
    radial-gradient(ellipse 50% 60% at 100% 100%, rgba(18, 52, 91, 0.05), transparent 55%),
    linear-gradient(180deg, #fffdf9 0%, #f4ecdf 100%);
  border-top: 1px solid rgba(213, 201, 179, 0.55);
  border-bottom: 1px solid rgba(213, 201, 179, 0.55);
}
.section.navy {
  background-color: var(--navy-deep);
  background-image:
    radial-gradient(ellipse 70% 80% at 0% 100%, rgba(201, 160, 74, 0.14), transparent 52%),
    radial-gradient(ellipse 50% 50% at 100% 0%, rgba(255, 255, 255, 0.05), transparent 50%),
    linear-gradient(180deg, #12345b 0%, #0c2238 100%);
  color: #e8eef4;
}

.inclusive {
  background:
    radial-gradient(ellipse 80% 120% at 50% 0%, rgba(201, 160, 74, 0.08), transparent 60%),
    linear-gradient(180deg, #fbf6ee, #f3eadc);
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
}

.hero,
.page-hero {
  background:
    radial-gradient(ellipse 60% 80% at 0% 100%, rgba(201, 160, 74, 0.12), transparent 50%),
    linear-gradient(180deg, #12345b 0%, #0c2238 100%);
}

/* Photos: rounded frames, soft depth, a gold offset mat */
.welcome-photo {
  overflow: visible;
  border-radius: 0;
  background: none;
  box-shadow: none;
  position: relative;
  padding: 0 1.3rem 1.3rem 0;
}
.welcome-photo img {
  border-radius: 14px;
  box-shadow: 0 28px 60px rgba(12, 34, 56, 0.18);
  position: relative;
  z-index: 1;
}
.welcome-photo::after {
  content: "";
  position: absolute;
  inset: 1.05rem 0 0 1.05rem;
  border: 1px solid rgba(201, 160, 74, 0.55);
  border-radius: 16px;
  z-index: 0;
  pointer-events: none;
}
.mosaic a,
.mosaic figure {
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(12, 34, 56, 0.10);
}
.hero--a .hero-photo img { border-radius: 8px; }

/* Cards with depth */
.prog-card, .team-card, .info-card, .action-panel, .review, .why-card {
  border-radius: 14px;
  border: 1px solid rgba(18, 52, 91, 0.08);
  box-shadow: var(--paper-shadow);
  background: var(--paper);
}
.review, .why-card {
  border-top: 3px solid var(--gold);
}
.section.alt .prog-card,
.section.alt .team-card,
.section.alt .why-card {
  background: #fffdf9;
}

/* Refined footer */
.site-footer {
  padding: 4.25rem 0 1.7rem;
  background-color: var(--navy-deep);
  background-image:
    radial-gradient(ellipse 50% 60% at 100% 0%, rgba(201, 160, 74, 0.12), transparent 50%),
    linear-gradient(180deg, #12345b 0%, #0a1c2e 100%);
  border-top: 1px solid rgba(201, 160, 74, 0.4);
}
.footer-brand img {
  box-shadow: 0 0 0 1px rgba(201, 160, 74, 0.55);
}
.footer-base {
  border-top-color: rgba(201, 160, 74, 0.22);
}

@media (prefers-reduced-motion: no-preference) {
  .hero--a .hero-photo img { animation: none; }
  .prog-card:hover, .team-card:hover, .info-card:hover,
  .review:hover, .why-card:hover, .action-panel:hover {
    transform: translateY(-5px);
    box-shadow: var(--paper-shadow-hover);
  }
  .mosaic a:hover img { transform: scale(1.05); }
  .welcome-photo img { transition: transform .6s ease, box-shadow .6s ease; }
  .welcome-photo:hover img { transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .welcome-photo img { transition: none; }
}

@media (max-width: 800px) {
  .welcome-photo { padding: 0 0.7rem 0.7rem 0; }
  .welcome-photo::after { inset: 0.7rem 0 0 0.7rem; }
  body { font-size: 1.08rem; }
}


/* ===== Final pass: monograms, sensory panel, hero photo cap ===== */
.avatar-ph,
.avatar-mono {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(180deg, #173a5c 0%, var(--navy-deep) 100%);
  color: var(--gold-soft);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.42rem;
  letter-spacing: 0.06em;
  line-height: 1;
  border: 1px solid var(--gold);
  box-shadow:
    0 0 0 3px #f6f1e8,
    0 0 0 4px rgba(201, 160, 74, 0.75),
    0 8px 18px rgba(12, 34, 56, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.hero--a .hero-photo {
  align-items: center;
}
.hero--a .hero-photo img {
  width: auto;
  max-width: min(100%, 40rem);
  margin-inline: auto;
  image-rendering: auto;
}

.sensory-panel {
  position: relative;
  min-height: 380px;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 20% 80%, rgba(201, 160, 74, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 50% at 90% 10%, rgba(246, 241, 232, 0.18), transparent 50%),
    linear-gradient(165deg, #12345b 0%, #0c2238 58%, #16314a 100%);
  box-shadow: 0 22px 48px rgba(12, 34, 56, 0.16);
}
.sensory-panel svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
@media (max-width: 800px) {
  .sensory-panel { min-height: 240px; }
  .hero--a .hero-photo img { max-width: 100%; }
}


/* ==========================================================================
   Premium layout pass: full-bleed photo heroes, colour bands, richer cards
   ========================================================================== */
:root {
  --navy-rich: #0e2a4a;
  --stone: #e6dcc9;
  --gold-paper: #f3e7c6;
  --gold-deep: #a97f2c;
}
body { background-color: #ece3d2; background-image: none; }
.site-header { background: var(--navy-deep); border-bottom: 1px solid rgba(201,160,74,.5); }
.brand { color: #fff; }
.brand-name span { color: var(--gold-soft); }
.brand img { background: #f6f1e8; padding: 2px; }
.nav-list a { color: #e8eef4; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }
.menu-toggle { background: transparent; border-color: rgba(255,255,255,.4); }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { background: #fff; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.site-header.is-scrolled { box-shadow: 0 10px 28px rgba(0,0,0,.28); }
.header-actions .btn { white-space: nowrap; }
@media (max-width: 1100px) {
  .nav-list.is-open { background: var(--navy-deep); }
  .nav-list.is-open a { border-bottom-color: rgba(255,255,255,.14); color: #fff; }
}

/* Headings */
h1 { font-size: clamp(2.7rem, 5.6vw, 5rem); }
h2 { font-size: clamp(2.3rem, 4vw, 3.6rem); }
h3 { font-size: 1.5rem; }
.eyebrow { color: var(--gold-deep); }

/* ---- Inner-page hero: full-bleed photo, gradient, copy over image ---- */
.page-hero { padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(3.5rem, 7vw, 5.5rem); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); max-width: 16ch; }
.page-hero .lede { color: #e1e9f1; max-width: 38rem; }
.page-hero .kicker { color: var(--gold); display: flex; align-items: center; gap: .8rem; }
.page-hero .kicker::after { content: ""; width: 3.5rem; height: 1px; background: var(--gold); }
.page-hero:not(.has-photo)::after {
  content: ""; position: absolute; right: -8%; top: -30%; width: 46rem; height: 46rem; border-radius: 50%;
  border: 1px solid rgba(201,160,74,.3); box-shadow: inset 0 0 0 4rem rgba(201,160,74,.04); pointer-events: none;
}
.page-hero:not(.has-photo) .wrap { position: relative; z-index: 1; }
.page-hero.has-photo { padding: 0; min-height: clamp(420px, 56vh, 560px); display: flex; align-items: flex-end; background: var(--navy-deep); }
.page-hero-grid { position: relative; width: 100%; min-height: inherit; margin: 0; display: flex; align-items: flex-end; }
.page-hero-photo { position: absolute; inset: 0; min-height: 0; height: 100%; margin: 0; z-index: 0; }
.page-hero-photo img { object-position: center 30%; }
.page-hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,22,38,.9) 0%, rgba(10,28,48,.66) 45%, rgba(10,28,48,.12) 100%),
    linear-gradient(0deg, rgba(8,22,38,.65) 0%, transparent 55%);
}
.page-hero-grid .copy {
  position: relative; z-index: 1; width: min(var(--max), calc(100% - 48px)); margin-inline: auto;
  padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem); display: block;
}
.page-hero-grid .copy > * { max-width: 40rem; }
.page-hero-grid .copy h1 { max-width: 15ch; }
.page-hero.has-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--gold), transparent 70%); z-index: 2; }

/* ---- Home hero ---- */
.hero { background: var(--navy-rich); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 85% 50%, rgba(201,160,74,.18), transparent 60%),
    linear-gradient(110deg, #08182a 0%, #0e2a4a 55%, #12345b 100%);
}
.hero-grid { position: relative; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); max-height: none; min-height: min(calc(100svh - var(--header-h)), 780px); align-items: center; gap: clamp(1.5rem, 3vw, 3rem); width: min(1280px, calc(100% - 48px)); margin-inline: auto; }
.hero-copy { background: none; padding: clamp(2rem, 4vw, 3.5rem) 0; }
.hero-copy h1 { font-size: clamp(2.7rem, 4.6vw, 4.5rem); max-width: 13ch; }
.hero-crest img { width: 128px; height: 128px; }
.hero--a .hero-photo { background: none; padding: 0 0 1.1rem 0; margin: 0; align-items: stretch; position: relative; }
.hero--a .hero-photo img {
  width: 100%; max-width: 100%; height: auto; border-radius: 6px; margin: 0;
  box-shadow: 0 0 0 1px rgba(201,160,74,.6), 0 30px 60px rgba(0,0,0,.5);
}
.hero--a .hero-photo figcaption { margin-top: .9rem; text-align: right; font-size: .85rem; }

/* ---- Bands ---- */
.inclusive { background: var(--gold-paper); border-color: rgba(169,127,44,.4); }
.section:not(.alt):not(.navy) { background: var(--stone); }
.section.alt {
  background: var(--gold-paper);
  background-image: radial-gradient(ellipse 60% 90% at 100% 0%, rgba(201,160,74,.22), transparent 60%);
  border-color: rgba(169,127,44,.3);
}
.section.navy { background: var(--navy-rich); }
.section.navy .eyebrow { color: var(--gold); }
.section.navy p { color: #d3dfea; }

/* ---- Cards: gold hairline, warm tint, real shadow ---- */
.prog-card, .team-card, .info-card, .action-panel, .review, .why-card {
  background: linear-gradient(180deg, #fffdf8 0%, #f8f0de 100%);
  border: 1px solid rgba(169,127,44,.35);
  border-top: 4px solid var(--gold);
  box-shadow: 0 2px 0 rgba(201,160,74,.25), 0 24px 48px -12px rgba(12,34,56,.28);
  position: relative;
}
.section.alt .prog-card, .section.alt .team-card, .section.alt .why-card, .section.alt .info-card, .section.alt .review {
  background: linear-gradient(180deg, #ffffff 0%, #fbf4e3 100%);
}
.section.navy .prog-card, .section.navy .team-card, .section.navy .info-card, .section.navy .why-card, .section.navy .review {
  background: linear-gradient(180deg, #17406e 0%, #112f52 100%);
  border-color: rgba(201,160,74,.45); box-shadow: 0 24px 48px -12px rgba(0,0,0,.5);
}
.section.navy .prog-card h3, .section.navy .why-card blockquote, .section.navy .review blockquote, .section.navy .team-card h3, .section.navy .info-card h3 { color: #fff; }
.section.navy .prog-card p, .section.navy .team-card p, .section.navy .info-card p { color: #d3dfea; }
.section.navy .why-card figcaption, .section.navy .review figcaption { color: var(--gold-soft); }
.prog-card::before {
  content: ""; width: 44px; height: 44px; border-radius: 50%; margin-bottom: .6rem;
  background: radial-gradient(circle, var(--gold) 0 22%, transparent 24%), var(--navy-deep);
  box-shadow: 0 0 0 3px rgba(201,160,74,.35);
}
.prog-card h3 { color: var(--navy-deep); font-size: 1.7rem; }
.prog-card p, .team-card p, .info-card p { color: #3b4f5f; }
.prog-grid, .team-grid, .card-row, .reviews, .why-grid { align-items: stretch; }
.phase { border-top: 3px solid var(--gold); background: rgba(255,255,255,.55); border-radius: 0 0 12px 12px; padding: 1rem 1.1rem 1.1rem; box-shadow: 0 14px 30px -14px rgba(12,34,56,.25); }
.section.navy .phase { background: rgba(255,255,255,.06); }
.info-card .icon-line { stroke: var(--gold-deep); }
.inclusive-list svg { stroke: var(--gold-deep); }
.values li { border-top-color: rgba(169,127,44,.6); }
.placeholder-fact { color: #3b4f5f; }

/* ---- Footer ---- */
.site-footer {
  background-color: #08182a;
  background-image: radial-gradient(ellipse 50% 70% at 100% 0%, rgba(201,160,74,.16), transparent 55%), linear-gradient(180deg, #0e2a4a 0%, #08182a 100%);
  border-top: 4px solid var(--gold); padding-top: 4.5rem;
}
.footer-brand strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; color: #fff; }
.footer-brand img { background: #f6f1e8; padding: 2px; }
.footer-col h4 { color: var(--gold); border-bottom: 1px solid rgba(201,160,74,.3); padding-bottom: .6rem; }
.footer-base { color: #c3cfda; }
.footer-grid > * { min-width: 0; }
.footer-col a { overflow-wrap: anywhere; }

/* ---- Layout safety ---- */
.gallery-intro { flex-wrap: wrap; }
.wa-float { right: 16px; bottom: 16px; }

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding-bottom: 0; }
  .hero--a .hero-photo { padding-bottom: 2.2rem; }
  .hero--a .hero-photo img { max-width: 44rem; margin-inline: auto; }
  .hero--a .hero-photo figcaption { text-align: center; }
  .mosaic { grid-template-rows: repeat(4, 190px); }
}
@media (max-width: 800px) {
  .page-hero.has-photo { min-height: 360px; }
  .page-hero-photo::after { background: linear-gradient(0deg, rgba(8,22,38,.95) 0%, rgba(8,22,38,.75) 55%, rgba(8,22,38,.45) 100%); }
  .page-hero-grid .copy { width: calc(100% - 40px); padding: 3rem 0 2.2rem; }
  .page-hero-photo { max-height: none; min-height: 0; }
  .hero-grid { width: calc(100% - 40px); }
  .hero--a .hero-photo { order: 0; aspect-ratio: auto; max-height: none; padding-bottom: 1.6rem; }
  .hero--a .hero-photo img { max-width: 100%; height: auto; object-fit: contain; border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(201,160,74,.6), 0 18px 36px rgba(0,0,0,.45); }
  .hero-copy { order: -1; padding: 1.6rem 0 0; }
  .hero-crest { margin: 0 0 .9rem; display: flex; justify-content: flex-start; }
  .hero-crest img { width: 76px; height: 76px; padding: 3px; }
  .hero-copy h1 { font-size: clamp(2.3rem, 9vw, 3rem); margin-bottom: .35em; }
  .hero-copy .kicker { margin-bottom: .6rem; }
}
@media (max-width: 560px) {
  .header-inner { width: calc(100% - 24px); gap: 8px; }
  .header-actions .btn { width: auto; padding: .55rem .85rem; font-size: .85rem; }
  .brand img { width: 44px; height: 44px; }
  .menu-toggle { width: 42px; height: 42px; flex-shrink: 0; }
  .hero-copy .btn { padding: .75rem 1rem; }
  .hero-copy .btn-row { gap: .5rem; }
  .hero-copy .intro { font-size: 1rem; margin-bottom: .8rem; }
  .page-hero h1 { font-size: clamp(2.3rem, 10vw, 3rem); }
  .mosaic { grid-template-rows: 170px 160px 160px 160px 200px; }
}

/* ---- Photo pass follow-up: FET contain-split + mid-width home hero ---- */
.page-hero.has-photo.page-hero--contain {
  min-height: 0;
  display: block;
  background:
    radial-gradient(ellipse 55% 70% at 90% 50%, rgba(201,160,74,.16), transparent 60%),
    linear-gradient(110deg, #08182a 0%, #0e2a4a 55%, #12345b 100%);
}
.page-hero--contain .page-hero-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.15fr);
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
  min-height: clamp(360px, 46vh, 500px);
}
.page-hero--contain .page-hero-photo {
  position: relative;
  inset: auto;
  height: auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 1;
}
.page-hero--contain .page-hero-photo::after { display: none; }
.page-hero--contain .page-hero-photo img {
  position: relative;
  inset: auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
  object-position: right center;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(201,160,74,.6), 0 24px 48px rgba(0,0,0,.45);
}
.page-hero--contain .page-hero-grid .copy {
  position: relative;
  z-index: 1;
  width: auto;
  margin: 0;
  padding: clamp(2.4rem, 5vw, 4rem) 0;
}
.page-hero--contain.has-photo::after { z-index: 2; }

@media (max-width: 800px) {
  .page-hero--contain .page-hero-grid {
    grid-template-columns: 1fr;
    width: calc(100% - 40px);
    min-height: 0;
    gap: 0.4rem;
  }
  .page-hero--contain .page-hero-grid .copy {
    width: auto;
    padding: 2.4rem 0 0.8rem;
  }
  .page-hero--contain .page-hero-photo {
    justify-content: center;
    padding: 0 0 1.5rem;
  }
  .page-hero--contain .page-hero-photo img {
    max-height: none;
    width: 100%;
    height: auto;
  }
}

@media (max-width: 1040px) and (min-width: 801px) {
  .hero-crest img { width: 88px; height: 88px; }
  .hero-copy { padding-top: 1.2rem; padding-bottom: 0.5rem; }
  .hero-copy h1 { font-size: clamp(2.4rem, 4.2vw, 3.4rem); }
  .hero--a .hero-photo { padding-bottom: 1.4rem; }
}

/* Production refinement: prevent background scroll with the expanded menu on phones and tablets. */
@media (max-width: 1100px) {
  body.menu-open { overflow: hidden; }
}
/* Prevent long email addresses from widening the contact grid on narrow phones. */
.card-row > * { min-width: 0; }
.info-card a[href^="mailto:"],
.footer-col a[href^="mailto:"],
.credits a[href^="mailto:"] { overflow-wrap: anywhere; }


/* ===========================================================================
   BEC homepage refinement — quiet cool neutrals beneath the navy hero.
   Keep the school's navy-and-gold identity. No additional runtime dependency.
   Scoped to Home so other established page designs are not unexpectedly changed.
   =========================================================================== */
.home-page { background: #f7f9fc; }
.home-page .inclusive {
  background: #e9f1f7;
  border-top: 1px solid #d4e1eb;
  border-bottom: 1px solid #d4e1eb;
}
.home-page .inclusive-head { color: #1b4567; }
.home-page .inclusive-list li { color: #173a59; }
.home-page .inclusive-list svg { stroke: #2f6184; }
.home-page .section:not(.alt):not(.navy) { background: #f8fafc; }
.home-page .section.alt {
  background: #eef3f8;
  background-image: radial-gradient(ellipse 58% 80% at 100% 0%, rgba(94,141,179,.09), transparent 62%);
  border-color: #d6e2ed;
}
.home-page .section:not(.navy) .prog-card,
.home-page .section:not(.navy) .team-card,
.home-page .section:not(.navy) .info-card,
.home-page .section:not(.navy) .action-panel,
.home-page .section:not(.navy) .review,
.home-page .section:not(.navy) .why-card {
  background: #fff;
  border: 1px solid #d7e2ec;
  border-top: 2px solid #83a1b8;
  box-shadow: 0 15px 36px -23px rgba(10,40,70,.32);
}
.home-page .section:not(.navy) .prog-card::before {
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: #b88b38;
  box-shadow: none;
  margin-bottom: .9rem;
}
.home-page .section:not(.navy) .phase {
  background: rgba(255,255,255,.76);
  border-top: 2px solid #c9a04a;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 13px 27px -24px rgba(12,34,56,.4);
}
@media (prefers-reduced-motion: no-preference) {
  .home-page .section:not(.navy) .prog-card,
  .home-page .section:not(.navy) .team-card,
  .home-page .section:not(.navy) .why-card,
  .home-page .section:not(.navy) .info-card {
    transition: transform .22s ease, box-shadow .22s ease;
  }
  .home-page .section:not(.navy) .prog-card:hover,
  .home-page .section:not(.navy) .team-card:hover,
  .home-page .section:not(.navy) .why-card:hover,
  .home-page .section:not(.navy) .info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 48px -26px rgba(10,40,70,.38);
  }
}


/* Refined gallery interaction — local, dependency-free alternative to
 * PhotoSwipe for this modest eight-image school gallery. */
.gallery-hint { margin: -0.6rem 0 1.3rem; color: var(--muted); font-size: .92rem; }
.mosaic a { position: relative; display: block; overflow: hidden; }
.mosaic a::after {
  content: "View photo ↗";
  position: absolute;
  bottom: .7rem;
  right: .7rem;
  border-radius: 999px;
  padding: .25rem .7rem;
  color: #fff;
  background: rgba(12,34,56,.78);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .02em;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.mosaic a:hover::after, .mosaic a:focus-visible::after { opacity: 1; transform: none; }
body.gallery-open { overflow: hidden; }
.bec-lightbox {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: min(100vw - 2rem, 1100px);
  height: min(100dvh - 2rem, 850px);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 16px;
  color: #fff;
  background: #0c2238;
  box-shadow: 0 30px 100px rgba(0,0,0,.52);
}
.bec-lightbox::backdrop { background: rgba(6,16,28,.9); }
.lightbox-shell { display: flex; flex-direction: column; width: 100%; height: 100%; }
.lightbox-top { display: flex; align-items: center; justify-content: space-between; padding: .65rem 1rem; border-bottom: 1px solid #ffffff26; }
.lightbox-count { font-size: .9rem; letter-spacing: .02em; color: #dde7f0; }
.lightbox-photo { flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; padding: .5rem; touch-action: pan-y; }
.lightbox-photo img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox-bottom { display: grid; grid-template-columns: 48px minmax(0,1fr) 48px; align-items: center; gap: .5rem; padding: .55rem .85rem .85rem; border-top: 1px solid #ffffff26; }
.lightbox-caption { margin: 0; text-align: center; color: #f0f5f9; font-size: .87rem; line-height: 1.3; }
.bec-lightbox button {
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.08);
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
}
.bec-lightbox button:hover { background: rgba(255,255,255,.2); }
.bec-lightbox button:focus-visible { outline: 3px solid #f8d17b; outline-offset: 2px; }
@media (max-width: 540px) {
  .bec-lightbox { width: calc(100vw - 1rem); height: calc(100dvh - 1rem); border-radius: 10px; }
  .lightbox-bottom { grid-template-columns: 44px minmax(0,1fr) 44px; padding: .5rem; }
  .lightbox-caption { font-size: .78rem; }
  .mosaic a::after { opacity: .92; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .mosaic a::after { transition: none; } }



/* ========================================================================
   1 December: deep navy editorial refresh; only the homepage and sensory
   image have changed. Alternating atmospheric dark and lighter sections.
   ======================================================================== */
.home-page { background: #0d243a; }
.home-page .inclusive {
  background: linear-gradient(110deg, #123653, #1b4560 49%, #17334b);
  border-color: rgba(227,185,107,.23);
}
.home-page .inclusive-head { color: #ead3a4; }
.home-page .inclusive-list li { color: #eef5f8; }
.home-page .inclusive-list svg { stroke: #e8c784; }

.home-page .section {
  border-bottom: 1px solid rgba(200,218,231,.14);
}
.home-page .section .eyebrow { letter-spacing: .16em; }
.home-page .section .section-head h2 { max-width: 20ch; }
.home-page .section .lede { line-height: 1.57; }

/* Large dark editorial story, the primary contrast below the hero */
.home-page .home-welcome,
.home-page .home-gallery,
.home-page .home-sensory,
.home-page .home-testimonials,
.home-page .section.alt.home-contact {
  color: #e8f1f6;
  border-color: rgba(220,236,245,.15);
}
.home-page .section.home-welcome:not(.alt):not(.navy) {
  background: radial-gradient(ellipse 66% 70% at 100% 0%,rgba(57,104,133,.21),transparent 66%),linear-gradient(140deg,#0b2034,#142f46);
}
.home-page .home-welcome h2,
.home-page .home-gallery h2,
.home-page .home-sensory h2,
.home-page .home-testimonials h2,
.home-page .home-contact h2,
.home-page .home-welcome h3,
.home-page .home-contact h3 { color: #f9fbfd; }
.home-page .home-welcome p,
.home-page .home-gallery p,
.home-page .home-sensory p,
.home-page .home-testimonials p,
.home-page .home-contact p { color: #d4e2eb; }
.home-page .home-welcome .lede,
.home-page .home-gallery .lede,
.home-page .home-sensory .lede,
.home-page .home-testimonials .lede,
.home-page .home-contact .lede { color: #cddde9; }
.home-page .home-welcome .eyebrow,
.home-page .home-gallery .eyebrow,
.home-page .home-sensory .eyebrow,
.home-page .home-testimonials .eyebrow,
.home-page .home-contact .eyebrow { color: #e9c57e; }
.home-page .home-welcome a:not(.btn),
.home-page .home-gallery a:not(.btn),
.home-page .home-sensory a:not(.btn),
.home-page .home-testimonials a:not(.btn),
.home-page .home-contact a:not(.btn) { color: #f2d6a0; }
.home-page .home-welcome .welcome-photo img { box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.home-page .home-welcome .welcome-photo::after { border-color: rgba(226,179,89,.65); }

/* A deliberate lighter pause for the curriculum, not a whole pale site */
.home-page .section.alt.home-programmes {
  background: linear-gradient(160deg,#d7e2e9,#e6edf0 55%,#d9e3e9);
  border-color: #bfcdd7;
}
.home-page .home-programmes h2 { color: #102c44; }
.home-page .home-programmes .prog-card {
  background: #f9fbfc;
  border: 1px solid #bfd0da;
  border-top: 3px solid #bf9145;
  box-shadow: 0 17px 37px -24px rgba(5,26,47,.37);
}
.home-page .home-programmes .prog-card::before {
  width: 42px; height: 3px; margin-bottom: .75rem; border-radius: 3px;
  background: #bc8f47; box-shadow: none;
}
.home-page .home-programmes .phase {
  background: #eef3f5;
  border-top: 2px solid #bb8e49;
  box-shadow: none;
  border-bottom: 1px solid #c6d1d8;
}

/* Photographs feel more vivid against an inky gallery stage */
.home-page .section.home-gallery:not(.alt):not(.navy) {
  background: radial-gradient(ellipse 56% 75% at 95% 10%,rgba(48,99,125,.25),transparent 70%),linear-gradient(155deg,#10283e,#0b2034);
}
.home-page .home-gallery .gallery-hint { color: #bfceda; }
.home-page .home-gallery .mosaic { gap: clamp(8px,1.2vw,14px); }
.home-page .home-gallery .mosaic a { box-shadow: 0 22px 44px rgba(0,0,0,.24); }
.home-page .home-gallery .mosaic img { filter: saturate(1.06); }

/* Text-only sensory section: no imagery of the room is shown. */
.home-page .section.alt.home-sensory {
  background: linear-gradient(115deg,#193b53,#123049 60%,#17344a);
}
.home-page .home-sensory .split { gap: clamp(2.5rem,5vw,5rem); }
.home-page .home-sensory h2 { font-size: clamp(2.8rem,5vw,4.3rem); }
.home-page .home-sensory .link-plain { display: inline-block; margin-top: 1rem; }

.home-page .section.navy.home-fet { background: radial-gradient(ellipse 65% 95% at 10% 90%,rgba(65,133,157,.28),transparent 65%),linear-gradient(135deg,#102842,#173e5d 60%,#113047); }
.home-page .home-fet h2 { color: #fff; }

/* Staff should be the daylight moment between two deep sections */
.home-page .section.home-team:not(.alt):not(.navy) {
  background: linear-gradient(140deg,#dce7ed,#e9eff2);
}
.home-page .home-team .team-card {
  background: #f9fbfc;
  border: 1px solid #c6d4dc;
  border-top: 3px solid #bd914d;
  box-shadow: 0 18px 36px -25px rgba(14,44,68,.4);
}
.home-page .home-team .team-card .role { color: #365c7b; }

/* Quotes: soft blue on midnight with restrained gold accent */
.home-page .section.alt.home-testimonials {
  background: radial-gradient(ellipse 55% 80% at 80% 25%,rgba(55,96,125,.22),transparent 70%),#0b2135;
}
.home-page .section.alt.home-testimonials .why-card {
  background: linear-gradient(160deg,#1a3951,#142f46);
  border: 1px solid rgba(167,196,216,.22);
  border-top: 3px solid #d0a45b;
  box-shadow: 0 20px 36px -23px rgba(0,0,0,.75);
}
.home-page .home-testimonials .why-card blockquote { color: #f3f6f9; }
.home-page .home-testimonials .why-card .why-label,
.home-page .home-testimonials .why-card figcaption { color: #f0d39a; }

.home-page .section.home-admissions:not(.alt):not(.navy) {
  background: linear-gradient(120deg,#e3ecf0,#d5e3eb);
  border-color: #c0d0da;
}
.home-page .home-admissions h2 { color: #102c44; }
.home-page .home-admissions .lede { color: #38566a; }

.home-page .section.alt.home-contact {
  background: linear-gradient(135deg,#112c44,#0b2237);
}
.home-page .section.alt.home-contact .info-card {
  background: #1b3b52;
  border: 1px solid rgba(174,201,218,.26);
  border-top: 3px solid #cca05b;
  box-shadow: 0 18px 32px -23px rgba(0,0,0,.58);
}
.home-page .home-contact .info-card p,
.home-page .home-contact .info-card a { color: #eef4f7; }
.home-page .home-contact .info-card .icon-line { stroke: #efd098; }
.home-page .home-contact .info-card h3 { color: #f8fbfd; }

/* Individual sensory page also uses a cooler, non-yellow field */
.sensory-page .section:not(.navy) {
  background: linear-gradient(155deg,#d9e5eb,#ebf0f2);
}

/* Reduce movement in a learning-support environment. */
@media (prefers-reduced-motion: reduce) {
  .home-page .mosaic img { transition: none; }
}
@media (max-width: 800px) {
  .home-page .home-sensory h2 { font-size: clamp(2.4rem,8vw,3.4rem); }
}


/* 1 December: programme explanations and text-only sensory presentation.
   No invented photography or third-party runtime dependencies. */
.home-page .prog-card.programme-link {
  text-decoration: none;
  color: #15334b;
  min-height: 236px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.home-page .prog-card.programme-link:hover,
.home-page .prog-card.programme-link:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(5,26,47,.43);
  border-color: #b28a50;
}
.programme-number {
  display: block;
  font-size: .75rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .13em;
  line-height: 1.4;
  color: #4e6678;
}
.programme-link .programme-number { margin-bottom: .35rem; }
.home-page .programme-link p { margin-bottom: 1.4rem; }
.programme-link-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: .75rem;
  padding-top: .85rem;
  border-top: 1px solid #d4dee4;
  color: #164b70;
  font-size: .93rem;
  font-weight: 750;
  line-height: 1.3;
}
.programme-link-label span { font-size: 1.3rem; transition: transform .2s ease; }
.programme-link:hover .programme-link-label span { transform: translate(2px,-2px); }
.programmes-intro { max-width: 49rem; margin-bottom: 2rem; }
.programme-explainers { display: grid; gap: 1rem; }
.programme-explainer {
  display: grid;
  grid-template-columns: minmax(205px,.76fr) minmax(0,1.6fr);
  gap: clamp(1rem,4vw,3rem);
  align-items: start;
  background: #f9fbfc;
  padding: clamp(1.5rem,3vw,2.5rem);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.programme-explainer:target { outline: 3px solid #c59e61; outline-offset: 3px; }
.programme-explainer-heading h3 { font-size: clamp(1.9rem,3vw,2.65rem); margin: .65rem 0 0; }
.programme-explainer-body > p { margin-bottom: .85rem; line-height: 1.55; }
.programme-explainer-body .programme-lede { color: #143c57; font-size: 1.18rem; font-weight: 700; }
.programme-more { margin: 1.3rem 0; border-block: 1px solid #d6e0e7; }
.programme-more summary { cursor: pointer; padding: .95rem 1.5rem .95rem 0; font-weight: 750; color: #153a55; }
.programme-more summary:hover { color: #286b91; }
.programme-more[open] summary { padding-bottom: .4rem; }
.programme-more p { margin: 0 0 1.1rem; color: #435c6e; line-height: 1.6; }
.programme-actions { display: flex; flex-wrap: wrap; gap: .7rem 1.6rem; font-size: .94rem; line-height: 1.6; }
.programme-caveat { margin: 2rem 0 0; padding: 1.1rem 1.25rem; background: #e6eef2; border-left: 3px solid #b28a50; font-size: .99rem; color: #29495e; }
.home-page .section.alt.home-sensory { background: linear-gradient(125deg,#153852,#102a41 65%,#1b4057); }
.sensory-editorial { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,.85fr); gap: clamp(2rem,6vw,6rem); align-items: center; }
.sensory-editorial-main h2 { max-width: 14ch; margin-bottom: .55em; }
.sensory-editorial-main .lede { max-width: 36rem; margin-bottom: 1.6rem; }
.sensory-editorial-note {
  border-left: 2px solid #d9ae6b;
  padding: .8rem 0 .8rem clamp(1.5rem,3vw,2.6rem);
}
.sensory-note-overline { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 750; color: #efd093 !important; margin-bottom: 1.3rem; }
.sensory-note-title { font-family: var(--serif); font-size: clamp(1.8rem,2.5vw,2.55rem); line-height: 1.24; color: #f7fafc !important; margin-bottom: .85rem; }
.sensory-editorial-note > p:last-child { color: #cadbe4; line-height: 1.6; margin-bottom: 0; }
.sensory-detail-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,.85fr); gap: clamp(2rem,6vw,6rem); align-items: start; }
.sensory-detail-copy h2 { max-width: 14ch; }
.sensory-detail-aside { background: linear-gradient(145deg,#153953,#102a41); color: #e3eef4; padding: clamp(1.5rem,3vw,2.75rem); border-top: 3px solid #d0a45b; border-radius: 4px; }
.sensory-detail-aside h3 { color: #fff; font-size: clamp(1.65rem,2.7vw,2.15rem); }
.sensory-detail-aside p:not(.sensory-note-overline) { color: #d1e1eb; margin-bottom: 1.5rem; }
.sensory-detail-aside .btn { white-space: normal; text-align: center; }
@media (max-width: 800px) {
 .sensory-editorial,.sensory-detail-grid,.programme-explainer { grid-template-columns: 1fr; }
 .sensory-editorial-note { padding-left: 1.4rem; }
 .programme-explainer { gap: 1rem; }
 .home-page .prog-card.programme-link { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
 .programme-link, .programme-link-label span { transition: none !important; }
}


/* Curriculum detail layout: reset the generic programme-card ornament, which
   otherwise becomes an unwanted first grid item. */
.programme-explainer::before { content: none !important; display: none !important; }
.programmes-page .section:not(.alt) {
  background: linear-gradient(150deg,#dfe9ee,#f2f6f8 65%,#e2ebf0);
}
.programmes-page .section.alt {
  background: linear-gradient(150deg,#d1e1e8,#e5edf1);
}
.programmes-page .programme-explainer { border: 1px solid #c3d3dc; border-top: 3px solid #c49a54; box-shadow: 0 12px 35px -22px rgba(14,49,73,.26); }
.programmes-page .programme-explainer-heading h3 { color: #142f49; }
.programmes-page .programme-explainer-body { min-width: 0; }


/* Parent guide and admissions journey — 1 December 2026. No external services. */
#ask-bec { scroll-margin-top: calc(var(--header-h) + 12px); }
.home-page .section.parent-guide-section,
.section.parent-guide-section {
  background: linear-gradient(138deg,#102a42 0%,#173d57 54%,#102a42 100%);
  color: #e6f0f6;
  border-top: 1px solid rgba(226,192,130,.32);
  border-bottom: 1px solid rgba(226,192,130,.32);
}
.parent-guide-intro { display:flex;align-items:end;justify-content:space-between;gap:3rem;margin-bottom:2.1rem; }
.parent-guide-intro h2 { color:#fff; font-size:clamp(2.3rem,4.5vw,4rem); margin-bottom:.35em; }
.parent-guide-intro h2 em { color:#e5bd73; }
.parent-guide-intro .eyebrow { color:#e8c58b; }
.parent-guide-intro .lede { color:#cbdde8;max-width:41rem;margin:0; }
.parent-guide-stamp { margin:0; min-width:165px;padding-left:1.25rem;border-left:1px solid rgba(229,190,124,.6);font-size:.86rem;line-height:1.55;color:#d4e0e8; }
.parent-guide-stamp span {display:block;color:#e7c27a;font-size:1.55rem;line-height:1.2;margin-bottom:.45rem}
.parent-guide-stamp strong {color:#fff;font-weight:650}
.parent-guide { display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);border:1px solid rgba(211,231,241,.28);border-radius:18px;overflow:hidden;background:rgba(11,31,50,.45);box-shadow:0 22px 60px rgba(0,0,0,.16); }
.parent-guide-topics {display:none;align-content:start;gap:0;background:rgba(7,24,40,.55);padding:1rem 0;}
.parent-guide.is-enhanced .parent-guide-topics {display:grid}
.parent-guide-label {font-size:.79rem;text-transform:uppercase;letter-spacing:.11em;color:#d7b474;font-weight:750;padding:.6rem 1.65rem 1rem;margin:0}
.parent-guide-choice {display:grid;grid-template-columns:2.5rem minmax(0,1fr) 1.25rem;align-items:center;gap:.65rem;text-align:left;padding:1rem 1.25rem;border:0;border-left:3px solid transparent;background:transparent;color:#dbe9f1;cursor:pointer;font:600 1.04rem/1.4 var(--sans);min-height:68px;transition:background .18s,color .18s}
.parent-guide-choice:hover {background:rgba(255,255,255,.06);color:#fff}
.parent-guide-choice.is-selected {border-left-color:#e9bd73;background:rgba(255,255,255,.10);color:#fff}
.parent-guide-choice:focus-visible {outline:3px solid #eac47f;outline-offset:-4px}
.parent-guide-choice-n {color:#e0ba78;font:600 .77rem var(--sans)}
.parent-guide-chevron {color:#e8c68e;font-size:1.23rem;text-align:right}
.parent-guide-responses {padding:clamp(1.5rem,4vw,3.5rem);min-width:0;display:grid;align-content:center;gap:1rem}
.parent-guide-answer {padding:1rem 0 1.7rem;border-bottom:1px solid rgba(230,240,248,.18)}
.parent-guide-answer:last-child {border-bottom:0}
.parent-guide.is-enhanced .parent-guide-answer:not(.is-active) {display:none}
.parent-guide.is-enhanced .parent-guide-answer {padding:0;border:0}
.parent-guide-tag {text-transform:uppercase;letter-spacing:.14em;color:#eac587;font-size:.79rem;font-weight:750;margin-bottom:1.1rem}
.parent-guide-answer h3 {color:#fff;font-size:clamp(1.7rem,3vw,2.65rem);line-height:1.16;margin-bottom:.6em;max-width:19ch}
.parent-guide-copy {color:#d4e3ec;font-size:1.08rem;line-height:1.72;margin-bottom:1.6rem;max-width:58ch}
.parent-guide-actions {display:flex;gap:.8rem 1.5rem;align-items:center;flex-wrap:wrap}
.parent-guide-actions a {display:inline-flex;min-height:44px;align-items:center;font-weight:750;text-underline-offset:4px;font-size:.96rem;color:#efd096}
.parent-guide-actions .parent-guide-primary {background:#eac47f;color:#102b42;text-decoration:none;border-radius:999px;padding:.63rem 1.2rem}
.parent-guide-actions .parent-guide-primary:hover {background:#f2d598;color:#0c2438}
.parent-guide-foot {display:flex;align-items:start;justify-content:space-between;gap:1.5rem;padding-top:1.2rem;color:#baccd8;font-size:.87rem}
.parent-guide-foot p {margin:0;max-width:48rem}
.parent-guide-footlink {color:#efd096;white-space:nowrap;font-weight:700;text-underline-offset:4px}
.hero-guidance-link {margin-top:.4rem;margin-bottom:.7rem;font-size:.97rem}

/* Admissions: guided enquiry, not an implied online application. */
.admissions-content > .wrap { max-width:1040px; }
.admissions-kicker {max-width:680px;margin-bottom:2rem}
.admissions-kicker .lede {font-size:1.15rem}
.admissions-kicker h2 {font-size:clamp(2.1rem,3.5vw,3.2rem)}
.admissions-journey {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;padding:0;margin:0 0 3.2rem;list-style:none;counter-reset:steps}
.admissions-journey li {padding:1.5rem 1.4rem;background:linear-gradient(155deg,#f5f9fb,#e7f0f4);border:1px solid #cbdce5;border-top:3px solid #bf9554;border-radius:12px;box-shadow:0 15px 35px -27px rgba(12,34,56,.3)}
.admissions-number {display:block;color:#8a662f;font-size:.83rem;font-weight:750;letter-spacing:.1em;margin-bottom:1.6rem}
.admissions-journey h3 {font-size:1.55rem;margin-bottom:.45em;color:#12344e}
.admissions-journey p {font-size:1rem;line-height:1.58;color:#455d6c;margin:0}
.admissions-contact-intro {margin-bottom:1.5rem}
.admissions-contact-intro h2 {font-size:clamp(2rem,3vw,2.6rem)}
.admissions-contact-intro p {color:#4f6676}
.admissions-content .action-panel {border-top:3px solid #c49b58;background:#fbfdfe}
.admissions-support-note {margin:2rem 0;padding:1.6rem 1.8rem;border-radius:12px;background:linear-gradient(125deg,#11314b,#19415b);color:#dceaf2;display:flex;align-items:center;justify-content:space-between;gap:1.5rem}
.admissions-support-note .eyebrow {color:#e6be7b}
.admissions-support-note h3 {color:#fff;margin-bottom:.35em;font-size:1.65rem}
.admissions-support-note p {margin:0;font-size:1rem;max-width:42rem}
.admissions-support-note .btn-ghost-dark {color:#fff;border-color:rgba(255,255,255,.8);white-space:nowrap}
.admissions-support-note .btn-ghost-dark:hover {background:#fff;color:#0c2238}
.admissions-confirmation {font-size:.95rem;color:#40596a}
/* Team structure: keep bios unchanged, make tenure scannable. */
.team-group-intro {max-width:720px;margin-bottom:1.5rem}
.team-group-intro:not(:first-child) {margin-top:3.8rem}
.team-group-intro h2 {font-size:clamp(2rem,3.4vw,3rem)}
.team-group-intro p:last-child {color:#4f6272;font-size:1rem}
.team-grid--leaders {grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:3rem}
.team-grid--educators {grid-template-columns:repeat(3,minmax(0,1fr))}
.staff-tenure {display:inline-flex;align-items:center;padding:.32rem .7rem;background:#e6eef3;border:1px solid #bfd1df;color:#163c58;border-radius:999px;font-size:.8rem;line-height:1.25;font-weight:750;margin-bottom:.85rem}
/* FET facts: express planned provision as planned, not guaranteed. */
.fet-information-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.85rem;margin:1.8rem 0 2rem}
.fet-information-grid>div {background:#f8fbfc;padding:1.2rem 1.15rem;border-top:3px solid #c49a55;border-radius:6px}
.fet-information-grid h3 {font-size:1.25rem;margin:.45rem 0}
.fet-information-grid p {font-size:.92rem;color:#4d6474;margin:0}
.fet-label {font-size:.74rem;letter-spacing:.1em;text-transform:uppercase;color:#825e29;font-weight:750}
@media (max-width:850px){
 .parent-guide-intro {align-items:start}
 .parent-guide-stamp {display:none}
 .parent-guide {grid-template-columns:1fr}
 .parent-guide-topics {border-bottom:1px solid rgba(221,237,248,.26)}
 .parent-guide.is-enhanced .parent-guide-topics {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:.5rem}
 .parent-guide-label {grid-column:1/-1;padding:.7rem 1rem}
 .parent-guide-choice {border-left:0;border-bottom:2px solid transparent;border-radius:6px;min-height:64px;padding:.85rem;grid-template-columns:1.6rem minmax(0,1fr)}
 .parent-guide-choice.is-selected {border-bottom-color:#eac47f}
 .parent-guide-choice-n {display:none}
 .parent-guide-chevron {display:none}
 .admissions-journey {grid-template-columns:1fr;gap:.8rem}
 .admissions-journey li {padding:1.3rem}
 .admissions-number {margin-bottom:.5rem}
 .admissions-support-note {align-items:start;flex-direction:column}
 .team-grid--educators {grid-template-columns:repeat(2,minmax(0,1fr))}
 .fet-information-grid {grid-template-columns:1fr}
}
@media (max-width:560px){
 .parent-guide-intro h2 {font-size:clamp(2rem,9vw,2.8rem)}
 .parent-guide.is-enhanced .parent-guide-topics {grid-template-columns:1fr}
 .parent-guide-choice {min-height:52px;grid-template-columns:minmax(0,1fr);padding:.72rem 1rem}
 .parent-guide-responses {padding:1.5rem}
 .parent-guide-foot {display:block}
 .parent-guide-footlink {display:inline-block;margin-top:.85rem}
 .parent-guide-actions {align-items:stretch;flex-direction:column}
 .parent-guide-actions a {justify-content:center;text-align:center}
 .team-grid--leaders,.team-grid--educators {grid-template-columns:1fr}
 .admissions-support-note {padding:1.3rem}
}
@media (prefers-reduced-motion:reduce){.parent-guide-choice{transition:none}}

/* Specificity correction: legacy generic section styling must never turn the
   navy parent guide into an unreadable light panel. */
body.home-page .section.parent-guide-section:not(.alt):not(.navy) {
  background: radial-gradient(ellipse 58% 65% at 100% 5%,rgba(70,133,158,.21),transparent 70%),
              linear-gradient(140deg,#0c253d 0%,#19415a 63%,#0f2d44 100%);
  color:#e6f0f6;
}
body.home-page .section.parent-guide-section h2,
body.home-page .section.parent-guide-section h3 {color:#fff}
body.home-page .section.parent-guide-section .parent-guide-foot p {color:#bdced9}
body.home-page .section.parent-guide-section .parent-guide-intro .lede {color:#d1e1ea}
body .section.admissions-content:not(.alt):not(.navy),
body .section.team-people-section:not(.alt):not(.navy) {
  background:linear-gradient(155deg,#dce7ed 0%,#eef3f5 48%,#e0e9ee 100%);
}

.parent-guide-mobile-choice {display:none}
@media (max-width:560px) {
 .parent-guide.is-enhanced .parent-guide-topics {display:block;padding:1.1rem}
 .parent-guide.is-enhanced .parent-guide-choice,.parent-guide.is-enhanced .parent-guide-label {display:none}
 .parent-guide.is-enhanced .parent-guide-mobile-choice {display:block}
 .parent-guide-mobile-choice label {display:block;color:#e8c483;font-size:.77rem;letter-spacing:.11em;text-transform:uppercase;font-weight:750;margin-bottom:.65rem}
 .parent-guide-mobile-choice select {display:block;appearance:auto;width:100%;min-height:52px;padding:.75rem 1rem;border:1px solid rgba(235,204,148,.58);background:#f5f8fb;color:#14304a;border-radius:8px;font:700 1rem/1.3 var(--sans);white-space:normal}
 .parent-guide-mobile-choice select:focus-visible {outline:3px solid #f2ca85;outline-offset:3px}
}


/* 2027 family guide and guided tour enquiry — no API, booking system or data storage */
.parent-guide-footlinks {display:flex;flex-wrap:wrap;gap:.6rem 1.5rem;align-items:center;justify-content:flex-end}
.parent-guide-footlinks a {white-space:normal}
.tour-enquiry {scroll-margin-top:calc(var(--header-h) + 20px);background:linear-gradient(142deg,#0e2a44 0%,#16405e 70%,#0e2b45 100%);border:1px solid #315b76;border-radius:18px;overflow:hidden;margin:0 0 1.35rem;box-shadow:0 22px 60px -32px rgba(7,27,46,.55)}
.tour-enquiry-heading {padding:clamp(1.45rem,3.3vw,2.55rem) clamp(1.4rem,3.6vw,2.9rem) 1.7rem;display:flex;gap:1.5rem;justify-content:space-between;align-items:center;border-bottom:1px solid rgba(226,238,245,.19)}
.tour-enquiry-heading .eyebrow {color:#e8c48c;margin-bottom:.75rem}
.tour-enquiry-heading h2 {color:#fff;font-size:clamp(2.1rem,3.6vw,3.2rem);margin-bottom:.35em;line-height:1.08}
.tour-enquiry-heading h2 em {color:#efc887}
.tour-enquiry-heading p:last-child {color:#d2e3eb;max-width:58ch;margin:0;line-height:1.65}
.tour-enquiry-mark {display:flex;align-items:center;gap:.55rem;color:#e7bf7e;font:700 .82rem var(--sans);letter-spacing:.1em;flex-shrink:0}
.tour-enquiry-mark span:not(.tour-enquiry-mark-line){width:2.2rem;height:2.2rem;border:1px solid rgba(236,194,126,.5);border-radius:50%;display:grid;place-items:center}
.tour-enquiry-mark-line {height:1px;background:rgba(234,193,127,.45);width:1.1rem}
.tour-enquiry-form {padding:clamp(1.4rem,3.6vw,2.9rem)}
.tour-form-fields {display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.75fr) minmax(0,1fr);gap:1.2rem;align-items:start}
.tour-field {min-width:0}
.tour-field label {display:block;font:700 .94rem/1.4 var(--sans);color:#fff;margin-bottom:.75rem}
.tour-field label span[aria-hidden] {color:#e7c27e}
.tour-field .tour-optional {font-size:.79rem;color:#c9d9e2;font-weight:500}
.tour-field select,.tour-field input {box-sizing:border-box;appearance:auto;display:block;background:#f8fafb;border:1px solid #aac2d0;color:#15364f;width:100%;min-width:0;min-height:54px;border-radius:8px;padding:.8rem .85rem;font:600 .98rem/1.4 var(--sans);color-scheme:light}
.tour-field select:focus-visible,.tour-field input:focus-visible,.tour-enquiry-actions a:focus-visible {outline:3px solid #f0c881;outline-offset:3px}
.tour-field-note {font:.82rem/1.45 var(--sans);color:#c8dae3;margin:.6rem 0 0}
.tour-enquiry-preview {display:flex;align-items:center;justify-content:space-between;gap:1.3rem 2rem;padding:1.55rem 1.6rem;border-radius:12px;margin-top:2rem;background:rgba(5,24,40,.45);border:1px solid rgba(231,240,246,.19)}
.tour-enquiry-preview .eyebrow {color:#e4bf83;margin-bottom:.65rem}
.tour-preview-copy {color:#edf5f9;margin:0;line-height:1.55;max-width:40rem;font-size:.95rem}
.tour-expansion-note {margin:.8rem 0 0;color:#ffe2ac;font-size:.88rem;line-height:1.45;max-width:44rem}
.tour-enquiry-actions {flex-shrink:0;display:flex;align-items:center;gap:.7rem;flex-direction:column}
.tour-enquiry-actions .btn {margin:0;white-space:normal;text-align:center;min-height:50px;justify-content:center}
.tour-enquiry-actions .tour-email-link {padding:.4rem .8rem;min-height:42px;display:flex;align-items:center;color:#edcd98;font-weight:700;text-underline-offset:4px}
.tour-disclaimer {font:.9rem/1.6 var(--sans);color:#c2d4e0;padding:0 clamp(1.4rem,3.6vw,2.9rem) 1.85rem;margin:0}
.admissions-guide-links {display:flex;gap:1.25rem;flex-wrap:wrap;margin-top:1.25rem}
.admissions-guide-links a {color:#f4d7a2;font-weight:750;text-underline-offset:4px;min-height:44px;display:inline-flex;align-items:center}
@media (max-width:900px) {.tour-form-fields {grid-template-columns:repeat(2,minmax(0,1fr))}.tour-field-date {grid-column:1/-1}.tour-enquiry-preview {align-items:stretch;flex-direction:column}.tour-enquiry-actions {align-items:flex-start;flex-direction:row;flex-wrap:wrap}.tour-enquiry-mark {display:none}}
@media (max-width:600px) {.tour-form-fields {grid-template-columns:1fr}.tour-field-date {grid-column:auto}.tour-enquiry-preview {padding:1.2rem}.tour-enquiry-actions {flex-direction:column;align-items:stretch}.tour-enquiry-actions .btn,.tour-email-link {width:100%}.parent-guide-footlinks {justify-content:flex-start;margin-top:1rem}.tour-enquiry-heading {padding-bottom:1.25rem}.admissions-guide-links {flex-direction:column;gap:.2rem}}
@media (prefers-reduced-motion:reduce){.tour-enquiry .btn{transition:none}}

/* Predictable return navigation — no browser history dependency. */
.page-return { background: var(--paper); border-bottom: 1px solid var(--line); }
.page-return-link { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: .35rem 0; color: var(--navy-deep); font-size: .95rem; font-weight: 650; text-decoration: none; }
.page-return-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.page-return-link span { font-size: 1.15em; line-height: 1; }
@media (min-width: 1101px) and (max-width: 1320px) {
  .nav-list { gap: .15rem .7rem; letter-spacing: 0; font-size: .9rem; }
  .header-inner { gap: 10px; }
}

/* Preserve the full original school photo. */
:root { --serif: Georgia, "Times New Roman", serif; }
h1, h2, h3, h4 { font-optical-sizing: none; }
.page-hero--contain .page-hero-photo { max-height: none; padding-block: 1.5rem; }
.page-hero--contain .page-hero-photo img { object-fit: contain; max-height: 440px; width: auto; height: auto; margin-inline: auto; }
.hero--a .hero-photo img { object-fit: contain; animation: none; transform: none; }
.welcome-photo img, .welcome-photo.wide img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
.mosaic a, .mosaic figure { background: var(--navy-deep); }
.mosaic img { object-fit: contain; }
.mosaic a:hover img, .welcome-photo:hover img { transform: none; }
@media (max-width: 800px) {
  .page-hero--contain .page-hero-photo { padding-top: 0; }
  .page-hero--contain .page-hero-photo img { max-height: none; width: auto; max-width: 100%; }
}
.family-guide-download { margin-top: 1.25rem; padding: 1.35rem 1.5rem; border: 1px solid rgba(232,213,163,.4); border-radius: 12px; color: #e8eef4; background: #12334d; }
.family-guide-download h3 { color: #fff; margin-bottom: .45rem; font-size: 1.4rem; }
.family-guide-download p { color: #dceaf2; margin: 0 0 .8rem; font-size: 1rem; }
.family-guide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.2rem; }
.family-guide-actions a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; color: #f4d7a2; text-underline-offset: 4px; font-weight: 700; }
@media (max-width: 560px) { .family-guide-download { padding: 1.15rem; } .family-guide-actions { align-items: stretch; flex-direction: column; gap: .3rem; } }
