/* =========================================================
   HOPE RENOVATIONS — Shared site styles
   ========================================================= */

:root {
  /* Brand palette */
  --navy: #090b48;        /* Neutral 04 — primary dark */
  --navy-2: #5150d2;      /* Theme 01 — secondary blue/violet */
  --navy-deep: #050626;
  --coral: #ff7667;       /* Theme 02 — primary accent */
  --coral-deep: #e85a4b;
  --lime: #d7ed7d;        /* Theme 03 — tertiary accent */
  --sky: #99cdde;         /* Hope Blue — official brand light blue. LEGIBILITY:
                             a light SURFACE — put navy/ink text on it (10.5:1)
                             or --muted (4.5:1); never white/coral/lime/cream
                             text on it. As text it needs a dark ground: 10.5:1
                             on navy (an accent there), but 1.7:1 on cream, so on
                             light backgrounds use it only as a fill/tint with
                             dark text over it. */
  --sky-deep: #7cb9cc;    /* Hover/pressed shade of Hope Blue; navy text 8.4:1 */
  --cream: #f5fbff;       /* Neutral 02 — page background */
  --cream-2: #e6eef5;
  --paper: #ffffff;       /* Neutral 01 */
  --ink: #090b48;
  --muted: #525251;       /* Neutral 03 */
  --hair: rgba(29, 29, 29, 0.08);
  --hair-2: rgba(2, 17, 33, 0.08);
  --hair-light: rgba(255, 255, 255, 0.21);
  --hatch: repeating-linear-gradient(135deg, rgba(9,11,72,0.04) 0 1px, transparent 1px 9px);
  --hatch-dark: repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 9px);
  --hatch-coral: repeating-linear-gradient(135deg, rgba(255,118,103,0.10) 0 1px, transparent 1px 9px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.display { font-family: 'Archivo', system-ui, sans-serif; font-weight: 800; letter-spacing: -0.02em; line-height: 1.02; }
.serif { font-family: 'Roboto Slab', Georgia, serif; }
.eyebrow { font-family: 'Archivo', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.container { max-width: 1220px; margin: 0 auto; padding: 0 28px; }

/* === Announcement bar === */
.bar {
  background: var(--navy-deep);
  background-image: var(--hatch-dark);
  color: #fff;
  text-align: center;
  font-size: 13px;
  padding: 9px 16px;
  letter-spacing: 0.01em;
}
.bar a { color: var(--lime); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.bar .sep { opacity: 0.35; margin: 0 12px; }

/* === Nav === */
/* No `will-change: transform` here: it would make .nav a containing block for
   fixed-position descendants, and the mobile drawer (.nav-links) is fixed —
   it would anchor to .nav instead of the viewport, opening below the
   announcement bar and overhanging the bottom by that bar's height. */
.nav {
  background: var(--paper);
  border-bottom: 1px solid var(--hair);
  position: sticky; top: 0; z-index: 50;
  transition: transform 0.3s ease;
}
.nav.nav-hidden { transform: translateY(-100%); }
/* Same element as .container, so horizontal padding must come from there —
   a `padding` shorthand here would reset it to 0 and jam the logo and toggle
   against the screen edge. */
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  /* Logo height and this padding trade off 1:1 — the logo is the tallest
     item in the row, so growing it means shrinking this to keep the header
     the same height (62+2*18 = 70+2*14 = 98px). */
  padding-block: 14px;
  gap: 24px;
}
.logo-img { height: 70px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-family: 'Archivo', sans-serif;
  font-size: 14.5px; font-weight: 600;
  color: var(--navy); position: relative;
  padding: 8px 0;
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer;
}
.nav-link.is-active { color: var(--coral); }
.nav-link .chev { font-size: 10px; opacity: 0.55; }
.nav-link:hover { color: var(--coral); }
.nav-cta {
  background: var(--lime); color: var(--navy);
  padding: 16px 26px;
  font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 14px;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: transform .15s, background .15s, box-shadow .15s;
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 4px 4px 0 var(--navy);
  border: 1.5px solid var(--navy);
  position: relative;
}
.nav-cta:hover {
  background: #c4dd5e;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--navy);
}
.nav-cta:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--navy);
}
.nav-cta .heart {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  color: var(--navy);
}
.nav-cta .heart svg { width: 100%; height: 100%; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px;
  font-family: 'Archivo', sans-serif; font-weight: 700;
  font-size: 13.5px; letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer;
  /* Every variant carries the same navy outline, the navy fills included.
     It is invisible against a navy background, but it keeps every button the
     same size — without it a sky or ghost button stands 3px taller than the
     navy one beside it, which shows when they sit in a row. */
  border: 1.5px solid var(--navy);
  transition: transform .15s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); }
/* Navy (not white) text on coral: white-on-coral is only 2.6:1 (fails AA);
   navy is 6.97:1 at rest / 5.2:1 on the coral-deep hover, and matches the
   navy-on-accent pattern the lime button already uses. */
.btn-coral { background: var(--coral); color: var(--navy); }
.btn-coral:hover { background: var(--coral-deep); }
.btn-lime { background: var(--lime); color: var(--navy); }
.btn-lime:hover { background: #c4dd5e; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn .arrow { font-family: 'Archivo'; font-weight: 600; }

/* === Sections === */
section { padding: 88px 0; }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--navy-2);
  margin-bottom: 14px;
}
.section-tag::before {
  content: ""; width: 6px; height: 6px; background: var(--navy-2); border-radius: 50%;
}
h2.section-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin: 0 0 16px;
}
h2.section-title .coral { color: var(--coral); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head.left { text-align: left; margin-bottom: 40px; }
.section-head.left .section-title { margin: 0 0 12px; }
.section-head p { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 auto; line-height: 1.55; }
.section-head.left p { margin: 0; max-width: 720px; font-size: 16px; }

/* === Inner-page hero === */
.page-hero {
  background: var(--cream);
  background-image: var(--hatch);
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1.5px solid var(--navy);
}
.page-hero::before, .page-hero::after {
  content: "";
  position: absolute;
  width: 28px; height: 28px;
  border: 2px solid var(--navy);
  opacity: 0.5;
  pointer-events: none;
}
.page-hero::before { top: 28px; left: 28px; border-right: none; border-bottom: none; }
.page-hero::after  { bottom: 28px; right: 28px; border-left: none; border-top: none; }
.crumb {
  font-family: 'Archivo'; font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  /* Wraps rather than overflowing a narrow screen (WCAG 1.4.10 reflow). */
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  margin-bottom: 22px;
}
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--coral); }
.crumb .arrow { color: var(--coral); }
.crumb .now { color: var(--navy); }
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.page-hero h1 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: clamp(44px, 5.4vw, 76px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 0 0 22px;
}
.page-hero h1 .coral { color: var(--coral); display: block; }
.page-hero p.lead {
  font-size: 17px; line-height: 1.6; color: var(--muted);
  max-width: 520px;
  margin: 0;
}
.page-hero-media {
  position: relative;
  aspect-ratio: 5/4;
  width: 100%;
  border: 1.5px solid var(--navy);
  overflow: hidden;
  background: var(--cream-2);
  box-shadow: 8px 8px 0 var(--navy);
}
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
/* Caption label over the hero photo. Most inner pages dropped theirs; About,
   Aging in Place and Stories keep one because editors have captioned those
   photos, and those published captions are keyed to this element. */
.page-hero-media .tag {
  position: absolute; left: 14px; bottom: 14px;
  background: var(--navy); color: #fff;
  padding: 6px 12px;
  font-family: 'Archivo'; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
}

/* === Footer === */
footer.site {
  background: var(--navy);
  background-image: var(--hatch-dark);
  color: rgba(255,255,255,0.85);
  padding: 80px 0 32px;
  position: relative;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.foot-logo { color: #fff; margin-bottom: 18px; }
.foot-logo img { height: 84px; }
.foot-blurb { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.7); max-width: 280px; margin-bottom: 22px; }
.socials { display: flex; gap: 8px; }
.social {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Archivo'; font-weight: 700; font-size: 13px;
  transition: background .15s;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.15);
}
.social:hover { background: var(--coral); }
.foot-col h4 {
  font-family: 'Archivo'; font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--sky);
  margin: 0 0 18px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 14px; color: rgba(255,255,255,0.78); }
.foot-col a:hover { color: #fff; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  /* center, not the default stretch: the credit is taller than a line of text,
     so a stretched copyright div renders its text at the top and sits a few px
     above "Developed by". */
  align-items: center;
  font-size: 12.5px; color: rgba(255,255,255,0.55);
}
/* "Developed by" + the Digital Impact Project wordmark. The SVG is already
   white with its own gradient arrow, so it needs no filter on the navy footer —
   like .foot-logo, which shows the sky artwork as-authored. */
.foot-credit { display: inline-flex; align-items: center; gap: 10px; }
.foot-credit a { display: inline-flex; align-items: center; opacity: 0.9; transition: opacity .15s; }
.foot-credit a:hover, .foot-credit a:focus-visible { opacity: 1; }
.foot-credit img { height: 18px; width: auto; }

/* === Nav dropdowns === */
.nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-item > .nav-link { padding: 26px 0; margin: -18px 0; } /* enlarge hover target to bridge gap to menu */
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px);
  background: var(--paper);
  border: 1.5px solid var(--navy);
  box-shadow: 6px 6px 0 var(--navy);
  min-width: 230px;
  padding: 8px;
  opacity: 0; visibility: hidden;
  transition: opacity .14s ease, transform .14s ease;
  z-index: 60;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a {
  display: block;
  font-family: 'Archivo', sans-serif; font-weight: 600; font-size: 14px;
  color: var(--navy);
  padding: 10px 12px;
  border-bottom: 1px solid var(--hair);
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: var(--cream); color: var(--coral); }
.dropdown a .sub {
  display: block; font-family: 'Inter', sans-serif; font-weight: 400;
  font-size: 11.5px; color: var(--muted); margin-top: 2px; text-transform: none; letter-spacing: 0;
}

/* === Cards (shared) === */
.card {
  background: var(--paper);
  border: 1.5px solid var(--navy);
  position: relative;
}
.card.dashed::after {
  content: ""; position: absolute; inset: 6px; pointer-events: none;
  border: 1px dashed rgba(9,11,72,0.18);
}

/* === Intro head (left-aligned page section header) === */
.intro-narrow { max-width: 760px; }
.prose p { color: var(--muted); font-size: 16px; line-height: 1.7; margin: 0 0 16px; }
.prose p:last-child { margin-bottom: 0; }

/* === Feature / check lists === */
.checklist { display: flex; flex-direction: column; gap: 12px; }
.checklist .item { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; color: var(--ink); line-height: 1.4; }
.checklist .item .check {
  width: 22px; height: 22px; flex-shrink: 0;
  background: var(--coral); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; margin-top: 1px;
}
.checklist.lime .item .check { background: var(--lime); color: var(--navy); }
.checklist.navy .item .check { background: var(--navy); color: #fff; }

/* === Process / steps grid === */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  background: var(--paper); border: 1.5px solid var(--navy);
  padding: 26px 24px; position: relative;
}
.step .n {
  font-family: 'Archivo'; font-weight: 800; font-size: 13px; letter-spacing: 0.12em;
  color: var(--coral); margin-bottom: 14px;
}
.step h3 { font-family: 'Archivo'; font-weight: 800; font-size: 19px; color: var(--navy); margin: 0 0 8px; letter-spacing: -0.01em; }
.step p { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0; }

/* === Filter / category chips === */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: 'Archivo'; font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.04em;
  padding: 9px 16px;
  border: 1.5px solid var(--navy); background: var(--paper); color: var(--navy);
  cursor: pointer; transition: background .14s, color .14s;
}
.chip:hover { background: var(--cream-2); }
.chip.active { background: var(--navy); color: #fff; }
.chip.active.coral { background: var(--coral); border-color: var(--coral); }

/* === Stats row === */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 0 8px; }
.stat .num {
  font-family: 'Archivo'; font-weight: 800;
  font-size: clamp(44px, 5vw, 64px); line-height: 1; letter-spacing: -0.04em; color: var(--navy);
}
.stat .num .unit { color: var(--coral); }
.stat .lbl { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.45; max-width: 220px; margin-left: auto; margin-right: auto; }
.stat-card { background: var(--paper); border: 1.5px solid var(--navy); padding: 24px; text-align: left; }
.stat-card .num { color: var(--coral); }
.stat-card .lbl { margin: 12px 0 0; max-width: none; }

/* === Forms === */
.field { margin-bottom: 18px; }
.field label {
  display: block; font-family: 'Archivo'; font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%; font-family: 'Inter', sans-serif; font-size: 15px; color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--navy);
  padding: 12px 14px;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 3px 3px 0 var(--coral); }
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.6; }
.form-card { background: var(--paper); border: 1.5px solid var(--navy); box-shadow: 8px 8px 0 var(--navy); padding: 36px; }

/* === Amount selector (donate) === */
.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.amount {
  border: 1.5px solid var(--navy); background: var(--paper);
  padding: 16px 0; text-align: center; cursor: pointer;
  font-family: 'Archivo'; font-weight: 800; font-size: 20px; color: var(--navy);
  transition: background .14s, color .14s;
}
.amount:hover { background: var(--cream-2); }
.amount.active { background: var(--coral); color: #fff; }

/* === CTA band (shared, generalized from join-cta) === */
.cta-band {
  padding: 56px;
  border: 1.5px solid var(--navy);
  position: relative;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.cta-band.lime { background: var(--lime); }
.cta-band.sky { background: var(--sky); background-image: var(--hatch); }
.cta-band.navy { background: var(--navy); background-image: var(--hatch-dark); }
.cta-band h2 {
  font-family: 'Archivo'; font-weight: 800;
  font-size: clamp(28px, 3.2vw, 42px); letter-spacing: -0.02em; line-height: 1.04;
  margin: 0 0 8px;
}
.cta-band.lime h2, .cta-band.lime p { color: var(--navy); }
.cta-band.sky h2 { color: var(--navy); }                                              /* 11:1 on sky */
.cta-band.sky p { color: var(--muted); }                                              /* 4.7:1 on sky */
.cta-band.navy h2 { color: #fff; }
.cta-band.navy p { color: rgba(255,255,255,0.75); }
.cta-band p { margin: 0; font-size: 15px; max-width: 540px; }
.cta-band .actions { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }

/* === Media tag (caption on photos) === */
.media-tag {
  position: absolute; left: 14px; bottom: 14px;
  background: var(--navy); color: #fff;
  padding: 6px 12px;
  font-family: 'Archivo'; font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.media-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--navy); color: #fff;
  padding: 6px 12px;
  font-family: 'Archivo'; font-size: 10.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
}

/* === Image frame (shared) === */
.frame { border: 1.5px solid var(--navy); overflow: hidden; background: var(--cream-2); position: relative; }
.frame.shadow { box-shadow: 8px 8px 0 var(--navy); }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* === Placeholder (maps, logos, video — user drops real asset later) === */
.ph {
  background: var(--cream-2); background-image: var(--hatch);
  border: 1.5px solid var(--navy);
  display: flex; align-items: center; justify-content: center; text-align: center;
  position: relative;
}
.ph .ph-lbl {
  font-family: 'Archivo'; font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); padding: 12px; line-height: 1.5;
}
.ph.logo .ph-lbl { font-size: 10px; }

/* === Tinted band === */
.band-paper { background: var(--paper); }
.band-cream { background: var(--cream); background-image: var(--hatch); }
.band-cream2 { background: var(--cream-2); background-image: var(--hatch); }
.band-navy { background: var(--navy); background-image: var(--hatch-dark); color: #fff; }
.band-navy .section-title, .band-navy h2 { color: #fff; }
.band-navy .section-tag { color: var(--lime); }
.band-navy .section-tag::before { background: var(--lime); }
.band-navy .section-head p { color: rgba(255,255,255,0.7); }

/* --sky homes (all legible by construction — see the palette note):
   1) a light SURFACE with dark text; 2) an ACCENT on navy. */
.band-sky { background: var(--sky); background-image: var(--hatch); color: var(--ink); }
.band-sky .section-title, .band-sky h2, .band-sky h3 { color: var(--navy); }        /* 11:1 */
.band-sky .section-tag { color: var(--navy); }                                       /* violet default is too low-contrast on sky */
.band-sky .section-tag::before { background: var(--navy); }
.band-sky .section-head p, .band-sky > .container > * p { color: var(--muted); }     /* 4.7:1 */
.tag-sky { background: var(--sky); color: var(--navy); }                              /* pill: navy on sky, 10.5:1 */
.btn-sky { background: var(--sky); color: var(--navy); }
.btn-sky:hover { background: var(--sky-deep); }                                       /* darker sky on hover, still navy text */
/* Accent text on any navy surface — coral only clears 2.9:1 there, Hope Blue 10.5:1. */
.band-navy .sky-accent,
.cta-band.navy h2 .sky-accent,
.partner-cta .sky-accent { color: var(--sky); }

/* === Generic 2-col grids === */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-2.start { align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* === Info card (icon + title + text) === */
.info-card { background: var(--paper); border: 1.5px solid var(--navy); padding: 28px; position: relative; display: flex; flex-direction: column; }
.info-card.dashed::after { content: ""; position: absolute; inset: 6px; pointer-events: none; border: 1px dashed rgba(9,11,72,0.18); }
.info-card .ico {
  width: 46px; height: 46px; flex-shrink: 0;
  background: var(--coral); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Archivo'; font-weight: 800; font-size: 20px; margin-bottom: 18px;
}
.info-card.navy .ico { background: var(--navy); }
.info-card.lime .ico { background: var(--lime); color: var(--navy); }
.info-card h3 { font-family: 'Archivo'; font-weight: 800; font-size: 21px; color: var(--navy); margin: 0 0 8px; letter-spacing: -0.015em; position: relative; z-index: 1; }
.info-card p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 0; position: relative; z-index: 1; }
.info-card .more { margin-top: auto; padding-top: 16px; font-family: 'Archivo'; font-weight: 700; font-size: 14px; color: var(--coral); display: inline-flex; align-items: center; gap: 8px; position: relative; z-index: 1; }

/* === List rows (job board, events, reports) === */
.row-card {
  background: var(--paper); border: 1.5px solid var(--navy); padding: 22px 24px;
  display: flex; align-items: center; gap: 24px;
  transition: transform .15s, box-shadow .15s;
}
.row-card:hover { transform: translateX(2px); box-shadow: -4px 4px 0 var(--coral); }

/* === Date block === */
.date-block {
  flex-shrink: 0; background: var(--navy); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.date-block .m { font-family: 'Archivo'; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; }
.date-block .d { font-family: 'Archivo'; font-weight: 800; line-height: 1; }

@media (max-width: 1080px) {
  .nav-links { gap: 22px; }
}
@media (max-width: 920px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 36px; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .steps, .stats { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .cta-band { padding: 24px; }
}

/* === Responsive === */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   NAV POLISH — blueprint double-rule, animated marker
   underlines, dropdown tab/notch/markers. Pure CSS.
   ============================================================ */
.nav {
  border-bottom: 2px solid var(--navy);
  box-shadow: 0 12px 26px -22px rgba(9, 11, 72, 0.65);
}
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 2px; background: var(--lime); opacity: 0.9; pointer-events: none;
}
.logo-img { transition: transform .25s ease; }
.logo-img:hover { transform: scale(1.04) rotate(-1.5deg); }

/* animated coral marker underline on top-level links */
.nav-item > .nav-link::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 21px;
  height: 3px; background: var(--coral);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .26s cubic-bezier(.6, .2, .1, 1);
}
.nav-item:hover > .nav-link::after,
.nav-item > .nav-link.is-active::after { transform: scaleX(1); }
.nav-link { transition: color .18s ease; }
.nav-link .chev { transition: transform .2s ease, opacity .2s ease; }
.nav-item:hover .nav-link .chev { transform: rotate(180deg); opacity: 1; }

/* dropdown: coral tab + notch + sliding item markers */
.dropdown {
  border-top: 4px solid var(--coral);
  box-shadow: 7px 7px 0 var(--navy);
}
.dropdown::before {
  content: ""; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  border-left: 9px solid transparent; border-right: 9px solid transparent;
  border-bottom: 9px solid var(--coral);
}
.dropdown a { position: relative; transition: background .14s ease, color .14s ease, padding-left .16s ease; }
.dropdown a::before {
  content: ""; position: absolute; left: 6px; top: 50%;
  width: 3px; height: 15px; background: var(--coral);
  transform: translateY(-50%) scaleY(0); transform-origin: center;
  transition: transform .16s ease;
}
.dropdown a:hover { padding-left: 22px; }
.dropdown a:hover::before { transform: translateY(-50%) scaleY(1); }

/* CTA heart delight */
.nav-cta .heart { transition: transform .2s ease; }
.nav-cta:hover .heart { transform: scale(1.18) rotate(-6deg); }

/* ============================================================
   MOBILE NAV — hamburger drawer + responsive tuning
   ============================================================ */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 0 9px;
  background: var(--paper);
  border: 1.5px solid var(--navy);
  box-shadow: 3px 3px 0 var(--navy);
  cursor: pointer; flex-shrink: 0;
  transition: transform .12s, box-shadow .12s;
}
.nav-toggle:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--navy); }
.nav-toggle .nt-bar {
  display: block; height: 2.5px; width: 100%;
  background: var(--navy); border-radius: 1px;
  transition: transform .28s ease, opacity .2s ease;
}
.nav.menu-open .nav-toggle .nt-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav.menu-open .nav-toggle .nt-bar:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-toggle .nt-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-scrim {
  position: fixed; inset: 0;
  background: rgba(9, 11, 72, 0.45);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  z-index: 40;
}
.nav-scrim.is-visible { opacity: 1; visibility: visible; }
body.nav-locked { overflow: hidden; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; position: relative; z-index: 70; }
  .nav-row { gap: 12px; }
  .nav-row > a:first-child { margin-right: auto; }   /* logo pushes CTA + toggle to the right */

  .nav-links {
    display: flex;
    position: fixed; top: 0; right: 0;
    width: min(380px, 86vw);
    height: 100vh; height: 100dvh;
    flex-direction: column; align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-left: 2px solid var(--navy);
    box-shadow: -14px 0 34px -20px rgba(9, 11, 72, 0.7);
    padding: 92px 0 40px;
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(105%);
    transition: transform .32s cubic-bezier(.6, .2, .1, 1);
    z-index: 60;
  }
  .nav.menu-open .nav-links { transform: translateX(0); }
  .nav-links::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0;
    height: 5px; background: var(--coral);
  }

  .nav-item { display: block; width: 100%; align-items: stretch; }
  .nav-item > .nav-link {
    padding: 16px 26px; margin: 0;
    font-size: 17px; justify-content: space-between;
    border-bottom: 1px solid var(--hair);
  }
  .nav-item > .nav-link::after { display: none; }   /* drop desktop underline inside drawer */
  .nav-link .chev { display: none; }

  /* dropdowns expand inline as a sub-list */
  .dropdown {
    position: static; transform: none;
    opacity: 1; visibility: visible;
    min-width: 0; width: 100%;
    border: none; border-top: none; box-shadow: none;
    background: var(--cream); padding: 4px 0;
  }
  .dropdown::before { display: none; }
  .dropdown a {
    padding: 12px 26px 12px 42px; font-size: 14px;
    border-bottom: 1px solid var(--hair);
  }
  .dropdown a::before { left: 24px; }
  .dropdown a:hover { padding-left: 42px; background: var(--paper); }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .logo-img { height: 54px; }
  .nav-row { padding-block: 9px; }   /* same trade-off: 48+2*12 = 54+2*9 = 72px */
  .nav-cta { padding: 13px 16px; font-size: 12.5px; letter-spacing: 0.05em; }
}

/* ============================================================
   STUDIO EDIT AFFORDANCE — auto-editable content
   Studio makes body text inline-editable automatically, but its
   built-in dashed outline only styles explicitly-keyed regions
   ([data-studio-block] / [data-studio-image]). These rules extend
   the same affordance to the auto-editable text nodes (headings,
   paragraphs, list items, spans) so an editor can see what's
   editable. Scoped to html.cdd-edit, so it's invisible to visitors
   (they never get contentEditable or the cdd-edit class). Falls back
   to Studio's affordance colors when its CSS vars aren't in scope.
   ============================================================ */
html.cdd-edit main [contenteditable="true"]:not([data-studio-block]) {
  cursor: text;
  border-radius: 4px;
  outline: 2px dashed var(--cdd-affordance, rgba(55, 93, 231, 0.7));
  outline-offset: 3px;
  transition: outline-color 160ms ease;
}
html.cdd-edit main [contenteditable="true"]:not([data-studio-block]):hover {
  outline-color: var(--cdd-affordance-strong, rgba(55, 93, 231, 1));
}
html.cdd-edit main [contenteditable="true"]:not([data-studio-block]):focus {
  outline: 2px solid var(--cdd-editing, #375de7);
}

/* Editable images: Studio draws the affordance outline 4px OUTSIDE the image,
   but our image frames use overflow:hidden and the image fills the frame, so
   that outline gets clipped and never shows. Redraw it just inside the image
   edge with a negative offset (and a matching inset ring so it reads clearly
   over any photo). More specific than Studio's own rule, so it wins regardless
   of stylesheet order. */
html.cdd-edit main [data-studio-image] {
  outline-offset: -3px;
  box-shadow: inset 0 0 0 2px var(--cdd-affordance, rgba(55, 93, 231, 0.7));
}
html.cdd-edit main [data-studio-image]:hover {
  box-shadow: inset 0 0 0 2px var(--cdd-affordance-strong, rgba(55, 93, 231, 1));
}

/* Studio 0.5.0's image-reposition handle (.cdd-photo-move) is a fixed,
   body-level button parked at max z-index (~2^31). An image scrolled up under
   our sticky nav therefore floats its handle OVER the nav bar (and the mobile
   drawer/toggle). Drop it below the whole nav z-range (scrim 40, bar 50,
   drawer 60, toggle 70) so the opaque nav simply covers it, while it still sits
   above ordinary page content (z-auto). The handle is body-parented, same as
   .nav, so these compare in one stacking context. Studio's own rule is a bare
   `.cdd-photo-move` and its stylesheet loads after ours, so we out-specify it
   with `html.cdd-edit` (same tactic as the affordance rules above) — the handle
   only exists in edit mode anyway. */
html.cdd-edit .cdd-photo-move { z-index: 39; }

/* ── Public forms ──────────────────────────────────────────────────────
   .hp is the honeypot: off-screen rather than display:none, because some
   bots skip fields they can tell are hidden. Never shown to a person, and
   pulled out of the tab order and the accessibility tree in the markup. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* A label that screen readers announce but that takes no room on the page —
   for inputs whose purpose is visually obvious (the newsletter email box). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.form-notice { border: 1.5px solid var(--navy); background: var(--cream-2); color: var(--navy); padding: 14px 16px; margin-bottom: 20px; font-family: 'Inter'; font-size: 14px; line-height: 1.5; }
.form-notice.is-error { border-color: #b3261e; background: #fdf1f0; color: #7d1a15; }

/* ── Skip link ─────────────────────────────────────────────────────────
   First focusable thing on every page (WCAG 2.4.1). Off-screen until it takes
   keyboard focus, then it sits over the announcement bar. */
.skip-link {
  position: absolute; left: 16px; top: 12px; z-index: 100;
  padding: 12px 18px;
  background: var(--navy); color: #fff; border: 1.5px solid var(--navy);
  box-shadow: 4px 4px 0 var(--sky);
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; outline: 3px solid var(--lime); outline-offset: 3px; }
main:focus { outline: none; }

/* ── Accessibility menu ────────────────────────────────────────────────
   Behavior in /assets/a11y.js, which builds #a11y-root at the end of <body>.
   The effect classes sit on <html> and are set from localStorage by a snippet
   in the <head> (src/layout.ts), so they apply before first paint.

   Every effect is scoped to the page's own top-level blocks:
     body > :not(#a11y-root):not([class*="cdd-"])
   never the menu itself (which also holds the saturation layer and the
   reading mask) and never Inlay's editor UI. */
@font-face { font-family: 'OpenDyslexic'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/open-dyslexic-400.woff2') format('woff2'); }
@font-face { font-family: 'OpenDyslexic'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/open-dyslexic-700.woff2') format('woff2'); }

#a11y-root { font-family: 'Inter', system-ui, sans-serif; color: var(--ink); }

.a11y-fab {
  /* --a11y-lift is set by a11y.js while Inlay's editor toolbar is on screen. */
  position: fixed; left: 16px; bottom: var(--a11y-lift, 16px); z-index: 2147482000;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 18px 0 14px;
  background: var(--navy); color: #fff;
  border: 1.5px solid var(--navy); border-radius: 0;
  box-shadow: 4px 4px 0 var(--sky);
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.a11y-fab:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--sky); }
.a11y-fab svg { width: 22px; height: 22px; fill: currentColor; flex: 0 0 auto; }

.a11y-panel {
  position: fixed; left: 16px; bottom: calc(var(--a11y-lift, 16px) + 68px); z-index: 2147482001;
  width: 340px; max-width: calc(100vw - 32px);
  max-height: calc(100vh - var(--a11y-lift, 16px) - 92px); max-height: calc(100dvh - var(--a11y-lift, 16px) - 92px);
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper);
  border: 1.5px solid var(--navy);
  box-shadow: 6px 6px 0 var(--navy);
  padding: 0 20px 20px;
  /* Closed is visibility:hidden, not just transparent, so its controls drop
     out of the tab order and the accessibility tree. */
  visibility: hidden; opacity: 0; transform: translateY(10px);
  transition: opacity .16s ease, transform .2s ease, visibility 0s linear .2s;
}
.a11y-panel.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
/* The Hope Blue top stripe, as on the mobile menu drawer. */
.a11y-panel::before {
  content: ""; display: block; height: 5px; margin: 0 -20px 18px;
  background: var(--sky); border-bottom: 1.5px solid var(--navy);
}
.a11y-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.a11y-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 6px;
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy-2);
}
.a11y-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.a11y-title {
  margin: 0; font-family: 'Archivo', sans-serif; font-weight: 800;
  font-size: 24px; line-height: 1.05; letter-spacing: -0.015em; color: var(--navy);
}
.a11y-x {
  flex: 0 0 auto; width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper); color: var(--navy);
  border: 1.5px solid var(--navy); border-radius: 0; cursor: pointer;
  transition: background .15s, color .15s;
}
.a11y-x:hover { background: var(--navy); color: #fff; }
.a11y-x svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.4; fill: none; }

.a11y-group { padding: 14px 0; border-bottom: 1px dashed rgba(9, 11, 72, 0.22); }
.a11y-label {
  display: block; margin: 0 0 10px;
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.a11y-seg { display: grid; grid-template-columns: repeat(4, 1fr); }
.a11y-seg button {
  min-height: 40px; padding: 0 4px; margin-left: -1.5px;
  background: var(--paper); color: var(--navy);
  border: 1.5px solid var(--navy); border-radius: 0; cursor: pointer;
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 13px;
  transition: background .15s, color .15s;
}
.a11y-seg button:first-child { margin-left: 0; }
.a11y-seg button:hover { background: var(--cream-2); }
.a11y-seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.a11y-seg button:disabled { cursor: not-allowed; opacity: 0.45; }
.a11y-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.a11y-note[hidden] { display: none; }

/* Each switch is a whole-row button (role="switch"), so the label is the
   accessible name and the whole row is the click target. */
.a11y-switch {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 44px; padding: 8px 0;
  background: none; border: 0; border-bottom: 1px dashed rgba(9, 11, 72, 0.22); border-radius: 0;
  cursor: pointer; text-align: left;
  font-family: 'Inter', system-ui, sans-serif; font-size: 14.5px; font-weight: 500; color: var(--ink);
}
.a11y-track {
  position: relative; flex: 0 0 auto; width: 44px; height: 24px;
  border: 1.5px solid var(--navy); background: var(--paper);
  transition: background .15s;
}
.a11y-track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px;
  background: var(--navy); transition: transform .15s;
}
.a11y-switch[aria-checked="true"] .a11y-track { background: var(--sky); }
.a11y-switch[aria-checked="true"] .a11y-track::after { transform: translateX(20px); }

.a11y-reset {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 48px; margin-top: 18px; padding: 0 16px;
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--navy); border-radius: 0; cursor: pointer;
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: background .15s, color .15s;
}
.a11y-reset:hover { background: var(--navy); color: #fff; }

#a11y-root :focus-visible { outline: 3px solid var(--navy-2); outline-offset: 2px; }
#a11y-root .a11y-fab:focus-visible { outline-offset: 3px; }

@media (max-width: 620px) {
  .a11y-fab { width: 48px; padding: 0; justify-content: center; }
  .a11y-fab-text { display: none; }
  .a11y-panel { bottom: calc(var(--a11y-lift, 16px) + 60px); }
}
@media (prefers-reduced-motion: reduce) {
  .a11y-fab, .a11y-panel, .a11y-track, .a11y-track::after { transition: none; }
}
@media print { #a11y-root { display: none !important; } }

/* Saturation: a layer that re-saturates whatever is painted beneath it. A
   filter on the page blocks themselves would detach the mobile drawer from the
   viewport (see the .nav note above). */
.a11y-sat { position: fixed; inset: 0; z-index: 2147470000; pointer-events: none; }
.a11y-mask {
  position: fixed; left: 0; right: 0; top: var(--a11y-mask-y, 50%); height: 140px;
  transform: translateY(-50%);
  box-shadow: 0 0 0 100vmax rgba(5, 6, 38, 0.55);
  pointer-events: none; z-index: 2147471000;
}

/* High contrast: white canvas, black text, dark-blue underlined links.
   Backgrounds are repainted too, or the navy bar, header, CTA bands and footer
   would leave black text on navy. Full-screen sheets that sit over content
   (the mobile menu scrim) are skipped: painted white, they'd blank the page. */
html.a11y-hc body { background: #fff !important; }
html.a11y-hc body > :not(#a11y-root):not([class*="cdd-"]):not([class*="scrim" i]),
html.a11y-hc body > :not(#a11y-root):not([class*="cdd-"]) :is(section, header, footer, nav, aside, main, article, div, ul, ol, li, form, fieldset, table, tr, td, th, figure, label, button, a, span):not([class*="scrim" i]) {
  background-color: #fff !important; background-image: none !important; box-shadow: none !important;
}
html.a11y-hc body > :not(#a11y-root):not([class*="cdd-"]),
html.a11y-hc body > :not(#a11y-root):not([class*="cdd-"]) :is(p, span, div, a, li, h1, h2, h3, h4, h5, h6, strong, em, b, i, td, th, label, legend, button, figcaption, small, blockquote, input, textarea, select, dt, dd) {
  color: #000 !important;
}
html.a11y-hc body > :not(#a11y-root):not([class*="cdd-"]) a { color: #00008b !important; text-decoration: underline !important; }
html.a11y-hc body > :not(#a11y-root):not([class*="cdd-"]) :is(input, textarea, select) { border-color: #000 !important; }
/* The logos are light artwork made for navy; on white they'd vanish. */
html.a11y-hc body > :not(#a11y-root):not([class*="cdd-"]) :is(img[src*="logo-sky"], img[src*="dip-logo"]) { filter: brightness(0) !important; }

/* Highlight: a yellow ring outside a black one, so one of the two stands out
   on both the white and the navy parts of the page. */
html.a11y-highlight body > :not(#a11y-root):not([class*="cdd-"]) :is(a[href], button, [role="button"], input[type="submit"], input[type="button"], summary) {
  outline: 3px solid #ffd400 !important; outline-offset: 2px !important; box-shadow: 0 0 0 2px #000 !important;
}
html.a11y-highlight body > :not(#a11y-root):not([class*="cdd-"]) a[href] { text-decoration: underline !important; }

/* Text spacing: the WCAG 1.4.12 values. */
html.a11y-spacing body > :not(#a11y-root):not([class*="cdd-"]) * {
  letter-spacing: 0.12em !important; word-spacing: 0.16em !important; line-height: 1.5 !important;
}
html.a11y-spacing body > :not(#a11y-root):not([class*="cdd-"]) p { margin-bottom: 2em !important; }

html.a11y-dyslexic body > :not(#a11y-root):not([class*="cdd-"]),
html.a11y-dyslexic body > :not(#a11y-root):not([class*="cdd-"]) * {
  font-family: 'OpenDyslexic', 'Comic Sans MS', Verdana, sans-serif !important;
}

html.a11y-cursor body > :not(#a11y-root):not([class*="cdd-"]),
html.a11y-cursor body > :not(#a11y-root):not([class*="cdd-"]) *:not(input):not(textarea) {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M3 2 L3 22 L8 17 L11 23 L14 22 L11 16 L17 16 Z' fill='black' stroke='white' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 6 4, auto !important;
}
