/* Digital Accessibility Association — site styles.
   Layout: navy page headers, then content sections on a 1160px grid. */
:root {
  --ink: #0F2342;
  --text: #1F2A3A;
  --muted: #485366;
  --bg: #FFFFFF;
  --surface: #F2F4F8;
  --line: #D3DAE5;
  --accent: #1D4F91;
  --accent-text: #FFFFFF;
  --highlight: #B8862B;
  --focus: #0F2342;

  --hero-bg: #0F2342;
  --hero-text: #FFFFFF;
  --hero-muted: #C5D0E1;
  --hero-eyebrow: #E2BE6E;
  --hero-card-bg: #FFFFFF;
  --hero-card-text: #1F2A3A;
  --hero-btn-bg: #E2BE6E;
  --hero-btn-text: #0F2342;
  --hero-btn2: #FFFFFF;
  --hero-focus: #FFFFFF;

  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display-weight: 600;
  --display-track: -0.01em;
  --radius: 4px;

  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-track);
  color: var(--ink);
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.25rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; line-height: 1.3; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 18px; } }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { width: 42px; height: 42px; flex: none; }
.wordmark { display: flex; flex-direction: column; line-height: 1.1; }
.wordmark .w1 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.15rem; letter-spacing: var(--display-track); }
.wordmark .w2 { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.98rem; }
.nav a:hover { text-decoration: underline; }
.menu-btn { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius);
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { filter: brightness(0.9); }
.nav .btn { min-height: 44px; padding: 10px 18px; font-size: 0.95rem; color: var(--accent-text); }

@media (max-width: 900px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
    font: inherit; font-weight: 600; color: var(--ink); background: var(--bg);
    border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 24px; flex-direction: column; align-items: stretch; gap: 16px; z-index: 20; }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-header { position: relative; }
}

/* Hero */
.hero { background: var(--hero-bg); color: var(--hero-text); --focus: var(--hero-focus); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.hero h1 { color: var(--hero-text); }
.eyebrow { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hero-eyebrow); margin-bottom: 20px; }
.lead { color: var(--hero-muted); font-size: 1.2rem; max-width: 36em; margin-top: 22px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero .btn-primary { background: var(--hero-btn-bg); color: var(--hero-btn-text); }
.btn-secondary { background: transparent; color: var(--hero-btn2); border-color: currentColor; }
.btn-secondary:hover { text-decoration: underline; }

.mission-card {
  background: var(--hero-card-bg); color: var(--hero-card-text);
  border-radius: calc(var(--radius) * 1.5); padding: 36px;
  box-shadow: 0 20px 50px -24px rgba(0,0,0,0.45);
}
.mission-card { border-top: 5px solid var(--highlight); }
.mission-card h2 { font-family: var(--font-body); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.mission-text { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: clamp(1.5rem, 2.4vw, 1.95rem); line-height: 1.25; margin-top: 14px; text-wrap: balance; }
.mission-sub { margin-top: 16px; opacity: 0.85; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
}

/* Facts strip */
.facts { border-bottom: 1px solid var(--line); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.facts li { padding: 28px 24px 28px 0; display: flex; flex-direction: column; gap: 4px; }
.facts li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.facts strong { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.7rem; color: var(--ink); line-height: 1.1; letter-spacing: var(--display-track); }
.facts span { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 720px) {
  .facts ul { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 18px 0; border-left: 0; }
  .facts li + li { border-top: 1px solid var(--line); }
}

/* Sections */
section.block { padding: 88px 0; }
section.alt { background: var(--surface); }
.section-head { max-width: 46rem; margin-bottom: 44px; }
.kicker { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-head p.intro { color: var(--muted); font-size: 1.12rem; margin-top: 16px; }
@media (max-width: 720px) { section.block { padding: 64px 0; } }

/* Past performance */
.agencies { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.agency {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; min-height: 100%;
}
.agency .logo-slot { height: 64px; display: flex; align-items: center; }
.agency .logo-slot img { max-height: 64px; max-width: 140px; width: auto; height: auto; object-fit: contain; }
.agency .logo-slot .initials {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em;
}
section.alt .agency .logo-slot .initials { background: var(--surface); }
.agency .name { font-weight: 600; color: var(--ink); line-height: 1.35; }
.agency .years { color: var(--muted); font-size: 0.92rem; font-variant-numeric: tabular-nums; margin-top: auto; }
@media (max-width: 960px) { .agencies { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .agencies { grid-template-columns: 1fr; } }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service { border-top: 3px solid var(--accent); padding-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.service { border-top-color: var(--highlight); }
.service .tag { font-size: 0.88rem; color: var(--muted); font-weight: 600; }
.service ul { margin: 4px 0 0; padding-left: 1.15em; color: var(--text); }
.service li { margin: 4px 0; }
.service li::marker { color: var(--accent); }
.also { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.also div { padding: 22px 22px; }
.also div + div { border-left: 1px solid var(--line); }
.also h3 { font-size: 1.05rem; font-family: var(--font-body); letter-spacing: 0; font-weight: 700; }
.also p { color: var(--muted); font-size: 0.96rem; margin-top: 6px; line-height: 1.5; }
@media (max-width: 960px) {
  .services { grid-template-columns: 1fr; }
  .also { grid-template-columns: 1fr 1fr; }
  .also div:nth-child(3) { border-left: 0; }
  .also div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .also { grid-template-columns: 1fr; }
  .also div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.about .story p + p { margin-top: 18px; }
.about .story .story-first { margin-top: 22px; }
.about .story p { max-width: 38rem; }
.why { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.why-title { margin-bottom: 18px; }
.why li { padding: 18px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.6rem 1fr; gap: 12px; }
.why svg { width: 22px; height: 22px; margin-top: 3px; color: var(--accent); }
.why strong { color: var(--ink); display: block; }
.why span { color: var(--muted); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 40px; } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.intro-inline { margin-top: 18px; color: var(--muted); font-size: 1.12rem; }
.contact .points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact .points li { padding-left: 18px; border-left: 3px solid var(--accent); color: var(--text); }
form.request { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; gap: 20px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
label, legend { font-weight: 600; color: var(--ink); font-size: 0.98rem; }
.hint { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: var(--bg);
  border: 1px solid #7A8494; border-radius: calc(var(--radius) * 0.75); padding: 12px 14px; min-height: 48px; width: 100%;
}
textarea { min-height: 130px; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
fieldset { border: 0; margin: 0; padding: 0; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-top: 10px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 400; color: var(--text); }
.check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.form-note { font-size: 0.9rem; color: var(--muted); }
.form-status { padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border-left: 4px solid var(--accent); color: var(--ink); }
.form-status[hidden] { display: none; }
.hidden-field { position: absolute; left: -9999px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 560px) { .row, .checks { grid-template-columns: 1fr; } form.request { padding: 22px; } }

/* Footer */
.site-footer { background: var(--ink); color: #D6DCE6; padding: 56px 0 32px; --focus: #FFFFFF; }
.site-footer a { color: #FFFFFF; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-name { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.3rem; color: #FFFFFF; letter-spacing: var(--display-track); }
.site-footer h2 { font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: #FFFFFF; font-weight: 700; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-tag { margin-top: 10px; max-width: 30rem; }
.foot-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.92rem; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Multi-page additions ---------- */
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--highlight); text-underline-offset: 8px; }

/* Home hero */
.hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.1rem); line-height: 1.05; }
.slogan { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.35; color: var(--hero-eyebrow); margin-top: 18px; max-width: 30em; }
.hero .lead { margin-top: 24px; max-width: 34em; }

/* Inner page header */
.page-hero { background: var(--hero-bg); color: var(--hero-text); --focus: var(--hero-focus); }
.page-hero .wrap { padding-top: 64px; padding-bottom: 64px; }
.page-hero h1 { color: var(--hero-text); font-size: clamp(2.2rem, 4.2vw, 3.2rem); }
.page-hero .lead { margin-top: 16px; }
.page-hero .rule { width: 56px; height: 4px; background: var(--highlight); margin-bottom: 22px; border: 0; }

.more { margin-top: 36px; }
.more a { font-weight: 600; }

/* Services overview cards (home) */
.service .learn { margin-top: auto; padding-top: 6px; font-weight: 600; }

/* Services detail page */
.service-detail { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; padding: 56px 0; border-top: 1px solid var(--line); }
.service-detail:first-child { border-top: 0; padding-top: 0; }
.service-detail h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.service-detail .num { display: block; font-family: var(--font-body); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 10px; }
.service-detail .body p { max-width: 40rem; }
.service-detail .body p + p { margin-top: 16px; }
.service-detail .body ul { margin: 20px 0 0; padding-left: 1.15em; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; }
.service-detail .body li::marker { color: var(--accent); }
@media (max-width: 860px) { .service-detail { grid-template-columns: 1fr; gap: 18px; } .service-detail .body ul { grid-template-columns: 1fr; } }

.capabilities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.capabilities li { padding: 22px 24px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); display: grid; grid-template-columns: 1.6rem 1fr; gap: 10px; color: var(--ink); font-weight: 500; }
.capabilities li:nth-child(-n+3) { border-top: 0; }
.capabilities li:nth-child(3n+1) { border-left: 0; }
.capabilities svg { width: 20px; height: 20px; margin-top: 4px; color: var(--accent); }
@media (max-width: 860px) {
  .capabilities { grid-template-columns: 1fr; }
  .capabilities li, .capabilities li:nth-child(-n+3) { border-left: 0; border-top: 1px solid var(--line); }
  .capabilities li:first-child { border-top: 0; }
}

/* About page */
.prose { max-width: 42rem; }
.prose p + p { margin-top: 18px; }
.prose h2 { margin-bottom: 18px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 64px; align-items: start; }
.about-grid .mission-card { box-shadow: none; background: var(--ink); color: #FFFFFF; }
.about-grid .mission-card h2 { color: var(--hero-eyebrow); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Past performance page */
.pp-note { margin-top: 28px; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--surface); border-top: 1px solid var(--line); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.cta-band h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.cta-band p { color: var(--muted); margin-top: 8px; }

/* Contact page */
.contact-aside h2 { font-size: 1.4rem; }
.contact-aside p { color: var(--muted); margin-top: 10px; }

/* Simple pages */
.simple { padding: 72px 0 88px; }
.simple .prose h2 { font-size: 1.5rem; margin-top: 40px; margin-bottom: 12px; }
.simple .prose ul { padding-left: 1.15em; }
.simple .prose li { margin: 6px 0; }
.wrap > .why { grid-template-columns: 1fr 1fr; column-gap: 48px; }
@media (max-width: 760px) { .wrap > .why { grid-template-columns: 1fr; } }
.cta-band { background: var(--ink); border-top: 0; --focus: #FFFFFF; }
.cta-band h2 { color: #FFFFFF; }
.cta-band p { color: var(--hero-muted); }
.cta-band .btn-primary { background: var(--hero-btn-bg); color: var(--hero-btn-text); }

/* ---------- Polish ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.97); backdrop-filter: saturate(1.4) blur(6px); }
.site-header.scrolled { box-shadow: 0 6px 20px -12px rgba(15,35,66,0.35); }

/* Hero: faint seal rings behind the mission card */
.hero, .page-hero {
  background-color: var(--hero-bg);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800'%3E%3Cg fill='none' stroke='%23E2BE6E' stroke-opacity='0.10'%3E%3Ccircle cx='400' cy='400' r='390' stroke-width='2'/%3E%3Ccircle cx='400' cy='400' r='330' stroke-width='1.5'/%3E%3Ccircle cx='400' cy='400' r='250' stroke-width='1'/%3E%3C/g%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-opacity='0.05' stroke-width='26' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M250 590 L400 220 L550 590'/%3E%3Cpath d='M180 470 H620'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(ellipse at 85% 30%, rgba(29,79,145,0.55), rgba(15,35,66,0) 60%);
  background-repeat: no-repeat, no-repeat;
  background-position: right -160px center, center;
  background-size: 760px auto, cover;
}
.page-hero { background-size: 520px auto, cover; background-position: right -120px center, center; }
.hero .wrap { padding-top: 96px; padding-bottom: 96px; }
.mission-card { position: relative; }

/* Trust bar */
.trust { background: var(--bg); border-bottom: 1px solid var(--line); }
.trust .wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; padding-top: 28px; padding-bottom: 28px; }
.trust-label { font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); max-width: 9rem; line-height: 1.4; }
.trust-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-around; gap: 20px 32px; }
.trust-logos img { height: 56px; width: auto; display: block; filter: grayscale(1); opacity: 0.85; transition: filter .2s ease, opacity .2s ease; }
.trust-logos li:hover img { filter: none; opacity: 1; }
.trust-logos img[src*="cms"] { height: 34px; }
.trust-link { font-weight: 600; white-space: nowrap; }
@media (max-width: 960px) {
  .trust .wrap { grid-template-columns: 1fr; gap: 18px; }
  .trust-label { max-width: none; }
  .trust-logos { justify-content: flex-start; }
}

/* Service icons and card hover */
.svc-icon { width: 44px; height: 44px; color: var(--accent); }
.service { transition: transform .2s ease; }
.agency { transition: box-shadow .2s ease, transform .2s ease; }
.agency:hover { box-shadow: 0 14px 30px -18px rgba(15,35,66,0.45); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .agency:hover { transform: none; } }

/* Agency cards with real logos */
.agency .logo-slot { height: 80px; }
.agency .logo-slot img { max-height: 80px; max-width: 160px; }
.agency .logo-slot img[src*="cms"] { max-height: 44px; }
.agency .years { display: inline-block; align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 0.85rem; color: var(--ink); }
.page-hero .rule { margin: 0 0 22px; }
.foot-email { margin-top: 14px; overflow-wrap: anywhere; }
.contact-email { margin-top: 22px !important; color: var(--text) !important; overflow-wrap: anywhere; }
.contact-email strong { color: var(--ink); }
/* Six agencies: two even rows of three */
.agencies { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.agency { padding: 26px 24px; }
@media (max-width: 860px) { .agencies { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .agencies { grid-template-columns: 1fr; } }
