/* ==========================================================================
   Hope Resource Center — design system
   Palette sampled from the HOPE logo. Light teals are DECORATIVE ONLY
   (they fail WCAG AA on white for text). Body text uses --ink or --teal-900.
   ========================================================================== */

:root {
  /* brand */
  --teal-900: #24545b;   /* darkest, for text on light */
  --teal-800: #2d6971;   /* primary brand teal (logo HOPE) */
  --teal-700: #357a84;
  --teal-600: #31727b;   /* accent teal for small text (AA-compliant on light) */
  --teal-400: #5da0a9;   /* decorative only */
  --teal-200: #88bfc6;   /* decorative only */
  --teal-100: #d8ebee;   /* soft tint backgrounds */
  --teal-50:  #eef6f7;   /* section wash */

  /* warm neutrals for donor warmth */
  --cream:    #fbf8f3;
  --sand:     #f3ede2;
  --gold:     #e0a34e;   /* warm accent for secondary CTAs / highlights */
  --gold-dark:#c98a34;

  --ink:      #263133;   /* near-black body text */
  --muted:    #5b6b6e;   /* secondary text (passes AA on white/cream) */
  --line:     #e2e7e6;   /* hairlines */
  --white:    #ffffff;

  /* donate CTA color — high contrast, warm, unmissable */
  --cta:      #c0501f;   /* warm terracotta, life-affirming, AA with white text */
  --cta-dark: #a5431c;

  --shadow-sm: 0 1px 3px rgba(36,84,91,.08), 0 1px 2px rgba(36,84,91,.06);
  --shadow-md: 0 6px 20px rgba(36,84,91,.10);
  --shadow-lg: 0 18px 48px rgba(36,84,91,.16);

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1160px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);

  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: clamp(1rem, .96rem + .25vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-800); text-underline-offset: 3px; }
a:hover { color: var(--teal-900); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; color: var(--teal-900); letter-spacing: -.01em; text-wrap: pretty; }
/* balance only short headings (<= ~3 lines); long statements wrap greedily and stay even */
h3, h4, .hero h1 { text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.65rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.5rem); }
p { max-width: 68ch; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- layout helpers ---------- */
.wrap { width: min(var(--maxw), 100%); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.2rem, 2rem + 5vw, 6rem); }
.section--tight { padding-block: clamp(2.4rem, 1.6rem + 3vw, 4rem); }
.section--wash { background: var(--teal-50); }
.section--sand { background: var(--sand); }
.section--teal { background: var(--teal-800); color: #eaf5f6; }
.section--teal h1, .section--teal h2, .section--teal h3 { color: #fff; }
.section--teal p { color: #d3e7e9; }
.center { text-align: center; }
.measure { max-width: 62ch; margin-inline: auto; }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 800;
  font-size: .78rem;
  color: var(--teal-600);
  max-width: none;   /* override the body-paragraph 68ch cap so centered eyebrows truly center */
}
.section--teal .eyebrow { color: var(--teal-200); }
.lede { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); color: var(--muted); }
.section--teal .lede { color: #cfe6e8; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--teal-800);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 800;
  font-size: 1rem; line-height: 1;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn--donate { --btn-bg: var(--cta); --btn-fg: #fff; }
.btn--donate:hover { --btn-bg: var(--cta-dark); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: #3a2a10; }
.btn--gold:hover { --btn-bg: var(--gold-dark); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--teal-900);
  border-color: var(--teal-800);
  box-shadow: none;
}
.btn--ghost:hover { --btn-bg: var(--teal-800); --btn-fg:#fff; }
.section--teal .btn--ghost { --btn-fg:#fff; border-color: rgba(255,255,255,.7); }
.section--teal .btn--ghost:hover { --btn-bg:#fff; --btn-fg: var(--teal-900); }
.btn--lg { padding: 1.1rem 2rem; font-size: 1.08rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn-row.center { justify-content: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,248,243,.9);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 74px;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { height: 42px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: .3rem;
  list-style: none; padding: 0;
}
.nav-links a {
  display: inline-block; padding: .55rem .8rem; border-radius: 8px;
  font-weight: 700; color: var(--teal-900); text-decoration: none;
  font-size: .98rem; transition: background .15s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--teal-100); }
.nav-cta { display: flex; align-items: center; gap: .5rem; }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: .5rem; color: var(--teal-900);
}
.nav-toggle svg { width: 28px; height: 28px; }
/* persistent Donate button on mobile (nav CTA lives inside the collapsed menu) */
.nav-donate-m { display: none; }
@media (max-width: 1080px) {
  .nav-donate-m { display: inline-flex; padding: .55rem 1.05rem; font-size: .92rem; }
}

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; inset: 74px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .1rem;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: .6rem var(--gutter) 1.1rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: .8rem .6rem; font-size: 1.05rem; }
  .nav .btn--ghost { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: clip; background: var(--teal-900); }
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(20,54,60,.92) 0%, rgba(29,80,88,.72) 45%, rgba(29,80,88,.35) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-block: clamp(4rem, 3rem + 8vw, 8.5rem); max-width: 44rem; }
.hero h1 { color: #fff; }
.hero p { color: #e4f1f2; font-size: clamp(1.1rem, 1rem + .6vw, 1.35rem); margin-top: 1rem; }
.hero .btn-row { margin-top: 2rem; }
/* Ghost buttons on any dark surface get light text/border */
.hero .btn--ghost, .cta-band .btn--ghost, .section--teal .btn--ghost {
  --btn-fg: #fff; border-color: rgba(255,255,255,.75);
}
.hero .btn--ghost:hover, .cta-band .btn--ghost:hover, .section--teal .btn--ghost:hover {
  --btn-bg: #fff; --btn-fg: var(--teal-900); border-color: #fff;
}
.hero-badge {
  display: inline-flex; align-items:center; gap:.5rem;
  background: rgba(255,255,255,.14); color:#eaf6f7;
  border: 1px solid rgba(255,255,255,.25);
  padding: .4rem .9rem; border-radius: 999px;
  font-weight: 800; font-size: .8rem; letter-spacing: .04em;
  margin-bottom: 1.2rem;
}

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: clamp(1.1rem, .6rem + 1.6vw, 1.8rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card--lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
/* pillar cards: bottom-align the trailing link across cards */
.pillars .card { display: flex; flex-direction: column; }
.pillars .card > p:last-child { margin-top: auto; padding-top: .5rem; }
.card .card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--teal-100); color: var(--teal-800);
}
.card .card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .98rem; }

/* two-column feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 1rem + 3vw, 3.6rem); align-items: center; }
.split--reverse .split-media { order: 2; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split--reverse .split-media { order: 0; } }

/* ---------- photo placeholders ---------- */
.photo { border-radius: var(--radius-lg); overflow: hidden; background: var(--teal-50); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.ph {
  position: relative; overflow: hidden;
  border: 1px solid rgba(45,105,113,.14);
  background:
    radial-gradient(120% 90% at 15% 12%, rgba(136,191,198,.28), transparent 55%),
    radial-gradient(120% 100% at 85% 88%, rgba(93,160,169,.30), transparent 55%),
    linear-gradient(150deg, var(--teal-50), var(--teal-100));
  border-radius: var(--radius-lg);
  display: grid; place-items: center; text-align: center;
  padding: 1.6rem; color: var(--teal-800);
  min-height: 220px;
}
/* subtle soft-focus vignette so the panel reads as an intentional image frame */
.ph::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 60px rgba(36,84,91,.10);
  border-radius: inherit;
}
.ph > div { position: relative; z-index: 1; }
.ph[data-ratio="16x9"] { aspect-ratio: 16/9; }
.ph[data-ratio="4x3"]  { aspect-ratio: 4/3; }
.ph[data-ratio="1x1"]  { aspect-ratio: 1/1; }
.ph[data-ratio="3x4"]  { aspect-ratio: 3/4; }
.ph .ph-ico { width: 40px; height: 40px; margin: 0 auto .7rem; color: var(--teal-700); opacity: .9; }
/* label/filename kept in DOM for reference but hidden for a polished look */
.ph .ph-label, .ph .ph-file { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ph .ph-idea { font-family: var(--font-display); font-style: italic; font-size: 1.02rem; color: var(--teal-900); margin-top: .1rem; max-width: 30ch; opacity: .92; }

/* ---------- stat / impact band ---------- */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; text-align: center; }
@media (max-width: 620px){ .stats { grid-template-columns: 1fr; gap: 1.8rem; } }
.stat .num { font-family: var(--font-display); font-size: clamp(2.4rem, 1.8rem + 2.6vw, 3.6rem); color: #fff; line-height: 1; }
.stat .lbl { color: #cfe6e8; font-weight: 700; margin-top: .4rem; }

/* ---------- giving levels ---------- */
.levels { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.1rem; }
@media (max-width: 860px){ .levels { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px){ .levels { grid-template-columns: 1fr; } }
.level {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; text-align: center; position: relative;
  display: flex; flex-direction: column;
}
.level .desc { flex: 1 1 auto; }   /* fills space so the CTA bottom-aligns across cards */
.level.is-featured { border-color: var(--cta); box-shadow: 0 0 0 3px rgba(217,97,46,.16); }
.level .amt { font-family: var(--font-display); font-size: 2rem; color: var(--teal-900); }
.level .per { color: var(--muted); font-weight: 700; font-size: .85rem; }
.level .desc { color: var(--muted); font-size: .93rem; margin-top: .6rem; }
.level .tag {
  position: absolute; top: -.8rem; left: 50%; transform: translateX(-50%);
  background: var(--cta); color: #fff; font-size: .7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em; padding: .25rem .7rem; border-radius: 999px;
}

/* ---------- testimonial ---------- */
.quote {
  background: var(--white); border-radius: var(--radius-lg); padding: 2rem;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.quote blockquote { font-family: var(--font-display); font-size: 1.25rem; color: var(--teal-900); line-height: 1.4; }
.quote .who { margin-top: 1rem; color: var(--muted); font-weight: 700; font-size: .92rem; }
.quote .mark { font-family: var(--font-display); font-size: 3rem; color: var(--teal-200); line-height: .5; }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; }
@media (max-width: 820px){ .team-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px){ .team-grid { grid-template-columns: 1fr; } }
.member .photo, .member .ph { margin-bottom: 1rem; }
.member h3 { margin-bottom: .1rem; }
.member .role { color: var(--teal-600); font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.member p { color: var(--muted); font-size: .95rem; margin-top: .5rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--teal-800), var(--teal-900)); color:#fff; border-radius: var(--radius-lg); padding: clamp(2rem, 1.4rem + 3vw, 3.4rem); text-align:center; }
.cta-band h2 { color:#fff; }
.cta-band p { color:#d3e7e9; margin: .8rem auto 1.6rem; }

/* ---------- list with checks ---------- */
.checks { list-style: none; padding: 0; display: grid; gap: .7rem; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: .7rem; align-items: start; }
.checks .ck { width: 24px; height: 24px; border-radius: 50%; background: var(--teal-100); color: var(--teal-800); display: grid; place-items: center; margin-top: .15rem; }
.checks .ck svg { width: 15px; height: 15px; }

/* ---------- contact ---------- */
.info-row { display: grid; grid-template-columns: 44px 1fr; gap: .9rem; align-items: start; margin-bottom: 1.3rem; }
.info-row .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--teal-100); color: var(--teal-800); display: grid; place-items: center; }
.info-row .ic svg { width: 22px; height: 22px; }
.info-row .k { font-weight: 800; color: var(--teal-900); }
.info-row .v, .info-row .v a { color: var(--muted); }
.map-embed { border: 0; width: 100%; height: 100%; min-height: 320px; border-radius: var(--radius-lg); }
.map-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; text-align: center; text-decoration: none;
  min-height: 340px; padding: 2rem; border-radius: var(--radius-lg);
  color: var(--teal-900);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 20%, rgba(93,160,169,.16), transparent 40%),
    radial-gradient(circle at 78% 75%, rgba(136,191,198,.20), transparent 45%),
    repeating-linear-gradient(0deg, rgba(45,105,113,.05) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(90deg, rgba(45,105,113,.05) 0 1px, transparent 1px 42px),
    var(--teal-50);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.map-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--teal-900); }
.map-pin { width: 60px; height: 60px; border-radius: 50%; background: var(--white); color: var(--teal-800); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.map-pin svg { width: 30px; height: 30px; }
.map-addr { font-weight: 800; color: var(--teal-900); font-size: 1.05rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--teal-900); color: #cfe1e3; padding-block: 3rem 1.5rem; }
.site-footer a { color: #eaf6f7; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2rem; }
@media (max-width: 820px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color:#fff; font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .9rem; }
.footer-grid ul { list-style:none; padding:0; display:grid; gap:.5rem; }
.footer-grid a { text-decoration: none; opacity: .9; }
.footer-grid a:hover { opacity: 1; text-decoration: underline; }
.footer-logo { height: 46px; width: auto; margin-bottom: .9rem; filter: brightness(0) invert(1); opacity: .95; }
.footer-note { font-size: .9rem; opacity: .85; }
.footer-bottom { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.14); display:flex; flex-wrap:wrap; gap:.6rem 1.4rem; justify-content: space-between; font-size:.85rem; opacity:.85; }
.badges { display:flex; flex-wrap:wrap; gap:.6rem; margin-top: 1rem; }
.badge {
  display:inline-flex; align-items:center; gap:.4rem;
  background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16);
  padding:.4rem .7rem; border-radius: 8px; font-size:.78rem; font-weight:700; color:#eaf6f7;
}

/* ---------- misc ---------- */
.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; }
.skip-link { position:absolute; left:-9999px; top:0; background:#fff; color: var(--teal-900); padding:.7rem 1rem; z-index:100; border-radius:0 0 8px 0; font-weight:800; }
.skip-link:focus { left:0; }
.pill-nav { display:flex; flex-wrap:wrap; gap:.5rem; justify-content:center; margin-top:1.4rem; }
.pill-nav a { background:#fff; border:1px solid var(--line); border-radius:999px; padding:.5rem 1rem; font-weight:700; text-decoration:none; font-size:.92rem; }
.pill-nav a:hover { background: var(--teal-100); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
  .progress-fill { transition: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .hero-media, .btn, .cta-band, .newsletter, .map-card { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1rem; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
  .ph { display: none !important; }
}

.page-hero { background: linear-gradient(180deg, var(--teal-50), var(--cream)); padding-block: clamp(2.6rem, 2rem + 3vw, 4.5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem); border-bottom: 1px solid var(--line); }
/* keep anchored sections clear of the sticky header */
:target { scroll-margin-top: 90px; }
[id] { scroll-margin-top: 90px; }

.page-hero .eyebrow { margin-bottom: .6rem; }

/* homepage mission: wider, larger heading that fills the space (not capped to body measure) */
.mission .mission-h {
  max-width: 16em; margin-inline: auto;
  font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem);
  line-height: 1.14;
}
.page-hero p { color: var(--muted); }

/* ============================================================
   Round 2 additions: dropdown nav, newsletter, progress bar,
   FAQ accordion, events, ways-to-give, prose pages
   ============================================================ */

/* ---- dropdown navigation ---- */
.nav-links .has-menu { position: relative; }
.nav-links .menu-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  background: none; border: 0; cursor: pointer; font: inherit;
  padding: .55rem .8rem; border-radius: 8px;
  font-weight: 700; color: var(--teal-900); font-size: .98rem;
}
.nav-links .menu-btn:hover, .nav-links .has-menu[aria-expanded="true"] .menu-btn { background: var(--teal-100); }
.nav-links .menu-btn .caret { width: 14px; height: 14px; transition: transform .18s var(--ease); }
.nav-links .has-menu[aria-expanded="true"] .menu-btn .caret { transform: rotate(180deg); }
.submenu {
  list-style: none; margin: 0; padding: .4rem;
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
  z-index: 60;
}
.nav-links .has-menu:hover .submenu,
.nav-links .has-menu[aria-expanded="true"] .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; padding: .6rem .8rem; border-radius: 8px; text-decoration: none; color: var(--teal-900); font-weight: 700; font-size: .95rem; }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--teal-100); }
.submenu .sub-note { display:block; font-weight: 400; font-size: .8rem; color: var(--muted); margin-top: .1rem; }

@media (max-width: 1080px) {
  .nav-links .has-menu { width: 100%; }
  .nav-links .menu-btn { width: 100%; justify-content: space-between; padding: .8rem .6rem; font-size: 1.05rem; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--teal-100);
    border-radius: 0; margin: 0 0 .3rem .6rem; padding: 0 0 0 .4rem;
    display: none; min-width: 0;
  }
  .nav-links .has-menu[aria-expanded="true"] .submenu { display: block; }
  .nav-links .has-menu:hover .submenu { display: none; } /* hover shouldn't open on touch */
  .nav-links .has-menu[aria-expanded="true"]:hover .submenu { display: block; }
}

/* ---- partner progress bar ---- */
.progress-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1.8rem; box-shadow: var(--shadow-sm); }
.progress-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .4rem; margin-bottom: .8rem; }
.progress-top .big { font-family: var(--font-display); font-size: 1.5rem; color: var(--teal-900); }
.progress-top .goal { color: var(--muted); font-weight: 700; }
.progress-track { height: 16px; border-radius: 999px; background: var(--teal-100); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--teal-600), var(--teal-800)); width: 0; transition: width 1.4s var(--ease); }
.progress-meta { margin-top: .7rem; color: var(--muted); font-size: .92rem; }

/* ---- newsletter ---- */
.newsletter { background: linear-gradient(135deg, var(--teal-700), var(--teal-900)); color: #eaf6f7; border-radius: var(--radius-lg); padding: clamp(1.6rem, 1.2rem + 2vw, 2.6rem); }
.newsletter h3 { color: #fff; }
.newsletter p { color: #d3e7e9; }
.news-form { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.news-form input[type=email] {
  flex: 1 1 220px; min-width: 0; padding: .85rem 1rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff; font: inherit;
}
.news-form input[type=email]::placeholder { color: #cfe6e8; }
.news-form input[type=email]:focus-visible { outline: 3px solid var(--gold); background: rgba(255,255,255,.2); }
.news-note { font-size: .82rem; color: #bcd9dc; margin-top: .6rem; }

/* footer newsletter compact */
.footer-news input[type=email] { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); }

/* ---- FAQ accordion ---- */
.faq { max-width: 780px; margin-inline: auto; display: grid; gap: .8rem; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 0 1.2rem; box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 0; font-family: var(--font-display); font-size: 1.1rem; color: var(--teal-900); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 24px; height: 24px; position: relative; transition: transform .2s var(--ease); }
.faq summary .plus::before, .faq summary .plus::after { content:""; position:absolute; background: var(--teal-700); border-radius: 2px; }
.faq summary .plus::before { top: 11px; left: 3px; right: 3px; height: 2px; }
.faq summary .plus::after { left: 11px; top: 3px; bottom: 3px; width: 2px; transition: transform .2s var(--ease); }
.faq details[open] summary .plus::after { transform: scaleY(0); }
.faq details > p, .faq details > ul { color: var(--muted); padding-bottom: 1.2rem; margin-top: -.2rem; }
.faq details > ul { padding-left: 1.2rem; }

/* ---- events / timeline ---- */
.event { display: grid; grid-template-columns: 96px 1fr; gap: 1.2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem; box-shadow: var(--shadow-sm); align-items: center; }
@media (max-width: 560px){ .event { grid-template-columns: 1fr; } }
.event .date { text-align: center; background: var(--teal-50); border-radius: 12px; padding: .8rem .4rem; }
.event .date .m { text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--teal-700); font-size: .8rem; }
.event .date .d { font-family: var(--font-display); font-size: 1.9rem; color: var(--teal-900); line-height: 1; }
.event h3 { margin-bottom: .3rem; }
.event p { color: var(--muted); font-size: .96rem; margin-bottom: .6rem; }

/* ---- ways to give ---- */
.give-way { display: grid; grid-template-columns: 54px 1fr; gap: 1rem; }
.give-way .gw-ico { width: 54px; height: 54px; border-radius: 14px; background: var(--teal-100); color: var(--teal-800); display: grid; place-items: center; }
.give-way .gw-ico svg { width: 28px; height: 28px; }
.give-way h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.give-way p { color: var(--muted); font-size: .95rem; }

/* ---- prose (privacy, beliefs) ---- */
.prose { max-width: 72ch; margin-inline: auto; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.4rem; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.2rem; display: grid; gap: .4rem; }
.prose a { font-weight: 700; }

/* ---- story feature ---- */
.story { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
/* Staff story photos: beside the text on wide screens, stacked on phones. */
.story .story-photo { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; object-position: center 30%; }
@media (min-width: 700px) {
  .story.has-photo { display: grid; grid-template-columns: minmax(230px, 320px) 1fr; align-items: stretch; }
  .story.has-photo .story-photo { height: 100%; max-height: 34rem; align-self: start; }
}
.story .story-body { padding: 1.8rem; }
.story blockquote { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.4; color: var(--teal-900); margin-bottom: 1rem; }
.story .who { color: var(--muted); font-weight: 700; }

/* ============================================================
   Tools package: forms, giving calculator, needs registry,
   trust badge links, honeypot
   ============================================================ */

/* ---- forms ---- */
.form-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.4rem, 1rem + 2vw, 2.2rem);
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 800; font-size: .92rem; color: var(--teal-900); margin-bottom: .35rem; }
.field input[type=text], .field input[type=tel], .field input[type=email],
.field select, .field textarea {
  width: 100%; padding: .75rem .9rem; font: inherit; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--cream);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 1px; background: #fff;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem .9rem; }
@media (max-width: 560px) { .check-grid { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .95rem; color: var(--ink); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--teal-800); flex: none; }
.form-note { font-size: .85rem; color: var(--muted); margin: .4rem 0 1.1rem; }
.form-thanks { font-weight: 700; color: var(--teal-900); font-size: 1.05rem; padding: 1rem 0; }
.form-error { color: #8a2424; font-weight: 700; font-size: .9rem; margin-bottom: .8rem; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---- giving calculator ---- */
.calc {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.4rem, 1rem + 2vw, 2.2rem);
  box-shadow: var(--shadow-md);
}
.calc-amount { font-family: var(--font-display); font-size: clamp(2.4rem, 2rem + 2vw, 3.4rem); color: var(--teal-900); line-height: 1; }
.calc-amount small { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--muted); }
.calc input[type=range] { width: 100%; margin: 1.2rem 0 .4rem; accent-color: var(--cta); height: 34px; }
.calc-scale { display: flex; justify-content: space-between; font-size: .78rem; font-weight: 700; color: var(--muted); margin-bottom: 1rem; }
.calc-impact { background: var(--teal-50); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1rem; }
.calc-impact .ttl { font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--teal-600); margin-bottom: .35rem; }
.calc-impact p { color: var(--teal-900); font-weight: 600; }
.calc-year { color: var(--muted); font-size: .95rem; margin-bottom: 1.2rem; }
.calc-year b { color: var(--teal-900); }

/* ---- needs registry ---- */
.needs-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
@media (max-width: 620px) { .needs-list { grid-template-columns: 1fr; } }
.needs-list li {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: .7rem 1rem .7rem 2.4rem; font-weight: 600; position: relative;
}
.needs-list li::before {
  content: ""; position: absolute; left: .95rem; top: 50%; transform: translateY(-50%);
  width: 9px; height: 9px; border-radius: 50%; background: var(--cta);
}
.needs-updated { font-size: .82rem; color: var(--muted); margin-top: .8rem; }

/* ---- trust badge links ---- */
.badge--link { text-decoration: none; transition: background .15s; }
.badge--link:hover { background: rgba(255,255,255,.18); color: #fff; }
.badge--link .stars { color: var(--gold); letter-spacing: .05em; margin-right: .3rem; }
.trust-strip { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.trust-strip .badge { background: var(--white); border-color: var(--line); color: var(--teal-900); font-size: .85rem; padding: .5rem .9rem; }
.trust-strip .badge--link:hover { background: var(--teal-100); color: var(--teal-900); }

/* ---- modal dialogs (volunteer / prayer forms) ---- */
dialog.modal {
  border: 0; padding: 0; background: transparent;
  max-width: min(640px, calc(100vw - 2rem));
  width: 100%; margin: auto;
}
dialog.modal::backdrop {
  background: rgba(20, 54, 60, .6);
}
.modal-inner {
  position: relative; background: var(--white);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: clamp(1.4rem, 1rem + 2vw, 2.2rem);
  max-height: 85vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: .9rem; right: .9rem;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--cream);
  color: var(--teal-900); font-size: 1.1rem; font-weight: 800;
  cursor: pointer; line-height: 1; display: grid; place-items: center;
}
.modal-close:hover { background: var(--teal-100); }
.modal-inner h3 { margin-bottom: .4rem; padding-right: 2.4rem; }
.modal-inner .modal-sub { color: var(--muted); font-size: .95rem; margin-bottom: 1.2rem; }
