/* ============================================================
   NJRP EMS TRAINING PORTAL — DESIGN SYSTEM
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── TOKENS ── */
:root {
  /* EMS Brand */
  --ems-bg:          #07121F;
  --ems-bg-2:        #0C1E33;
  --ems-bg-card:     rgba(255,255,255,0.04);
  --ems-border:      rgba(255,255,255,0.08);
  --ems-orange:      #F4631E;
  --ems-orange-glow: rgba(244,99,30,0.25);
  --ems-amber:       #FFB020;
  --ems-text:        #EEF2FF;
  --ems-text-dim:    rgba(238,242,255,0.55);

  /* NJSP Brand */
  --njsp-bg:         #00112B;
  --njsp-bg-2:       #001A42;
  --njsp-gold:       #FFB800;
  --njsp-gold-glow:  rgba(255,184,0,0.22);
  --njsp-text:       #EEF2FF;

  /* Foundation Brand */
  --found-bg:        #091523;
  --found-bg-2:      #0E2035;
  --found-teal:      #06B6D4;
  --found-teal-glow: rgba(6,182,212,0.22);

  /* Shared */
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-full: 9999px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.35);
  --shadow-lift: 0 12px 40px rgba(0,0,0,0.5);
  --transition:  all 0.28s cubic-bezier(0.4,0,0.2,1);

  --font-display: 'Rajdhani', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --container: 1200px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ems-text);
  background: var(--ems-bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; outline: none; }

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 820px; }
.container--wide   { max-width: 1400px; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; }

p { color: var(--ems-text-dim); line-height: 1.7; }
.text-bright { color: var(--ems-text); }

.label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ems-text-dim);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
}
.btn--primary {
  background: var(--ems-orange);
  color: #fff;
  box-shadow: 0 4px 20px var(--ems-orange-glow);
}
.btn--primary:hover {
  background: #ff7a40;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(244,99,30,0.4);
}
.btn--ghost {
  background: transparent;
  color: var(--ems-text);
  border: 1px solid var(--ems-border);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.2);
}
.btn--njsp {
  background: var(--njsp-gold);
  color: #00112B;
  box-shadow: 0 4px 20px var(--njsp-gold-glow);
}
.btn--njsp:hover {
  background: #ffc933;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,184,0,0.4);
}
.btn--teal {
  background: var(--found-teal);
  color: #091523;
  box-shadow: 0 4px 20px var(--found-teal-glow);
}
.btn--teal:hover {
  background: #22d3ee;
  transform: translateY(-2px);
}
.btn--sm { padding: 8px 18px; font-size: 0.85rem; }
.btn--lg { padding: 16px 36px; font-size: 1.1rem; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  background: rgba(7,18,31,0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s ease;
}
.nav.scrolled { background: rgba(7,18,31,0.95); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ems-text);
}
.nav__logo-badge {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--ems-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav__links a {
  display: block;
  padding: 6px 12px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ems-text-dim);
  border-radius: 6px;
  transition: var(--transition);
}
.nav__links a:hover,
.nav__links a.active { color: var(--ems-text); background: rgba(255,255,255,0.06); }
.nav__links a.active { color: var(--ems-orange); }
.nav__cta { margin-left: 12px; }
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ems-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 68px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(7,18,31,0.97) 0%,
    rgba(12,30,51,0.88) 50%,
    rgba(7,18,31,0.92) 100%
  );
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
}
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(244,99,30,0.12);
  border: 1px solid rgba(244,99,30,0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ems-orange);
  margin-bottom: 24px;
}
.hero__tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ems-orange);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .accent { color: var(--ems-orange); }
.hero__sub {
  font-size: 1.15rem;
  color: var(--ems-text-dim);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.6;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero__agencies {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.agency-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ems-text-dim);
  transition: var(--transition);
}
.agency-badge:hover { border-color: rgba(255,255,255,0.2); color: var(--ems-text); }
.agency-badge__icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ── SECTION ── */
.section { padding: 88px 0; }
.section--dark  { background: var(--ems-bg); }
.section--mid   { background: var(--ems-bg-2); }
.section--njsp  { background: var(--njsp-bg); }
.section--found { background: var(--found-bg); }
.section__head { margin-bottom: 52px; }
.section__head .label { margin-bottom: 10px; }
.section__head h2 { margin-bottom: 12px; }
.section__head p { font-size: 1.05rem; max-width: 600px; }

/* ── CARDS ── */
.card {
  background: var(--ems-bg-card);
  border: 1px solid var(--ems-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(255,255,255,0.14);
}
.card__accent-bar {
  height: 3px;
  background: var(--ems-orange);
}
.card__accent-bar--gold   { background: var(--ems-amber); }
.card__accent-bar--njsp   { background: var(--njsp-gold); }
.card__accent-bar--teal   { background: var(--found-teal); }
.card__body { padding: 28px; }
.card__icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: rgba(244,99,30,0.12);
  border: 1px solid rgba(244,99,30,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.card__icon--gold  { background: rgba(255,176,32,0.1); border-color: rgba(255,176,32,0.2); }
.card__icon--njsp  { background: rgba(255,184,0,0.1);  border-color: rgba(255,184,0,0.2); }
.card__icon--teal  { background: rgba(6,182,212,0.1);  border-color: rgba(6,182,212,0.2); }
.card h3 { margin-bottom: 10px; }
.card p  { font-size: 0.9rem; line-height: 1.65; margin-bottom: 20px; }
.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ems-text-dim);
}

/* ── GRID ── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
}

/* ── PATHWAY ── */
.pathway {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
  margin: 48px 0;
}
.pathway::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--ems-orange), var(--ems-amber), var(--found-teal));
  z-index: 0;
}
.pathway__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 8px;
}
.pathway__num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ems-bg-2);
  border: 2px solid var(--ems-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ems-orange);
  margin-bottom: 14px;
}
.pathway__step:nth-child(2) .pathway__num { border-color: var(--ems-amber); color: var(--ems-amber); }
.pathway__step:nth-child(3) .pathway__num { border-color: #a78bfa; color: #a78bfa; }
.pathway__step:nth-child(4) .pathway__num { border-color: var(--found-teal); color: var(--found-teal); }
.pathway__step h5 { font-size: 0.85rem; margin-bottom: 4px; }
.pathway__step p  { font-size: 0.78rem; color: var(--ems-text-dim); }

/* ── MODULE NAV ── */
.module-nav {
  position: sticky;
  top: 68px;
  z-index: 100;
  background: rgba(12,30,51,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ems-border);
  padding: 0 24px;
}
.module-nav__inner {
  display: flex;
  align-items: center;
  gap: 2px;
  max-width: var(--container);
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 0 1px;
}
.module-nav__inner::-webkit-scrollbar { display: none; }
.module-nav__link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ems-text-dim);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: var(--transition);
}
.module-nav__link:hover { color: var(--ems-text); border-color: rgba(255,255,255,0.2); }
.module-nav__link.active { color: var(--ems-orange); border-color: var(--ems-orange); }
.module-nav__num {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}
.module-nav__link.active .module-nav__num {
  background: rgba(244,99,30,0.2);
  color: var(--ems-orange);
}

/* ── CONTENT SECTIONS ── */
.content-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--ems-border);
}
.content-section:last-of-type { border-bottom: none; }

.callout {
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
  display: flex;
  gap: 14px;
}
.callout--warning {
  background: rgba(244,99,30,0.08);
  border: 1px solid rgba(244,99,30,0.2);
  border-left: 3px solid var(--ems-orange);
}
.callout--info {
  background: rgba(6,182,212,0.07);
  border: 1px solid rgba(6,182,212,0.18);
  border-left: 3px solid var(--found-teal);
}
.callout--key {
  background: rgba(255,176,32,0.07);
  border: 1px solid rgba(255,176,32,0.18);
  border-left: 3px solid var(--ems-amber);
}
.callout--danger {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  border-left: 3px solid #ef4444;
}
.callout__icon { font-size: 1.25rem; flex-shrink: 0; padding-top: 2px; }
.callout__label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: var(--ems-orange);
}
.callout--info   .callout__label { color: var(--found-teal); }
.callout--key    .callout__label { color: var(--ems-amber); }
.callout--danger .callout__label { color: #ef4444; }
.callout p { margin: 0; font-size: 0.9rem; color: var(--ems-text); }

.key-numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.key-num {
  padding: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--ems-border);
  border-radius: var(--radius-sm);
  text-align: center;
}
.key-num__value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ems-orange);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.key-num__label {
  font-size: 0.75rem;
  color: var(--ems-text-dim);
  line-height: 1.3;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}
th {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 10px 14px;
  text-align: left;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid var(--ems-border);
  color: var(--ems-text-dim);
}
td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--ems-text);
}
tr:hover td { background: rgba(255,255,255,0.02); }

/* ── EXAM ── */
.exam-card {
  background: var(--ems-bg-card);
  border: 1px solid var(--ems-border);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 20px;
  transition: var(--transition);
}
.exam-card.answered { border-color: rgba(6,182,212,0.2); }
.exam-card.correct  { border-color: rgba(34,197,94,0.3); background: rgba(34,197,94,0.05); }
.exam-card.wrong    { border-color: rgba(239,68,68,0.3);  background: rgba(239,68,68,0.04); }
.exam-q-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ems-orange);
  margin-bottom: 10px;
}
.exam-q-text {
  font-size: 1rem;
  color: var(--ems-text);
  line-height: 1.5;
  margin-bottom: 20px;
  font-weight: 500;
}
.exam-options { display: flex; flex-direction: column; gap: 10px; }
.exam-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  color: var(--ems-text);
  text-align: left;
  width: 100%;
}
.exam-option:hover:not(.selected) {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
}
.exam-option.selected {
  border-color: var(--found-teal);
  background: rgba(6,182,212,0.08);
  color: var(--ems-text);
}
.exam-option.correct-answer {
  border-color: #22c55e;
  background: rgba(34,197,94,0.1);
  color: #86efac;
}
.exam-option.wrong-answer {
  border-color: #ef4444;
  background: rgba(239,68,68,0.08);
  color: #fca5a5;
}
.exam-option__letter {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.exam-progress {
  position: sticky;
  top: 68px;
  z-index: 50;
  background: rgba(7,18,31,0.95);
  border-bottom: 1px solid var(--ems-border);
  padding: 12px 24px;
}
.exam-progress__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.exam-progress__bar-wrap {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.exam-progress__bar {
  height: 100%;
  background: var(--ems-orange);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}
.exam-progress__count {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ems-text-dim);
  white-space: nowrap;
}

/* ── CERT ── */
.cert-lookup-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 32px 0;
}
.input-wrap {
  position: relative;
  flex: 1;
}
.input-wrap input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--ems-border);
  border-radius: var(--radius-sm);
  color: var(--ems-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}
.input-wrap input:focus {
  border-color: var(--ems-orange);
  background: rgba(255,255,255,0.07);
}
.input-wrap input::placeholder { color: var(--ems-text-dim); }

/* ── RESULT CARD ── */
.result-card {
  max-width: 520px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--ems-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.result-card__header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ems-border);
}
.result-card__body { padding: 24px; }
.result-field { margin-bottom: 14px; }
.result-field__label { font-size: 0.75rem; color: var(--ems-text-dim); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 2px; }
.result-field__val { font-weight: 500; color: var(--ems-text); }

/* ── SCORE DISPLAY ── */
.score-display {
  text-align: center;
  padding: 60px 40px;
  max-width: 500px;
  margin: 0 auto;
}
.score-circle {
  width: 160px; height: 160px;
  border-radius: 50%;
  border: 4px solid var(--ems-orange);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  background: rgba(244,99,30,0.08);
  position: relative;
}
.score-circle--pass { border-color: #22c55e; background: rgba(34,197,94,0.08); }
.score-circle--fail { border-color: #ef4444; background: rgba(239,68,68,0.08); }
.score-circle__num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ems-orange);
}
.score-circle--pass .score-circle__num { color: #22c55e; }
.score-circle--fail .score-circle__num { color: #ef4444; }
.score-circle__pct { font-size: 0.9rem; color: var(--ems-text-dim); }

/* ── ADMIN ── */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.admin-login__card {
  background: var(--ems-bg-card);
  border: 1px solid var(--ems-border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
}

/* ── FOOTER ── */
footer {
  background: #040d18;
  border-top: 1px solid var(--ems-border);
  padding: 48px 24px 32px;
  color: var(--ems-text-dim);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: var(--container);
  margin: 0 auto 40px;
}
.footer__brand h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--ems-text);
}
.footer__brand p { font-size: 0.85rem; line-height: 1.6; }
.footer__col h5 { font-size: 0.7rem; color: var(--ems-text-dim); margin-bottom: 14px; }
.footer__col a {
  display: block;
  font-size: 0.85rem;
  color: var(--ems-text-dim);
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--ems-text); }
.footer__bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer__bottom p { font-size: 0.8rem; }

/* ── ANIMATIONS ── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── MOBILE ── */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(7,18,31,0.98);
    border-bottom: 1px solid var(--ems-border);
    padding: 16px;
    gap: 4px;
  }
  .nav__hamburger { display: flex; }
  .nav__cta { display: none; }
  .pathway { flex-direction: column; gap: 24px; }
  .pathway::before { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .footer__grid { grid-template-columns: 1fr; }
  .cert-lookup-form { flex-direction: column; }
}

/* ── NJSP OVERRIDES ── */
body.njsp-page {
  background: var(--njsp-bg);
}
body.njsp-page .nav { background: rgba(0,17,43,0.6); }
body.njsp-page .section--mid { background: var(--njsp-bg-2); }
body.njsp-page .card__accent-bar { background: var(--njsp-gold); }
body.njsp-page .card__icon { background: rgba(255,184,0,0.1); border-color: rgba(255,184,0,0.2); }
body.njsp-page .hero__tag { background: rgba(255,184,0,0.1); border-color: rgba(255,184,0,0.3); color: var(--njsp-gold); }
body.njsp-page .hero__tag-dot { background: var(--njsp-gold); }
body.njsp-page .module-nav__link.active { color: var(--njsp-gold); border-color: var(--njsp-gold); }
body.njsp-page p { color: rgba(238,242,255,0.6); }

/* UTIL */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.hidden { display: none !important; }
