/* ===================================================================
   ADA Access for All — site stylesheet
   Design system: refined / institutional. Navy-dominant, teal accent.
   Display: Spectral (serif). Body: Public Sans (the USWDS federal
   typeface — legible, government-provenance, contextually apt).
   Target: WCAG 2.1 / 2.2 Level AA.
   =================================================================== */

:root {
  --navy:        #0F2545;
  --navy-2:      #1A3A66;
  --navy-deep:   #0A1A33;
  --teal:        #0D7377;
  --teal-deep:   #0A5C5F;
  --ink:         #1B2433;
  --muted:       #51606F;
  --bg:          #FFFFFF;
  --bg-alt:      #F3F5F8;
  --bg-tint:     #E8F1F1;
  --border:      #D9DEE5;
  --border-strong: #C2CAD3;

  --wrap-max: 1120px;
  --space:    1.5rem;

  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; color: var(--navy); }
p { margin: 0 0 1rem; }
a { color: var(--navy); }
img, svg { max-width: 100%; }
ul, ol { margin: 0; padding: 0; }
em { font-style: italic; }

/* ---------- focus: always visible, high-contrast ---------- */
:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  border-radius: 2px;
}
/* on dark grounds, switch to a light outline */
.site-footer :focus-visible,
.cta-band :focus-visible,
.btn-primary:focus-visible,
.btn-on-dark:focus-visible {
  outline-color: #FFFFFF;
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 100;
  background: var(--navy);
  color: #FFFFFF;
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 var(--space);
}
.section { padding: 4.25rem 0; }
.section-alt { background: var(--bg-alt); }

/* ---------- header ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--navy);
}
.logo-mark { width: 42px; height: 42px; flex-shrink: 0; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.005em;
}

/* primary nav */
.primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.primary-nav a {
  display: inline-block;
  padding: 0.55rem 0.8rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.975rem;
  border-radius: 5px;
}
.primary-nav a:hover { background: var(--bg-alt); text-decoration: underline; }
.primary-nav a.nav-cta {
  background: var(--navy);
  color: #FFFFFF;
  margin-left: 0.35rem;
}
.primary-nav a.nav-cta:hover { background: var(--navy-2); text-decoration: underline; }

/* nav toggle (mobile) */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  position: relative;
}
.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; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--navy); color: #FFFFFF; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-2); border-color: var(--navy-2); text-decoration: underline; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--navy); background: var(--bg-alt); text-decoration: underline; }
.btn-on-dark { background: #FFFFFF; color: var(--navy); border-color: #FFFFFF; }
.btn-on-dark:hover { background: var(--bg-alt); text-decoration: underline; }

/* text link with arrow */
.text-link {
  font-weight: 700;
  color: var(--navy);
  text-underline-offset: 3px;
}
.text-link:hover { color: var(--teal-deep); }

/* ---------- hero ---------- */
.hero {
  background:
    linear-gradient(180deg, #FFFFFF 0%, var(--bg-alt) 100%);
  border-bottom: 1px solid var(--border);
}
.hero-inner { padding: 4.5rem 0 4rem; max-width: 50rem; }
.eyebrow,
.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0 0 0.85rem;
}
.hero h1 {
  font-size: clamp(2.05rem, 4.6vw, 3.05rem);
  font-weight: 600;
  margin: 0 0 1.2rem;
}
.hero-lede {
  font-size: 1.225rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 1.9rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin: 0; }

/* ---------- section 504 alert ---------- */
.alert-band { background: var(--bg); padding: 2.5rem 0; }
.alert-card {
  background: var(--bg-tint);
  border: 1px solid #BDDADA;
  border-left: 6px solid var(--teal);
  border-radius: 6px;
  padding: 1.6rem 1.8rem;
}
.alert-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
  color: var(--navy);
}
.alert-card p { margin: 0 0 0.7rem; color: var(--ink); }
.alert-card p:last-child { margin-bottom: 0; }

/* ---------- section headings ---------- */
.section-heading {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  margin: 0 0 0.9rem;
  max-width: 36ch;
}
.section-intro {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 2.2rem;
}
.section-action { margin: 2rem 0 0; }

/* ---------- service list ---------- */
.service-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.service-item {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.35rem 1.4rem;
  background: var(--bg);
}
.service-item h3 { font-size: 1.13rem; font-weight: 600; margin: 0 0 0.4rem; }
.service-item p { margin: 0; color: var(--muted); font-size: 0.99rem; }
.service-lead {
  grid-column: 1 / -1;
  border: 2px solid var(--teal);
  background: var(--bg-tint);
}
.service-lead h3 { color: var(--navy); }
.service-lead p { color: var(--ink); }

/* ---------- credentials ---------- */
.credential-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}
.credential-grid li {
  border-top: 3px solid var(--teal);
  background: var(--bg);
  padding: 1.1rem 1.2rem 1.2rem;
  border-radius: 0 0 5px 5px;
  box-shadow: 0 1px 3px rgba(15, 37, 69, 0.06);
}
.credential-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.06rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.credential-detail { display: block; color: var(--muted); font-size: 0.95rem; }

/* ---------- who we serve ---------- */
.serve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.serve-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem 1.5rem 1.6rem;
  background: var(--bg);
}
.serve-card h3 { font-size: 1.18rem; font-weight: 600; margin: 0 0 0.55rem; }
.serve-card p { margin: 0; color: var(--muted); font-size: 0.99rem; }

/* ---------- differentiators ---------- */
.diff-list {
  list-style: none;
  counter-reset: diff;
  display: grid;
  gap: 1.4rem;
  max-width: 52rem;
}
.diff-list li {
  counter-increment: diff;
  position: relative;
  padding-left: 3.4rem;
}
.diff-list li::before {
  content: counter(diff);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 6px;
}
.diff-list h3 { font-size: 1.18rem; font-weight: 600; margin: 0 0 0.4rem; }
.diff-list p { margin: 0; color: var(--muted); }

/* ---------- closing CTA band ---------- */
.cta-band { background: var(--navy-deep); color: #FFFFFF; padding: 4rem 0; }
.cta-inner { max-width: 44rem; }
.cta-band h2 { color: #FFFFFF; font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 600; margin: 0 0 0.8rem; }
.cta-band p { color: #DCE3EC; font-size: 1.1rem; margin: 0 0 1.5rem; }
.cta-band p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: #C7D0DC; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 1fr;
  gap: 2rem;
  padding: 3rem 0 2.25rem;
}
.footer-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: #FFFFFF;
  margin: 0 0 0.35rem;
}
.footer-legal, .footer-meta { margin: 0 0 0.3rem; font-size: 0.92rem; color: #A9B4C2; }
.footer-nav ul { list-style: none; display: grid; gap: 0.45rem; }
.footer-nav a { color: #C7D0DC; text-decoration: none; font-size: 0.95rem; }
.footer-nav a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-contact a { color: #FFFFFF; font-weight: 600; text-underline-offset: 3px; }
.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 1.25rem 0 1.75rem;
}
.footer-base p { margin: 0; font-size: 0.88rem; color: #97A2B2; }

/* ===================================================================
   responsive
   =================================================================== */
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 18px rgba(15, 37, 69, 0.10);
  }
  body.nav-open .primary-nav { display: block; }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--space) 1rem;
  }
  .primary-nav a {
    display: block;
    padding: 0.8rem 0.6rem;
    border-radius: 6px;
    font-size: 1.05rem;
  }
  .primary-nav a.nav-cta { margin: 0.5rem 0 0; text-align: center; }

  .service-list { grid-template-columns: 1fr; }
  .serve-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .section { padding: 3rem 0; }
  .hero-inner { padding: 3rem 0 2.75rem; }
  .hero-actions .btn { width: 100%; text-align: center; }
}

@media (max-width: 420px) {
  .logo-text { font-size: 1.05rem; }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * {
    animation: rise 0.5s ease both;
  }
  .hero-inner > *:nth-child(2) { animation-delay: 0.06s; }
  .hero-inner > *:nth-child(3) { animation-delay: 0.12s; }
  .hero-inner > *:nth-child(4) { animation-delay: 0.18s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ===================================================================
   inner-page components (services, section 504, about, federal cap)
   =================================================================== */

/* inner-page header */
.page-header {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-alt) 100%);
  border-bottom: 1px solid var(--border);
  padding: 3.25rem 0 2.75rem;
}
.page-header .eyebrow { margin-bottom: 0.7rem; }
.page-header h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 600;
  margin: 0 0 0.9rem;
  max-width: 26ch;
}
.page-header .page-lede {
  font-size: 1.15rem;
  color: var(--ink);
  max-width: 60ch;
  margin: 0;
}

/* generic readable prose column */
.prose { max-width: 62ch; }
.prose h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  font-weight: 600;
  margin: 2.4rem 0 0.8rem;
}
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.13rem; font-weight: 600; margin: 1.6rem 0 0.35rem; }
.prose p { color: var(--ink); }

/* spec list — deliverables, terms, exclusions */
.spec-list { list-style: none; display: grid; gap: 1rem; }
.spec-list > li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--ink);
}
.spec-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--teal);
  border-radius: 2px;
}
.spec-list strong { color: var(--navy); }
.prose .spec-list { margin-bottom: 1.45rem; }

/* services detail list */
.service-detail-list { list-style: none; display: grid; gap: 1.05rem; }
.service-detail {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.3rem 1.45rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.3rem 1.5rem;
  align-items: start;
}
.service-detail.is-lead { border: 2px solid var(--teal); background: var(--bg-tint); }
.service-detail h3 { font-size: 1.12rem; font-weight: 600; margin: 0; }
.service-detail .svc-desc { grid-column: 1; margin: 0; color: var(--muted); font-size: 0.98rem; }
.service-detail.is-lead .svc-desc { color: var(--ink); }
.service-detail .svc-price {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  font-size: 1.02rem;
  white-space: nowrap;
}

/* deadline box — section 504 page */
.deadline-box {
  background: var(--navy);
  color: #FFFFFF;
  border-radius: 8px;
  border-left: 6px solid var(--teal);
  padding: 1.7rem 1.9rem;
}
.deadline-box .deadline-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8AD6D6;
  margin: 0 0 0.5rem;
}
.deadline-box h2 { color: #FFFFFF; font-size: 1.4rem; font-weight: 600; margin: 0 0 0.7rem; }
.deadline-box p { color: #DDE4ED; margin: 0 0 0.7rem; }
.deadline-box p:last-child { margin-bottom: 0; }
.deadline-box strong { color: #FFFFFF; }

/* pricing table */
.table-scroll { overflow-x: auto; margin: 0 0 0.5rem; }
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  min-width: 38rem;
}
.pricing-table caption {
  text-align: left;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}
.pricing-table th,
.pricing-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.pricing-table thead th {
  background: var(--navy);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pricing-table tbody th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}
.pricing-table .fee { font-weight: 700; color: var(--navy); white-space: nowrap; }
.pricing-table tbody tr:last-child th,
.pricing-table tbody tr:last-child td { border-bottom: none; }

/* federal identifier block */
.id-block {
  background: var(--navy);
  color: #FFFFFF;
  border-radius: 8px;
  padding: 1.8rem 1.9rem;
  display: grid;
  gap: 1.3rem;
}
.id-uei-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8AD6D6;
  margin: 0 0 0.3rem;
}
.id-uei {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: 0.05em;
  margin: 0;
  color: #FFFFFF;
}
.id-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 1.3rem;
}
.id-item .id-k {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #A6BACE;
  margin-bottom: 0.15rem;
}
.id-item .id-v { display: block; color: #FFFFFF; font-weight: 600; }

/* tag list (classifications) */
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag-list li {
  background: var(--bg-tint);
  border: 1px solid #BDDADA;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.93rem;
  padding: 0.45rem 0.85rem;
  border-radius: 5px;
}

/* download CTA row */
.download-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem 1.6rem;
}
.download-row .dl-text { flex: 1 1 16rem; }
.download-row p { margin: 0; color: var(--muted); }
.download-row .dl-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  font-size: 1.1rem;
  margin: 0 0 0.2rem;
}

/* responsive — inner-page components */
@media (max-width: 760px) {
  .service-detail { grid-template-columns: 1fr; }
  .service-detail .svc-price { grid-column: 1; grid-row: auto; align-self: start; margin-top: 0.2rem; }
  .page-header { padding: 2.5rem 0 2.25rem; }
  .id-block, .deadline-box { padding: 1.4rem 1.4rem; }
}

/* ===================================================================
   utilities + contact page
   =================================================================== */

/* screen-reader-only text (kept out of the visual layout, read by AT) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* contact page detail cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.2rem;
}
.contact-grid .serve-card p:last-child { margin-bottom: 0; }
.contact-grid a { font-weight: 600; text-underline-offset: 3px; }
