/* ---------- Fonts (self-hosted, SIL Open Font License — see assets/fonts) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

/* ===========================================================
   AVDT — Abbott's Vocational Driver Training
   Shared styles
   =========================================================== */

:root {
  --navy-950: #0d1b2c;
  --navy-900: #12233b;
  --navy-800: #1a3050;
  --navy-700: #1f4d78;
  --gold-500: #c9a15b;
  --gold-600: #a3793a;
  --ink: #16202b;
  --ink-soft: #3d4a58;
  --steel-200: #e4e7e6;
  --steel-300: #cfd4d2;
  --steel-500: #6b7480;
  --paper: #f5f6f3;
  --paper-raised: #ffffff;

  /* Brighter royal-blue palette, matched to the AVDT banner artwork */
  --royal-800: #16305c;
  --royal-700: #1c3f7a;
  --royal-600: #24519c;
  --royal-500: #3169b8;
  --royal-400: #4d84cf;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-w: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.4em;
  letter-spacing: 0.2px;
}

p { margin: 0 0 1em; max-width: 62ch; }
a { color: inherit; }
img, video { max-width: 100%; display: block; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold-500);
  color: var(--navy-950);
  padding: 12px 18px;
  z-index: 200;
  font-weight: 700;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: 3px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--gold-500);
  color: var(--navy-950);
}
.btn-primary:hover { background: var(--gold-600); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--navy-900);
  color: var(--navy-900);
}
.btn-outline-dark:hover { background: var(--navy-900); color: #fff; }

/* ---------- Nav ---------- */
.site-header {
  background: var(--royal-800);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--gold-500);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  line-height: 1;
}
.brand-logo {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
  display: block;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 1px;
}
.brand-sub {
  font-size: 0.68rem;
  color: var(--steel-300);
  margin-top: 3px;
  letter-spacing: 0.4px;
}
.footer-brand .brand-logo { width: 56px; height: 56px; min-width: 56px; }
.brand picture { display: block; line-height: 0; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
}
.nav-links a:hover { border-color: var(--gold-500); }
.nav-cta {
  background: var(--gold-500);
  color: var(--navy-950) !important;
  padding: 9px 16px;
  border-radius: 3px;
  font-weight: 700 !important;
  border-bottom: none !important;
}
.nav-links a[aria-current="page"] { border-color: var(--gold-500); }
.nav { position: relative; }
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.55);
  border-radius: 3px;
  padding: 8px 12px;
  font: 600 0.95rem var(--font-body);
  cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s ease;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 0.93rem; }
}
@media (max-width: 1080px) {
  .nav { padding: 12px 16px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--royal-800);
    border-bottom: 3px solid var(--gold-500);
    padding: 6px 16px 16px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
  }
  .nav-links.is-open { display: flex; margin-top: 3px; }
  .nav-links li { border-bottom: 1px solid rgba(255,255,255,0.12); }
  .nav-links li:last-child { border-bottom: 0; padding-top: 12px; }
  .nav-links a { display: block; padding: 13px 2px; font-size: 1.05rem; border-bottom: 0; }
  .nav-links a[aria-current="page"] { color: var(--gold-500); }
  .nav-links .nav-cta { text-align: center; padding: 13px 16px; }
}
@media (max-width: 420px) {
  .brand-sub { display: none; }
}

/* ---------- Hazard stripe divider ---------- */
.hazard-stripe {
  height: 16px;
  background: repeating-linear-gradient(
    -45deg,
    var(--gold-500),
    var(--gold-500) 22px,
    var(--navy-950) 22px,
    var(--navy-950) 44px
  );
}

/* ---------- Masthead banner ---------- */
.masthead {
  line-height: 0;
  background: var(--royal-800);
}
.masthead-art {
  position: relative;
  max-width: 1920px;
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
}
.masthead-art picture { display: block; }
.masthead-base {
  width: 100%;
  height: auto;
}
/* Shield logo cut-out, sitting exactly over its place in the banner */
.masthead-logo {
  position: absolute;
  left: 35.84%;
  top: 5.03%;
  width: 24.48%;
  height: auto;
  z-index: 3;
  pointer-events: none;
}
/* Animated light rays behind the shield */
.masthead-rays,
.masthead-glow {
  position: absolute;
  left: 48.04%;
  top: 47.7%;
  width: 80%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}
.masthead-rays {
  z-index: 2;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(200, 232, 255, 0) 0deg 4deg,
    rgba(214, 238, 255, 0.55) 6deg,
    rgba(200, 232, 255, 0) 8deg 12deg
  );
  -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgba(0,0,0,0.75) 14%, rgba(0,0,0,0.25) 30%, transparent 42%);
          mask-image: radial-gradient(closest-side, #000 0%, rgba(0,0,0,0.75) 14%, rgba(0,0,0,0.25) 30%, transparent 42%);
  animation: avdt-rays-spin 60s linear infinite;
}
.masthead-rays--slow {
  background: repeating-conic-gradient(
    from 3deg,
    rgba(255, 255, 255, 0) 0deg 9deg,
    rgba(255, 255, 255, 0.35) 11.5deg,
    rgba(255, 255, 255, 0) 14deg 18deg
  );
  animation: avdt-rays-spin-back 90s linear infinite, avdt-rays-pulse 6s ease-in-out infinite;
}
.masthead-glow {
  z-index: 1;
  width: 40%;
  background: radial-gradient(closest-side, rgba(225, 242, 255, 0.9), rgba(120, 190, 255, 0.35) 45%, transparent 75%);
  animation: avdt-glow-pulse 6s ease-in-out infinite;
}
@keyframes avdt-rays-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes avdt-rays-spin-back {
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}
@keyframes avdt-rays-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
@keyframes avdt-glow-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.8; }
}
/* Faint slow light rays in the header of the service pages */
.hero--rays::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1600px;
  height: 1600px;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(190, 225, 255, 0) 0deg 5deg,
    rgba(190, 225, 255, 0.16) 7deg,
    rgba(190, 225, 255, 0) 9deg 14deg
  );
  -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgba(0,0,0,0.5) 22%, transparent 48%);
          mask-image: radial-gradient(closest-side, #000 0%, rgba(0,0,0,0.5) 22%, transparent 48%);
  transform: translate(-50%, -50%);
  animation: avdt-rays-spin 120s linear infinite;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .masthead-rays, .masthead-glow, .hero--rays::after { animation: none; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 140% 100% at 50% 0%, var(--royal-400) 0%, var(--royal-600) 32%, var(--royal-800) 62%, var(--navy-950) 100%);
  color: #fff;
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    100deg,
    rgba(255,255,255,0.09) 0px,
    rgba(255,255,255,0.09) 2px,
    transparent 2px,
    transparent 90px
  );
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  color: #fff;
}
.hero-lede {
  font-size: 1.15rem;
  color: var(--steel-300);
  max-width: 46ch;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-video-frame {
  position: relative;
  border-left: 6px solid var(--gold-500);
  background: #000;
  overflow: hidden;
}
.hero-video-frame video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.video-toggle {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(13, 27, 44, 0.82);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  border-radius: 3px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.video-toggle:hover { background: rgba(13, 27, 44, 0.95); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Credentials strip ---------- */
.credentials {
  background: var(--steel-200);
  border-bottom: 1px solid var(--steel-300);
}
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.credential-item {
  padding: 20px 24px;
  border-right: 1px solid var(--steel-300);
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.94rem;
}
.credential-item:last-child { border-right: none; }
.credential-dot {
  width: 9px;
  height: 9px;
  min-width: 9px;
  border-radius: 50%;
  background: var(--gold-600);
}
.credential-item strong { color: var(--navy-900); }

@media (max-width: 900px) {
  .credentials-grid { grid-template-columns: 1fr 1fr; }
  .credential-item { border-bottom: 1px solid var(--steel-300); }
}
@media (max-width: 560px) {
  .credentials-grid { grid-template-columns: 1fr; }
}

/* ---------- Section basics ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.section-label {
  color: var(--navy-700);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.section-head { max-width: 62ch; margin-bottom: 48px; }
.fee-note { font-size: 0.95rem; color: var(--steel-500); margin-top: 10px; }
.fee-note a { color: var(--royal-600); font-weight: 600; }
.section-head h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); color: var(--navy-950); }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- Courses ---------- */
.course-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
  padding: 40px 0;
  border-top: 1px solid var(--steel-300);
}
.course-row:last-child { border-bottom: 1px solid var(--steel-300); }
.course-code {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: var(--navy-950);
  line-height: 0.9;
  position: relative;
}
.course-code::after {
  content: "";
  display: block;
  width: 44px;
  height: 6px;
  background: var(--gold-500);
  margin-top: 14px;
}
.course-body h3 { font-size: 1.5rem; color: var(--navy-950); margin-bottom: 8px; }
.course-body p { color: var(--ink-soft); }
.fork-list { margin: 0 0 18px; padding: 0; list-style: none; color: var(--ink-soft); display: grid; gap: 8px; }
.fork-list li { position: relative; padding-left: 22px; }
.fork-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; background: var(--gold-500); }
.course-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.tag {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-700);
  background: var(--steel-200);
  padding: 6px 12px;
  border-radius: 3px;
}

@media (max-width: 700px) {
  .course-row { grid-template-columns: 1fr; gap: 14px; }
  .course-code { font-size: 3rem; }
}

/* ---------- Why AVDT ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.why-item {
  padding: 0 32px;
  border-left: 1px solid var(--steel-300);
}
.why-item:first-child { border-left: none; padding-left: 0; }
.why-item h3 { font-size: 1.2rem; color: var(--navy-950); }
.why-item p { color: var(--ink-soft); font-size: 0.98rem; }

@media (max-width: 800px) {
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
  .why-item { border-left: none; padding-left: 0; border-top: 1px solid var(--steel-300); padding-top: 28px; }
  .why-item:first-child { border-top: none; padding-top: 0; }
}

/* ---------- About / instructor ---------- */
.about {
  background: var(--paper-raised);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.about-body p { color: var(--ink-soft); font-size: 1.05rem; }
.about-panel {
  background: var(--royal-800);
  color: #fff;
  padding: 36px;
  border-top: 6px solid var(--gold-500);
}
.about-panel dl { margin: 0; }
.about-panel .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  font-size: 0.95rem;
}
.about-panel .row:last-child { border-bottom: none; }
.about-panel dt { color: var(--steel-300); }
.about-panel dd { margin: 0; font-weight: 600; text-align: right; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 999;
  background: var(--navy-950);
  color: #fff;
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.25);
}
.cookie-banner p { margin: 0; max-width: 60ch; font-size: 0.92rem; color: var(--steel-300); }
.cookie-banner p a { color: #fff; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner .btn-outline-dark { border-color: rgba(255,255,255,0.4); color: #fff; }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 76ch;
  border-top: 1px solid var(--steel-300);
}
.faq-item {
  border-bottom: 1px solid var(--steel-300);
  padding: 18px 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--navy-950);
  list-style: none;
  position: relative;
  padding-right: 32px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 1.4rem;
  color: var(--gold-600);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p {
  color: var(--ink-soft);
  margin: 14px 0 0;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--royal-700);
  color: #fff;
  padding: 64px 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 6px; }
.cta-band p { color: var(--steel-300); margin: 0; }
.cta-band-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--royal-800);
  color: var(--steel-300);
  padding: 48px 0 28px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.footer-brand .brand-mark { color: #fff; }
.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  color: var(--steel-300);
  text-decoration: none;
  margin-bottom: 8px;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact page ---------- */
.page-header {
  background:
    radial-gradient(ellipse 140% 100% at 50% 0%, var(--royal-400) 0%, var(--royal-600) 32%, var(--royal-800) 62%, var(--navy-950) 100%);
  color: #fff;
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    100deg,
    rgba(255,255,255,0.09) 0px,
    rgba(255,255,255,0.09) 2px,
    transparent 2px,
    transparent 90px
  );
  pointer-events: none;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { color: #fff; font-size: clamp(2.1rem, 4vw, 3rem); }
.page-header p { color: var(--steel-300); font-size: 1.1rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-card {
  background: var(--paper-raised);
  border: 1px solid var(--steel-300);
  border-top: 6px solid var(--gold-500);
  padding: 32px;
}
.contact-card h3 { color: var(--navy-950); font-size: 1.15rem; margin-bottom: 18px; }
.contact-line {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 0;
  border-bottom: 1px solid var(--steel-200);
}
.contact-line:last-child { border-bottom: none; }
.contact-line span { font-size: 0.82rem; color: var(--steel-500); }
.contact-line a, .contact-line strong {
  font-size: 1.08rem;
  color: var(--navy-950);
  text-decoration: none;
  font-weight: 600;
}
.contact-line a:hover { color: var(--navy-700); }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--navy-950);
}
.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--steel-300);
  border-radius: 3px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-note {
  font-size: 0.85rem;
  color: var(--steel-500);
  margin-top: -6px;
}
.form-status {
  font-size: 0.92rem;
  margin-top: 14px;
  color: var(--navy-700);
  display: none;
}
.form-status.visible { display: block; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .video-toggle { transition: none; }
}

/* ---------- Guides & resources ---------- */
.article { max-width: 760px; }
.article .updated { color: var(--steel-500); font-size: 0.88rem; margin-bottom: 1.8em; }
.article .updated a { color: var(--navy-700); font-weight: 600; }
.article .lead { font-size: 1.18rem; color: var(--ink); max-width: none; }
.article h2 { font-size: 1.6rem; color: var(--navy-950); margin: 1.8em 0 0.4em; }
.article h3 { font-size: 1.2rem; color: var(--navy-950); }
.article p, .article li { color: var(--ink-soft); font-size: 1.04rem; max-width: none; }
.article ul { padding-left: 1.2em; margin: 0 0 1em; }
.article li { margin-bottom: 0.55em; }
.article a { color: var(--royal-600); font-weight: 600; }
.article ol.steps { list-style: none; padding: 0; margin: 1.6em 0; counter-reset: step; }
.article ol.steps > li { counter-increment: step; position: relative; padding: 0 0 6px 62px; margin: 0 0 18px; border-bottom: 1px solid var(--steel-200); }
.article ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 2px; width: 42px; height: 42px; background: var(--royal-800); color: var(--gold-500); font-family: var(--font-display); font-size: 1.4rem; display: flex; align-items: center; justify-content: center; }
.article ol.steps h2 { margin-top: 0; font-size: 1.4rem; }
.article .callout { background: var(--paper-raised); border: 1px solid var(--steel-300); border-top: 6px solid var(--gold-500); padding: 20px 22px; margin: 2em 0; color: var(--ink-soft); }
.article .sources { font-size: 0.95rem; }
.test-parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 1em 0 1.4em; }
.test-parts > div { background: var(--paper-raised); border: 1px solid var(--steel-300); border-top: 4px solid var(--gold-500); padding: 16px 18px; }
.test-parts span { font-size: 0.8rem; font-weight: 700; color: var(--navy-700); text-transform: uppercase; letter-spacing: 0.04em; }
.test-parts h3 { margin: 4px 0 6px; }
.test-parts p { font-size: 0.95rem; margin: 0; }
.link-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.link-group h3 { color: var(--navy-950); font-size: 1.25rem; border-bottom: 3px solid var(--gold-500); padding-bottom: 8px; }
.link-group ul { list-style: none; margin: 0; padding: 0; }
.link-group li { padding: 10px 0; border-bottom: 1px solid var(--steel-200); }
.link-group a { color: var(--royal-600); font-weight: 600; text-decoration: none; display: block; }
.link-group a:hover { text-decoration: underline; }
.link-group span { display: block; font-size: 0.88rem; color: var(--steel-500); margin-top: 2px; }
@media (max-width: 860px) {
  .test-parts, .link-groups { grid-template-columns: 1fr; }
}

/* ---------- Homepage services grid ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { display: flex; flex-direction: column; background: var(--paper-raised); border: 1px solid var(--steel-300); border-top: 5px solid var(--gold-500); padding: 22px 22px 20px; text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.service-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(13,27,44,.10); border-color: var(--royal-500); }
.service-code { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--royal-700); line-height: 1; margin-bottom: 10px; }
.service-card h3 { color: var(--navy-950); font-size: 1.3rem; margin-bottom: 6px; }
.service-card p { color: var(--ink-soft); font-size: 0.97rem; margin: 0 0 14px; flex: 1; }
.service-link { color: var(--royal-600); font-weight: 600; font-size: 0.95rem; }
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }
.quals .link-group li { color: var(--navy-950); font-weight: 600; }
