/* ============================================================
   NS Aviation Africa — stylesheet
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink:        #172b45;
  --ink-soft:   #263e5a;
  --paper:      #f5f3ed;
  --paper-warm: #ebe8e0;
  --mint:       #c9f2de;
  --lime:       #dfff72;
  --blue:       #183a56;
  --accent:     #d87955;
  --muted:      #566460;
  --line:       rgba(23, 43, 69, .14);
  --line-soft:  rgba(23, 43, 69, .08);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur:  200ms;

  --pad-x: clamp(20px, 7vw, 140px);
  --pad-y: clamp(80px, 10vw, 128px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--lime); color: var(--ink); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

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

/* ---------- Shell / utilities ---------- */
.site-shell { overflow: hidden; }
.section-pad {
  padding-left:  var(--pad-x);
  padding-right: var(--pad-x);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  font: 600 12px/1 'Manrope', sans-serif;
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 94px; }

/* ============================================================
   NAV
   ============================================================ */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--ink);
}
.brand-logo {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
}
.brand-name {
  font-size: 11px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 1.4px;
}
.brand-name em {
  font-style: normal;
  font-weight: 500;
  letter-spacing: 2.4px;
  color: var(--muted);
}

.desktop-nav {
  display: flex;
  gap: clamp(20px, 2.6vw, 36px);
  margin-left: auto;
  margin-right: clamp(28px, 3.4vw, 48px);
}
.desktop-nav a {
  position: relative;
  padding: 4px 0;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.nav-cta span {
  font-size: 16px;
  display: inline-block;
  transition: transform var(--dur) var(--ease);
}
.nav-cta:hover span { transform: translateX(3px); }

.menu-toggle {
  display: none;
  padding: 4px;
  background: none;
  border: 0;
  font-size: 22px;
  color: var(--ink);
}

.mobile-nav { display: none; }
.mobile-nav:not([hidden]) {
  display: block;
  position: fixed;
  inset: 70px 0 0 0;
  z-index: 15;
  padding: 28px var(--pad-x);
  background: var(--paper);
  border-top: 1px solid var(--line);
  overflow-y: auto;
}
.mobile-nav a {
  display: block;
  padding: 16px 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child { border-bottom: 0; color: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-top:    clamp(48px, 7vw, 88px);
  padding-bottom: clamp(48px, 7vw, 96px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  font: 500 11px/1.4 'DM Mono', monospace;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero h1 {
  margin: 0 0 30px;
  font-size: clamp(52px, 8.6vw, 124px);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.055em;
  color: var(--ink);
}
.hero h1 span { color: var(--accent); }

.hero-lede {
  max-width: 420px;
  margin: 0;
  font-size: clamp(14px, 1.1vw, 15px);
  line-height: 1.65;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease),
              color      var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.button span {
  font-size: 16px;
  display: inline-block;
  transition: transform var(--dur) var(--ease);
}
.button:hover span { transform: translateX(3px); }

.button-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.button-primary:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.text-link span {
  font-size: 16px;
  display: inline-block;
  transition: transform var(--dur) var(--ease);
}
.text-link:hover { color: var(--accent); }
.text-link:hover span { transform: translateX(3px); }

/* Hero visual — duotone photographic plate */
.hero-visual {
  position: relative;
  margin: 0;
  height: clamp(420px, 46vw, 620px);
  overflow: hidden;
  background: #cde5d5;
  isolation: isolate;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1767868277770-d8cb69800992?auto=format&fit=crop&w=1400&q=85') center/cover no-repeat;
  filter: grayscale(1) contrast(1.05);
  transition: transform 1.2s var(--ease);
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  opacity: .28;
  mix-blend-mode: multiply;
}
.hero-visual:hover::before { transform: scale(1.04); }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip { background: var(--ink); color: #d3e4dc; }
.trust-inner {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
}
.trust-label {
  max-width: 200px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(201, 242, 222, .68);
}
.trust-item {
  font-size: 12px;
  color: rgba(201, 242, 222, .68);
  white-space: nowrap;
}
.trust-item b { color: var(--paper); font-weight: 600; margin-right: 4px; }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-heading,
.schools-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 56px;
}
.section-heading h2,
.schools h2,
.about h2 {
  margin: 0;
  font-size: clamp(40px, 5.2vw, 68px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.045em;
}
.section-heading h2 span,
.schools h2 span,
.about h2 span { color: var(--accent); }

.section-intro {
  max-width: 300px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ============================================================
   PATHWAYS / COURSES
   ============================================================ */
.pathways,
.how,
.schools,
.about {
  padding-top:    var(--pad-y);
  padding-bottom: var(--pad-y);
}

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.pathway-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--paper);
  border-right:  1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition: background var(--dur) var(--ease);
}

/* --- visible photographic plate on every card --- */
.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #cde5d5;
  isolation: isolate;
}
.card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
  transition: transform .9s var(--ease);
}
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  opacity: .2;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.pathway-card:hover .card-media img { transform: scale(1.05); }

/* course index overlay on the image */
.card-index {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 4px 8px;
  background: var(--paper);
  color: var(--ink);
  font: 500 10px/1 'DM Mono', monospace;
  letter-spacing: .06em;
}
.card-index { left: 12px; }

/* --- content below the image --- */
.card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 22px;
}

.pathway-card h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.03em;
}
.pathway-card p {
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.course-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: auto;
  align-self: flex-start;
  margin-top: auto;
  padding: 9px 13px;
  background: transparent;
  color: var(--ink) !important;
  text-decoration: none !important;
  border: 1px solid rgba(23, 43, 69, .32);
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .02em;
  transition: background var(--dur) var(--ease),
              color      var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.course-cta:hover,
.course-cta:focus-visible {
  background: var(--ink);
  color: var(--paper) !important;
  border-color: var(--ink);
}
.course-cta span {
  font-size: 15px;
  margin-left: 4px;
  display: inline-block;
  transition: transform var(--dur) var(--ease);
}
.course-cta:hover span { transform: translateX(3px); }

.quiz-prompt {
  padding-top: 40px;
  padding-bottom: 40px;
  background: var(--ink);
  color: var(--paper);
}
.quiz-prompt-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(180px, .8fr) auto;
  align-items: center;
  gap: 32px;
}
.quiz-prompt .eyebrow { color: var(--mint); }
.quiz-prompt h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.08;
  font-weight: 700;
}
.quiz-prompt h2 span { color: var(--lime); }
.quiz-prompt-inner > p {
  max-width: 290px;
  margin: 0;
  color: rgba(245, 243, 237, .72);
  font-size: 13px;
  line-height: 1.65;
}
.quiz-prompt-cta {
  justify-self: end;
  white-space: nowrap;
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}
.quiz-prompt-cta:hover {
  background: var(--paper);
  border-color: var(--paper);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.step {
  padding: 28px 35px 0 0;
  margin-right: 35px;
  border-right: 1px solid var(--line);
}
.step:last-child { border-right: 0; margin-right: 0; }
.step > span {
  font: 500 11px/1 'DM Mono', monospace;
  color: var(--accent);
  letter-spacing: .02em;
}
.step h3 {
  margin: 55px 0 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.03em;
}
.step p {
  max-width: 240px;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ============================================================
   SCHOOLS — map
   ============================================================ */
.schools { background: #e6efeb; }
.schools-header { margin-bottom: clamp(40px, 5vw, 60px); }

.schools-map {
  position: relative;
  height: clamp(380px, 50vw, 540px);
  overflow: hidden;
  background: #b7d3ca;
  isolation: isolate;
}
.schools-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(23, 43, 69, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 43, 69, .055) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}
.map-outline {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font: 800 clamp(140px, 24vw, 300px)/1 'Manrope', sans-serif;
  color: rgba(245, 243, 237, .32);
  letter-spacing: -.12em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  white-space: nowrap;
}

.map-pin {
  position: absolute;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 0 5px rgba(216, 121, 85, .22),
    0 0 0 10px rgba(216, 121, 85, .08);
  z-index: 2;
}

.map-label {
  position: absolute;
  margin-top: -20px;
  padding: 8px 11px;
  background: var(--paper);
  color: var(--ink);
  font: 500 11px/1.2 'DM Mono', monospace;
  letter-spacing: .01em;
  white-space: nowrap;
  z-index: 2;
}
.map-label small {
  display: block;
  margin-top: 3px;
  color: var(--accent);
  letter-spacing: .04em;
  font-size: 10px;
}

.map-caption {
  position: absolute;
  left: 24px;
  bottom: 20px;
  z-index: 2;
  margin: 0;
  font: 11px/1.4 'DM Mono', monospace;
  letter-spacing: .02em;
  color: rgba(23, 43, 69, .7);
}
.map-pin-muted { background: #89928f; box-shadow: 0 0 0 5px rgba(137, 146, 143, .18), 0 0 0 10px rgba(137, 146, 143, .06); }
.map-label-muted { color: #77817d; background: rgba(245, 243, 237, .72); }
.map-label-muted small { color: #89928f; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 8vw, 96px);
  align-items: start;
}
.about-copy { padding-top: 52px; }
.about-copy .large-copy {
  max-width: 440px;
  margin: 0;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -.03em;
  color: var(--ink);
}
.about-copy p:not(.large-copy) {
  max-width: 400px;
  margin: 32px 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding-top: 56px;
  padding-bottom: 28px;
  background: #102321;
  color: #b4c9c2;
}
.footer .brand { color: #d7e3dd; }
.footer .brand-logo { background: transparent; border-color: rgba(215, 227, 221, .35); }
.footer .brand-name em { color: rgba(215, 227, 221, .55); }

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.footer-top > p {
  max-width: 340px;
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(180, 201, 194, .85);
}
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  font-size: 13px;
  color: rgba(180, 201, 194, .85);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.footer-links a:hover,
.footer-links a:focus-visible { color: var(--lime); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 52px;
  padding-top: 20px;
  border-top: 1px solid rgba(220, 255, 240, .12);
  font: 11px/1.6 'DM Mono', monospace;
  letter-spacing: .02em;
  color: rgba(124, 152, 144, .9);
}
.footer-bottom a { color: var(--lime); text-decoration: none; }
.footer-bottom a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   MOTION PREFERENCE
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 800px) {
  .desktop-nav,
  .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .nav-wrap { height: 70px; }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 64px;
    padding-bottom: 56px;
    gap: 40px;
  }
  .hero h1 { font-size: clamp(48px, 11vw, 78px); }
  .hero-visual { height: clamp(320px, 62vw, 480px); }

  .trust-inner {
    height: auto;
    padding-top: 24px;
    padding-bottom: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .trust-label { grid-column: 1 / -1; max-width: none; }

  .section-heading,
  .schools-header { display: block; }
  .section-intro { margin-top: 24px; max-width: none; }

  .pathway-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-media { aspect-ratio: 16 / 9; }
  .quiz-prompt-inner { grid-template-columns: 1fr auto; gap: 16px 24px; }
  .quiz-prompt-inner > p { grid-column: 1; }
  .quiz-prompt-cta { grid-column: 2; grid-row: 1 / span 2; }

  .steps { grid-template-columns: 1fr; }
  .step {
    padding: 24px 0;
    margin: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .step:last-child { border-bottom: 0; }
  .step h3 { margin-top: 22px; }

  .schools-map { height: clamp(320px, 60vw, 460px); }
  .map-outline { font-size: clamp(100px, 22vw, 180px); }
  .map-label { font-size: 10px; padding: 6px 9px; }
  .map-label small { font-size: 9px; }

  .about-inner { grid-template-columns: 1fr; gap: 8px; }
  .about-copy { padding-top: 0; }

  .footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer-top > p { max-width: none; }
  .footer-links { grid-column: 1 / -1; justify-content: space-between; }

  .footer-bottom {
    display: block;
    margin-top: 36px;
    line-height: 2;
  }
  .footer-bottom span { display: block; }
}

@media (max-width: 460px) {
  .section-pad {
    padding-left: 6vw;
    padding-right: 6vw;
  }
  .hero h1 { font-size: clamp(42px, 12vw, 60px); }
  .pathway-grid { grid-template-columns: 1fr; }
  .card-media { aspect-ratio: 16 / 9; }
  .quiz-prompt-inner { grid-template-columns: 1fr; }
  .quiz-prompt-inner > p,
  .quiz-prompt-cta { grid-column: 1; }
  .quiz-prompt-cta { grid-row: auto; justify-self: start; white-space: normal; }

  .hero-actions { display: block; }
  .hero-actions .text-link { display: inline-flex; margin-top: 20px; }

  /* keep map legible on phones — smaller labels, tighter pins */
  .map-label { font-size: 9px; padding: 5px 8px; margin-top: -16px; }
  .map-label small { font-size: 8px; }
  .map-pin { width: 10px; height: 10px; margin-left: -5px; margin-top: -5px; }

  .mobile-nav:not([hidden]) { padding: 20px 6vw; }
}
