/* ============================================================
   GPI Donation Form — style.css
   Aesthetic: Dark / Cinematic
   Fonts: DM Sans (self-hosted)
   ============================================================ */

/* --- Self-hosted DM Sans --- */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: optional;
  src: url('fonts/dm-sans-latin-300-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('fonts/dm-sans-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url('fonts/dm-sans-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url('fonts/dm-sans-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url('fonts/dm-sans-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Variables --- */
:root {
  --bg:           #f5f5f7;
  --card:         #ffffff;
  --surface:      #ebebed;
  --border:       rgba(0,0,0,0.1);
  --border-focus: #0060c7;
  --accent:       #0060c7;
  --accent-glow:  rgba(0, 96, 199, 0.18);
  --accent-tint:  rgba(0, 96, 199, 0.1);
  --text:         #1d1d1f;
  --text-sec:     rgba(0,0,0,0.6);
  --text-muted:   rgba(0,0,0,0.4);
  --red:          #d93025;
  --red-glow:     rgba(217, 48, 37, 0.12);
  --shadow-card:  0 1px 4px rgba(0,0,0,0.08);
  --radius:       0px;
  --radius-sm:    0px;
  --transition:   0.2s ease;
  --font:         'DM Sans', system-ui, -apple-system, sans-serif;
  --font-cond:    'DM Sans', system-ui, sans-serif;
  --font-disp:    'DM Sans', sans-serif;
  --font-b:       'DM Sans', system-ui, sans-serif; /* alias */
  --font-c:       'DM Sans', system-ui, sans-serif; /* alias */
  --font-d:       'DM Sans', sans-serif;            /* alias */
  --text-mut:     rgba(0,0,0,0.4);                  /* alias */
  --green:        #34c759;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

/* Base body — donate page layout */
body {
  min-height: 100dvh;
  background-color: var(--bg);
  font-family: var(--font);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Full-width pages — override flex centering used by donate page */
body.page-home,
body.page-blog,
body.page-blog-article {
  display: block;
}

/* Success page body additions */
body.page-success {
  justify-content: center;
  padding: 40px 20px;
}

/* --- Background: warm orange radial glow --- */
.page-bg { display: none; }

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 500px;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 96, 199, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* --- Page layout --- */
.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  padding: 52px 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

/* --- Header --- */
.header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: fadeUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  height: 36px;
  width: auto;
  display: block;
}

.logo-mark { display: none; }

.logo-name {
  font-family: var(--font-disp);
  font-size: 16px;
  letter-spacing: 3px;
  color: var(--text);
}

.header__tagline {
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-sec);
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* --- Card --- */
.card {
  width: 100%;
  background: var(--card);
  border-radius: 0;
  box-shadow: none;
  border: 1px solid var(--border);
  overflow: hidden;
  animation: cardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.card__inner {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  /* Orange top accent line */
  border-top: 2px solid var(--accent);
}

/* --- Form Headline --- */
.form-headline__title {
  font-family: var(--font-disp);
  font-size: 44px;
  color: var(--text);
  letter-spacing: 2px;
  line-height: 1.2;
}

.form-headline__sub {
  margin-top: 10px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 300;
  color: var(--text-sec);
  line-height: 1.65;
}

/* --- Form --- */
#donation-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* --- Fieldset --- */
.fieldset { border: none; padding: 0; margin: 0; }

.fieldset__legend {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.fieldset__legend::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

/* --- Frequency Toggle --- */
.frequency-fieldset {
  display: flex;
  justify-content: center;
}

.toggle-pill {
  position: relative;
  display: inline-flex;
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: 1px solid var(--border);
  overflow: hidden;
}

.toggle-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-pill label {
  position: relative;
  z-index: 2;
  cursor: pointer;
  padding: 13px 40px;
  border-radius: 0;
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
  user-select: none;
  white-space: nowrap;
}

.toggle-pill label:first-of-type {
  border-right: 1px solid var(--border);
}

/* Slider repurposed as orange fill behind active tab */
.toggle-pill__slider {
  position: absolute;
  top: 0; left: 0;
  width: 50%;
  height: 100%;
  background: var(--accent);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

#freq-monthly:checked ~ .toggle-pill__slider {
  transform: translateX(100%);
}

#freq-once:checked + label,
#freq-monthly:checked + label {
  color: #ffffff;
}

/* --- Amount Grid --- */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 2px;
}

.amount-btn {
  padding: 16px 10px;
  border-radius: 0;
  border: none;
  background: var(--surface);
  font-family: var(--font-disp);
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  letter-spacing: 2px;
}

.amount-btn:hover {
  background: #d8d8da;
  color: var(--text);
}

.amount-btn.active {
  background: var(--accent);
  color: #ffffff;
}

/* --- Custom Amount --- */
.custom-amount-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 2px;
}

.custom-amount-prefix {
  position: absolute;
  left: 14px;
  font-family: var(--font-disp);
  font-size: 20px;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 1;
  letter-spacing: 1px;
}

#custom-amount {
  width: 100%;
  padding: 14px 14px 14px 32px;
  border-radius: 0;
  border: 1px solid var(--border);
  font-family: var(--font-disp);
  font-size: 20px;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--transition);
  outline: none;
  letter-spacing: 1px;
}

#custom-amount::placeholder { color: var(--text-muted); }
#custom-amount:focus  { border-color: var(--accent); }
#custom-amount.active { border-color: var(--accent); }
#custom-amount.error  { border-color: var(--red); }

/* --- Field --- */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.field__label {
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field__optional {
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 400;
  color: rgba(0,0,0,0.3);
  text-transform: none;
  letter-spacing: 0;
}

.field__required { color: var(--accent); }

.field__input {
  padding: 13px 14px;
  border-radius: 0;
  border: 1px solid var(--border);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
}

.field__input::placeholder { color: var(--text-muted); }
.field__input:focus { border-color: var(--accent); }
.field__input.error { border-color: var(--red); }

.field__textarea {
  padding: 13px 14px;
  border-radius: 0;
  border: 1px solid var(--border);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  background: var(--surface);
  resize: vertical;
  min-height: 70px;
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
  line-height: 1.5;
}

.field__textarea::placeholder { color: var(--text-muted); }
.field__textarea:focus { border-color: var(--accent); }

/* --- Field errors --- */
.field-error {
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 2px;
  text-transform: uppercase;
  min-height: 16px;
  line-height: 1.4;
}

.field-error:empty { display: none; }

/* --- Checkbox --- */
.field--checkbox { flex-direction: row; align-items: center; gap: 0; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.checkbox-label__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-label__box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.checkbox-label__input:checked + .checkbox-label__box {
  background: var(--accent);
  border-color: var(--accent);
}

.checkbox-label__input:checked + .checkbox-label__box::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #ffffff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

.checkbox-label__input:focus-visible + .checkbox-label__box {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.checkbox-label__text {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 300;
  color: var(--text-sec);
}

/* --- Express Checkout --- */
#express-checkout-wrap[hidden] { display: none; }

#express-checkout-element { min-height: 44px; }

.payment-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 2px;
  color: var(--text-muted);
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.payment-divider::before,
.payment-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* --- Payment Element --- */
.payment-field { margin-top: 4px; }

.payment-element-mount {
  padding: 14px;
  border-radius: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  min-height: 56px;
  transition: border-color var(--transition);
}

.payment-element-mount:focus-within {
  border-color: var(--accent);
}

/* --- Payment Summary --- */
.payment-summary {
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-summary[hidden] { display: none; }

.payment-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.payment-summary__label {
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.payment-summary__value {
  font-family: var(--font-disp);
  font-size: 24px;
  color: var(--text);
  letter-spacing: 1px;
}

.payment-summary__divider {
  height: 1px;
  background: var(--border);
}

/* --- Submit Button --- */
.submit-btn {
  margin-top: 8px;
  width: 100%;
  padding: 18px 24px;
  border-radius: 0;
  border: none;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-cond);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), transform 0.1s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-btn:hover:not(:disabled) { background: #0069d8; }
.submit-btn:active:not(:disabled) {
  background: #0055b3;
  transform: scale(0.99);
}

.submit-btn:disabled {
  background: var(--surface);
  color: var(--text-muted);
  cursor: not-allowed;
  border: 1px solid var(--border);
}

.submit-btn__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

.submit-btn.loading .submit-btn__text  { opacity: 0.7; }
.submit-btn.loading .submit-btn__spinner { display: block; }
.submit-btn.loading { pointer-events: none; }

@keyframes spin { to { transform: rotate(360deg); } }

/* --- Form Footer --- */
.form-footer {
  text-align: center;
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.6;
}

.form-footer a { color: var(--text-muted); text-decoration: none; }
.form-footer a:hover { color: var(--accent); }

.lock-icon { font-size: 12px; }

/* --- Skip link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-c);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 20px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* --- Focus states (WCAG 2.4.7) --- */
.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.btn--ghost:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.nav__link:focus-visible,
.nav__logo:focus-visible,
.footer__link:focus-visible,
.footer__logo:focus-visible,
.footer__contact a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Form element focus states (WCAG 2.4.11) --- */
.field__input:focus-visible,
.field__textarea:focus-visible,
#custom-amount:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}

.amount-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  position: relative;
  z-index: 1;
}

.submit-btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Toggle pill keyboard focus — show ring on the label when radio is focused */
.toggle-pill input[type="radio"]:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* --- Screen reader only --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Animations --- */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Donate page responsive --- */
@media (max-width: 520px) {
  .card__inner { padding: 30px 22px; }
  .field-row { grid-template-columns: 1fr; gap: 16px; }
  .amount-grid { grid-template-columns: repeat(3, 1fr); }
  .form-headline__title { font-size: 36px; }
  .page { padding: 32px 16px 60px; }
  .toggle-pill label { padding: 12px 28px; }
}


/* ============================================================
   Homepage
   ============================================================ */

/* ── Shared ─────────────────────────── */
.inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-c);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── Buttons ─────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-c);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: none;
  padding: 14px 32px;
  cursor: pointer;
  text-decoration: none;
  border-radius: 0;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.btn--primary  { background: var(--accent); color: #fff; }
.btn--primary:hover  { background: #0069d8; }
.btn--primary:active { background: #0055b3; }
.btn--ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  color: rgba(255,255,255,0.9);
}
.btn--ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.8); }
.btn--dark { background: #1d1d1f; color: #fff; }
.btn--dark:hover { background: #333; }

/* ── Nav ─────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  background: rgba(245,245,247,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav .inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-d);
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--text);
  text-decoration: none;
}
.nav__logo span { color: var(--accent); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__link {
  font-family: var(--font-c);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(0,0,0,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.nav__link:hover { color: #1d1d1f; }

/* ── Hero ────────────────────────────── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  background-image: url('images/Herostock.webp');
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0a0a0a 0%, rgba(10,10,10,0.8) 45%, rgba(10,10,10,0.6) 100%);
  z-index: 1;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(0,96,199,0.18) 0%, transparent 60%);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 80px;
}
.hero__title {
  font-family: var(--font-d);
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.1;
  color: #fff;
  margin-bottom: 22px;
  max-width: 760px;
}
.hero__title span { color: var(--accent); }
.hero__sub {
  font-family: var(--font-b);
  font-size: 20px;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 36px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Stats ───────────────────────────── */
.stats {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 44px 40px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat:last-child { border-right: none; }
.stat__num {
  font-family: var(--font-d);
  font-size: 40px;
  line-height: 1;
  color: var(--text);
  margin-bottom: 8px;
}
.stat__num span { color: var(--accent); }
.stat__label {
  font-family: var(--font-c);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-sec);
}

/* ── Programs ────────────────────────── */
.programs { padding: 88px 0; }
.programs .inner { margin-bottom: 48px; }
.programs__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
.prog-card {
  position: relative;
  height: 360px;
  overflow: hidden;
  background: var(--card);
}
.prog-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.prog-card:hover .prog-card__bg { transform: scale(1.05); }
.prog-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.25) 55%, transparent 100%);
  z-index: 1;
}
.prog-card__tag {
  position: absolute;
  top: 0; left: 0;
  z-index: 2;
  font-family: var(--font-c);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 7px 14px;
}
.prog-card__body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px;
  z-index: 2;
}
.prog-card__title {
  font-family: var(--font-d);
  font-size: 30px;
  letter-spacing: 2px;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}
.prog-card__desc {
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

/* ── About ───────────────────────────── */
.about {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about__grid {
  padding: 88px 0;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.about__left-title {
  font-family: var(--font-d);
  font-size: clamp(48px, 5vw, 72px);
  line-height: 0.93;
  color: var(--text);
}
.about__left-title span { color: var(--accent); }
.about__body {
  font-family: var(--font-b);
  font-size: 15px;
  font-weight: 300;
  color: var(--text-sec);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about__right .btn { margin-top: 12px; }

/* ── Latest Posts ────────────────────── */
.latest-posts { padding: 88px 0; }
.latest-posts__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 48px;
}
.latest-posts__title {
  font-family: var(--font-d);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  color: var(--text);
}
.latest-posts__all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-c);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  flex-shrink: 0;
}
.latest-posts__all:hover { opacity: 0.75; }
.latest-posts__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition);
}
.post-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.1); }
.post-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
}
.post-card__body {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.post-card__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.post-card__tag {
  font-family: var(--font-c);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 4px 10px;
}
.post-card__title {
  font-family: var(--font-d);
  font-size: 22px;
  line-height: 1.25;
  color: var(--text);
}
.post-card__excerpt {
  font-family: var(--font-b);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-sec);
  flex: 1;
}
.post-card__date {
  font-family: var(--font-c);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── CTA Strip ───────────────────────── */
.cta-strip { background: var(--accent); }
.cta-strip .inner {
  padding-top: 44px;
  padding-bottom: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-strip__title {
  font-family: var(--font-d);
  font-size: 36px;
  color: #fff;
  letter-spacing: 2px;
  line-height: 1;
}

/* ── Footer ──────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.footer__top {
  padding: 56px 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.footer__logo {
  font-family: var(--font-d);
  font-size: 28px;
  letter-spacing: 3px;
  color: var(--text);
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
}
.footer__logo span { color: var(--accent); }
.footer__tagline {
  font-family: var(--font-c);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-mut);
}
.footer__nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  list-style: none;
  padding-top: 4px;
}
.footer__link {
  font-family: var(--font-c);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.footer__link:hover { color: #1d1d1f; }
.footer__bottom {
  padding-bottom: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__copy {
  font-family: var(--font-c);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-mut);
}
.footer__contact {
  font-family: var(--font-c);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--text-mut);
  text-align: right;
}
.footer__contact a {
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0;
}
.footer__contact a:hover { text-decoration: underline; }

/* ── Homepage responsive ─────────────── */
@media (max-width: 960px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; padding: 64px 0; }
}
@media (max-width: 768px) {
  .inner { padding: 0 24px; }
  .nav__logo { font-size: 17px; letter-spacing: 1.5px; }
  .hero__sub { font-size: 16px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .programs__grid { grid-template-columns: 1fr; }
  .latest-posts__grid { grid-template-columns: 1fr; }
  .cta-strip .inner { flex-direction: column; text-align: center; }
  .footer__top { flex-direction: column; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .footer__contact { text-align: center; }
}
@media (max-width: 520px) {
  .nav__logo { font-size: 20px; letter-spacing: 1px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 32px 20px; }
  .hero { min-height: 80vh; }
  .hero__content { padding: 80px 24px 56px; }
  .programs { padding: 64px 0; }
  .prog-card { height: 280px; }
}


/* ============================================================
   Success Page
   ============================================================ */

body.page-success::before {
  content: '';
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,96,199,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body.page-success .card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  padding: 52px 44px;
  text-align: center;
  animation: cardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.success-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  text-decoration: none;
}
.success-logo__icon { height: 36px; width: auto; }
.success-logo__name {
  font-family: var(--font-d);
  font-size: 20px;
  letter-spacing: 3px;
  color: var(--text);
}
.success-logo__name span { color: var(--accent); }

.checkmark {
  width: 56px;
  height: 56px;
  background: rgba(0,96,199,0.12);
  border: 1px solid rgba(0,96,199,0.3);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}
.checkmark svg {
  width: 26px;
  height: 26px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-heading {
  font-family: var(--font-d);
  font-size: 42px;
  color: var(--text);
  letter-spacing: 2px;
  line-height: 0.95;
  margin-bottom: 8px;
}

.success-tagline {
  font-family: var(--font-b);
  font-size: 15px;
  font-weight: 300;
  color: var(--text-sec);
  margin-bottom: 32px;
  line-height: 1.6;
}

.success-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px 24px;
  margin-bottom: 28px;
  text-align: left;
}
.success-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
}
.success-summary__label {
  font-family: var(--font-c);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-mut);
}
.success-summary__value {
  font-family: var(--font-c);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 1px;
}
.success-summary__value--amount {
  font-family: var(--font-d);
  font-size: 24px;
  color: var(--accent);
  letter-spacing: 2px;
}
.success-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 10px 0;
}

.receipt-note {
  font-family: var(--font-b);
  font-size: 13px;
  font-weight: 300;
  color: var(--text-mut);
  line-height: 1.65;
  margin-bottom: 32px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: 0;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-c);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}
.back-btn:hover  { background: #0069d8; }
.back-btn:active { background: #0055b3; }

@media (max-width: 520px) {
  body.page-success .card { padding: 36px 24px; }
  .success-heading { font-size: 34px; }
}

/* ═══════════════════════════════════════════════════
   MOBILE NAV DRAWER
   ═══════════════════════════════════════════════════ */

/* Hamburger bars */
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 0;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Animate to X when open */
.nav--open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--open .nav__toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav--open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay */
.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 150;
  opacity: 0;
  transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
  .nav__overlay { display: block; pointer-events: none; }
  .nav--open .nav__overlay { opacity: 1; pointer-events: all; }

  /* Drawer */
  .nav__links {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    height: 100dvh;
    width: min(300px, 85vw);
    background: var(--card);
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
    padding: 80px 32px 40px;
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }

  .nav--open .nav__links {
    transform: translateX(0);
  }

  /* Links inside drawer */
  .nav__links .nav__link {
    width: 100%;
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--text);
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav__links .nav__link:last-of-type { border-bottom: none; }

  /* Donate button in drawer */
  .nav__links .btn--primary {
    margin-top: 24px;
    width: 100%;
    justify-content: center;
    padding: 14px 24px !important;
    font-size: 12px !important;
  }
}

/* ═══════════════════════════════════════════════════
   BLOG — listing page
   ═══════════════════════════════════════════════════ */

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-c);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 20px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.blog-listing {
  padding: 88px 0;
}
.blog-listing__title {
  font-family: var(--font-d);
  font-size: clamp(32px, 8vw, 64px);
  line-height: 0.93;
  margin-bottom: 12px;
  overflow-wrap: break-word;
}
.blog-listing__title span { color: var(--accent); }
.blog-listing__sub {
  font-family: var(--font-b);
  font-size: 16px;
  font-weight: 300;
  color: var(--text-sec);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.blog-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.blog-card__link:hover .blog-card {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.blog-card__img {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.blog-card__link:hover .blog-card__img {
  transform: scale(1.03);
}
.blog-card__img--placeholder {
  background-color: var(--accent-tint);
  border-top: 2px solid var(--accent);
}
.blog-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card__tag {
  display: inline-block;
  background: var(--accent-tint);
  color: var(--accent);
  font-family: var(--font-c);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
  margin-bottom: 12px;
  align-self: flex-start;
}
.blog-card__title {
  font-family: var(--font-d);
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 10px;
}
.blog-card__excerpt {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-sec);
  line-height: 1.6;
  flex: 1;
}
.blog-card__date {
  font-family: var(--font-c);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 16px;
}

@media (max-width: 960px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-listing { padding: 56px 0; }
}

/* ═══════════════════════════════════════════════════
   BLOG — article page
   ═══════════════════════════════════════════════════ */

.article__hero {
  width: 100%;
  height: 420px;
  background-size: cover;
  background-position: center;
}
.article-header {
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: 32px;
}
.article__title {
  font-family: var(--font-d);
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.1;
  margin-bottom: 16px;
}
.article__byline {
  font-family: var(--font-c);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.article__tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-c);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
  margin-bottom: 14px;
  margin-right: 6px;
}
.article-body {
  max-width: 760px;
  padding-bottom: 80px;
}
.article__prose {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  max-width: 720px;
  color: var(--text);
}
.article__prose h2,
.article__prose h3,
.article__prose h4 { font-family: var(--font-d); margin: 2em 0 0.6em; }
.article__prose h2 { font-size: clamp(24px, 3vw, 34px); }
.article__prose h3 { font-size: clamp(20px, 2.5vw, 26px); }
.article__prose h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
}
.article__prose p  { margin: 0 0 1.2em; }
.article__prose a  { color: var(--accent); text-decoration: underline; }
.article__prose ul,
.article__prose ol { margin: 0 0 1.2em 1.5em; }
.article__prose li { margin-bottom: 0.4em; }
.article__prose blockquote {
  border-left: 3px solid var(--accent);
  background: var(--accent-tint);
  margin: 1.6em 0;
  padding: 16px 20px;
  font-style: italic;
}
.article__prose code {
  font-size: 0.88em;
  background: var(--surface);
  padding: 2px 6px;
}
.article__prose pre {
  background: var(--surface);
  padding: 20px;
  overflow-x: auto;
  margin: 1.6em 0;
}
.article__prose pre code { background: none; padding: 0; }
.article__prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.4em 0;
}
.article__prose img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.6em 0;
}

.article__back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-c);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s;
}
.article__back-link:hover { gap: 12px; }

@media (max-width: 768px) {
  .article__hero { height: 280px; }
}
@media (max-width: 520px) {
  .article__hero { height: 220px; }
  .article-header { padding-top: 32px; }
}
