/* =========================================================
   Holy Name Men's Club — Redesign
   Design system: royal blue + gold, warm neutrals
   ========================================================= */

:root {
  /* Brand */
  --blue-900: #0a1f44;
  --blue-800: #0f2a5c;
  --blue-700: #14357a;
  --blue-600: #1c47a0;
  --blue-500: #2a5cc7;
  --blue-100: #e7edf9;
  --blue-050: #f3f6fc;

  --gold-600: #b8860b;
  --gold-500: #d4a017;
  --gold-400: #e6b93a;
  --gold-100: #fbf1d6;

  /* Neutrals */
  --ink: #16202e;
  --slate: #47566b;
  --muted: #6c7a90;
  --line: #e4e8ef;
  --paper: #ffffff;
  --cream: #f7f5f0;
  --cloud: #f4f6fa;

  /* System */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(10, 31, 68, .06), 0 2px 8px rgba(10, 31, 68, .05);
  --shadow-md: 0 6px 18px rgba(10, 31, 68, .09), 0 2px 6px rgba(10, 31, 68, .06);
  --shadow-lg: 0 24px 60px rgba(10, 31, 68, .16);
  --container: 1160px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;

  /* Header height grows with the viewport. Declared once because the mobile
     nav drawer is positioned off it — the two must never drift apart. */
  --nav-h: clamp(74px, calc(52px + 2.6vw), 92px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--blue-900);
}

p { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--gold-500);
  border-radius: 2px;
}

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--cream { background: var(--cream); }
.section--cloud { background: var(--cloud); }
.section--navy { background: var(--blue-900); color: #dbe4f5; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }

.section-head { max-width: 660px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin: 14px 0 16px;
}
.section-head p { color: var(--slate); font-size: 1.1rem; margin: 0; }
.section--navy .section-head p { color: #aab8d4; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--gold { background: var(--gold-500); color: var(--blue-900); box-shadow: 0 8px 22px rgba(212, 160, 23, .35); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(212, 160, 23, .45); background: var(--gold-400); }
.btn--blue { background: var(--blue-700); color: #fff; box-shadow: 0 8px 22px rgba(20, 53, 122, .3); }
.btn--blue:hover { transform: translateY(-2px); background: var(--blue-600); }
.btn--ghost { background: transparent; color: var(--blue-800); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue-500); color: var(--blue-700); background: var(--blue-050); }
.btn--light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(4px); }
.btn--light:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.brand { display: flex; align-items: center; gap: 13px; }
/* Scales with the viewport: unchanged at phone sizes, noticeably larger on
   desktop. Growth is gentle around 900–1100px, where the nav row is tightest. */
.brand-logo { height: clamp(47px, calc(30px + 2.2vw), 64px); width: auto; display: block; }
.site-footer .brand-logo { height: 40px; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 4px; }
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--blue-700), var(--blue-900));
  display: grid; place-items: center;
  color: var(--gold-400);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255,255,255,.15);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.06rem; color: var(--blue-900); }
.brand-sub { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 15px;
  border-radius: 9px;
  font-weight: 500;
  font-size: .96rem;
  color: var(--slate);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--blue-700); background: var(--blue-050); }
.nav-links a.active { color: var(--blue-800); font-weight: 600; }
.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none;
  background: none; border: none;
  width: 44px; height: 44px;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block;
  width: 22px; height: 2px;
  background: var(--blue-900);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span::before { transform: translateY(-7px); }
.nav-toggle span::after { transform: translateY(5px); }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: rotate(45deg); }
.nav-toggle.open span::after { transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(212,160,23,.16), transparent 60%),
    linear-gradient(160deg, rgba(10,31,68,.95) 0%, rgba(15,42,92,.90) 50%, rgba(12,36,80,.95) 100%),
    url("assets/photo-1.jpg") center 30% / cover no-repeat;
  color: #eaf0fb;
  overflow: hidden;
  padding: 96px 0 108px;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .5;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  font-size: .8rem; font-weight: 600; letter-spacing: .06em;
  color: #f2d98c;
  margin-bottom: 26px;
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-400); box-shadow: 0 0 0 4px rgba(230,185,58,.22); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 5.6vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--gold-400); font-style: italic; }
.hero-lead { font-size: 1.22rem; color: #c3d0ea; max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}
.hero-card h3 { color: #fff; font-size: 1.25rem; margin-bottom: 6px; }
.hero-card .sub { color: #aab8d4; font-size: .92rem; margin-bottom: 20px; }
.progress {
  height: 12px; border-radius: 999px;
  background: rgba(255,255,255,.14);
  overflow: hidden;
  margin-bottom: 14px;
}
.progress > span {
  display: block; height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
  transition: width 1.6s var(--ease);
}
.progress-legend { display: flex; justify-content: space-between; font-size: .86rem; color: #c3d0ea; margin-bottom: 24px; }
.progress-legend strong { color: #fff; font-family: var(--serif); font-size: 1.05rem; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mini-stat { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-sm); padding: 14px 16px; }
.mini-stat .n { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-400); font-weight: 600; }
/* A word instead of a figure — needs to fit the half-width tile without wrapping. */
.mini-stat .n--word { font-size: 1.2rem; line-height: 1.3; }
.mini-stat .l { font-size: .8rem; color: #aab8d4; }

/* trust bar */
.trust {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 56px;
  padding-top: 26px;
  display: flex; align-items: center; gap: 30px; flex-wrap: wrap;
  position: relative; z-index: 2;
}
.trust .label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #8ea3c9; font-weight: 600; }
.trust .items { display: flex; gap: 26px; flex-wrap: wrap; color: #b9c6e2; font-weight: 500; font-size: .95rem; }

/* ---------- Stat band ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat {
  text-align: center;
  padding: 28px 16px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.stat .num { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3rem); color: var(--blue-800); font-weight: 600; line-height: 1; }
.stat .num .u { color: var(--gold-600); }
.stat .lbl { margin-top: 10px; color: var(--slate); font-weight: 500; font-size: .96rem; }

/* ---------- Cards / features ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.card .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--blue-050);
  color: var(--blue-700);
  margin-bottom: 20px;
}
.card .icon svg { width: 26px; height: 26px; }
.card.gold .icon { background: var(--gold-100); color: var(--gold-600); }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--slate); margin: 0; }

/* ---------- Split / media ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, var(--blue-700), var(--blue-900));
}
.split-media .ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(255,255,255,.35);
  text-align: center; padding: 30px;
  font-family: var(--serif); font-size: 1.1rem;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
figure.split-media { margin: 0; }
.split-media.portrait img { object-position: center 30%; }
.split-media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 22px 15px;
  background: linear-gradient(transparent, rgba(10,31,68,.35) 35%, rgba(10,31,68,.9));
  color: #eaf0fb;
  font-family: var(--sans);
  font-size: .9rem;
  text-align: center;
  letter-spacing: .01em;
}

/* Campaign card logo */
.card-logo { width: 100%; max-width: 300px; height: auto; display: block; margin: 4px auto 20px; }

/* Inline brand lockup for content sections */
.logo-inline { height: 76px; width: auto; display: block; margin-bottom: 22px; }
.section--navy .logo-inline, .cta .logo-inline { margin-inline: auto; }
.split h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 18px; }
.split p { color: var(--slate); font-size: 1.06rem; }

.feature-list { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 13px; align-items: flex-start; color: var(--ink); }
.feature-list .tick {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue-050); color: var(--blue-700);
  display: grid; place-items: center; margin-top: 2px;
}
.feature-list .tick svg { width: 14px; height: 14px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 780px; margin: 0 auto; padding-left: 8px; }
.timeline::before {
  content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(var(--gold-400), var(--blue-100));
}
.tl-item { position: relative; padding: 0 0 34px 54px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item .yr {
  position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--gold-500);
  display: grid; place-items: center;
  color: var(--gold-600); font-size: .7rem; font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.tl-item h4 { font-family: var(--serif); font-size: 1.2rem; color: var(--blue-800); margin-bottom: 4px; }
.tl-item .yrlabel { font-weight: 700; color: var(--gold-600); font-family: var(--sans); font-size: .85rem; letter-spacing: .05em; margin-bottom: 6px; display: block; }
.tl-item p { color: var(--slate); margin: 0; }

/* ---------- CTA band ---------- */
.cta {
  background:
    radial-gradient(700px 400px at 85% 20%, rgba(212,160,23,.2), transparent 60%),
    linear-gradient(160deg, var(--blue-800), var(--blue-900));
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta h2 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 14px; }
.cta p { color: #c3d0ea; font-size: 1.12rem; max-width: 560px; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Give options ---------- */
.give-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.give {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.give:hover { border-color: var(--blue-100); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.give .num {
  flex: none;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--blue-900); color: var(--gold-400);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700;
}
.give h3 { font-size: 1.14rem; margin-bottom: 5px; }
.give p { color: var(--slate); margin: 0; font-size: .96rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.info-row { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: none; }
.info-row .ic { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--blue-050); color: var(--blue-700); display: grid; place-items: center; }
.info-row .ic svg { width: 22px; height: 22px; }
.info-row .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.info-row .v { font-size: 1.08rem; color: var(--ink); font-weight: 500; }
.info-row a.v:hover { color: var(--blue-700); }

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--blue-800); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px;
  border: 1.5px solid var(--line); border-radius: 11px;
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--cloud);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500); background: #fff;
  box-shadow: 0 0 0 4px rgba(42,92,199,.12);
}
.field textarea { resize: vertical; min-height: 130px; }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  background:
    radial-gradient(800px 400px at 90% -20%, rgba(212,160,23,.14), transparent 60%),
    linear-gradient(160deg, var(--blue-900), var(--blue-800));
  color: #eaf0fb;
  padding: 72px 0 76px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .crumb { font-size: .84rem; color: #8ea3c9; margin-bottom: 18px; }
.page-hero .crumb a:hover { color: var(--gold-400); }
.page-hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 16px; max-width: 760px; }
.page-hero p { color: #c3d0ea; font-size: 1.16rem; max-width: 620px; margin: 0; }

/* ---------- Partners ---------- */
.partners { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.partner-chip {
  padding: 16px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--slate);
  font-weight: 600;
  font-size: .95rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), color .25s, border-color .25s;
}
.partner-chip:hover { transform: translateY(-3px); color: var(--blue-700); border-color: var(--blue-100); }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: #aab8d4; padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: #7f92b8; }
.footer-about { color: #93a4c8; font-size: .96rem; max-width: 320px; margin: 18px 0 0; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-links a { color: #aab8d4; font-size: .96rem; transition: color .2s; }
.footer-links a:hover { color: var(--gold-400); }
.footer-contact { font-size: .96rem; line-height: 1.7; color: #aab8d4; }
.footer-contact a:hover { color: var(--gold-400); }
.social { display: flex; gap: 12px; margin-top: 18px; }
.social a {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.08); display: grid; place-items: center;
  color: #cdd8ee; transition: background .2s, transform .2s;
}
.social a:hover { background: var(--gold-500); color: var(--blue-900); transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 26px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .87rem; color: #7f92b8;
}
.footer-bottom .tax { color: #6f83aa; }

/* ---------- Phase status & fund progress ---------- */
.phase-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 13px 5px 10px;
  border-radius: 999px;
  font-size: .76rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap;
}
.phase-badge svg { width: 13px; height: 13px; }
.phase-badge--funded { background: #e3f5ea; color: #1b7a45; border: 1px solid #b7e3c9; }
.phase-badge--active { background: var(--gold-100); color: #8a6206; border: 1px solid #ecd79a; }
.section--navy .phase-badge--funded, .hero-card .phase-badge--funded { background: rgba(60,200,130,.16); color: #7fe3ab; border-color: rgba(127,227,171,.32); }
.section--navy .phase-badge--active, .hero-card .phase-badge--active { background: rgba(230,185,58,.18); color: var(--gold-400); border-color: rgba(230,185,58,.36); }

/* phase rows inside the campaign card */
.phase-row { margin-bottom: 18px; }
.phase-row:last-child { margin-bottom: 0; }
.phase-row .ph-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.phase-row .ph-name { font-family: var(--serif); font-size: 1.02rem; color: #fff; font-weight: 600; }
.phase-row .ph-amt { font-size: .84rem; color: #aab8d4; }
.phase-row .ph-amt strong { color: #fff; }

.bar { height: 11px; border-radius: 999px; background: rgba(255,255,255,.14); overflow: hidden; }
.bar > span { display: block; height: 100%; width: 0; border-radius: 999px; transition: width 1.5s var(--ease); }
.bar--gold > span { background: linear-gradient(90deg, var(--gold-500), var(--gold-400)); }
.bar--green > span { background: linear-gradient(90deg, #2f9e63, #4ecb8c); }
/* light-background variant */
.bar--light { background: var(--line); }

/* Fund breakdown cards */
.fund { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--paper); box-shadow: var(--shadow-sm); }
.fund h4 { font-family: var(--serif); font-size: 1.14rem; color: var(--blue-900); margin-bottom: 4px; }
.fund .goal { font-family: var(--serif); font-size: 1.7rem; color: var(--gold-600); margin: 6px 0 14px; }
.fund p { color: var(--slate); font-size: .95rem; margin: 12px 0 0; }

/* ---------- Givebutter embed ---------- */
.givebutter-embed {
  max-width: 720px;
  margin: 0 auto;
  min-height: 120px;
  display: flex;
  justify-content: center;
  text-align: center;
}
.givebutter-embed givebutter-widget {
  display: block;
  width: 100%;
  max-width: 540px;
}

/* ---------- Newsletters ---------- */
.nl-loading, .nl-empty { text-align: center; color: var(--muted); padding: 40px 0; font-size: 1.05rem; }

/* Featured current issue */
.nl-featured {
  display: grid;
  grid-template-columns: minmax(0, 340px) 1fr;
  gap: 44px;
  align-items: center;
  margin-bottom: 64px;
}
.nl-featured-cover {
  display: block; border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  aspect-ratio: 3 / 4; background: var(--blue-900);
  transition: transform .3s var(--ease);
}
.nl-featured-cover:hover { transform: translateY(-3px); }
.nl-featured-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.nl-badge {
  display: inline-block; padding: 5px 13px; border-radius: 999px;
  background: var(--gold-100); color: #8a6206; border: 1px solid #ecd79a;
  font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  margin-bottom: 14px;
}
.nl-featured-info .nl-edition { display: block; color: var(--gold-600); font-weight: 700; letter-spacing: .04em; margin-bottom: 6px; }
.nl-featured-info h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 14px; }
.nl-featured-info p { color: var(--slate); font-size: 1.06rem; margin-bottom: 24px; }
.nl-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Archive */
.nl-archive-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 26px;
  border-top: 1px solid var(--line); padding-top: 40px;
}
.nl-archive-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.nl-archive-head .count { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.nl-filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.nl-chip {
  padding: 8px 15px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--slate);
  font-family: var(--sans); font-weight: 600; font-size: .9rem;
  transition: all .2s;
}
.nl-chip:hover { border-color: var(--blue-100); color: var(--blue-700); }
.nl-chip.active { background: var(--blue-800); border-color: var(--blue-800); color: #fff; }
.nl-year {
  padding: 9px 14px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--paper); color: var(--ink); font-family: var(--sans);
  font-size: .92rem; font-weight: 500; cursor: pointer;
}
.nl-year:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(42,92,199,.12); }

.nl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 26px;
}
.nl-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s;
  display: flex; flex-direction: column;
}
.nl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.nl-card-cover { display: block; aspect-ratio: 3 / 4; background: var(--blue-900); overflow: hidden; cursor: pointer; }
.nl-card-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .4s var(--ease); }
.nl-card:hover .nl-card-cover img { transform: scale(1.04); }
.nl-card-body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nl-card-body .nl-edition { font-family: var(--serif); font-size: 1.08rem; color: var(--blue-900); font-weight: 600; }
.nl-card-cat { font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--gold-600); }
.nl-card-actions { display: flex; gap: 8px; margin-top: 12px; }
.nl-card-actions button, .nl-card-actions a {
  flex: 1; text-align: center; padding: 8px 10px; border-radius: 8px;
  font-family: var(--sans); font-weight: 600; font-size: .84rem; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--blue-800);
  transition: all .2s; text-decoration: none;
}
.nl-card-actions .read { background: var(--blue-800); border-color: var(--blue-800); color: #fff; }
.nl-card-actions .read:hover { background: var(--blue-700); }
.nl-card-actions a:hover { border-color: var(--blue-500); color: var(--blue-700); }

/* PDF reader modal */
.nl-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.nl-modal[hidden] { display: none; }
.nl-modal-backdrop { position: absolute; inset: 0; background: rgba(7, 20, 45, .72); backdrop-filter: blur(3px); }
.nl-modal-inner {
  position: relative; z-index: 2; width: min(1000px, 100%); height: 100%;
  max-height: 92vh; display: flex; flex-direction: column;
  background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg);
}
.nl-modal-bar { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--line); }
.nl-modal-title { font-family: var(--serif); font-weight: 600; color: var(--blue-900); flex: 1; font-size: 1.05rem; }
.nl-modal-dl { padding: 8px 16px; font-size: .88rem; }
.nl-modal-close {
  width: 38px; height: 38px; border: none; background: var(--cloud); border-radius: 9px;
  font-size: 1.5rem; line-height: 1; color: var(--slate); cursor: pointer; flex: none;
  transition: background .2s, color .2s;
}
.nl-modal-close:hover { background: var(--blue-050); color: var(--blue-700); }
.nl-modal-frame { flex: 1; width: 100%; border: 0; background: var(--cloud); }

@media (max-width: 720px) {
  .nl-featured { grid-template-columns: 1fr; gap: 26px; }
  .nl-featured-cover { max-width: 260px; margin: 0 auto; }
  .nl-featured-info { text-align: center; }
  .nl-actions { justify-content: center; }
  .nl-archive-head { flex-direction: column; align-items: stretch; }
  .nl-modal { padding: 0; }
  .nl-modal-inner { max-height: 100vh; height: 100vh; border-radius: 0; }
}

/* ---------- Heritage gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.gallery figure {
  margin: 0; position: relative; overflow: hidden;
  border-radius: var(--radius);
  background: #0a1f44;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,.08);
}
.gallery figure img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s var(--ease), filter .4s;
}
.gallery figure:hover img { transform: scale(1.045); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 16px 13px;
  background: linear-gradient(transparent, rgba(7,22,50,.55) 45%, rgba(7,22,50,.94));
  color: #eef2fb; font-size: .84rem; line-height: 1.35;
}
.gallery figcaption b { color: var(--gold-400); font-weight: 600; display: block; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.g-top { grid-column: span 6; height: 400px; }
.g-bot { grid-column: span 3; height: 264px; }
@media (max-width: 900px) {
  .g-top { grid-column: span 12; height: 340px; }
  .g-bot { grid-column: span 6; height: 240px; }
}
@media (max-width: 520px) {
  .g-top, .g-bot { grid-column: span 12; height: 260px; }
}

/* ---------- Reveal animation ---------- */
/* Scoped to .js so content stays visible if JavaScript never runs */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .bar > span, .progress > span { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media { order: 0; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .section { padding: 68px 0; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(14px);
    padding: 16px 20px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-140%);
    transition: transform .38s var(--ease);
    z-index: 55;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 14px; font-size: 1.05rem; }
  .nav-cta { margin: 8px 0 0; justify-content: center; }
  .nav-toggle { display: flex; }
  .give-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .cta { padding: 44px 26px; }
  .trust { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 460px) {
  .stats-band { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
}

/* =========================================================
   Upcoming events — rendered from events.json by main.js
   ========================================================= */
.event-list { display: grid; gap: 14px; max-width: 820px; margin: 0 auto; }

.event-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.event-date {
  flex: none;
  width: 62px;
  text-align: center;
  background: var(--blue-050);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-sm);
  padding: 8px 0;
}
.event-date .m {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-700);
}
.event-date .d {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--blue-900);
}
.event-body { min-width: 0; }
.event-body h3 { margin: 0 0 4px; font-size: 1.12rem; }
.event-body p { margin: 0; }
.event-meta { margin: 0 0 6px !important; color: var(--muted); font-size: .87rem; }
.event-link { display: inline-block; margin-top: 8px; color: var(--blue-700); font-weight: 600; }
.event-link:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .event-item { gap: 14px; padding: 16px; }
  .event-date { width: 54px; }
}