/* ==========================================================================
   Discover Hope Foundation — site stylesheet
   Built from DESIGN.md. Tokens first, then base, then components by section.
   ========================================================================== */

:root {
  /* colour: brand values come from the logo (navy, slate, mist); appeal and success are signals only */
  --ink: #1D3341;
  --on-ink: #F4F6F8;
  --canvas: #F4F6F8;
  --white: #FFFFFF;
  --mist: #D6DFE4;
  --mist-soft: #E6ECEF;
  --slate-deep: #5F758C;
  --slate-light: #A9B8C6;
  --charcoal: #2E4455;
  --mute: #4A5D70;
  --stone: #8FA3B8;
  --hairline: #CAD4DB;
  --hairline-soft: #DFE6EA;
  --appeal: #B42318;
  --success: #1E7F4F;

  /* type: one family, matched to the logotype */
  --font: "Figtree", -apple-system, "Segoe UI", Arial, sans-serif;
  --font-display: "Figtree", -apple-system, "Segoe UI", Arial, sans-serif;

  /* shape */
  --r-button: 20px;
  --r-md: 24px;
  --r-stadium: 40px;
  --r-full: 9999px;

  /* space */
  --s-xs: 4px;
  --s-sm: 8px;
  --s-md: 12px;
  --s-lg: 18px;
  --s-xl: 24px;
  --s-xxl: 32px;
  --s-section: 48px;
  --s-section-lg: 64px;
  --s-section-xl: 96px;
  --s-section-xxl: 128px;

  /* elevation */
  --shadow-nav: rgba(29, 51, 65, 0.06) 0px 4px 24px 0px;
  --shadow-halo: rgba(29, 51, 65, 0.10) 0px 24px 48px 0px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 48px);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-weight: 450;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
input { border: 0; background: none; outline: none; }
strong { font-weight: 700; }

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink);
}
p { max-width: 62ch; }
p.lead { font-size: 1.125rem; line-height: 1.45; color: var(--charcoal); }
p.muted, .muted { color: var(--mute); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: var(--r-button);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 760px; }
.container--form { max-width: 560px; }

/* Type scale */
.t-display {
  font-family: var(--font-display);
  font-weight: 850;
  font-size: clamp(52px, 10.4vw, 150px);
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.t-hero {
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.t-xl { font-size: clamp(28px, 3.2vw, 36px); line-height: 1.22; }
.t-lg { font-size: 24px; line-height: 1.2; }
.t-md { font-size: 16px; line-height: 1.75; letter-spacing: 0; }

.eyebrow {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--mute);
  margin-bottom: var(--s-md);
}
.eyebrow--muted { color: var(--mute); }

/* --------------------------------------------------------------------------
   Buttons, chips, badges
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 16px 32px;
  border-radius: var(--r-full);
  background: var(--ink);
  color: var(--on-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border: 1.5px solid var(--ink);
  transition: transform 0.12s var(--ease), opacity 0.12s var(--ease), background 0.2s;
}
.btn:active { transform: scale(0.96); opacity: 0.85; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--secondary { background: var(--mist-soft); color: var(--ink); border-color: var(--mist-soft); }
.btn--outline { background: var(--white); color: var(--ink); }
.btn--on-image { background: var(--white); color: var(--ink); border-color: var(--white); padding: 12px 24px; min-height: 44px; }
.btn--compact { min-height: 40px; padding: 8px 24px; border-radius: var(--r-button); }
.btn--block { width: 100%; }
.btn--lg { font-size: 20px; padding: 18px 40px; }

.btn-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mist-soft);
  color: var(--ink);
  border: 0;
  transition: transform 0.12s var(--ease);
}
.btn-circle:active { transform: scale(0.94); }
.btn-circle:disabled { opacity: 0.35; cursor: not-allowed; }
.btn-circle--outline { background: transparent; border: 1px solid var(--ink); }
.btn-circle svg { width: 18px; height: 18px; }

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: var(--r-full);
  border: 1px solid var(--hairline);
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip:hover { border-color: var(--ink); }
.chip.active, .chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.chip:disabled, .chip.unavailable { color: var(--stone); border-color: var(--hairline-soft); cursor: not-allowed; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-full);
  background: var(--white);
  border: 1px solid var(--hairline);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
}
.badge--ink { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.appeal { color: var(--appeal); font-weight: 500; }

/* --------------------------------------------------------------------------
   Navigation — floating pill, overlay lives outside <header>
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 24px var(--gutter) 0;
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  max-width: 1280px;
  margin-inline: auto;
  min-height: 64px;
  padding: 8px 8px 8px 24px;
  border-radius: var(--r-full);
  background: var(--white);
  box-shadow: var(--shadow-nav);
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-logo { display: flex; align-items: center; flex: none; }
.nav-logo img { height: 30px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3.5vw, 48px);
  flex: 1;
}
.nav-links a {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  line-height: 1;
}
.nav-links a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-burger { display: none; }
.nav-burger svg { width: 20px; height: 20px; }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--canvas);
  display: none;
  flex-direction: column;
  padding: 24px var(--gutter);
}
.nav-overlay[data-open="true"] { display: flex; }
.nav-overlay__top { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.nav-overlay__top img { height: 30px; width: auto; }
.nav-overlay__links { display: flex; flex-direction: column; gap: 4px; padding-top: 24px; flex: 1; }
.nav-overlay__links a {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.nav-overlay__links a[aria-current="page"] { color: var(--mute); }
.nav-overlay .btn { margin-top: auto; }
body.nav-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   Layout rhythm
   -------------------------------------------------------------------------- */
.section { padding-block: var(--s-section-xl); }
.section--tight { padding-block: var(--s-section); }
.section--first { padding-top: var(--s-section); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: var(--s-section); flex-wrap: wrap; }
.section-head .lead { margin-top: 12px; }
.stack > * + * { margin-top: var(--s-section); }

/* --------------------------------------------------------------------------
   Frames and art panels (photo slots)
   -------------------------------------------------------------------------- */
.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-stadium);
  background: var(--mist-soft);
  container-type: inline-size;
}
.frame > img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.frame--circle { border-radius: 50%; aspect-ratio: 1; }
.frame--4x5 { aspect-ratio: 4 / 5; }
.frame--1x1 { aspect-ratio: 1; }
.frame--16x9 { aspect-ratio: 16 / 9; }

.art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: clamp(20px, 7cqw, 40px);
  overflow: hidden;
}
.art--mist { background: var(--mist); color: var(--ink); }
.art--ink { background: var(--ink); color: var(--on-ink); }
.art--slate { background: var(--slate-deep); color: var(--white); }
.art__word {
  font-family: var(--font-display);
  font-weight: 850;
  font-size: 19cqw;
  line-height: 0.9;
  letter-spacing: -0.045em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* --------------------------------------------------------------------------
   Home: hero. The logo tile at full scale: navy type on mist, nothing else.
   -------------------------------------------------------------------------- */
.hero { padding: 24px 0 0; }
.hero-frame {
  position: relative;
  min-height: min(86vh, 840px, 64vw);
  border-radius: var(--r-stadium);
  background: var(--mist);
  color: var(--ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(40px, 6vw, 96px);
  padding: clamp(28px, 4.6vw, 64px);
}
.hero-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-frame:has(> img) { color: var(--white); }
.hero-frame:has(> img)::after {
  /* keeps the headline legible once a photograph is dropped in */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(29, 51, 65, 0.15) 0%, rgba(29, 51, 65, 0.7) 100%);
  pointer-events: none;
}
.hero-copy, .hero-foot { position: relative; z-index: 1; }
.hero-copy .t-display { color: inherit; }
.hero-copy .t-display span { display: block; }
.hero-foot { display: grid; gap: clamp(28px, 3.4vw, 40px); }
.hero-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 48px;
  flex-wrap: wrap;
}
.hero-sub {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.45;
  color: var(--charcoal);
  max-width: 46ch;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-frame .btn--outline { background: transparent; }

.hero-credentials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(29, 51, 65, 0.22);
}
.hero-credentials li {
  padding: 20px 24px 0;
  font-size: clamp(16px, 1.35vw, 18px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hero-credentials li:first-child { padding-left: 0; }
.hero-credentials li + li { border-left: 1px solid rgba(29, 51, 65, 0.22); }

/* --------------------------------------------------------------------------
   Give section (home) and form cards
   -------------------------------------------------------------------------- */
.give-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 96px); align-items: start; }
.give-copy .t-xl { margin-bottom: 16px; }
.trust-list { margin-top: 32px; display: grid; gap: 0; border-top: 1px solid var(--hairline); }
.trust-list li { padding: 18px 0; border-bottom: 1px solid var(--hairline); display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.trust-list svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.trust-list strong { display: block; font-weight: 500; }
.trust-list span { color: var(--mute); font-size: 15px; }

.card {
  background: var(--white);
  border-radius: var(--r-stadium);
  padding: clamp(24px, 3vw, 40px);
}
.card--ink { background: var(--ink); color: var(--on-ink); }
.card--halo { box-shadow: var(--shadow-halo); }
.card-head { margin-bottom: 24px; }
.card-head h2, .card-head h3 { font-size: 24px; }
.card-head p { color: var(--mute); margin-top: 6px; font-size: 15px; }

.field-label { font-size: 14px; font-weight: 500; color: var(--mute); margin: 20px 0 10px; }
.field-label:first-child { margin-top: 0; }

.freq-toggle { display: flex; gap: 8px; }
.freq-toggle .chip { flex: 1; }

.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
.amount-grid .chip { padding-inline: 8px; }

.custom-wrap {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-radius: var(--r-full);
  background: var(--mist-soft);
  padding: 0 20px;
  gap: 8px;
  transition: background 0.15s, box-shadow 0.15s;
}
.custom-wrap:focus-within { background: var(--white); box-shadow: 0 0 0 2px var(--ink), 0 0 0 8px var(--mist-soft); }
.custom-wrap .pfx { font-weight: 500; color: var(--mute); }
.custom-wrap input { flex: 1; min-width: 0; font-weight: 500; }
.custom-wrap input::placeholder { color: var(--stone); font-weight: 450; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }

.gift-aid-section {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--canvas);
  border: 1px solid var(--hairline-soft);
  transition: background 0.2s, border-color 0.2s;
}
.gift-aid-section.active { border-color: var(--success); }
.gift-aid-toggle { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.gift-aid-toggle input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px; height: 22px; min-width: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--white);
  cursor: pointer;
  position: relative;
}
.gift-aid-toggle input[type="checkbox"]:checked { background: var(--ink); }
.gift-aid-toggle input[type="checkbox"]:checked::after {
  content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--on-ink);
}
.gift-aid-label { font-size: 15px; font-weight: 500; line-height: 1.35; }
.gift-aid-label .ga-boost { color: var(--success); }
.gift-aid-fields { display: grid; gap: 8px; margin-top: 14px; }
.gift-aid-fields.hidden { display: none; }
.gift-aid-fields .ga-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gift-aid-declaration { font-size: 13px; color: var(--mute); line-height: 1.45; margin-bottom: 4px; }
.ga-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--r-full);
  background: var(--white);
  border: 1px solid var(--hairline);
  font-size: 15px;
}
.ga-input:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.ga-input::placeholder { color: var(--stone); }

.donate-main-btn { margin-top: 20px; }
.trust-note {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--mute);
}
.trust-note svg { width: 12px; height: 12px; }

.summary { margin-top: 20px; border-top: 1px solid var(--hairline); }
.summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--hairline-soft); font-size: 15px; }
.summary-row .label { color: var(--mute); }
.summary-row .value { font-weight: 500; }
.summary-row.total { border-bottom: 0; padding-top: 14px; }
.summary-row.total .label { color: var(--ink); font-weight: 500; }
.summary-row.total .value { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }

.stepper { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 8px; border-radius: var(--r-full); border: 1px solid var(--hairline); }
.stepper .count { min-width: 2.5rem; text-align: center; font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.stepper-note { font-size: 13px; color: var(--mute); text-align: center; margin-top: 8px; }

/* option cards used by Qurbani country, Fitrana commodity, Ramadan cause */
.option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.option-grid--2 { grid-template-columns: repeat(2, 1fr); }
.option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 72px;
  padding: 12px 8px;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  background: var(--canvas);
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.option-card:hover { border-color: var(--ink); }
.option-card.active { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.option-card.unavailable { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.option-card .name { font-size: 14px; font-weight: 500; line-height: 1.2; }
.option-card .price { font-size: 14px; color: var(--mute); }
.option-card.active .price { color: var(--mist); }
.option-card .icon { font-size: 22px; line-height: 1; }
.option-card .icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.option-card .desc { font-size: 12px; color: var(--mute); }
.option-card.active .desc { color: var(--mist); }
.option-desc { font-size: 13px; color: var(--mute); margin-top: 8px; }

.boost-section { margin-top: 20px; padding: 18px 20px; border-radius: var(--r-md); background: var(--canvas); border: 1px solid var(--hairline-soft); }
.boost-section h4 { font-size: 16px; font-weight: 500; }
.boost-desc { font-size: 14px; color: var(--mute); margin: 4px 0 12px; }
.boost-desc .highlight { color: var(--ink); font-weight: 500; }
.boost-grid { display: flex; gap: 6px; flex-wrap: wrap; }
.boost-grid .chip { flex: 1; min-height: 36px; padding: 6px 10px; font-size: 14px; }

.nights-schedule { margin-top: 20px; border-top: 1px solid var(--hairline); }
.night-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hairline-soft); font-size: 14px; }
.night-label { display: flex; align-items: center; gap: 8px; color: var(--mute); }
.night-badge { font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: var(--r-full); }
.badge-odd { background: var(--mist); color: var(--ink); }
.badge-27 { background: var(--ink); color: var(--on-ink); }
.night-amount { font-weight: 500; color: var(--ink); }

.start-selector { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.start-selector .start-label { font-size: 15px; color: var(--mute); }
.start-toggle { display: flex; gap: 6px; }

.ended-message { text-align: center; max-width: 520px; margin-inline: auto; }
.ended-message h2 { font-size: 28px; margin-bottom: 12px; }
.ended-message p { color: var(--mute); margin: 0 auto 24px; }

/* --------------------------------------------------------------------------
   Home: impact band
   -------------------------------------------------------------------------- */
.impact-band {
  background: var(--ink);
  color: var(--on-ink);
  border-radius: var(--r-stadium);
  padding: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.impact-figure { border-left: 1px solid rgba(214, 223, 228, 0.22); padding-left: 20px; }
.impact-figure .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(52px, 5.6vw, 88px); line-height: 0.9; letter-spacing: -0.045em; color: var(--mist); }
.impact-figure .lbl { margin-top: 14px; font-size: 16px; color: var(--slate-light); }

/* --------------------------------------------------------------------------
   Home: ways to give. An index, not a card grid.
   -------------------------------------------------------------------------- */
.give-index { border-top: 1.5px solid var(--ink); }
.give-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px 48px;
  align-items: center;
  padding-block: clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--hairline);
}
.give-row h3 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.give-row p { font-size: 17px; line-height: 1.45; color: var(--mute); max-width: 40ch; }
.give-row__go {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.give-row__go svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.give-row:hover .give-row__go, .give-row:focus-visible .give-row__go { background: var(--ink); color: var(--on-ink); }

/* --------------------------------------------------------------------------
   Home: where we work
   -------------------------------------------------------------------------- */
.places { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px 24px; }
.place { border-top: 2px solid var(--ink); padding-top: 20px; }
.place h3 { font-size: 22px; line-height: 1.15; letter-spacing: -0.02em; }
.place p { font-size: 15px; color: var(--mute); margin-top: 8px; max-width: 24ch; }

/* --------------------------------------------------------------------------
   Project cards and listing
   -------------------------------------------------------------------------- */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project { display: block; }
.project .frame { aspect-ratio: 4 / 5; }
.project .badge { position: absolute; top: 16px; left: 16px; z-index: 2; }
.project__meta { padding-top: 16px; display: grid; gap: 8px; }
.project__meta h3 { font-size: 16px; font-weight: 500; letter-spacing: 0; line-height: 1.5; }
.project__meta .sub { font-size: 14px; color: var(--mute); }
.project__meta .amount { font-size: 16px; font-weight: 500; display: flex; justify-content: space-between; gap: 12px; }
.progress { height: 6px; border-radius: var(--r-full); background: var(--mist); overflow: hidden; }
.progress .prog-fill { height: 100%; width: 0; border-radius: var(--r-full); background: var(--ink); transition: width 1.2s var(--ease); }
.progress .prog-fill.animated { width: var(--w); }

.listing { display: grid; gap: 0; }
.listing-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding-block: var(--s-section-lg);
  border-top: 1px solid var(--hairline);
}
.listing-item:first-child { border-top: 0; padding-top: 0; }
.listing-item:nth-child(even) .listing-media { order: 2; }
.listing-media .frame { aspect-ratio: 4 / 3; }
.listing-media .badge { position: absolute; top: 20px; left: 20px; z-index: 2; }
.listing-info h2 { font-size: clamp(28px, 3.2vw, 36px); margin-bottom: 16px; }
.listing-info p { color: var(--charcoal); margin-bottom: 24px; }
.listing-stats { display: flex; gap: 32px; flex-wrap: wrap; margin-bottom: 24px; }
.listing-stats .num { font-size: 30px; font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.listing-stats .lbl { font-size: 14px; color: var(--mute); margin-top: 6px; }
.listing-info .progress { max-width: 420px; margin: 8px 0 24px; }
.listing-info .prog-meta { display: flex; justify-content: space-between; font-size: 14px; color: var(--mute); max-width: 420px; }
.listing-info .prog-meta .raised { color: var(--ink); font-weight: 500; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }

/* --------------------------------------------------------------------------
   Pull quote
   -------------------------------------------------------------------------- */
.quote { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.quote .frame { width: 220px; }
.quote .frame .initials { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 72px; color: var(--ink); }
.quote blockquote p { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.25; letter-spacing: -0.025em; font-weight: 600; max-width: 32ch; }
.quote figcaption { margin-top: 20px; font-size: 15px; color: var(--mute); }
.quote figcaption strong { color: var(--ink); font-weight: 500; display: block; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 96px); align-items: start; }
.faq-grid .lead { margin-top: 12px; }
.faq-list { border-top: 1px solid var(--hairline); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}
.faq-icon { flex: none; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; transition: transform 0.3s var(--ease); }
.faq-icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-ans { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-ans-inner { padding: 0 0 24px; color: var(--charcoal); max-width: 60ch; }

/* --------------------------------------------------------------------------
   Info / disclosure rows (campaign pages)
   -------------------------------------------------------------------------- */
.disclosure { border-top: 1px solid var(--hairline); }
.disclosure details { border-bottom: 1px solid var(--hairline); }
.disclosure summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 500;
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--ink); transition: transform 0.3s var(--ease); }
.disclosure details[open] summary::after { transform: rotate(45deg); }
.disclosure .body { padding: 0 0 20px; color: var(--charcoal); }
.disclosure .body p + p { margin-top: 10px; }

/* --------------------------------------------------------------------------
   Inner page hero and two-column campaign layout
   -------------------------------------------------------------------------- */
.page-hero { padding: var(--s-section-lg) 0 var(--s-section); }
.page-hero .breadcrumb { display: flex; gap: 8px; font-size: 14px; color: var(--mute); margin-bottom: 24px; }
.page-hero .breadcrumb a:hover { color: var(--ink); }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { margin-top: 20px; max-width: 56ch; }
.page-hero--center { text-align: center; }
.page-hero--center h1, .page-hero--center .lead, .page-hero--center .breadcrumb { margin-inline: auto; justify-content: center; }
.page-hero .badge { margin-top: 20px; }
.page-hero-cta { margin-top: 24px; }

.campaign { display: grid; grid-template-columns: 1fr 520px; gap: clamp(32px, 5vw, 96px); align-items: start; }
.campaign-info h2 { font-size: 24px; margin-bottom: 12px; }
.campaign-info p { color: var(--charcoal); }
.campaign-info .stack-sm > * + * { margin-top: 32px; }
.campaign-info .disclosure { margin-top: 32px; }
.campaign-form { position: sticky; top: 112px; }

.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: start; }

/* --------------------------------------------------------------------------
   Campaign long-form content — prose blocks, photo/info grids, callouts
   -------------------------------------------------------------------------- */
.prose > * + * { margin-top: 16px; }
.prose p { color: var(--charcoal); line-height: 1.7; }

.impact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.impact-grid .frame { aspect-ratio: 16 / 9; }
.impact-card__meta { padding-top: 16px; }
.impact-card__meta h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 18px; font-weight: 500; margin-bottom: 8px; }
.impact-card__meta p { font-size: 14px; color: var(--mute); line-height: 1.6; }

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.info-card { border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 20px 22px; }
.info-card h4 { font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.info-card p { font-size: 14px; color: var(--mute); line-height: 1.6; }

.callout { padding: 20px 24px; border-radius: var(--r-md); background: var(--canvas); border: 1px solid var(--hairline-soft); }
.callout h4 { font-size: 16px; font-weight: 500; margin-bottom: 10px; }
.callout p { font-size: 14px; color: var(--mute); line-height: 1.6; }
.callout p + p { margin-top: 8px; }
.callout strong { color: var(--ink); }

/* --------------------------------------------------------------------------
   Thank you
   -------------------------------------------------------------------------- */
.thanks { text-align: center; max-width: 520px; margin-inline: auto; }
.thanks .ring { width: 88px; height: 88px; border-radius: 50%; background: var(--ink); color: var(--mist); display: flex; align-items: center; justify-content: center; margin: 0 auto 28px; }
.thanks .ring svg { width: 40px; height: 40px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.thanks h1 { font-size: 32px; margin-bottom: 12px; }
.thanks p { color: var(--mute); margin: 0 auto 28px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: var(--s-section-xl);
  background: var(--ink);
  color: var(--white);
  padding: 100px 0 148px;
  border-radius: var(--r-stadium) var(--r-stadium) 0 0;
}
.footer-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 64px; }
.footer-head h2 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 800; letter-spacing: -0.035em; color: var(--on-ink); max-width: 16ch; line-height: 1.02; }
.footer-head .btn { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 48px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.footer-brand img { height: 30px; width: auto; margin-bottom: 20px; }
.footer-brand p { font-size: 14px; font-weight: 450; color: var(--slate-light); max-width: 32ch; line-height: 1.45; }
.footer-col h4 { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--stone); margin-bottom: 18px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { font-size: 14px; font-weight: 450; color: var(--white); }
.footer-col a:hover { color: var(--mist); }
.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--stone);
}
.footer-bottom .fine { font-size: 12px; }

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
.rise { animation: rise 0.9s var(--ease) both; }
.rise--2 { animation-delay: 0.12s; }
.rise--3 { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .progress .prog-fill { width: var(--w); }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .campaign { grid-template-columns: 1fr 460px; }
}
@media (max-width: 1023px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-band { grid-template-columns: repeat(2, 1fr); }
  .places { grid-template-columns: repeat(3, 1fr); }
  .give-grid, .faq-grid, .campaign, .two-col { grid-template-columns: 1fr; }
  .campaign-form { position: static; order: -1; }
  .listing-item { grid-template-columns: 1fr; }
  .listing-item:nth-child(even) .listing-media { order: 0; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-actions .btn--compact { display: none; }
  .give-row { grid-template-columns: minmax(0, 1fr) auto; }
  .give-row p { grid-column: 1; grid-row: 2; }
  .give-row__go { grid-column: 2; grid-row: 1 / span 2; }
  .section { padding-block: var(--s-section-lg); }
  .site-footer { padding: 64px 0 96px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 639px) {
  .project-grid { grid-template-columns: 1fr; }
  .give-row__go { width: 48px; height: 48px; }
  .quote { grid-template-columns: 1fr; }
  .quote .frame { width: 160px; }
  .hero-frame { min-height: 0; padding: 32px 24px 24px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .hero-credentials { grid-template-columns: 1fr; }
  .hero-credentials li, .hero-credentials li:first-child { padding: 14px 0; }
  .hero-credentials li + li { border-left: 0; border-top: 1px solid rgba(29, 51, 65, 0.22); }
  .hero-credentials li:last-child { padding-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section { padding-block: var(--s-section); }
  .site-footer { margin-top: var(--s-section-lg); }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .option-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-band { grid-template-columns: 1fr; gap: 24px; }
  .places { grid-template-columns: 1fr 1fr; }
  .card { padding: 24px 20px; }
  .listing-stats { gap: 20px; }
  .impact-grid, .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .t-display { font-size: 56px; }
  .nav-pill { padding-left: 18px; }
}
