/* ==========================================================================
   Kovida Pre School — main stylesheet
   Single stylesheet, no build step. Sections are ordered:
   1. Tokens  2. Reset  3. Typography  4. Layout helpers  5. Buttons
   6. Header  7. Footer  8. Hero  9. Components  10. Page-specific
   11. Forms  12. Utilities  13. Motion / media queries
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------
   Colours are taken from the school crest (red / green / blue) and the
   printed brochure (navy, ochre). Do not add new colours without adding
   them here first. */
:root {
  --ink:        #13273c;   /* primary text, dark navy */
  --ink-soft:   #43596f;   /* secondary text */
  --ink-faint:  #7d8fa1;   /* captions, meta */
  --rule:       #e2ddd4;   /* hairline borders */

  --red:        #c62128;   /* crest red — primary brand accent */
  --red-dark:   #9d181e;
  --green:      #1c8a44;   /* crest green — used sparingly */
  --ochre:      #c98a1f;   /* brochure gold — highlights, eyebrows on dark */

  --paper:      #fbf9f6;   /* page background */
  --paper-2:    #f3efe8;   /* alternating band */
  --white:      #ffffff;
  --navy-deep:  #0e1e2f;   /* footer, dark bands */

  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body:    "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1160px;          /* max content width */
  --gut: 24px;             /* horizontal page gutter */

  --shadow-sm: 0 1px 2px rgba(19, 39, 60, .06), 0 2px 8px rgba(19, 39, 60, .05);
  --shadow-md: 0 4px 12px rgba(19, 39, 60, .08), 0 12px 32px rgba(19, 39, 60, .07);
  --shadow-lg: 0 8px 24px rgba(19, 39, 60, .10), 0 24px 64px rgba(19, 39, 60, .10);

  --radius: 4px;           /* deliberately small — keeps an institutional feel */
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* 2. RESET ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* height:auto is required — the width/height attributes on <img> reserve layout
   space (and stop the page jumping as photos load), but without this the
   attribute height would win over any CSS aspect-ratio. */
img, picture, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; }

/* 3. TYPOGRAPHY ----------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.012em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 .9rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--red);
  flex: none;
}
.eyebrow--light { color: var(--ochre); }
.eyebrow--light::before { background: var(--ochre); }

.lead { font-size: 1.16rem; line-height: 1.6; color: var(--ink-soft); }
.measure { max-width: 62ch; }
.caption {
  font-size: .82rem;
  color: var(--ink-faint);
  line-height: 1.5;
  margin-top: .6rem;
}

/* 4. LAYOUT --------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--paper2 { background: var(--paper-2); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy-deep); color: #d9e2ea; }
.section--navy h2, .section--navy h3 { color: var(--white); }

.grid { display: grid; gap: clamp(24px, 4vw, 48px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--wide-left { grid-template-columns: 1.15fr .85fr; }
.split--wide-right { grid-template-columns: .85fr 1.15fr; }

.section-head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* 5. BUTTONS -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .78rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--whatsapp { background: #25D366; color: #fff; border-color: #25D366; }
.btn--whatsapp:hover { background: #1ebc5a; border-color: #1ebc5a; color: #fff; }
.btn--sm { padding: .55rem 1.05rem; font-size: .85rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  font-size: .93rem;
  color: var(--red);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  padding-bottom: 2px;
  transition: border-color .18s var(--ease), gap .18s var(--ease);
}
.link-arrow:hover { border-color: var(--red); gap: .7rem; }
.link-arrow svg { flex: none; }

/* 6. HEADER --------------------------------------------------------------- */
.topbar {
  background: var(--navy-deep);
  color: #b8c6d4;
  font-size: .8rem;
  letter-spacing: .01em;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-list { display: flex; gap: 20px; list-style: none; flex-wrap: wrap; }
.topbar-list li { display: flex; align-items: center; gap: .4rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251,249,246,.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 74px; }

/* z-index keeps the crest visible above the mobile menu overlay */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; position: relative; z-index: 80; }
.brand img { width: 50px; height: 50px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
}
.brand-sub {
  font-size: .66rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: .55rem .78rem;
  font-size: .93rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  border-radius: var(--radius);
  position: relative;
  transition: color .16s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: .78rem; right: .78rem; bottom: .2rem;
  height: 2px;
  background: var(--red);
}
/* Visible only inside the mobile drawer; on desktop the duplicate
   .header-cta-desktop (outside the nav) is shown instead. */
.header-cta { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 9px 11px;
  line-height: 0;
  color: var(--ink);
}
/* Hamburger <-> close cross. Driven purely off aria-expanded, which the script
   already maintains — note that el.hidden does NOT work on inline <svg>,
   because `hidden` is an HTMLElement property and SVGElement is not one. */
.nav-toggle[aria-expanded="false"] .icon-close,
.nav-toggle[aria-expanded="true"]  .icon-open { display: none; }

/* 7. FOOTER --------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: #a9bacb; padding: clamp(48px, 6vw, 76px) 0 0; font-size: .93rem; }
.site-footer h3 {
  color: #fff;
  font-family: var(--font-body);
  font-size: .76rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  font-weight: 700;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.footer-brand img { width: 56px; height: 56px; object-fit: contain; }
.footer-brand strong { color: #fff; font-family: var(--font-display); font-size: 1.15rem; display: block; }
.site-footer ul { list-style: none; display: grid; gap: .6rem; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-contact li { display: flex; gap: .65rem; align-items: flex-start; }
.footer-contact svg { flex: none; margin-top: 4px; opacity: .65; }
.footer-bottom {
  margin-top: clamp(36px, 5vw, 56px);
  border-top: 1px solid rgba(255,255,255,.11);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .84rem;
  color: #7f92a5;
}

/* 8. HERO ----------------------------------------------------------------- */
.hero { position: relative; background: var(--navy-deep); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(9,20,32,.93) 0%, rgba(9,20,32,.80) 38%, rgba(9,20,32,.30) 72%, rgba(9,20,32,.15) 100%);
}
.hero-inner { position: relative; padding: clamp(72px, 11vw, 140px) 0 clamp(96px, 12vw, 150px); max-width: 640px; }
.hero h1 { color: #fff; margin-bottom: .55em; }
.hero h1 em { font-style: normal; color: var(--ochre); }
.hero p { color: #cfdae4; font-size: 1.13rem; max-width: 50ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2rem; }

/* fact bar that overlaps the bottom of the hero */
.factbar { position: relative; margin-top: -52px; z-index: 5; }
.factbar-inner {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.fact { padding: 22px 26px; border-right: 1px solid var(--rule); }
.fact:last-child { border-right: 0; }
.fact dt { font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; margin-bottom: .3rem; }
.fact dd { margin: 0; font-family: var(--font-display); font-size: 1.22rem; font-weight: 600; line-height: 1.25; }

/* page banner for interior pages */
.page-head { background: var(--navy-deep); color: #fff; position: relative; overflow: hidden; }
.page-head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.page-head::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,30,47,.95), rgba(14,30,47,.62));
}
.page-head .wrap { position: relative; z-index: 2; padding: clamp(52px, 7vw, 84px) var(--gut); }
.page-head h1 { color: #fff; margin-bottom: .3em; }
.page-head p { color: #c3d1de; max-width: 56ch; margin: 0; }
.crumbs { font-size: .82rem; color: #93a7ba; margin-bottom: 1rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { opacity: .5; margin: 0 .4rem; }

/* 9. COMPONENTS ----------------------------------------------------------- */

/* framed image with a coloured offset block behind it */
.framed { position: relative; }
.framed img { border-radius: var(--radius); box-shadow: var(--shadow-md); position: relative; z-index: 2; }
.framed::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  z-index: 1;
}
.framed--green::before { border-color: var(--green); }

/* numbered approach list */
.steps { list-style: none; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 62px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--rule); }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps .num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--red);
  font-weight: 600;
  line-height: 1.1;
}
.steps h3 { margin-bottom: .35rem; font-size: 1.15rem; }
.steps p { color: var(--ink-soft); font-size: .97rem; margin: 0; }

/* generic card */
.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .22s var(--ease), transform .22s var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.045); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .4rem; }
.card-body p { color: var(--ink-soft); font-size: .95rem; }
.card-tag {
  align-self: flex-start;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(198,33,40,.08);
  padding: .3rem .6rem;
  border-radius: 2px;
  margin-bottom: .8rem;
}
.card .link-arrow { margin-top: auto; padding-top: 1rem; }

/* programme row (alternating full-width rows, not identical cards) */
.prog-row {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(36px, 5vw, 60px) 0;
  border-top: 1px solid var(--rule);
}
.prog-row:first-of-type { border-top: 0; padding-top: 0; }
.prog-row:nth-child(even) .prog-media { order: -1; }
.prog-media img { border-radius: var(--radius); aspect-ratio: 5/4; object-fit: cover; width: 100%; }
.prog-age {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .7rem;
}
.prog-row h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.prog-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.4rem; }
.chip {
  font-size: .82rem;
  padding: .35rem .75rem;
  border: 1px solid var(--rule);
  border-radius: 100px;
  background: var(--white);
  color: var(--ink-soft);
}

/* organic "blob" programme tiles — the soft shapes sketched by the school.
   Each tile uses a different 8-value border-radius so no two are identical,
   which is what stops them reading as three plain circles. */
.blobs {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 52px);
  margin-bottom: clamp(28px, 4vw, 44px);
}
.blob { text-align: center; }
.blob picture,
.blob img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow-md);
  transition: border-radius .6s var(--ease), transform .4s var(--ease);
}
.blob:nth-child(1) img { border-radius: 62% 38% 44% 56% / 52% 46% 54% 48%; }
.blob:nth-child(2) img { border-radius: 41% 59% 63% 37% / 46% 58% 42% 54%; }
.blob:nth-child(3) img { border-radius: 57% 43% 36% 64% / 61% 40% 60% 39%; }
.blob:hover img { border-radius: 50%; transform: translateY(-4px); }
.blob h3 { margin: 1.15rem 0 .35rem; font-size: 1.2rem; }
.blob p { color: var(--ink-soft); font-size: .93rem; margin: 0; max-width: 30ch; margin-inline: auto; }

@media (max-width: 760px) {
  .blobs { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .blob:nth-child(3) { grid-column: 1 / -1; max-width: 60%; margin-inline: auto; }
}
@media (max-width: 460px) {
  .blobs { grid-template-columns: 1fr; }
  .blob:nth-child(3) { max-width: 100%; }
}

/* tick list */
.ticks { list-style: none; display: grid; gap: .75rem; }
/* Positioned, NOT grid. A grid <li> turns every inline child into its own grid
   item, so "<strong>Swimming</strong> — supervised sessions…" was splitting into
   two cells and the text wrapped one word per line in a 22px column. */
.ticks li { position: relative; padding-left: 32px; font-size: .97rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(28,138,68,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c8a44' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
/* On the dark navy band the green tick disappears, so it is redrawn in white. */
.ticks--light li::before {
  background-color: rgba(255,255,255,.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* quote / value block */
.quote {
  border-left: 3px solid var(--red);
  padding: 6px 0 6px 26px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.45;
  color: var(--ink);
}
.quote cite { display: block; font-family: var(--font-body); font-size: .87rem; font-style: normal; color: var(--ink-faint); margin-top: 1rem; letter-spacing: .04em; }

/* values grid — thin bordered boxes, no drop shadows */
.value { padding: 26px 0 0; border-top: 2px solid var(--ink); }
.value h3 { font-size: 1.1rem; margin-bottom: .45rem; }
.value p { font-size: .95rem; color: var(--ink-soft); margin: 0; }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat .n { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 600; color: var(--white); line-height: 1; }
.stat .l { font-size: .87rem; color: #9db0c2; margin-top: .5rem; }

/* gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 100px;
  padding: .42rem .95rem;
  font-size: .87rem;
  color: var(--ink-soft);
  transition: all .16s var(--ease);
}
.filter:hover { border-color: var(--ink-faint); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.gallery { columns: 3; column-gap: 16px; }
.gallery figure { margin: 0 0 16px; break-inside: avoid; position: relative; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; transition: transform .5s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px;
  color: #fff;
  font-size: .84rem;
  background: linear-gradient(transparent, rgba(9,20,32,.82));
  opacity: 0;
  transition: opacity .22s var(--ease);
}
.gallery figure:hover figcaption, .gallery figure:focus-within figcaption { opacity: 1; }
.gallery figure[hidden] { display: none; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8,16,25,.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
}
.lightbox[open], .lightbox.is-open { display: flex; }
/* The sticky header uses backdrop-filter, which Chromium composites above
   later siblings regardless of z-index. Hide it outright while the viewer is
   open rather than fighting the stacking order. */
body.lightbox-open .site-header,
body.lightbox-open .topbar { visibility: hidden; }
.lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: var(--radius); }
.lightbox-cap { color: #c7d3de; text-align: center; font-size: .9rem; margin-top: 14px; }
.lb-btn {
  position: absolute;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.24);
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  transition: background .16s var(--ease);
}
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* accordion (FAQ) */
.acc { border-top: 1px solid var(--rule); }
.acc details { border-bottom: 1px solid var(--rule); }
.acc summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  position: relative;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "";
  position: absolute; right: 6px; top: 50%;
  width: 12px; height: 12px;
  margin-top: -6px;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(45deg);
  transition: transform .2s var(--ease);
}
.acc details[open] summary::after { transform: rotate(-135deg); }
.acc .acc-body { padding: 0 40px 22px 0; color: var(--ink-soft); font-size: .97rem; }

/* call-to-action band */
.cta-band { background: var(--red); color: #fff; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: clamp(38px, 5vw, 60px); flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 .3em; }
.cta-band p { color: rgba(255,255,255,.88); margin: 0; max-width: 46ch; }
.cta-band .btn--ghost { border-color: #fff; }
.cta-band .btn--white { background: #fff; color: var(--red); border-color: #fff; }
.cta-band .btn--white:hover { background: #f3e7e7; }

/* notice / alert box */
.notice {
  background: #fff8e8;
  border: 1px solid #ecd9a8;
  border-left: 3px solid var(--ochre);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: .95rem;
  color: #6a5322;
}
.notice strong { color: #4d3c14; }

/* 10. FORMS --------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: .38rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 600; color: var(--ink); }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: .95rem;
  padding: .7rem .85rem;
  border: 1px solid #d3ccc0;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(19,39,60,.09);
}
.field .err { font-size: .8rem; color: var(--red); display: none; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--red); }
.field.is-invalid .err { display: block; }
.form-note { font-size: .84rem; color: var(--ink-faint); margin-top: 1rem; }
.form-status { margin-top: 1rem; padding: 14px 18px; border-radius: var(--radius); font-size: .93rem; display: none; }
.form-status.is-ok { display: block; background: #e9f6ee; border: 1px solid #b5ddc4; color: #17603a; }
.form-status.is-err { display: block; background: #fdeced; border: 1px solid #f0bcbf; color: #93191f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* contact detail list */
.contact-list { list-style: none; display: grid; gap: 26px; }
.contact-list li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.contact-list .ic {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(198,33,40,.08);
  display: grid; place-items: center;
  color: var(--red);
}
.contact-list h3 { margin: 0 0 .2rem; font-family: var(--font-body); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.map-frame { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; line-height: 0; }
.map-frame iframe { width: 100%; height: 420px; border: 0; }

/* 11. UTILITIES ----------------------------------------------------------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 18px; text-decoration: none;
}
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.text-center { text-align: center; }

/* 12. MOTION -------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* 13. RESPONSIVE ---------------------------------------------------------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .gallery { columns: 2; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: 0 0 auto;
    top: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    padding: 88px 24px 32px;
    height: 100dvh;
    overflow-y: auto;
    z-index: 70;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; font-size: 1.06rem; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .nav a[aria-current="page"]::after { display: none; }
  /* .nav a is more specific than .btn--primary, so the label colour is restated */
  .nav .header-cta { display: inline-flex; margin: 22px 0 0; justify-content: center; color: #fff; border-bottom: 0; }
  .nav .header-cta:hover { color: #fff; }
  .nav-toggle { display: inline-flex; z-index: 80; }
  .header-cta-desktop { display: none; }
  .topbar-list--secondary { display: none; }

  .split, .split--wide-left, .split--wide-right,
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .prog-row { grid-template-columns: 1fr; }
  .prog-row:nth-child(even) .prog-media { order: 0; }
  .factbar-inner { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(1), .fact:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .stats { grid-template-columns: 1fr 1fr; gap: 26px; }
  .form-grid { grid-template-columns: 1fr; }
  .framed::before { inset: 14px -14px -14px 14px; }
}

@media (max-width: 760px) {
  /* On a narrow screen the horizontal hero scrim leaves the right-hand end of
     each headline sitting on bright photo. Switch it to a vertical wash. */
  .hero-media::after {
    background: linear-gradient(178deg, rgba(9,20,32,.72) 0%, rgba(9,20,32,.86) 42%, rgba(9,20,32,.94) 100%);
  }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  :root { --gut: 18px; }
  .gallery { columns: 1; }
  .factbar { margin-top: -28px; }
  .factbar-inner { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--rule); }
  .fact:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .wrap { justify-content: center; }
  .topbar-list { gap: 14px; font-size: .76rem; }
  .brand img { width: 42px; height: 42px; }
  .brand-name { font-size: 1.02rem; }
  .brand-sub { font-size: .6rem; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
}

/* 14. PRINT --------------------------------------------------------------- */
@media print {
  .site-header, .topbar, .site-footer, .cta-band, .hero-actions, .nav-toggle { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .hero-media::after { display: none; }
}
