/* ============================================================
   EDMOND FOUNDATION — SHARED STYLES
   Palette: Legacy Navy, Opportunity Gold, Deep Forest,
            Warm Ivory, Charcoal Navy.
   Type:    Cormorant Garamond (display) + Source Sans 3 (body).
   Signature device: the short gold rule that marks every section.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --legacy-navy: #0B1E3A;
  --opportunity-gold: #D4A64A;
  --deep-forest: #465A3A;
  --warm-ivory: #F8F6F1;
  --charcoal-navy: #2B3445;

  /* Derived / support */
  --navy-085: rgba(11, 30, 58, 0.85);
  --navy-070: rgba(11, 30, 58, 0.70);
  --ink: #2B3445;
  --ink-soft: #55606f;
  --white: #ffffff;
  --hairline: #e6e2d8;
  --ivory-2: #f2eee5;
  --gold-tint: rgba(212, 166, 74, 0.12);
  --forest-tint: rgba(70, 90, 58, 0.10);

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;

  --wrap: 1500px;
  --gap: clamp(1.5rem, 4vw, 3.25rem);
  --radius: 8px;

  --shadow-soft: 0 2px 14px rgba(11, 30, 58, 0.07);
  --shadow-lift: 0 10px 34px rgba(11, 30, 58, 0.12);
}

/* ---------- Reset ---------- */
*, *::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;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--warm-ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
/* Safety net: inline icon SVGs render at text scale unless a component sets an
   explicit size. All inline <svg> in this site are icons; media uses <img>. */
svg:not([width]):not([height]) { width: 1.25em; height: 1.25em; }
a { color: var(--legacy-navy); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--deep-forest); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--legacy-navy); font-weight: 600; line-height: 1.14; margin: 0 0 0.5em; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
strong { font-weight: 600; }

/* ---------- Layout helpers ---------- */
/* Single editorial container — one consistent width so every boxed
   section (header, sections, bands, footer) shares the same left/right edge.
   Full-bleed sections (hero, legacy split) intentionally run off the page. */
.wrap { width: min(94vw, 1500px); max-width: 1500px; margin-inline: auto; padding-inline: clamp(24px, 3vw, 48px); }
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

/* Signature gold rule */
.rule { width: 52px; height: 3px; background: var(--opportunity-gold); border: 0; border-radius: 2px; margin: 0 0 1.15rem; }
.center .rule { margin-inline: auto; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--deep-forest);
  margin: 0 0 0.6rem;
}
.section__title { font-size: clamp(1.85rem, 3.6vw, 2.6rem); }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.center .lede { margin-inline: auto; }
#partners .lede { max-width: none; }
.lede--full { max-width: none; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 0; top: 0;
  transform: translateY(-120%);
  background: var(--legacy-navy); color: var(--white);
  padding: 0.7rem 1.1rem; z-index: 1000; border-radius: 0 0 var(--radius) 0;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { transform: translateY(0); color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--sans); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.03em;
  padding: 0.8rem 1.5rem; border-radius: var(--radius); border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--gold { background: var(--opportunity-gold); color: var(--legacy-navy); border-color: var(--opportunity-gold); }
.btn--gold:hover { background: #c99a38; border-color: #c99a38; color: var(--legacy-navy); }

.btn--navy { background: var(--legacy-navy); color: var(--white); border-color: var(--legacy-navy); }
.btn--navy:hover { background: #0f284b; color: var(--white); border-color: #0f284b; }

.btn--navy-outline { background: transparent; color: var(--legacy-navy); border-color: var(--legacy-navy); }
.btn--navy-outline:hover { background: var(--legacy-navy); color: var(--white); }

.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); color: var(--white); border-color: rgba(255,255,255,0.8); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 246, 241, 0.92);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 62px; }
.header-inner .btn--gold { padding: 0.58rem 1.15rem; font-size: 0.85rem; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand__mark { height: 48px; width: auto; }
.brand__word { display: flex; flex-direction: column; align-items: stretch; line-height: 1; }
.brand__name { font-family: var(--serif); font-weight: 700; font-size: 1.28rem; letter-spacing: 0.14em; color: var(--legacy-navy); white-space: nowrap; }
/* Gold tagline lockup: sits directly under the wordmark and is justified so it spans the exact same width. */
.brand__sub { display: block; margin-top: 5px; color: var(--deep-forest); font-family: var(--sans); font-weight: 600; font-size: 0.66rem; letter-spacing: 0; text-transform: none; text-align: justify; text-align-last: justify; line-height: 1.15; white-space: normal; }

/* Nav */
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.nav__list { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 1.9rem); list-style: none; margin: 0; padding: 0; }
.nav__link {
  font-family: var(--sans); font-size: 0.86rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--charcoal-navy); text-decoration: none; padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.nav__link:hover { color: var(--legacy-navy); border-bottom-color: rgba(212,166,74,0.5); }
.nav__link[aria-current="page"] { color: var(--legacy-navy); border-bottom-color: var(--opportunity-gold); }

.nav__toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: transparent; border: 1px solid var(--hairline); border-radius: var(--radius); cursor: pointer;
}
.nav__toggle span { display: block; height: 2px; width: 22px; margin-inline: auto; background: var(--legacy-navy); transition: transform .2s ease, opacity .2s ease; }

/* ---------- Hero (split) ---------- */
.hero { background: var(--warm-ivory); }
/* Left padding aligns the hero text to the same edge as .wrap (header + sections);
   uses 100% (client width) rather than 100vw so a scrollbar can't shift it. */
.hero__inner { display: grid; grid-template-columns: 52fr 48fr; gap: 0; align-items: stretch; padding-left: calc((100% - min(94vw, 1500px)) / 2 + clamp(24px, 3vw, 48px)); }
.hero__text { padding-block: clamp(1.75rem, 4vw, 3.25rem); padding-inline-start: 0; padding-inline-end: clamp(2rem, 5vw, 4.5rem); display: flex; flex-direction: column; justify-content: center; container-type: inline-size; }
/* Headline scales to the column width (cqi). */
.hero__title { font-size: clamp(1.35rem, 7.4cqi, 2.6rem); line-height: 1.04; margin-bottom: 1.35rem; }
.hero__title .nowrap { white-space: nowrap; }
.hero__lede { font-size: 1.2rem; line-height: 1.65; color: var(--ink-soft); max-width: none; margin-bottom: 2rem; }
.hero__tagline { color: var(--legacy-navy); font-size: 1.05rem; margin: 0 0 2rem; }
.hero__text .btn-row { gap: 1rem; margin-bottom: 0.25rem; }
.hero__trust { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 2rem; font-size: 0.82rem; font-style: italic; color: var(--ink-soft); }
.hero__trust::before { content: ""; width: 16px; height: 1px; background: var(--opportunity-gold); display: inline-block; }
.hero__media { position: relative; min-height: 360px; overflow: hidden; border-left: 4px solid var(--opportunity-gold); }
.hero__media img, .hero__media svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Bands ---------- */
.band { padding-block: clamp(3rem, 6vw, 5rem); }
.band--navy { background: var(--legacy-navy); color: rgba(255,255,255,0.82); }
.band--navy h1, .band--navy h2, .band--navy h3 { color: var(--white); }

.band--mission { background: var(--legacy-navy); text-align: center; }
.mission__heading { font-family: var(--serif); font-weight: 600; color: var(--white); font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.25; margin: 0 auto 0.95rem; }
.mission__quote { font-family: var(--sans); font-style: normal; font-weight: 400; color: rgba(255,255,255,0.86); font-size: clamp(1.02rem, 1.35vw, 1.15rem); line-height: 1.75; max-width: none; margin: 0 auto; }

/* Vision pull-quote band (navy, sits directly under the hero) */
.band--vision { text-align: center; }
.band--vision .eyebrow { color: var(--opportunity-gold); }
.band--vision .rule { margin-inline: auto; margin-bottom: 1.4rem; }
.vision__quote { font-family: var(--serif); font-weight: 500; color: var(--white); font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.4; letter-spacing: 0.005em; max-width: none; margin: 0 auto; }
.vision__quote em { color: var(--opportunity-gold); font-style: normal; }

/* Why We Exist — one sentence per line on the navy band */
.why-exist { max-width: none; margin: 0 auto; }
/* Body copy matches .empower__body on the Grantmaking page: inherits the sans
   body face, size, and the navy band's text colour. */
.why-exist p { margin: 0 0 1rem; }
.why-exist p:last-child { margin-bottom: 0; }
.why-exist p.why-exist__gold { font-family: var(--serif); font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.45; color: var(--white); margin-top: 1.1rem; }

/* "Knowledge creates confidence…" approach statement — single line, gold-dot separated */
.approach-statement { max-width: none; margin: 1.8rem auto 0; text-align: center; font-family: var(--sans); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.7; font-size: clamp(0.72rem, 1.05vw, 0.98rem); color: var(--legacy-navy); }
.approach-statement__dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--opportunity-gold); vertical-align: middle; margin: 0 0.85em; position: relative; top: -0.12em; }

/* Empowerment band */
.empower { display: block; text-align: center; }
.empower__content { max-width: none; margin-inline: auto; }
.empower__title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.empower__body { max-width: none; margin: 0; }
.band--navy .eyebrow { color: var(--opportunity-gold); }
.empower .eyebrow { margin-bottom: 0.6rem; }

/* ---------- Grantmaking: investment priority cards ---------- */
.priority-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 1.75rem); align-items: start; }
.priority-card { --card-accent: var(--deep-forest); --card-tint: var(--forest-tint); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); border-top: 3px solid var(--card-accent); padding: clamp(1.6rem, 2.5vw, 2.25rem); text-align: left; }
.priority-card:nth-child(2) { --card-accent: var(--opportunity-gold); --card-tint: var(--gold-tint); }
.priority-card:nth-child(3) { --card-accent: var(--legacy-navy); --card-tint: rgba(11, 30, 58, 0.07); }
.priority-card__icon { width: 60px; height: 60px; margin: 0.25rem auto 0.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--card-tint); color: var(--card-accent); }
.priority-card__icon svg { width: 27px; height: 27px; }
.priority-card h3 { text-align: center; font-size: clamp(1.5rem, 2vw, 1.75rem); margin: 0 0 0.65rem; }
.priority-card h3::after { content: ""; display: block; width: 46px; height: 3px; border-radius: 2px; background: var(--card-accent); margin: 0.6rem auto 0; }
.priority-card p { color: var(--ink-soft); }
.priority-card p.priority-card__lead { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; color: var(--legacy-navy); margin-bottom: 0.7rem; line-height: 1.4; }
.priority-card__examples { margin-top: 1.35rem; background: var(--card-tint); border-radius: var(--radius); padding: 1.1rem 1.2rem 1.25rem; }
.priority-card__examples .priority-card__eg { font-weight: 700; color: var(--card-accent); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; margin: 0 0 0.7rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--card-accent); }
.priority-list { list-style: none; margin: 0; padding: 0; }
.priority-list li { position: relative; padding-left: 1.4rem; margin-bottom: 0.55rem; color: var(--ink); font-size: 0.95rem; }
.priority-list li:last-child { margin-bottom: 0; }
.priority-list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 7px; height: 7px; border-radius: 50%; background: var(--card-accent); }

/* Gold check-mark list */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: 0.7rem; color: var(--ink-soft); line-height: 1.5; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.1em; width: 18px; height: 18px; border-radius: 50%; background: var(--gold-tint); }
.check-list li::after { content: ""; position: absolute; left: 5px; top: 0.34em; width: 7px; height: 4px; border-left: 2px solid var(--opportunity-gold); border-bottom: 2px solid var(--opportunity-gold); transform: rotate(-45deg); }

/* Two-column list layout */
.two-col-lists { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }

/* Impact placeholder cards (ready to accept future content) */
.placeholder-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 1.75rem); }
.placeholder-card { border: 1.5px dashed var(--hairline); border-radius: var(--radius); background: var(--white); padding: 1.85rem 1.5rem; text-align: center; }
.placeholder-card .ph-tag { display: inline-block; font-family: var(--sans); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.7rem; color: var(--deep-forest); background: var(--gold-tint); padding: 0.28rem 0.7rem; border-radius: 999px; margin-bottom: 0.75rem; }
.placeholder-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* Give: Ways to Give cards */
.ways-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(0.85rem, 1.5vw, 1.25rem); }
.ways-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); border-top: 3px solid var(--opportunity-gold); padding: 1.6rem 1rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.7rem; }
.ways-card__icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-tint); color: var(--legacy-navy); }
.ways-card__icon svg { width: 24px; height: 24px; }
.ways-card h3 { font-size: 1rem; margin: 0; line-height: 1.3; }
@media (max-width: 900px) { .ways-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ways-grid { grid-template-columns: 1fr; } }

/* ---------- Impact preview cards ---------- */
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 1.75rem); }
.impact-card {
  background: var(--white); border-radius: var(--radius); padding: 2.25rem 1.75rem; text-align: center;
  box-shadow: var(--shadow-soft); border-top: 3px solid var(--deep-forest);
}
.impact-card:nth-child(2) { border-top-color: var(--opportunity-gold); }
.impact-card:nth-child(3) { border-top-color: var(--legacy-navy); }
.impact-card__icon { width: 56px; height: 56px; margin: 0 auto 1.1rem; display: grid; place-items: center; border-radius: 50%; background: var(--ivory-2); color: var(--deep-forest); }
.impact-card:nth-child(2) .impact-card__icon { color: #b5892f; }
.impact-card:nth-child(3) .impact-card__icon { color: var(--legacy-navy); }
.impact-card__icon svg { width: 26px; height: 26px; }
.impact-card h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.impact-card p { font-size: 0.98rem; color: var(--ink-soft); margin: 0; }

/* ---------- Legacy split ---------- */
.legacy { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; background: var(--white); }
.legacy__media { position: relative; min-height: 360px; overflow: hidden; }
.legacy__media img, .legacy__media svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.legacy__body { padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 3.5rem); display: flex; flex-direction: column; justify-content: center; }
.legacy__body h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
/* Our Story photo: show the full photo (no crop), centered, over a soft
   blurred backdrop of the same image so there is no empty gap underneath. */
.legacy--natural .legacy__media { background: var(--ivory-2); }
.legacy--natural .legacy__media::before { content: ""; position: absolute; inset: 0; background: url("../images/edmond-family-heritage.jpg") center / cover no-repeat; filter: blur(30px) brightness(0.92); transform: scale(1.2); }
.legacy--natural .legacy__media img { object-fit: contain; z-index: 1; }

/* ---------- Partnering columns ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.partner { border-top: 1px solid var(--hairline); padding-top: 1.5rem; }
.partner__icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 1rem; color: var(--white); }
.partner--forest .partner__icon { background: var(--deep-forest); }
.partner--navy .partner__icon { background: var(--legacy-navy); }
.partner--gold .partner__icon { background: var(--opportunity-gold); color: var(--legacy-navy); }
.partner__icon svg { width: 28px; height: 28px; }
.partner h3 { font-size: 1.3rem; margin-bottom: 0.35rem; }
.partner--forest h3 { color: var(--deep-forest); }
.partner--gold h3 { color: #a97f28; }
.partner p { color: var(--ink-soft); font-size: 0.98rem; }
.partner__link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; }
.partner__link:hover { gap: 0.65rem; }
.partner--forest .partner__link { color: var(--legacy-navy); }
.partner--gold .partner__link { color: #a97f28; }

/* ---------- Foundation updates (news preview) ---------- */
.updates-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 1.75rem); }
.update-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; }
.update-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--ivory-2); overflow: hidden; }
.update-card__media img, .update-card__media svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.update-card__cat { position: absolute; top: 0.75rem; left: 0.75rem; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--legacy-navy); color: var(--white); }
.update-card__cat svg { width: 17px; height: 17px; }
.update-card__body { padding: 1.35rem 1.35rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.update-card__body h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.update-card__body p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 1rem; }
.update-card__link { margin-top: auto; display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; color: var(--legacy-navy); align-self: flex-start; }
.update-card__link:hover { gap: 0.65rem; color: var(--deep-forest); }
/* Constrain inline arrow glyphs so they never expand to the SVG default box */
.update-card__link svg, .partner__link svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Photo gallery / carousel */
.photo-gallery { margin: 0 auto; max-width: 940px; }
.photo-gallery__caption { margin: 1.2rem auto 0; max-width: 62ch; text-align: center; font-family: var(--sans); font-size: 0.95rem; font-style: italic; line-height: 1.65; color: var(--ink-soft); }

.carousel { position: relative; margin: 0 auto; }
.carousel__viewport { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-soft); background: var(--legacy-navy); aspect-ratio: 3 / 2; }
.carousel__track { display: flex; height: 100%; margin: 0; padding: 0; list-style: none; transition: transform 0.5s ease; }
.carousel__slide { flex: 0 0 100%; min-width: 0; }
.carousel__slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.carousel__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(255,255,255,0.92); color: var(--legacy-navy); box-shadow: var(--shadow-soft); transition: background 0.2s ease; }
.carousel__arrow:hover { background: #fff; }
.carousel__arrow svg { width: 22px; height: 22px; }
.carousel__arrow--prev { left: 0.75rem; }
.carousel__arrow--next { right: 0.75rem; }
.carousel__dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.9rem; }
.carousel__dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: var(--hairline); transition: background 0.2s ease, transform 0.2s ease; }
.carousel__dot[aria-current="true"] { background: var(--opportunity-gold); transform: scale(1.15); }

/* No-JS fallback: show both photos stacked, hide controls */
.no-js .carousel__viewport { aspect-ratio: auto; overflow: visible; }
.no-js .carousel__track { flex-direction: column; height: auto; }
.no-js .carousel__slide { flex: 0 0 auto; }
.no-js .carousel__slide img { height: auto; }
.no-js .carousel__slide + .carousel__slide { margin-top: 0.5rem; }
.no-js .carousel__arrow, .no-js .carousel__dots { display: none; }

@media (prefers-reduced-motion: reduce) { .carousel__track { transition: none; } }

/* Honest empty state */
.empty-note {
  margin-top: 2rem; text-align: center; background: var(--ivory-2);
  border: 1px dashed #d8d2c4; border-radius: var(--radius); padding: 1.5rem;
  color: var(--ink-soft); font-size: 0.98rem;
}

/* ---------- Donate CTA band (gold) ---------- */
.band--donate { background: var(--opportunity-gold); }
.donate-cta { display: grid; grid-template-columns: 1fr auto; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.donate-cta h2 { color: var(--legacy-navy); font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.donate-cta p { color: rgba(11,30,58,0.78); max-width: none; margin: 0; }
.donate-cta__actions { display: flex; flex-direction: column; gap: 0.75rem; min-width: 190px; }

/* ---------- Footer ---------- */
.site-footer { background: #07131f; color: rgba(255,255,255,0.62); padding-block: clamp(3rem, 5vw, 4rem) 1.75rem; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.1fr; gap: clamp(1.5rem, 3vw, 2.75rem); padding-bottom: 2.25rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand__logo { height: 108px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.92rem; line-height: 1.65; margin-bottom: 1rem; }
.footer-tagline { font-family: var(--serif); font-style: italic; font-size: 1.02rem; color: var(--opportunity-gold); }
.footer-col h4 { color: rgba(255,255,255,0.5); font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { color: rgba(255,255,255,0.62); text-decoration: none; font-size: 0.95rem; }
.footer-col a:hover { color: var(--white); }
.footer-col a[data-donate] { color: var(--opportunity-gold); font-weight: 600; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-top: 1.5rem; }
.footer-bottom p { margin: 0; font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.footer-badge { border: 1px solid rgba(255,255,255,0.18); border-radius: 4px; padding: 0.3rem 0.8rem; font-size: 0.72rem; letter-spacing: 0.06em; color: rgba(255,255,255,0.55); }

/* ---------- Interior page hero ---------- */
.page-hero { background: var(--legacy-navy); color: rgba(255,255,255,0.8); padding-block: clamp(3rem, 6vw, 5rem); }
.page-hero .rule { margin-bottom: 1rem; }
.page-hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.4vw, 3.2rem); margin-bottom: 0.5rem; }
.page-hero p { max-width: none; margin: 0; font-size: 1.12rem; }
.page-hero__eyebrow { color: var(--opportunity-gold); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.6rem; }

/* ---------- Prose ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.25rem; }
.prose h3 { font-size: 1.3rem; margin-top: 1.75rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.5rem; }
.prose--split { max-width: none; }

/* Review banner (privacy/accessibility drafts) */
.review-banner {
  background: #fdf6e3; border: 1px solid #e8d9a8; border-left: 4px solid var(--opportunity-gold);
  border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 2rem; color: #6b551d; font-size: 0.96rem;
}

/* ---------- About: values + leadership ---------- */
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.25rem, 2.5vw, 1.75rem); }
.value { background: var(--white); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-soft); border-left: 3px solid var(--opportunity-gold); }
.value h3 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.value p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
/* Mission/Vision cards: label matches Core Values titles; statement matches Our Story body */
.value .eyebrow { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--legacy-navy); text-transform: none; letter-spacing: normal; line-height: 1.2; margin-bottom: 0.35rem; }
.value .statement { font-family: var(--sans); font-size: 1.0625rem; font-weight: 400; color: var(--ink); line-height: 1.7; }

.leaders { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.leader { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; display: flex; flex-direction: column; }
.leader__head { display: flex; gap: 1rem; align-items: center; padding: 1.5rem 1.5rem 0; }
.leader__photo { width: 84px; height: 84px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--legacy-navy); color: var(--opportunity-gold); font-family: var(--serif); font-size: 1.7rem; font-weight: 700; border: 2px solid var(--opportunity-gold); overflow: hidden; }
.leader__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.leader__name { margin: 0; font-size: 1.4rem; }
.leader__role { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--deep-forest); }
.leader__bio { padding: 1.25rem 1.5rem 1.75rem; }
.leader__bio p { font-size: 0.97rem; color: var(--ink-soft); }
.leader__bio p:last-child { margin-bottom: 0; }

/* ---------- Impact page: program blocks ---------- */
.program { display: grid; grid-template-columns: 220px 1fr; gap: clamp(1.25rem, 3vw, 2.5rem); padding-block: clamp(1.75rem, 3vw, 2.5rem); border-top: 1px solid var(--hairline); }
.program:first-of-type { border-top: 0; }
.program__label { }
.program__label .rule { margin-bottom: 0.75rem; }
.program__label h3 { font-size: 1.5rem; }
.program__icon { width: 46px; height: 46px; border-radius: 50%; background: var(--forest-tint); color: var(--deep-forest); display: grid; place-items: center; margin-bottom: 0.85rem; }
.program__icon svg { width: 24px; height: 24px; }
.program__body p { margin-bottom: 0.5rem; }
.program__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; padding: 0; list-style: none; }
.pill { font-size: 0.78rem; letter-spacing: 0.02em; color: var(--charcoal-navy); background: var(--ivory-2); border: 1px solid var(--hairline); border-radius: 999px; padding: 0.28rem 0.7rem; }

/* Callout / status blocks */
.callout { background: var(--white); border-radius: var(--radius); padding: 1.5rem 1.75rem; box-shadow: var(--shadow-soft); border-left: 3px solid var(--legacy-navy); }
.callout--gold { border-left-color: var(--opportunity-gold); }
.callout--forest { border-left-color: var(--deep-forest); }
.callout h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.callout p:last-child { margin-bottom: 0; }

/* Partners (impact page) */
.partner-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.partner-slot { aspect-ratio: 3 / 2; border: 1px dashed #d8d2c4; border-radius: var(--radius); display: grid; place-items: center; color: #a9a294; font-size: 0.82rem; background: var(--ivory-2); text-align: center; padding: 0.5rem; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.form { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: clamp(1.5rem, 3vw, 2.25rem); }
.form-field { margin-bottom: 1.15rem; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--charcoal-navy); margin-bottom: 0.4rem; }
.form-field .req { color: #a4552f; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 0.7rem 0.85rem; border: 1px solid #d5cfc2; border-radius: var(--radius); background: var(--warm-ivory);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--legacy-navy); box-shadow: 0 0 0 3px rgba(11,30,58,0.12);
}
.form-field.invalid input, .form-field.invalid select, .form-field.invalid textarea { border-color: #b4472a; box-shadow: 0 0 0 3px rgba(180,71,42,0.12); }
.form-field .hint { font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Honeypot — hidden from everyone; bots fill it, humans never see it */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: 0.85rem; color: var(--ink-soft); background: var(--ivory-2); border-radius: var(--radius); padding: 0.85rem 1rem; margin-top: 0.5rem; border-left: 3px solid var(--deep-forest); }
.form-status { margin-top: 1rem; padding: 0.85rem 1rem; border-radius: var(--radius); font-size: 0.95rem; display: none; }
.form-status.is-visible { display: block; }
.form-status--success { background: #eef6ee; border: 1px solid #cfe6cf; color: #285b2c; }
.form-status--error { background: #fdecea; border: 1px solid #f2c9c1; color: #8f2f1c; }
.form-status--info { background: #fbf6e7; border: 1px solid #e8d9a8; color: #6b551d; }

.contact-aside h3 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.contact-aside .rule { margin-bottom: 0.9rem; }
.contact-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.contact-list li { margin-bottom: 0.85rem; padding-left: 1.6rem; position: relative; color: var(--ink-soft); }
.contact-list li svg { position: absolute; left: 0; top: 3px; width: 18px; height: 18px; color: var(--deep-forest); }

/* ---------- Donate page ---------- */
.give-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem 1.5rem; list-style: none; padding: 0; margin: 0; }
.give-grid li { padding-left: 1.5rem; position: relative; color: var(--ink-soft); }
.give-grid li::before { content: ""; position: absolute; left: 0; top: 0.65rem; width: 8px; height: 8px; border-radius: 50%; background: var(--opportunity-gold); }
.funds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.85rem; list-style: none; padding: 0; margin: 0; }
.fund { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 0.9rem 1.1rem; font-weight: 600; color: var(--legacy-navy); border-left: 3px solid var(--deep-forest); }
.fund:nth-child(even) { border-left-color: var(--opportunity-gold); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--legacy-navy); color: var(--white); display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  box-shadow: var(--shadow-lift);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Focus visibility ---------- */
:focus-visible { outline: 3px solid var(--opportunity-gold); outline-offset: 2px; border-radius: 2px; }
.band--navy :focus-visible, .band--mission :focus-visible, .page-hero :focus-visible, .site-footer :focus-visible, .band--donate :focus-visible { outline-color: var(--white); }

/* ---------- Utilities ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; padding-left: 0; }
  .hero__media { order: -1; min-height: 300px; border-left: 0; border-bottom: 3px solid var(--opportunity-gold); }
  .hero__text { padding-inline: clamp(24px, 6vw, 44px); padding-block: clamp(2.5rem, 7vw, 3.75rem); }
  .legacy { grid-template-columns: 1fr; }
  .legacy__media { min-height: 280px; }
  .impact-grid, .updates-grid, .partner-grid, .priority-grid, .two-col-lists, .placeholder-grid { grid-template-columns: 1fr; }
  .values-grid, .leaders { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .donate-cta { grid-template-columns: 1fr; }
  .donate-cta__actions { min-width: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .program { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav__toggle { display: flex; }
  .nav__list {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--warm-ivory); border-bottom: 1px solid var(--hairline);
    padding: 0.5rem clamp(1.15rem, 4vw, 2.5rem) 1rem; box-shadow: var(--shadow-soft);
    display: none;
  }
  .nav__list.is-open { display: flex; }
  .nav__list li { width: 100%; }
  .nav__link { display: block; width: 100%; padding: 0.75rem 0; border-bottom: 1px solid var(--hairline); }
  .nav__link[aria-current="page"] { border-bottom-color: var(--opportunity-gold); }
  .nav .btn--gold { margin-top: 0.75rem; }
  .nav { gap: 0.75rem; }
}

@media (max-width: 560px) {
  .hero__text .btn-row { flex-direction: column; align-items: stretch; }
  .hero__text .btn-row .btn { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .give-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand__sub { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  /* Keep the emblem + wordmark + menu button on one line at phone widths */
  .brand__mark { height: 40px; }
  .brand { gap: 0.5rem; }
  .brand__name { font-size: 0.98rem; letter-spacing: 0.06em; }
}
@media (max-width: 360px) {
  .brand__name { font-size: 0.86rem; letter-spacing: 0.04em; }
  .brand__mark { height: 36px; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .to-top, .band--donate, .nav__toggle { display: none; }
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
}

/* ============================================================
   UTILITY CLASSES
   These replace inline style attributes so the site can ship a
   strict Content-Security-Policy with no 'unsafe-inline'.
   ============================================================ */
.u-mt-16 { margin-top: 1rem; }
.u-mt-24 { margin-top: 1.5rem; }
.u-mt-32 { margin-top: 2rem; }
.u-mt-36 { margin-top: 2.25rem; }
.u-mt-40 { margin-top: 2.5rem; }
.u-mt-44 { margin-top: 2.75rem; }
.u-mb-12 { margin-bottom: 0.75rem; }
.u-mb-16 { margin-bottom: 1rem; }
.u-pad-36 { padding: 2.25rem; }
.u-soft { color: var(--ink-soft); }
.u-ink { color: var(--ink); }
.u-opt { color: var(--ink-soft); font-weight: 400; }
.u-fs-15 { font-size: 0.95rem; }
.u-fs-19 { font-size: 1.2rem; }
.u-h3-lg { font-size: 1.4rem; }
.u-mw { max-width: 70ch; }
.u-jc-center { justify-content: center; }
.u-bg-white { background: var(--white); }
.u-bg-ivory { background: var(--ivory-2); }
.statement { font-family: var(--serif); font-size: 1.35rem; color: var(--legacy-navy); line-height: 1.4; margin: 0; }
.statement-sm { font-family: var(--serif); font-size: 1.4rem; color: var(--legacy-navy); margin-bottom: 0.5rem; }
.value--navy { border-left-color: var(--legacy-navy); }
.grid-2, .stack-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.give-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 760px) { .grid-2, .stack-cards, .give-split { grid-template-columns: 1fr; } }
