/* ==========================================================================
   MedVía marketing site — styles.css
   Static CSS. No build step, no preprocessor.
   Order: tokens -> reset -> layout -> nav -> typography -> components -> footer
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --navy: #0B3D5C;
  --navy-dark: #082C43;      /* hover state for navy surfaces */
  --blue: #2AAFCF;
  --blue-dark: #1E90AC;      /* hover state for light blue surfaces */
  --blue-deep: #12708A;      /* small accent text on white/off-white — AA at 5.3:1 */
  --blue-light: #8BD6E8;     /* small accent text on navy — AA at 7.0:1 */
  --white: #FFFFFF;
  --offwhite: #F6F8FA;       /* alternating band background */
  --ink: #14202B;            /* body text */
  --ink-muted: #4A5A67;      /* secondary text, AA on white and off-white */
  --rule: #DCE4EA;           /* hairlines and card borders */

  --maxw: 1120px;
  --radius: 8px;
  --focus: #0B3D5C;

  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

/* Visible focus on every interactive element. */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* Inline text links get a small radius on the ring; buttons keep their own 8px. */
.nav__links a:focus-visible,
.footer__list a:focus-visible,
.card__link:focus-visible {
  border-radius: 2px;
}

/* Skip link for keyboard users. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--white);
  color: var(--navy);
  padding: 12px 18px;
  z-index: 100;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.band {
  padding: 56px 0;
  border-top: 1px solid transparent;
}
.band--alt { background: var(--offwhite); }
.band--navy { background: var(--navy); color: var(--white); }
.band--navy h2, .band--navy h3 { color: var(--white); }

.hero { padding: 56px 0 48px; }

@media (min-width: 768px) {
  .band { padding: 80px 0; }
  .hero { padding: 88px 0 72px; }
}

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 16px;
}

h1 { font-size: 2.15rem; letter-spacing: -0.01em; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

@media (min-width: 768px) {
  h1 { font-size: 3.1rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.35rem; }
}

p { margin: 0 0 18px; }

.lede {
  font-size: 1.12rem;
  line-height: 1.6;
  max-width: 62ch;
  color: var(--ink);
}
@media (min-width: 768px) {
  .lede { font-size: 1.28rem; }
}

.measure { max-width: 68ch; }

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue-deep);
  margin: 0 0 10px;
}

.small {
  font-size: 0.95rem;
  color: var(--ink-muted);
}

a { color: var(--navy); }

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--navy);
  color: var(--white);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 16px 0;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}

.nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  order: 3;
  font-size: 0.95rem;   /* four links fit one row on a 375px phone */
}

.nav__links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav__links a:hover { border-bottom-color: var(--blue); }
.nav__links a[aria-current="page"] {
  font-weight: 700;
  border-bottom-color: var(--blue);
}
.site-header a:focus-visible { outline-color: var(--blue); }

@media (min-width: 860px) {
  .nav__links { width: auto; order: 0; gap: 26px; font-size: 1rem; }
}

/* Logo: real file when present, marked placeholder when not.
   The lockup is wide (about 5.2:1), so height drives the size. */
.logo-img { height: 38px; width: auto; display: block; }
@media (min-width: 768px) { .logo-img { height: 44px; } }
.logo-img--sm { height: 34px; }
@media (min-width: 768px) { .logo-img--sm { height: 34px; } }

.logo-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.logo-placeholder--sm { width: 38px; height: 38px; font-size: 0.62rem; border-radius: 8px; }

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn--primary {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.btn--primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); }

.btn--secondary {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--navy-dark);
}
.btn--secondary:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--white); }

.btn--nav { padding: 10px 18px; font-size: 0.95rem; }
.site-header .btn--nav {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--navy-dark);
}
.site-header .btn--nav:hover { background: var(--white); border-color: var(--white); color: var(--navy); }

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}
@media (min-width: 620px) {
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .btn-row--equal .btn { flex: 1 1 0; }
}

/* --------------------------------------------------------------------------
   7. Lists, cards, grids
   -------------------------------------------------------------------------- */
.statements {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
.statements li {
  /* Treated as headline copy (see README Decisions), hence the serif. */
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--navy);
  border-left: 4px solid var(--blue);
  padding-left: 18px;
}
@media (min-width: 860px) {
  .statements { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .statements li { font-size: 1.32rem; }
}

.checklist {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  max-width: 68ch;
}
.checklist li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--blue);
}

.grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }

.card__link {
  display: inline-block;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 2px;
}
.card__link:hover { border-bottom-color: var(--navy); }

/* Numbered steps */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.steps li {
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 12px;
}
.steps h3 { margin-bottom: 8px; }
.steps p:last-child { margin-bottom: 0; }

/* Brand line under the home hero. Mirrors the logo: navy wordmark, light blue "Vía". */
.via {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--navy);
  max-width: 44ch;
  margin: 36px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
@media (min-width: 768px) { .via { font-size: 1.4rem; } }
.via__accent { color: var(--blue-deep); }

/* Long-form text pages (privacy policy). */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.45rem; margin: 36px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--blue-deep); }

/* Pull line: a single sentence given headline weight inside a band. */
.pull {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--navy);
  max-width: 34ch;
  margin: 28px 0 0;
  padding-left: 18px;
  border-left: 4px solid var(--blue);
}
@media (min-width: 768px) {
  .pull { font-size: 1.6rem; }
}
.pull + h2 { margin-top: 32px; }

/* Stat row: figure set in the serif, label beneath. Not a chart, just type. */
.stats {
  display: grid;
  gap: 24px 28px;
  margin: 32px 0 0;
}
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { border-top: 2px solid var(--blue); padding-top: 14px; }
.stat dt {
  font-family: var(--serif);
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  margin: 0 0 6px;
}
.stat dd { margin: 0; color: var(--ink-muted); font-size: 0.98rem; line-height: 1.5; }

/* Source line under a section that cites figures. */
.sources {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 78ch;
  margin: 36px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

/* --------------------------------------------------------------------------
   8. Accordion (plain buttons, no details/summary markers)
   -------------------------------------------------------------------------- */
.accordion {
  border-top: 1px solid var(--rule);
  max-width: 78ch;
}
.accordion__item { border-bottom: 1px solid var(--rule); }

.accordion__trigger {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  background: none;
  border: 0;
  padding: 20px 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}

/* Plus / minus indicator drawn in CSS, not a disclosure triangle. */
.accordion__icon {
  flex: 0 0 auto;
  position: relative;
  width: 18px;
  height: 18px;
  margin-top: 4px;
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  background: var(--blue-deep);
}
.accordion__icon::before { left: 0; top: 8px; width: 18px; height: 2px; }
.accordion__icon::after  { left: 8px; top: 0; width: 2px; height: 18px; }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { display: none; }

.accordion__panel { padding: 0 0 22px; max-width: 68ch; }
.accordion__panel p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   9. People cards (leadership, board)
   -------------------------------------------------------------------------- */
.person { text-align: left; }
.person__photo,
.person__initials {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 16px;
  object-fit: cover;
  display: block;
}
/* Faint ground and hairline so a cutout photo on white still reads as a circle. */
.person__photo {
  background: var(--offwhite);
  border: 1px solid var(--rule);
}
@media (min-width: 768px) {
  .person__photo,
  .person__initials { width: 136px; height: 136px; }
}
.person__initials {
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.04em;
}
.person__name { margin: 0 0 2px; font-size: 1.2rem; }
.person__title {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--blue-deep);
}
.person__bio { margin: 0; color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   10. Program directory (credit union list)
   -------------------------------------------------------------------------- */
.empty-note {
  background: var(--white);
  border: 1px dashed var(--rule);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--ink-muted);
  max-width: 68ch;
}
.program__meta { margin: 0 0 12px; color: var(--ink-muted); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 48px 0 32px;
  margin-top: 8px;
}
.site-footer a { color: var(--white); }

.footer__cols {
  display: grid;
  gap: 28px;
  margin-bottom: 32px;
}
@media (min-width: 760px) {
  .footer__cols { grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
}

.footer__tag { margin: 12px 0 0; max-width: 34ch; }

.footer__heading {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue-light);
  margin: 0 0 12px;
}

.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: 8px; }
.footer__list a { text-decoration: none; }
.footer__list a:hover { text-decoration: underline; }

.footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 22px;
  font-size: 0.86rem;
  line-height: 1.6;
  color: #E4EDF2;   /* AA contrast on navy */
}
.footer__legal p { margin: 0 0 14px; }
.footer__legal p:last-child { margin-bottom: 0; }

/* Focus ring needs to stay visible against navy. */
.site-footer a:focus-visible,
.site-footer button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
