:root {
  --navy: #183a59;
  --navy-dark: #10283d;
  --red: #b91420;
  --olive: #808a22;
  --gold: #d7c84a;
  --ink: #17212b;
  --muted: #5c6975;
  --line: #d9e0e6;
  --paper: #f6f8f9;
  --soft-red: #fff1f2;
  --soft-olive: #f5f7e8;
  --white: #ffffff;
  --shadow: 0 14px 34px rgba(16, 40, 61, 0.1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.topbar {
  background: var(--navy-dark);
  color: var(--white);
  font-size: 0.9rem;
}

.topbar-inner,
.nav-inner,
.section-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  justify-content: center;
  padding: 8px 0;
  text-align: center;
}

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

.nav-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-name {
  color: var(--navy);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.mobile-links a {
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.mobile-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--paper);
}

.mobile-links {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 12px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.hero {
  color: var(--white);
  padding: 38px 0 30px;
}

.home-hero {
  background:
    linear-gradient(135deg, rgba(24, 58, 89, 0.96), rgba(16, 40, 61, 0.92)),
    radial-gradient(circle at 15% 20%, rgba(215, 200, 74, 0.25), transparent 30%),
    var(--navy);
}

.quiet-hero {
  color: var(--ink);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.certification-hero {
  background:
    linear-gradient(90deg, rgba(246, 248, 249, 1), rgba(245, 247, 232, 0.88)),
    var(--paper);
}

.hero-grid,
.hero-layout {
  display: grid;
  gap: 28px;
  align-items: center;
}

.hero-layout {
  align-items: start;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero .eyebrow {
  color: var(--gold);
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.15rem, 8vw, 4.75rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  color: var(--navy);
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  color: var(--navy);
  font-size: 1.1rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.91);
  font-size: 1.08rem;
}

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

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.align-end {
  align-self: end;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 2px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

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

.button.secondary,
.button.light {
  background: var(--white);
  color: var(--navy);
}

.button.light {
  border-color: var(--line);
}

.button.outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.hero-panel,
.help-panel {
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 18px 45px rgba(16, 40, 61, 0.14);
}

.hero-panel img {
  width: 98px;
  height: 98px;
  margin-bottom: 12px;
}

.hero-panel p,
.help-panel p,
.section-heading p,
.task-card p,
.resource-card p,
.split p {
  color: var(--muted);
}

section {
  padding: 38px 0;
}

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

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.card-grid {
  display: grid;
  gap: 14px;
}

.card-grid.four {
  grid-template-columns: 1fr;
}

.task-card,
.resource-card {
  min-height: 178px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.task-card span,
.card-link {
  align-self: end;
  color: var(--red);
  font-weight: 800;
  text-decoration: none;
}

.task-card:hover,
.resource-card:hover,
.link-grid a:hover,
.jump-list a:hover {
  border-color: rgba(185, 20, 32, 0.42);
}

.band {
  background: var(--navy);
  color: var(--white);
}

.band h2,
.band .eyebrow,
.band p {
  color: var(--white);
}

.split {
  display: grid;
  gap: 18px;
}

.link-grid {
  display: grid;
  gap: 10px;
}

.link-grid a,
.jump-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}

.jump-list {
  display: grid;
  gap: 8px;
  align-content: start;
}

.resource-section:nth-of-type(odd) {
  background: var(--paper);
}

.notice {
  background: var(--soft-olive);
}

.notice p {
  max-width: 880px;
  margin-bottom: 0;
  color: var(--navy);
  font-weight: 700;
}

footer {
  padding: 24px 0;
  background: var(--red);
  color: var(--white);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
}

.footer-inner a {
  color: var(--white);
}

@media (min-width: 720px) {
  .nav-links {
    display: flex;
  }

  .mobile-links {
    display: none;
  }

  .hero-grid,
  .hero-layout,
  .split {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  }

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

  .card-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 520px) {
  .brand-name {
    font-size: 0.95rem;
  }

  .brand-sub {
    font-size: 0.76rem;
  }

  .hero {
    padding-top: 30px;
  }

  .button {
    width: 100%;
  }
}
