/* ==========================================================================
   LIVING UNIFIED — Design System
   Palette + type pulled directly from the client's own master-plan brand
   mark (deep pine, ink navy, sand, gold) rather than a generic template.
   Signature motif: the "wayfinding tag" — a pill label with a leader stub,
   lifted from their campus map graphic and reused across the site as
   eyebrows, callouts, and nav state.
   ========================================================================== */

:root {
  /* Color tokens */
  --ink: #16283D;         /* headlines, primary text */
  --ink-soft: #45566B;    /* secondary body text */
  --pine: #1F4032;        /* primary brand green — buttons, accents */
  --pine-dark: #12261D;   /* deep band backgrounds */
  --sand: #F1EBDD;        /* warm cream background */
  --paper: #FBF9F4;       /* off-white background */
  --gold: #C79A46;        /* accent — rules, tags, labels */
  --gold-light: #E7CE9C;
  --line: rgba(22, 40, 61, 0.12);
  --white: #ffffff;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.4em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1.05; font-weight: 500; }
h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.15; }
h3 { font-size: 1.4rem; line-height: 1.3; }

p { margin: 0 0 1em; color: var(--ink-soft); }
.lede { font-size: 1.2rem; }

/* Eyebrow / wayfinding tag — the signature component -------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pine);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 16px 7px 14px;
  border-radius: 999px 999px 999px 4px;
  white-space: nowrap;
}
.tag--gold { background: var(--gold); color: var(--pine-dark); }
.tag--outline { background: transparent; color: var(--pine); border: 1px solid var(--pine); }
.tag--light { background: rgba(255,255,255,0.14); color: var(--white); }

.tag-stub {
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 6px;
}

.eyebrow-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.btn--gold { background: var(--gold); color: var(--pine-dark); }
.btn--gold:hover { background: var(--gold-light); }

.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn--outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn--outline-dark { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline-dark:hover { background: var(--white); border-color: var(--ink); }

.btn--pine { background: var(--pine); color: var(--white); }
.btn--pine:hover { background: var(--pine-dark); }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }

.site-header.is-scrolled {
  background: var(--paper);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--pine);
  display: flex; align-items: center; justify-content: center;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-word {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}
.site-header.is-scrolled .brand-word,
.site-header.is-scrolled .nav-links a { color: var(--ink); }
.brand-word { color: var(--white); }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-links a:hover { border-color: var(--gold); }
.nav-links a[aria-current="page"] { border-color: var(--gold); color: var(--gold-light); }
.site-header.is-scrolled .nav-links a[aria-current="page"] { color: var(--pine); border-color: var(--gold); }
.nav-cta { display: flex; align-items: center; gap: 22px; }

.nav-toggle { display: none; }

/* Hero ---------------------------------------------------------------------*/
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--pine-dark) 0%, var(--pine) 62%, #2b5340 100%);
  overflow: hidden;
  padding-top: 110px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 82% 18%, rgba(199,154,70,0.28), transparent 45%),
                     radial-gradient(circle at 8% 88%, rgba(199,154,70,0.16), transparent 40%);
  pointer-events: none;
}
.hero-tree {
  position: absolute;
  right: -6%;
  bottom: -8%;
  width: 620px;
  max-width: 55vw;
  opacity: 0.16;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero .tag { margin-bottom: 26px; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero p.lede { color: rgba(255,255,255,0.86); max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-scroll {
  position: absolute;
  bottom: 34px; left: 32px;
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-scroll .line { width: 34px; height: 1px; background: rgba(255,255,255,0.5); }

/* Pillars strip -------------------------------------------------------------*/
.pillars {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}
.pillars .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.pillar {
  padding: 30px 26px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pillar:first-child { border-left: none; }
.pillar-icon { color: var(--pine); }
.pillar-icon svg { width: 26px; height: 26px; }
.pillar h4 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}

/* Section rhythm ------------------------------------------------------------*/
section { padding: 108px 0; }
.section--tight { padding: 84px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* The Need ------------------------------------------------------------------*/
.need {
  background: var(--paper);
}
.need .grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.need-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.9rem;
  line-height: 1.35;
  color: var(--pine);
  border-left: 3px solid var(--gold);
  padding-left: 28px;
}
.need-body p { font-size: 1.05rem; }
.need-body .stat-row { display: flex; gap: 40px; margin-top: 34px; }
.stat { }
.stat .num { font-family: var(--font-display); font-size: 2.4rem; color: var(--pine); display: block; }
.stat .label { font-size: 0.82rem; color: var(--ink-soft); letter-spacing: 0.02em; }

/* Vision / Master Plan --------------------------------------------------- */
.vision { background: var(--sand); }
.vision-map-wrap {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(22,40,61,0.35);
  margin-bottom: 64px;
}
.vision-map-wrap img { width: 100%; }

.components-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.component-card {
  background: var(--paper);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.component-card .tag { align-self: flex-start; }
.component-card h4 { font-family: var(--font-display); font-size: 1.15rem; margin: 0; font-weight: 600; }
.component-card p { font-size: 0.92rem; margin: 0; }

/* Phases / founding timeline ---------------------------------------------- */
.phases {
  background: var(--pine-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.phases::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 90% 10%, rgba(199,154,70,0.18), transparent 40%);
  pointer-events: none;
}
.phases .container { position: relative; z-index: 1; }
.phases .section-head h2 { color: var(--white); }
.phases .section-head p { color: rgba(255,255,255,0.75); }
.phase-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  z-index: 1;
}
.phase-track::before {
  content: "";
  position: absolute;
  top: 17px; left: 4%; right: 4%;
  height: 1px;
  background: rgba(255,255,255,0.2);
}
.phase {
  position: relative;
  padding-top: 50px;
}
.phase-num {
  position: absolute; top: 0; left: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--pine-dark);
  font-family: var(--font-display);
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
}
.phase h4 { color: var(--white); font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 8px; }
.phase p { color: rgba(255,255,255,0.72); font-size: 0.95rem; margin: 0; }
.phase-status {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
}

/* Ways to give -------------------------------------------------------------*/
.give { background: var(--paper); }
.give-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.give-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.give-card .tag-stub { margin-bottom: 4px; }
.give-card h3 { margin-bottom: 4px; }
.give-card p { flex-grow: 1; }
.give-card .btn { align-self: flex-start; margin-top: 8px; }

/* Get involved split -------------------------------------------------------*/
.involved { padding: 0; }
.involved .split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.involved-panel {
  padding: 90px 64px;
  color: var(--white);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.involved-panel.families { background: var(--pine); }
.involved-panel.volunteers { background: var(--ink); }
.involved-panel h3 { color: var(--white); font-size: 1.9rem; }
.involved-panel p { color: rgba(255,255,255,0.82); max-width: 380px; }

/* Newsletter band ------------------------------------------------------------*/
.newsletter {
  background: var(--gold);
  padding: 64px 0;
}
.newsletter .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.newsletter h3 { color: var(--pine-dark); margin: 0; font-size: 1.6rem; max-width: 420px; }
.newsletter p { color: rgba(31,64,50,0.75); margin: 6px 0 0; }
.newsletter form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.newsletter input[type="email"] {
  padding: 14px 18px;
  border-radius: 4px;
  border: 1px solid rgba(22,40,61,0.25);
  font-family: var(--font-body);
  font-size: 0.95rem;
  width: 280px;
  max-width: 100%;
  background: var(--paper);
}
.newsletter input[type="email"]:focus-visible { outline: 3px solid var(--pine-dark); }

/* Footer ---------------------------------------------------------------------*/
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.72);
  padding: 76px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .brand-word { color: var(--white); }
.footer-brand p { color: rgba(255,255,255,0.6); margin-top: 16px; max-width: 280px; font-size: 0.92rem; }
.footer-col h5 {
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 18px;
  font-family: var(--font-body);
}
.footer-col a, .footer-col p { display: block; margin-bottom: 10px; font-size: 0.92rem; color: rgba(255,255,255,0.72); }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* Utility ---------------------------------------------------------------------*/
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Subscribe / email signup section (Bloomerang embed) ------------------------*/
.subscribe { background: var(--gold); }
.subscribe .content-block .tag { background: var(--pine-dark); }
.subscribe .content-block h2 { color: var(--pine-dark); }
.subscribe .content-block p.lede { color: rgba(31,64,50,0.78); }
.subscribe .form-panel { border: none; box-shadow: 0 24px 50px -20px rgba(18,38,29,0.35); }

/* Reskin the injected Bloomerang email-signup form to match the site */
.form-panel .email-registration-form { font-family: var(--font-body); }
.form-panel .email-registration-form .section.contact > h3 { display: none; }
.form-panel .email-registration-form label {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink) !important;
  margin-bottom: 8px;
  display: block;
}
.form-panel .email-registration-form label.error {
  color: #b23b3b !important;
  font-size: 0.78rem;
  padding: 4px 0 !important;
  display: block !important;
}
.form-panel .email-registration-form .field { padding: 0 0 18px !important; }
.form-panel .email-registration-form .field input {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  padding: 13px 16px !important;
  border-radius: 4px;
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.96rem;
  background: var(--paper);
  color: var(--ink);
}
.form-panel .email-registration-form .field input:focus {
  outline: 2px solid var(--pine);
  outline-offset: 1px;
}
.form-panel .email-registration-form .required-star { color: var(--gold); }
.form-panel .email-registration-form .consent {
  font-size: 0.82rem;
  color: var(--ink-soft);
  padding-bottom: 18px !important;
}
.form-panel .email-registration-form .errors {
  border: 1px solid #d99;
  background: #fdf2f2;
  border-radius: 6px;
  font-size: 0.88rem;
  margin-bottom: 16px;
}
.form-panel .btn-group { margin: 0; }
.form-panel .btn-submit-email {
  width: 100%;
  padding: 15px 30px !important;
  border-radius: 4px;
  border: none;
  background: var(--pine);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.form-panel .btn-submit-email:hover { background: var(--pine-dark); }
.form-panel .btn-submit-email.disabled { opacity: 0.7; cursor: not-allowed; }
.form-panel .donation-success h2 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--pine);
  font-size: 1.6rem;
  margin-bottom: 10px;
}
.form-panel .donation-success p { color: var(--ink-soft); margin: 0; }
.form-panel .donation-success .social-media-buttons { display: none; }

.form-panel .email-registration-form select {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  padding: 12px 16px !important;
  border-radius: 4px;
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.96rem;
  background-color: var(--paper);
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2345566B'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
.form-panel .email-registration-form select:focus {
  outline: 2px solid var(--pine);
  outline-offset: 1px;
}

.form-panel .email-registration-form .section.custom-fields > h3 {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold);
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin: 4px 0 18px;
}

.form-panel .email-registration-form .checkboxes {
  max-width: 100% !important;
  border: 1px solid var(--line) !important;
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper);
}
.form-panel .email-registration-form .checkbox {
  display: flex !important;
  align-items: center;
  height: auto !important;
  line-height: 1.4 !important;
  padding: 12px 16px !important;
  border-bottom: 1px solid var(--line) !important;
  color: var(--ink) !important;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.form-panel .email-registration-form .checkbox:last-child { border-bottom: none !important; }
.form-panel .email-registration-form .checkbox:hover { background: var(--sand); }
.form-panel .email-registration-form .checkbox.selected {
  background: var(--pine) !important;
  color: var(--white) !important;
}
.form-panel .email-registration-form .checkbox.selected::after {
  content: "\2713";
  margin-left: auto;
  font-weight: 700;
  padding-left: 12px;
}
.form-panel .email-registration-form .hidden { display: none !important; }

/* Interior page hero -------------------------------------------------------*/
.page-hero {
  position: relative;
  padding: 210px 0 90px;
  background: linear-gradient(160deg, var(--pine-dark) 0%, var(--pine) 70%, #2b5340 100%);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 88% 12%, rgba(199,154,70,0.24), transparent 45%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; max-width: 760px; }
.page-hero .tag { margin-bottom: 22px; }
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 4.2vw, 3.2rem); }
.page-hero p.lede { color: rgba(255,255,255,0.85); margin: 0; }

/* Breadcrumb-ish crumb */
.crumb { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-bottom: 18px; }
.crumb a { color: var(--gold-light); }

/* Generic two column content ------------------------------------------------*/
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.content-block p { font-size: 1.02rem; }
.content-block ul { margin: 0 0 1.2em; padding-left: 1.2em; color: var(--ink-soft); }
.content-block li { margin-bottom: 8px; }
.content-block img { border-radius: 6px; }

/* Values / feature grid (reuses component-card visuals) --------------------*/
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.values-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.values-grid .component-card { background: var(--white); }

/* Simple stat / pull band ---------------------------------------------------*/
.pull-band {
  background: var(--sand);
  padding: 64px 0;
  text-align: center;
}
.pull-band p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.7rem;
  color: var(--pine);
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.4;
}

/* Forms ----------------------------------------------------------------------*/
.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 44px;
}
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 4px;
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.96rem;
  background: var(--paper);
  color: var(--ink);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 1px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field textarea { resize: vertical; min-height: 120px; }

.form-panel--embed { padding: 36px; }
.form-panel--embed .qgiv-embed-container { max-width: 100%; overflow: hidden; }
.form-panel--embed .qgiv-embed-container iframe { max-width: 100% !important; width: 100% !important; }

.qgiv-wrap { position: relative; min-height: 420px; }
.qgiv-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--paper);
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  transition: opacity 0.3s ease;
}
.qgiv-wrap.is-loaded .qgiv-loading { opacity: 0; pointer-events: none; }
.qgiv-spinner {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--pine);
  animation: qgiv-spin 0.8s linear infinite;
}
@keyframes qgiv-spin { to { transform: rotate(360deg); } }

/* Donation amount selector ----------------------------------------------------*/
.freq-toggle {
  display: inline-flex;
  background: var(--sand);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 26px;
}
.freq-toggle button {
  border: none;
  background: transparent;
  padding: 10px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.freq-toggle button.is-active { background: var(--pine); color: var(--white); }

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.amount-btn {
  padding: 20px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.amount-btn.is-active, .amount-btn:hover { border-color: var(--pine); background: var(--sand); }
.amount-btn small { display: block; font-family: var(--font-body); font-size: 0.65rem; color: var(--ink-soft); margin-top: 4px; letter-spacing: 0.04em; text-transform: uppercase; }

.impact-note {
  background: var(--sand);
  border-radius: 6px;
  padding: 16px 18px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

/* Simple numbered process (for real sequences only) --------------------------*/
.steps { counter-reset: step; }
.step {
  display: flex;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: none; }
.step-num {
  counter-increment: step;
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--pine);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
}
.step-num::before { content: counter(step); }
.step h4 { margin-bottom: 6px; }
.step p { margin: 0; }

/* Info strip (contact) ---------------------------------------------------------*/
.info-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 60px;
}
.info-card {
  background: var(--white);
  padding: 32px;
}
.info-card h4 { font-family: var(--font-body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); margin-bottom: 10px; }
.info-card p { margin: 0; font-size: 1.05rem; color: var(--ink); }
.info-card p a:hover { text-decoration: underline; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 980px) {
  .pillars .container { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(3) { border-left: none; }
  .need .grid { grid-template-columns: 1fr; gap: 40px; }
  .components-grid { grid-template-columns: repeat(2, 1fr); }
  .phase-track { grid-template-columns: 1fr; gap: 36px; }
  .phase-track::before { display: none; }
  .give-grid { grid-template-columns: 1fr; }
  .involved .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col.reverse { direction: ltr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .amount-grid { grid-template-columns: repeat(3, 1fr); }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .info-strip { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { position: fixed; top: 0; right: -100%; height: 100vh; width: 78%; max-width: 320px;
    background: var(--paper); flex-direction: column; align-items: flex-start; justify-content: flex-start;
    padding: 100px 32px; gap: 26px; transition: right 0.3s ease; box-shadow: -10px 0 40px rgba(0,0,0,0.15); }
  .nav-links.is-open { right: 0; }
  .nav-links a { color: var(--ink); font-size: 1.05rem; }
  .nav-toggle { display: block; background: none; border: none; cursor: pointer; z-index: 200; padding: 6px; }
  .nav-toggle svg { width: 26px; height: 26px; }
  .nav-toggle path { stroke: var(--white); }
  .site-header.is-scrolled .nav-toggle path { stroke: var(--ink); }
  .nav-cta .btn { padding: 10px 16px; font-size: 0.85rem; }
  .components-grid { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
  .container { padding: 0 22px; }
  .involved-panel { padding: 60px 32px; }
  .newsletter .container { flex-direction: column; align-items: flex-start; }
  .values-grid, .values-grid.cols-3 { grid-template-columns: 1fr; }
  .amount-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .form-panel { padding: 28px; }
  .page-hero { padding: 150px 0 60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
