:root {
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #d9dee7;
  --paper: #ffffff;
  --soft: #f3f6fa;
  --navy: #101b33;
  --blue: #1f4a78;
  --red: #c92232;
  --gold: #d8aa3d;
  --shadow: 0 20px 60px rgba(16, 27, 51, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fff;
  transition: background 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(16, 27, 51, 0.96);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background: #fff;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.75rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.86);
}

.site-nav a:hover {
  color: #fff;
}

.nav-portal {
  border-left: 1px solid rgba(255, 255, 255, 0.24);
  padding-left: 22px;
}

.nav-cta {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--red);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background: url("assets/nmaa-sa-hero.png") center right / cover no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 15, 29, 0.94) 0%, rgba(12, 25, 47, 0.78) 42%, rgba(12, 25, 47, 0.18) 100%),
    linear-gradient(0deg, rgba(8, 15, 29, 0.88), rgba(8, 15, 29, 0.08) 52%);
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 130px 0 42px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd76d;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  width: min(780px, 100%);
  margin-bottom: 18px;
  font-size: clamp(2.65rem, 7vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  font-size: 1.22rem;
  line-height: 1.2;
}

.hero-copy {
  width: min(650px, 100%);
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--red);
  color: #fff;
}

.button.ghost {
  border: 1px solid rgba(255, 255, 255, 0.48);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.button.secondary {
  min-height: 42px;
  padding: 10px 14px;
  color: #fff;
  background: var(--blue);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(900px, 100%);
  margin-top: 54px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stats span {
  display: block;
  padding: 18px;
  background: rgba(10, 20, 38, 0.68);
  color: rgba(255, 255, 255, 0.72);
}

.hero-stats strong {
  display: block;
  color: #fff;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 92px 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 84px);
  align-items: start;
}

.lead-copy {
  color: var(--muted);
  font-size: 1.06rem;
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 50px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}

.proof-band div {
  padding: 26px;
  border-right: 1px solid var(--line);
}

.proof-logo {
  width: 76px;
  height: 76px;
  margin-bottom: 18px;
  object-fit: contain;
}

.proof-band div:last-child {
  border-right: 0;
}

.proof-band span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.proof-band strong {
  font-size: 1.08rem;
}

.tone-light {
  width: 100%;
  max-width: none;
  padding-left: max(18px, calc((100% - 1180px) / 2));
  padding-right: max(18px, calc((100% - 1180px) / 2));
  background: var(--soft);
}

.section-heading {
  width: min(780px, 100%);
  margin-bottom: 36px;
}

.section-heading.compact {
  width: min(860px, 100%);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pathway,
.event-grid article,
.affiliate-card,
.school-card,
.contact-form,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.pathway {
  min-height: 270px;
  padding: 26px;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 34px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
}

.pathway p,
.event-grid p,
.affiliate-card p,
.school-card p,
.faq p {
  color: var(--muted);
}

.schools-section {
  border-top: 1px solid var(--line);
}

.schools-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: stretch;
}

.map-panel {
  min-height: 520px;
  padding: 22px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(16, 27, 51, 0.92), rgba(31, 74, 120, 0.82)),
    radial-gradient(circle at 60% 35%, rgba(216, 170, 61, 0.38), transparent 34%);
}

.map-card {
  position: relative;
  height: 100%;
  min-height: 476px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 52px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 52px);
}

.map-card::before {
  content: "";
  position: absolute;
  left: 24%;
  top: 15%;
  width: 44%;
  height: 72%;
  border: 2px solid rgba(255, 255, 255, 0.58);
  border-radius: 52% 48% 58% 42% / 44% 44% 56% 56%;
  transform: rotate(-12deg);
  background: rgba(255, 255, 255, 0.08);
}

.map-card::after {
  content: "";
  position: absolute;
  right: 20%;
  bottom: 12%;
  width: 16%;
  height: 24%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 55% 45% 50% 50%;
  transform: rotate(14deg);
}

.map-label {
  position: absolute;
  left: 24px;
  top: 22px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  text-transform: uppercase;
}

.pin {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.pin::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 8px rgba(201, 34, 50, 0.22);
}

.pin-one {
  top: 31%;
  left: 54%;
}

.pin-two {
  top: 38%;
  left: 48%;
}

.pin-three {
  right: 12%;
  bottom: 18%;
}

.school-list {
  display: grid;
  gap: 14px;
}

.school-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
}

.school-logo {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}

.school-card.upcoming {
  background: var(--soft);
}

.school-card.limited {
  border-color: rgba(216, 170, 61, 0.55);
  background: #fffaf0;
}

.school-type {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.school-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
  min-width: 142px;
}

.school-card a:not(.button) {
  color: var(--blue);
  font-weight: 800;
}

.school-note {
  font-weight: 800;
}

.muted-link {
  color: var(--muted);
  font-size: 0.9rem;
}

.values {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.values-panel {
  padding: 42px;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
}

.values-panel .section-kicker {
  color: #ffd76d;
}

.values-panel p {
  color: rgba(255, 255, 255, 0.76);
}

.value-list {
  display: grid;
  gap: 20px;
}

.value-list div {
  padding-left: 22px;
  border-left: 4px solid var(--red);
}

.affiliate-section {
  border-top: 1px solid var(--line);
}

.affiliate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 20px;
}

.affiliate-card {
  padding: 34px;
}

.affiliate-card.dark {
  color: #fff;
  background: linear-gradient(135deg, var(--navy), #223e63);
}

.affiliate-card.dark ul {
  margin: 0;
  padding-left: 20px;
}

.affiliate-card.dark li {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.82);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 32px;
}

.tag-list span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  font-weight: 800;
  background: var(--soft);
}

.text-link {
  color: var(--red);
  font-weight: 800;
}

.events {
  width: 100%;
  max-width: none;
  padding-left: max(18px, calc((100% - 1180px) / 2));
  padding-right: max(18px, calc((100% - 1180px) / 2));
  color: #fff;
  background: var(--navy);
}

.events .section-kicker {
  color: #ffd76d;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.event-grid article {
  padding: 28px;
  color: var(--ink);
}

.event-grid time {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--red);
  font-weight: 800;
}

.faq-list {
  width: min(860px, 100%);
  margin: 0 auto;
}

.faq-list details {
  margin-bottom: 12px;
  padding: 18px 22px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  margin: 16px 0 0;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.contact-copy p {
  color: var(--muted);
}

.contact-methods {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-methods a {
  color: var(--blue);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  background: #fff;
}

textarea {
  resize: vertical;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: center;
  padding: 34px clamp(18px, 4vw, 56px);
  color: #fff;
  background: #0b1220;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
}

.footer-links {
  display: flex;
  gap: 18px;
  font-weight: 800;
}

.copyright {
  font-size: 0.9rem;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 18px;
    right: 18px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    border-radius: 8px;
    background: rgba(16, 27, 51, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 12px;
  }

  .nav-portal {
    border-left: 0;
    padding-left: 12px;
  }

  .nav-cta {
    margin-top: 6px;
    text-align: center;
  }

  .split,
  .values,
  .schools-layout,
  .affiliate-layout,
  .contact {
    grid-template-columns: 1fr;
  }

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

  .proof-band {
    grid-template-columns: 1fr;
  }

  .proof-band div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-band div:last-child {
    border-bottom: 0;
  }

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

@media (max-width: 640px) {
  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 820px;
  }

  .hero-media {
    background-position: 62% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(8, 15, 29, 0.96) 0%, rgba(12, 25, 47, 0.84) 68%, rgba(12, 25, 47, 0.54) 100%),
      linear-gradient(0deg, rgba(8, 15, 29, 0.88), rgba(8, 15, 29, 0.14) 52%);
  }

  .hero-content {
    padding-top: 110px;
  }

  .hero-stats,
  .pathway-grid,
  .event-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .values-panel,
  .affiliate-card,
  .school-card,
  .contact-form {
    padding: 24px;
  }

  .map-panel {
    min-height: 390px;
  }

  .map-card {
    min-height: 346px;
  }

  .school-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .school-logo {
    width: 88px;
    height: 88px;
  }

  .school-actions {
    justify-items: start;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
