/* =====================================================================
   OVERBERG AVIATION TRAINING CENTER
   Design system
   ---------------------------------------------------------------------
   1.  Tokens
   2.  Reset & base
   3.  Typography
   4.  Layout
   5.  Buttons, tags, links
   6.  Header & navigation
   7.  Hero
   8.  Cards & components
   9.  Sections
   10. Forms
   11. Footer
   12. Utilities
   13. Motion
   14. Responsive
   ===================================================================== */

/* =====================================================================
   1. TOKENS
   ===================================================================== */
:root {
  /* Deep aviation navy */
  --navy-950: #050b16;
  --navy-900: #081426;
  --navy-850: #0a1a31;
  --navy-800: #0d2039;
  --navy-700: #13304f;
  --navy-600: #1b4067;

  /* Brass accent - warm against the navy, never a generic corporate blue */
  --accent-100: #f6ecd8;
  --accent-300: #e0c48c;
  --accent-500: #c9a15a;
  --accent-600: #b0853c;
  --accent-700: #8c6726;
  --accent-ink: #7a5510;   /* accessible accent for text on white */

  /* Neutrals */
  --white: #ffffff;
  --paper: #ffffff;
  --mist: #f5f7fa;
  --mist-2: #eef2f7;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;

  /* Text */
  --text: #0d1526;
  --text-soft: #46536b;
  --text-mute: #6b788f;
  --text-invert: #ffffff;
  --text-invert-soft: #c3cede;

  /* Status */
  --success: #1c7a4d;
  --success-bg: #e8f5ee;
  --warning: #8a5a00;
  --warning-bg: #fdf3e0;
  --danger: #a52020;
  --danger-bg: #fdecec;
  --info: #14487a;
  --info-bg: #e9f1f9;

  /* Type */
  --font-sans: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system,
               BlinkMacSystemFont, "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Space */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;

  /* Structure */
  --container: 1240px;
  --container-narrow: 860px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Elevation - soft, directional, never heavy */
  --shadow-xs: 0 1px 2px rgba(8, 20, 38, .06);
  --shadow-sm: 0 2px 8px rgba(8, 20, 38, .06), 0 1px 2px rgba(8, 20, 38, .04);
  --shadow-md: 0 8px 24px rgba(8, 20, 38, .08), 0 2px 6px rgba(8, 20, 38, .04);
  --shadow-lg: 0 20px 48px rgba(8, 20, 38, .12), 0 4px 12px rgba(8, 20, 38, .05);
  --shadow-accent: 0 10px 30px rgba(176, 133, 60, .28);

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 620ms;

  /* Header height (used for scroll offset) */
  --header-h: 72px;
}

/* =====================================================================
   2. RESET & BASE
   ===================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

img,
video {
  height: auto;
  background-color: var(--mist-2);
}

svg { fill: none; }

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

button { cursor: pointer; }

ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

address { font-style: normal; }

hr { border: 0; border-top: 1px solid var(--line); }

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

::selection { background: var(--accent-300); color: var(--navy-900); }

[hidden] { display: none !important; }

/* =====================================================================
   3. TYPOGRAPHY
   ===================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.022em;
  color: var(--navy-900);
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 1.5rem + 3.6vw, 4.15rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.85rem, 1.3rem + 2.1vw, 2.85rem); letter-spacing: -.026em; }
h3 { font-size: clamp(1.3rem, 1.1rem + .75vw, 1.65rem); }
h4 { font-size: clamp(1.1rem, 1rem + .4vw, 1.25rem); }

p { text-wrap: pretty; }

.lede {
  font-size: clamp(1.1rem, 1.02rem + .45vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-soft);
}

.small-text { font-size: .9375rem; color: var(--text-soft); }

.eyebrow,
.kicker {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-5 { margin-bottom: var(--sp-5); }

/* =====================================================================
   4. LAYOUT
   ===================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy-900); color: var(--text-invert); }
.section--navy h2,
.section--navy h3 { color: var(--white); }
.section--edge { border-top: 1px solid var(--line); }

.grid { display: grid; gap: clamp(1.25rem, .8rem + 1.4vw, 2rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }

.stack > * + * { margin-top: var(--sp-4); }

/* Editorial split: text beside a large image */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}

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

.figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--navy-900);
}

.figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.figure--tall img { aspect-ratio: 3 / 4; }
.figure--wide img { aspect-ratio: 16 / 10; }

/* Documents and certificates must never be cropped. */
.figure--document {
  background: var(--white);
  box-shadow: var(--shadow-lg);
}
.figure--document img {
  aspect-ratio: auto;
  object-fit: contain;
}

/* Thin accent rule used as an editorial divider */
.rule {
  width: 56px;
  height: 3px;
  background: var(--accent-500);
  border-radius: var(--radius-pill);
}

/* =====================================================================
   5. BUTTONS, TAGS, LINKS
   ===================================================================== */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--navy-900);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 52px;                       /* touch friendly */
  padding: .8rem 1.5rem;
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .95rem;
  font-weight: 650;
  letter-spacing: -.005em;
  text-align: center;
  line-height: 1.2;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur-fast) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.btn .icon { width: 1.15em; height: 1.15em; flex: none; }

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-bg: var(--navy-900);
  --btn-fg: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { --btn-bg: var(--navy-700); box-shadow: var(--shadow-md); }

.btn--accent {
  --btn-bg: var(--accent-500);
  --btn-fg: var(--navy-950);
  box-shadow: var(--shadow-accent);
}
.btn--accent:hover { --btn-bg: var(--accent-300); }

.btn--outline {
  --btn-bd: var(--line-strong);
  --btn-fg: var(--navy-900);
  background: var(--white);
}
.btn--outline:hover { --btn-bd: var(--navy-900); background: var(--mist); }

.btn--ghost { --btn-fg: var(--navy-900); --btn-bd: transparent; }
.btn--ghost:hover { background: var(--mist-2); }

.btn--outline-light { --btn-bd: rgba(255, 255, 255, .4); --btn-fg: #fff; }
.btn--outline-light:hover { --btn-bd: #fff; background: rgba(255, 255, 255, .1); }

.btn--whatsapp {
  --btn-bg: var(--success-bg);
  --btn-fg: #14603c;
  --btn-bd: rgba(28, 122, 77, .22);
}
.btn--whatsapp:hover { --btn-bg: #d8eee2; }

.btn--sm { min-height: 42px; padding: .5rem 1.1rem; font-size: .875rem; }
.btn--lg { min-height: 58px; padding: 1rem 1.9rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn.is-disabled { opacity: .55; pointer-events: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 650;
  color: var(--accent-ink);
  border-bottom: 1.5px solid transparent;
  transition: border-color var(--dur) var(--ease), gap var(--dur) var(--ease);
}
.link-arrow .icon { transition: transform var(--dur) var(--ease); }
.link-arrow:hover { border-bottom-color: var(--accent-500); }
.link-arrow:hover .icon { transform: translateX(4px); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .7rem;
  border-radius: var(--radius-pill);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--mist-2);
  color: var(--text-soft);
}
.tag--theory { background: var(--info-bg); color: var(--info); }
.tag--pending { background: var(--warning-bg); color: var(--warning); }
.tag--draft { background: var(--mist-2); color: var(--text-mute); }

/* Honest labelling for information the client has not confirmed yet */
.placeholder-note {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  padding: .85rem 1.1rem;
  border-left: 3px solid var(--accent-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--warning-bg);
  color: #5c3f06;
  font-size: .9rem;
  line-height: 1.6;
}
.placeholder-note .icon { flex: none; margin-top: .18rem; width: 1.15rem; height: 1.15rem; }

.notice {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: .95rem;
  line-height: 1.6;
}
.notice--success { background: var(--success-bg); color: #145437; border-left: 3px solid var(--success); }
.notice--error { background: var(--danger-bg); color: #8a1c1c; border-left: 3px solid var(--danger); }
.notice--warning { background: var(--warning-bg); color: #5c3f06; border-left: 3px solid var(--accent-600); }
.notice--info { background: var(--info-bg); color: var(--info); border-left: 3px solid var(--navy-600); }
.notice--inline { background: var(--mist-2); color: var(--text-soft); border-radius: var(--radius-sm); }

/* =====================================================================
   6. HEADER & NAVIGATION
   ===================================================================== */
.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 200;
  padding: .85rem 1.5rem;
  background: var(--navy-900);
  color: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 650;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header--overlay {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: transparent;
}

.utility-bar {
  background: var(--navy-950);
  color: var(--text-invert-soft);
  font-size: .82rem;
  transition: background-color var(--dur) var(--ease);
  display: none !important;
}

.site-header--overlay .utility-bar {
  background: rgba(5, 11, 22, .55);
  backdrop-filter: blur(6px);
  display: none !important;
}

.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: 38px;
  display: none !important;
}

.utility-bar__items {
  display: flex;
  align-items: center;
  display: none !important;
  gap: var(--sp-5);
  flex-wrap: wrap;
}

.utility-bar__item {
  display: inline-flex;
  align-items: center;
  display: none !important;
  gap: .45rem;
  white-space: nowrap;
}

.utility-bar__item--brand { color: #fff; font-weight: 600; letter-spacing: .01em; 
    
    display: none !important;
}

.utility-bar a {
  transition: color var(--dur) var(--ease);
  display: none !important;
}
.utility-bar a:hover { color: #fff; }

.icon--sm { width: 16px; height: 16px; }
.icon--xs { width: 14px; height: 14px; }
.icon--brand { width: 20px; height: 20px; }
.icon--lg { width: 28px; height: 28px; }
.icon--xl { width: 40px; height: 40px; }

/* Muted body copy used wherever a full <p> would be overkill. */
.text-mute { color: var(--text-mute); }
.text-soft { color: var(--text-soft); }
.text-center { text-align: center; }

.site-nav__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  flex: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--navy-900);
  color: var(--accent-500);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.brand__mark .icon { width: 22px; height: 22px; }
.brand:hover .brand__mark { background: var(--accent-500); color: var(--navy-950); }

/*
 * The client's logo is a horizontal lockup (1164x634), so it cannot sit in
 * the 42px square mark above without being cropped. It gets its own
 * auto-height block instead, and the square tint/hover treatment is dropped
 * so nothing paints a box behind the artwork.
 */
.brand__mark--logo {
  width: auto;
  height: auto;
  background: none;
  overflow: visible;
}
.brand__mark--logo img {
  display: block;
  width: auto;
  height: 40px;
  max-width: 190px;
  object-fit: contain;
  object-position: left center;
  border-radius: 0;
}
.brand:hover .brand__mark--logo { background: none; }
.has-overlay-header .brand__mark--logo { background: none; }
.site-header.is-scrolled .brand__mark--logo { background: none; }
.brand--footer .brand__mark--logo { background: none; }
.brand--footer .brand__mark--logo img { height: 44px; max-width: 210px; }

/* The logo lockup is the only brand element; the wordmark was removed. */
@media (max-width: 420px) {
  .brand__mark--logo img { height: 30px; max-width: 128px; }
}

/* Overlay header starts inverted and flips on scroll */
.has-overlay-header .brand__mark { background: rgba(255, 255, 255, .1); color: var(--accent-500); }

.nav-primary { margin-left: auto; }

.nav-primary__list {
  display: flex;
  align-items: center;
  gap: clamp(.5rem, .1rem + .6vw, 1.15rem);
}

.nav-primary__link {
  position: relative;
  display: block;
  padding: .55rem .2rem;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--navy-800);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}

.nav-primary__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: .1rem;
  width: 100%;
  height: 2px;
  background: var(--accent-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.nav-primary__link:hover::after,
.nav-primary__link.is-active::after { transform: scaleX(1); }

.nav-primary__link.is-active { color: var(--accent-ink); }

/* Dropdown (e.g. Admissions > Sponsorship Program) */
.nav-primary__item { position: relative; }

.nav-primary__item--has-children .nav-primary__link {
  display: inline-flex;
  align-items: center;
  gap: .22rem;
}

.nav-primary__caret {
  display: inline-flex;
  transition: transform var(--dur) var(--ease);
}
.nav-primary__caret .icon { width: 12px; height: 12px; }
.nav-primary__item--has-children:hover .nav-primary__caret,
.nav-primary__item--has-children:focus-within .nav-primary__caret { transform: rotate(180deg); }

.nav-primary__submenu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 60;
  min-width: 15rem;
  margin-top: .3rem;
  padding: .45rem;
  display: grid;
  gap: .1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md, var(--shadow-sm));
  opacity: 0;
  visibility: hidden;
  transform: translateY(.4rem);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.nav-primary__item--has-children:hover .nav-primary__submenu,
.nav-primary__item--has-children:focus-within .nav-primary__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-primary__sublink {
  display: block;
  padding: .55rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-weight: 600;
  color: var(--navy-800);
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-primary__sublink:hover,
.nav-primary__sublink.is-active { background: var(--mist); color: var(--accent-ink); }

.has-overlay-header .nav-primary__link { color: rgba(255, 255, 255, .92); }
.has-overlay-header .nav-primary__link.is-active { color: var(--accent-300); }

/* Scrolled state */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
}
.site-header.is-scrolled .brand__mark { background: var(--navy-900); color: var(--accent-500); }
.site-header.is-scrolled .nav-primary__link { color: var(--navy-800); }
.site-header.is-scrolled .nav-primary__link.is-active { color: var(--accent-ink); }
.site-header.is-scrolled .utility-bar { background: var(--navy-900); }

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex: none;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--line-strong);
  border-radius: 11px;
  background: transparent;
  color: var(--navy-900);
  place-items: center;
  transition: background-color var(--dur) var(--ease);
}
.nav-toggle:hover { background: var(--mist); }

.has-overlay-header .nav-toggle {
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 20px;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile navigation panel */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(5, 11, 22, .5);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.mobile-nav.is-open { opacity: 1; }

.mobile-nav__panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(400px, 92vw);
  height: 100%;
  padding: 1.25rem 1.5rem 2rem;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
}
.mobile-nav.is-open .mobile-nav__panel { transform: translateX(0); }

.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: .5rem;
  border-bottom: 1px solid var(--line);
}
.mobile-nav__title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.mobile-nav__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--mist);
  color: var(--navy-900);
}
.mobile-nav__close .icon { width: 20px; height: 20px; }

.mobile-nav__list { display: grid; }

.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 58px;
  padding: .75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy-900);
}
.mobile-nav__link .icon { color: var(--text-mute); flex: none; }
.mobile-nav__link.is-active { color: var(--accent-ink); }
.mobile-nav__link.is-active .icon { color: var(--accent-500); }

.mobile-nav__sublist {
  display: grid;
  gap: .1rem;
  margin: 0 0 .4rem .55rem;
  padding-left: .9rem;
  border-left: 2px solid var(--line);
}
.mobile-nav__sublink {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem .25rem;
  font-size: .98rem;
  font-weight: 600;
  color: var(--text-soft);
}
.mobile-nav__sublink.is-active { color: var(--accent-ink); }

.mobile-nav__actions {
  display: grid;
  gap: .65rem;
  margin-top: 1.5rem;
}

.mobile-nav__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-weight: 650;
  color: var(--navy-800);
}

body.nav-open { overflow: hidden; }

/* =====================================================================
   7. HERO
   ===================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(560px, 82vh, 900px);
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: clamp(3rem, 6vw, 6rem);
  background: var(--navy-950);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}

.hero__media,
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img,
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media img { opacity: .95; }

/* Layered so type stays legible over any photograph */
.hero__overlay {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 11, 22, .82) 0%, rgba(5, 11, 22, .35) 38%, rgba(5, 11, 22, .72) 72%, rgba(5, 11, 22, .95) 100%),
    linear-gradient(100deg, rgba(5, 11, 22, .88) 0%, rgba(5, 11, 22, .25) 62%, transparent 100%);
}

.hero__inner { position: relative; max-width: 46rem; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem 1rem .45rem .7rem;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .07);
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .9);
}
.hero__eyebrow .icon { width: 15px; height: 15px; color: var(--accent-500); }

.hero__title {
  margin-top: var(--sp-5);
  color: #fff;
  font-size: clamp(2.7rem, 1.4rem + 5.2vw, 5rem);
  letter-spacing: -.035em;
}

.hero__text {
  margin-top: var(--sp-5);
  max-width: 40rem;
  font-size: clamp(1.1rem, 1rem + .55vw, 1.32rem);
  line-height: 1.62;
  color: rgba(255, 255, 255, .86);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: var(--sp-6);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.75rem;
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .82);
}
.hero__trust .icon { width: 17px; height: 17px; color: var(--accent-500); }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(255, 255, 255, .35);
  border-radius: var(--radius-pill);
}
.scroll-hint span {
  width: 3px;
  height: 7px;
  margin-top: 9px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .8);
  animation: scrollDot 1.9s var(--ease) infinite;
}

@keyframes scrollDot {
  0%, 100% { opacity: 0; transform: translateY(0); }
  35% { opacity: 1; }
  70% { opacity: 0; transform: translateY(14px); }
}

/* Interior page hero */
.page-hero {
  position: relative;
  isolation: isolate;
  padding-top: calc(var(--header-h) + clamp(3rem, 6vw, 5.5rem));
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  background: var(--navy-900);
  color: #fff;
}

.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, rgba(5, 11, 22, .95) 0%, rgba(5, 11, 22, .72) 55%, rgba(5, 11, 22, .55) 100%);
}

.page-hero__title { color: #fff; max-width: 22ch; }
.page-hero__lede {
  max-width: 52ch;
  margin-top: var(--sp-4);
  font-size: clamp(1.02rem, .96rem + .4vw, 1.18rem);
  color: rgba(255, 255, 255, .82);
}

.page-hero .breadcrumb { margin-bottom: var(--sp-4); }

.breadcrumb { font-size: .82rem; color: var(--text-mute); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.breadcrumb li { display: inline-flex; align-items: center; gap: .4rem; }
.breadcrumb li + li::before {
  content: "/";
  color: var(--line-strong);
}
.breadcrumb a { transition: color var(--dur) var(--ease); }
.breadcrumb a:hover { color: var(--accent-ink); }
.page-hero .breadcrumb { color: rgba(255, 255, 255, .7); }
.page-hero .breadcrumb li + li::before { color: rgba(255, 255, 255, .35); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb span[aria-current] { color: #fff; }

/* =====================================================================
   8. CARDS & COMPONENTS
   ===================================================================== */

/* Section heading */
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1rem + 2.4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head__kicker { margin-bottom: .8rem; }
.section-head__title { margin-bottom: .5rem; }
.section-head__lede { color: var(--text-soft); font-size: 1.06rem; }
.section-head__link { margin-top: var(--sp-4); }
.section--navy .section-head__lede { color: var(--text-invert-soft); }
.section--navy .section-head__kicker { color: var(--accent-300); }

/* Feature card */
.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: clamp(1.5rem, 1.1rem + .8vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.feature-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--navy-900), var(--navy-700));
  color: var(--accent-500);
}
.feature-card__icon .icon { width: 25px; height: 25px; }
.feature-card__title { font-size: 1.12rem; }
.feature-card__text { color: var(--text-soft); font-size: .97rem; }

.section--navy .feature-card {
  background: rgba(255, 255, 255, .045);
  border-color: rgba(255, 255, 255, .1);
}
.section--navy .feature-card__text { color: var(--text-invert-soft); }

/* Programme card */
.program-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding: clamp(1.35rem, 1.1rem + .6vw, 1.75rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.program-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

/* The photograph the client attached to the programme in admin. */
.program-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--mist-2);
  margin-bottom: .15rem;
}
.program-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }

.program-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--mist);
  color: var(--navy-700);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.program-card__icon .icon { width: 23px; height: 23px; }
.program-card:hover .program-card__icon {
  background: var(--navy-900);
  color: var(--accent-500);
}

.program-card__category {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mute);
  text-align: right;
}

.program-card__title { font-size: 1.13rem; line-height: 1.28; }
.program-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.program-card { position: relative; }

.program-card__tagline {
  font-size: .875rem;
  font-weight: 650;
  color: var(--accent-ink);
}

.program-card__summary {
  font-size: .94rem;
  color: var(--text-soft);
  flex: 1;
}

.program-card__facts { display: grid; gap: .35rem; }
.program-card__facts li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .85rem;
  color: var(--text-soft);
}
.program-card__facts .icon { color: var(--accent-600); }

.program-card__flags { display: flex; flex-wrap: wrap; gap: .4rem; }
.program-card__flags:empty { display: none; }

.program-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .35rem;
  position: relative;
  z-index: 2;
}

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: var(--sp-6);
  padding: 0;
}
.filter-bar__item {
  padding: .55rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: all var(--dur) var(--ease);
}
.filter-bar__item:hover { border-color: var(--navy-900); color: var(--navy-900); }
.filter-bar__item[aria-pressed="true"] {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
}
.filter-bar__count {
  display: inline-block;
  margin-left: .4rem;
  font-size: .78em;
  opacity: .6;
}

.program-grid { display: grid; gap: clamp(1rem, .7rem + .8vw, 1.5rem); }

.program-empty {
  grid-column: 1 / -1;
  padding: var(--sp-6);
  text-align: center;
  color: var(--text-mute);
  background: var(--mist);
  border-radius: var(--radius);
}

/* Career pathway timeline */
.pathway { position: relative; display: grid; gap: 0; }

.pathway__step {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: clamp(1rem, .5rem + 1.6vw, 2rem);
  padding-bottom: clamp(1.5rem, 1rem + 1.4vw, 2.5rem);
}
.pathway__step:last-child { padding-bottom: 0; }

.pathway__rail { position: relative; display: flex; justify-content: center; }

.pathway__step:not(:last-child) .pathway__rail::after {
  content: "";
  position: absolute;
  top: 46px;
  bottom: -1.5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-500), rgba(201, 161, 90, .2));
}

/* Arrowhead between steps */
.pathway__step:not(:last-child) .pathway__rail::before {
  content: "";
  position: absolute;
  top: calc(100% + .55rem);
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--accent-500);
  border-bottom: 2px solid var(--accent-500);
  transform: rotate(45deg);
}

.pathway__num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--accent-500);
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 0 0 6px var(--mist);
  flex: none;
}
.section--navy .pathway__num { box-shadow: 0 0 0 6px rgba(255, 255, 255, .05); }

.pathway__body { padding-top: .35rem; }
.pathway__title { font-size: 1.2rem; margin-bottom: .35rem; }
.pathway__text { color: var(--text-soft); font-size: .98rem; }
.section--navy .pathway__text { color: var(--text-invert-soft); }

/* Numbered steps (admissions) */
.steps { counter-reset: step; display: grid; gap: clamp(1rem, .8rem + .8vw, 1.5rem); }

.step-card {
  position: relative;
  padding: clamp(1.5rem, 1.2rem + .8vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.step-card__num {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--navy-900);
  color: var(--accent-500);
  font-weight: 800;
  letter-spacing: .02em;
}
.step-card__title { font-size: 1.15rem; margin-bottom: .4rem; }
.step-card__text { color: var(--text-soft); font-size: .97rem; }

/* Stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  padding: clamp(1.25rem, 1rem + .6vw, 1.75rem);
  background: var(--white);
}
.stat__value {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--navy-900);
  line-height: 1.15;
}
.stat__label { margin-top: .3rem; font-size: .875rem; color: var(--text-soft); }

/* Fleet / facility card */
.facility-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.facility-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.facility-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist-2); }
.facility-card__media img { width: 100%; height: 100%; object-fit: cover; }
.facility-card__body { padding: clamp(1.15rem, 1rem + .5vw, 1.5rem); }
.facility-card__title { font-size: 1.1rem; margin-bottom: .35rem; }
.facility-card__text { color: var(--text-soft); font-size: .95rem; }
.facility-card__use {
  margin-top: .8rem;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
  font-size: .85rem;
  color: var(--text-mute);
}

/* Testimonial */
.quote-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  height: 100%;
  padding: clamp(1.5rem, 1.2rem + .8vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.quote-card__mark { color: var(--accent-500); }
.quote-card__mark .icon { width: 30px; height: 30px; }
.quote-card__text { font-size: 1.02rem; color: var(--text); flex: 1; }
.quote-card__meta { display: flex; align-items: center; gap: .8rem; }
.quote-card__avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--accent-500);
  font-weight: 700;
  flex: none;
}
.quote-card__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.quote-card__name { font-weight: 700; color: var(--navy-900); }
.quote-card__detail { font-size: .85rem; color: var(--text-mute); }

/* Feature list with ticks */
.tick-list { display: grid; gap: .8rem; }
.tick-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: .75rem; align-items: start; }
.tick-list .icon {
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  stroke-width: 2.4;
  margin-top: .18rem;
}
.tick-list--light .icon { background: rgba(255, 255, 255, .12); color: var(--accent-300); }

/* Generic bullets from database text */
.bullets { display: grid; gap: .55rem; }
.bullets li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-soft);
}
.bullets li::before {
  content: "";
  position: absolute;
  left: .25rem;
  top: .72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-500);
}
.section--navy .bullets li { color: var(--text-invert-soft); }

/* Career pathway tiles */
.career-tile {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.career-tile:hover { border-color: var(--accent-500); transform: translateY(-3px); }
.career-tile__title { font-size: 1rem; font-weight: 700; color: var(--navy-900); }
.career-tile__detail { font-size: .9rem; color: var(--text-soft); }

/* =====================================================================
   9. CTA BAND & ACCENT PANELS
   ===================================================================== */
.cta-band {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3rem, 2rem + 4vw, 5rem);
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: #fff;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 88% 18%, rgba(201, 161, 90, .22), transparent 45%),
    radial-gradient(circle at 8% 92%, rgba(201, 161, 90, .12), transparent 40%);
}

.cta-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  align-items: center;
}

.cta-band__title { color: #fff; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); }
.cta-band__text { margin-top: .85rem; color: var(--text-invert-soft); max-width: 40rem; }
.cta-band__note {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
  font-size: .875rem;
  color: var(--accent-300);
}
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Value strip */
.value-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}
.value-card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--navy-900);
  color: var(--accent-500);
  flex: none;
}
.value-card__icon .icon { width: 20px; height: 20px; }
.value-card__title { font-size: 1rem; margin-bottom: .15rem; }
.value-card__text { font-size: .92rem; color: var(--text-soft); }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(.6rem, .4rem + .6vw, 1rem);
}
.gallery__item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--mist-2);
  cursor: zoom-in;
  border: 0;
  padding: 0;
  width: 100%;
  display: block;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.gallery__item:hover img,
.gallery__item:focus-visible img { transform: scale(1.05); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(5, 11, 22, .93);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}
.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
}
.lightbox__close .icon { width: 22px; height: 22px; }
.lightbox__caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .8);
  font-size: .9rem;
  text-align: center;
  max-width: 80ch;
}

/* Program list (homepage "at a glance" table) */
.program-list {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}
.program-list__row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 42px;
  gap: var(--sp-4);
  align-items: center;
  padding: 1.1rem clamp(1rem, .8rem + .6vw, 1.5rem);
  border-top: 1px solid var(--line);
  transition: background-color var(--dur) var(--ease);
}
.program-list__row:first-child { border-top: 0; }
.program-list__row:hover { background: var(--mist); }
.program-list__name { font-weight: 650; color: var(--navy-900); }
.program-list__for { font-size: .9rem; color: var(--text-soft); }
.program-list__go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--mist); color: var(--navy-800); }
.program-list__row:hover .program-list__go { background: var(--navy-900); color: var(--accent-500); }
.program-list__go .icon { width: 17px; height: 17px; }

/* Programme detail */
.detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-block: var(--sp-6);
}
.detail-meta__item { padding: 1.1rem 1.25rem; background: var(--white); }
.detail-meta__label {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: .3rem;
}
.detail-meta__label .icon { width: 14px; height: 14px; color: var(--accent-600); }
.detail-meta__value { font-weight: 650; color: var(--navy-900); }
.detail-meta__value.is-pending { color: var(--warning); font-weight: 600; font-size: .95rem; }

.detail-section + .detail-section { margin-top: var(--sp-6); }
.detail-section__title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.15rem;
  margin-bottom: .8rem;
}
.detail-section__title .icon { width: 19px; height: 19px; color: var(--accent-600); }
.detail-section__text { color: var(--text-soft); }

.detail-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.detail-aside__card {
  padding: clamp(1.35rem, 1.1rem + .6vw, 1.75rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.detail-aside__actions { display: grid; gap: .6rem; }
.detail-aside__note { font-size: .85rem; color: var(--text-mute); text-align: center; }

/* Programme detail page layout */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: start;
}

/* =====================================================================
   10. FORMS
   ===================================================================== */
.form-card {
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4) var(--sp-5);
}
.form-grid__full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: .4rem; }

.field__label {
  font-size: .875rem;
  font-weight: 650;
  color: var(--navy-800);
}
.field__label .req { color: var(--danger); }

.field__hint { font-size: .8rem; color: var(--text-mute); }

.field__input,
.field__select,
.field__textarea {
  width: 100%;
  min-height: 52px;
  padding: .8rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 1rem;
  color: var(--text);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field__textarea { min-height: 140px; resize: vertical; line-height: 1.6; }

.field__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%236b788f' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
}

.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 4px rgba(19, 48, 79, .1);
}

.field__input::placeholder,
.field__textarea::placeholder { color: #9aa5b8; }

.field.has-error .field__input,
.field.has-error .field__select,
.field.has-error .field__textarea { border-color: var(--danger); }
.field.has-error .field__input:focus,
.field.has-error .field__textarea:focus { box-shadow: 0 0 0 4px rgba(165, 32, 32, .1); }

.field__error {
  display: none;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--danger);
}
.field.has-error .field__error { display: flex; }
.field__error .icon { width: 14px; height: 14px; }

/* Honeypot: hidden from people, visible to naive bots */
.hp-field {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
}
.form-actions__note { font-size: .82rem; color: var(--text-mute); }

.form-summary { margin-bottom: var(--sp-5); }

.form-status {
  margin-top: var(--sp-4);
  padding: .9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
}
.form-status[data-state="loading"] { background: var(--mist-2); color: var(--text-soft); }
.form-status[data-state="success"] { background: var(--success-bg); color: #145437; }
.form-status[data-state="error"] { background: var(--danger-bg); color: #8a1c1c; }

/* ----------------------------------------------------------
   ONLINE APPLICATION FORM
   Scoped to .overberg-application-form so nothing else is affected.
   ---------------------------------------------------------- */
.overberg-application-form .apply-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4) var(--sp-5);
  margin: 0;
  padding: clamp(1.1rem, .8rem + 1vw, 1.75rem);
  background: var(--mist-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.overberg-application-form .apply-section + .apply-section { margin-top: var(--sp-2); }

.overberg-application-form .apply-section__legend {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 .25rem;
  padding: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-800);
  border: 0;
}
.overberg-application-form .apply-section__num {
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
}

/* Radio and checkbox option groups */
.overberg-application-form .field__options {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.5rem;
}
.overberg-application-form .field__options--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: .55rem .9rem;
}
.overberg-application-form .field__option {
  display: inline-flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}
.overberg-application-form .field__radio,
.overberg-application-form .field__checkbox {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .15rem;
  accent-color: var(--navy-700);
}
.overberg-application-form .field__option--consent {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-weight: 500;
  line-height: 1.5;
}

/* File inputs */
.overberg-application-form .field__file {
  width: 100%;
  padding: .6rem .75rem;
  background: var(--white);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  font-size: .92rem;
  color: var(--text-soft);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.overberg-application-form .field__file::file-selector-button {
  margin-right: .85rem;
  padding: .5rem .9rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--navy-800);
  color: var(--white);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.overberg-application-form .field__file:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 4px rgba(19, 48, 79, .1);
}
.overberg-application-form .field.has-error .field__file { border-color: var(--danger); }
.overberg-application-form .field.has-error .field__option { color: var(--danger); }

/* Long course names and uploaded filenames must never break the layout. */
.overberg-application-form .field__option span,
.overberg-application-form .field__hint,
.overberg-application-form .field__filename {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Vertical option list (education levels) */
.overberg-application-form .field__options--stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .55rem;
}

/* Course checkboxes disabled once two are chosen */
.overberg-application-form .field__checkbox:disabled {
  cursor: not-allowed;
}
.overberg-application-form .field__option:has(input:disabled) {
  opacity: .45;
  cursor: not-allowed;
}

/* Live counters */
.overberg-application-form .course-counter,
.overberg-application-form .char-counter {
  margin: .5rem 0 0;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-soft);
}
.overberg-application-form .char-counter {
  text-align: right;
}

.overberg-application-form .field__filename {
  margin: .45rem 0 0;
  font-size: .85rem;
  color: var(--text-soft);
}

@media (max-width: 720px) {
  .overberg-application-form .apply-section { grid-template-columns: minmax(0, 1fr); }
  .overberg-application-form .field__options--grid { grid-template-columns: minmax(0, 1fr); }
}

/* Contact details list */
.contact-list { display: grid; gap: .9rem; }
.contact-list__item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: .9rem;
  align-items: start;
}
.contact-list__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--mist);
  color: var(--navy-700);
}
.contact-list__label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: .15rem;
}
.contact-list__value { font-weight: 600; color: var(--navy-900); }
.contact-list__value a { transition: color var(--dur) var(--ease); }
.contact-list__value a:hover { color: var(--accent-ink); }
.contact-list__value address { display: grid; }

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--mist-2);
  aspect-ratio: 16 / 10;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* =====================================================================
   11. FOOTER
   ===================================================================== */
.site-footer {
  background: var(--navy-950);
  color: var(--text-invert-soft);
  padding-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  font-size: .94rem;
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 1rem + 2.5vw, 3.5rem);
  padding-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.brand--footer .brand__mark--logo { background: none; }

.site-footer__blurb {
  margin-top: 1.15rem;
  max-width: 34ch;
  color: rgba(255, 255, 255, .62);
  line-height: 1.65;
}

.social-links { display: flex; gap: .6rem; margin-top: 1.5rem; }
.social-links a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .8);
  transition: all var(--dur) var(--ease);
}
.social-links a:hover {
  background: var(--accent-500);
  border-color: var(--accent-500);
  color: var(--navy-950);
  transform: translateY(-2px);
}
.social-links .icon { width: 19px; height: 19px; }

.site-footer__heading {
  margin-bottom: 1.1rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}

.site-footer__list { display: grid; gap: .6rem; }
.site-footer__list a {
  color: rgba(255, 255, 255, .68);
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.site-footer__list a:hover { color: #fff; padding-left: 4px; }

.site-footer__contact { display: grid; gap: .9rem; }
.site-footer__contact li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: .7rem; align-items: start; }
.site-footer__contact .icon { width: 17px; height: 17px; color: var(--accent-500); margin-top: .25rem; }
.site-footer__contact a { color: rgba(255, 255, 255, .68); transition: color var(--dur) var(--ease); }
.site-footer__contact a:hover { color: #fff; }
.site-footer__contact address span { display: block; }

.site-footer__cta { margin-top: 1.5rem; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .875rem;
  color: rgba(255, 255, 255, .55);
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer__legal a { transition: color var(--dur) var(--ease); }
.site-footer__legal a:hover { color: #fff; }

.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy-900);
  box-shadow: var(--shadow-md);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.to-top:hover { background: var(--navy-900); color: var(--accent-500); }
.icon--rotate-up { transform: rotate(90deg); width: 20px; height: 20px; }

/* =====================================================================
   12. UTILITIES
   ===================================================================== */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.prose > * + * { margin-top: 1rem; }
.prose h2 { margin-top: 2.25rem; }
.prose h3 { margin-top: 1.75rem; }
.prose p { color: var(--text-soft); }
.prose strong { color: var(--navy-900); }
.prose ul { display: grid; gap: .5rem; }
.prose li { position: relative; padding-left: 1.5rem; color: var(--text-soft); }
.prose li::before {
  content: "";
  position: absolute;
  left: .25rem;
  top: .72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-500);
}

/* Error / status pages */
.page-error {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 2rem;
  background:
    radial-gradient(circle at 78% 12%, rgba(201, 161, 90, .14), transparent 42%),
    var(--navy-900);
  color: var(--text-invert-soft);
}
.error-page { max-width: 40rem; text-align: center; }
.error-page__code {
  font-size: clamp(3.5rem, 2rem + 8vw, 7rem);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
  color: var(--accent-500);
}
.error-page__title { margin-top: .5rem; color: #fff; }
.error-page__text { margin-top: 1rem; font-size: 1.08rem; }
.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 2rem;
}

.toast-stack {
  position: fixed;
  left: 50%;
  top: 1rem;
  z-index: 130;
  display: grid;
  gap: .6rem;
  width: min(560px, calc(100vw - 2rem));
  transform: translateX(-50%);
}
.toast {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--navy-900);
  color: #fff;
  box-shadow: var(--shadow-lg);
  font-size: .95rem;
  font-weight: 600;
}
.toast--success { background: #12603d; }
.toast--error { background: #8a1c1c; }

/* =====================================================================
   13. MOTION
   ===================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* Used by the programme filter re-entry animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.js-off [data-reveal] { opacity: 1; transform: none; }

/* =====================================================================
   14. RESPONSIVE
   ===================================================================== */
@media (max-width: 1180px) {
  .nav-primary__list { gap: .55rem; }
  .nav-primary__link { font-size: .85rem; }
  .site-nav__whatsapp span { display: none; }
  .site-footer__top { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); }
  .site-footer__col--contact { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .grid--4,
  .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .nav-primary { display: none; }
  .nav-toggle { display: grid; }
  .site-nav__actions { margin-left: auto; }

  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-aside { position: static; }

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

@media (max-width: 860px) {
  :root { --header-h: 64px; }

  .utility-bar__item--brand,
  .utility-bar__item--hours { display: none; }
  .utility-bar__inner { justify-content: flex-end; min-height: 34px; }

  .split { grid-template-columns: minmax(0, 1fr); }
  .split--reverse > *:first-child { order: 0; }

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

  .hero { min-height: clamp(520px, 88vh, 760px); }
  .hero__trust { gap: .5rem 1.25rem; }

  .program-list__row { grid-template-columns: minmax(0, 1fr) 38px; }
  .program-list__for { grid-column: 1 / -1; order: 3; }
}

@media (max-width: 680px) {
  .grid--2,
  .grid--3,
  .grid--4,
  .grid--5 { grid-template-columns: minmax(0, 1fr); }

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

  .site-footer__top { grid-template-columns: minmax(0, 1fr); }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }

  .hero__actions .btn { width: 100%; }
  .cta-band__actions .btn { width: 100%; }

  .pathway__step { grid-template-columns: 62px minmax(0, 1fr); }
  .pathway__num { width: 46px; height: 46px; font-size: .85rem; }

  .btn--lg { min-height: 54px; }
}

@media (max-width: 420px) {
  .site-nav__whatsapp { display: none; }
  .program-card__actions .btn { flex: 1 1 auto; }
}

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

/* ---- Print ---------------------------------------------------------- */
@media print {
  .site-header,
  .site-footer,
  .cta-band,
  .to-top,
  .mobile-nav,
  .hero__actions { display: none !important; }
  body { color: #000; background: #fff; font-size: 11pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}