/* ==========================================================================
   Annie Runs NYC — Soul Runner fundraising page
   Calm, editorial, desert-toned. Cream + olive + clay.
   ========================================================================== */

:root {
  /* palette */
  --cream: #f4ede1;
  --cream-deep: #ebe2d2;
  --ivory: #faf6ee;
  --ink: #2f2a22;
  --ink-soft: #5b5247;
  --muted: #8a8071;
  --olive: #707353;
  --olive-deep: #4a4d35;
  --sage: #8a9079;
  --clay: #a96a4d;
  --clay-soft: #c08163;
  --warm-brown: #6f5a40;
  --rule: #d9cfbd;

  /* type */
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Arial, sans-serif;

  /* layout */
  --max-w: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
}

/* ---------- reset-ish ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ---------- shared atoms ---------- */
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  font-weight: 500;
  color: var(--olive);
  margin: 0 0 18px;
}

.section-heading {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 22px;
}

.section-heading--center {
  text-align: center;
}

.section-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 26px;
}

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0 var(--gutter);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 200ms ease, color 200ms ease,
    border-color 200ms ease, transform 200ms ease;
  cursor: pointer;
}

.btn--primary {
  background: var(--olive-deep);
  color: var(--ivory);
}
.btn--primary:hover {
  background: var(--ink);
}

.btn--light {
  background: var(--ivory);
  color: var(--ink);
}
.btn--light:hover {
  background: #fff;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: color 200ms ease;
}
.link-arrow:hover {
  color: var(--warm-brown);
}
.link-arrow span {
  transition: transform 200ms ease;
}
.link-arrow:hover span {
  transform: translateX(3px);
}

/* ==========================================================================
   NAV
   ========================================================================== */
.fundraising-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 237, 225, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
}

.fundraising-nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.fundraising-nav__brand {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink);
}

.fundraising-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
}

.fundraising-nav__links a {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  transition: color 200ms ease;
}
.fundraising-nav__links a:hover {
  color: var(--ink);
}

.fundraising-nav__cta {
  background: var(--olive-deep);
  color: var(--ivory) !important;
  padding: 10px 20px;
  border-radius: 999px;
  letter-spacing: 0.2em !important;
  transition: background-color 200ms ease;
}
.fundraising-nav__cta:hover {
  background: var(--ink) !important;
}

/* active page link (e.g. on /training.html) */
.fundraising-nav__links a[aria-current="page"] {
  color: var(--ink);
}
.fundraising-nav__links a[aria-current="page"]::after {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  background: var(--clay);
  margin: 6px auto 0;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.fundraising-hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 110px) var(--gutter) clamp(40px, 6vw, 80px);
  text-align: center;
}

.fundraising-hero__content {
  max-width: 720px;
  margin: 0 auto clamp(48px, 7vw, 90px);
}

.fundraising-hero__headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 7.2vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 28px;
}
.fundraising-hero__headline em {
  font-style: italic;
  color: var(--warm-brown);
  font-weight: 400;
}

.fundraising-hero__subtext {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 auto 36px;
}

.fundraising-hero__image {
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--cream-deep)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><rect width='100' height='100' fill='%23ebe2d2'/></svg>")
    center / cover;
  aspect-ratio: 21 / 9;
}
.fundraising-hero__image img,
.fundraising-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fundraising-hero__image--video {
  background: #2f2a22;
}

/* ==========================================================================
   SHARED SECTION
   ========================================================================== */
.fundraising-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 140px) var(--gutter);
}

/* ==========================================================================
   CAUSE
   ========================================================================== */
.fundraising-cause {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.fundraising-cause__text {
  max-width: 520px;
}

.fundraising-cause__image {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: var(--cream-deep);
  aspect-ratio: 4 / 5;
}
.fundraising-cause__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   IMPACT
   ========================================================================== */
.fundraising-impact {
  text-align: center;
}

.fundraising-impact__header {
  max-width: 640px;
  margin: 0 auto clamp(48px, 6vw, 80px);
}

.fundraising-impact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.fundraising-impact__card {
  padding: clamp(36px, 5vw, 60px) clamp(20px, 3vw, 40px);
  text-align: center;
  border-right: 1px solid var(--rule);
}
.fundraising-impact__card:last-child {
  border-right: 0;
}

.fundraising-impact__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--olive);
  margin-bottom: 22px;
}
.fundraising-impact__icon svg {
  width: 100%;
  height: 100%;
}

.fundraising-impact__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.005em;
  color: var(--ink);
  margin: 0 0 12px;
}

.fundraising-impact__body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 30ch;
  margin: 0 auto;
}

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.fundraising-cta {
  position: relative;
  margin-top: clamp(40px, 6vw, 80px);
  min-height: clamp(440px, 60vw, 620px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.fundraising-cta__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--warm-brown);
}
.fundraising-cta__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fundraising-cta__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(47, 42, 34, 0.35) 0%,
    rgba(47, 42, 34, 0.55) 100%
  );
}

.fundraising-cta__content {
  text-align: center;
  color: var(--ivory);
  padding: clamp(72px, 10vw, 140px) var(--gutter);
  max-width: 720px;
}

.fundraising-cta__heading {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin: 0 0 22px;
  color: var(--ivory);
}

.fundraising-cta__body {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(250, 246, 238, 0.88);
  margin: 0 auto 36px;
  max-width: 48ch;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.fundraising-footer {
  background: var(--olive-deep);
  color: #d9d6c6;
}

.fundraising-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.fundraising-footer__left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  color: #d9d6c6;
  transition: color 200ms ease;
}
.fundraising-footer__left:hover {
  color: var(--ivory);
}

.fundraising-footer__center {
  margin: 0;
  text-align: center;
  color: #d9d6c6;
}

.fundraising-footer__right {
  justify-self: end;
  color: var(--clay-soft);
  display: inline-flex;
  align-items: center;
}

/* ==========================================================================
   COUNTDOWN
   ========================================================================== */
.countdown {
  text-align: center;
  padding: clamp(56px, 8vw, 110px) var(--gutter) clamp(40px, 6vw, 80px);
  max-width: 600px;
  margin: 0 auto;
}

.countdown__label {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 26px;
  font-weight: 400;
  letter-spacing: 0.005em;
}

.countdown__number {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(96px, 14vw, 168px);
  line-height: 1;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   ITALIC EMPHASIS LINE (used inside long body copy)
   ========================================================================== */
.section-body--em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--warm-brown);
  line-height: 1.5;
  margin-top: 8px;
  margin-bottom: 30px;
}

/* allow longer text columns to breathe in the cause block */
.fundraising-cause__text .section-body {
  margin-bottom: 22px;
  max-width: 56ch;
}
.fundraising-cause__image {
  align-self: start;
  position: sticky;
  top: 100px;
}

/* ==========================================================================
   TRAINING PAGE
   ========================================================================== */
.training-hero {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 110px) var(--gutter) clamp(24px, 4vw, 48px);
  text-align: center;
}

.training-hero__headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 24px;
}
.training-hero__headline em {
  font-style: italic;
  color: var(--warm-brown);
  font-weight: 400;
}

.training-hero__subtext {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 auto;
}

.training-body {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) var(--gutter) clamp(72px, 10vw, 140px);
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-soft);
}
.training-body p {
  margin: 0 0 22px;
}
.training-body p:first-child {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 32px;
}

.training-body__heading {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: 0.005em;
  color: var(--ink);
  margin: 56px 0 20px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.training-body__list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.training-body__list li {
  position: relative;
  padding-left: 26px;
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.training-body__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 14px;
  height: 1px;
  background: var(--clay);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 860px) {
  .fundraising-nav__inner {
    padding: 18px var(--gutter);
  }
  .fundraising-nav__brand {
    font-size: 11px;
    letter-spacing: 0.28em;
  }
  .fundraising-nav__links {
    gap: 16px;
  }
  /* simplify nav on small screens — hide secondary links, keep Donate */
  .fundraising-nav__links a:not(.fundraising-nav__cta) {
    display: none;
  }

  .fundraising-hero {
    padding-top: 48px;
  }
  .fundraising-hero__image {
    aspect-ratio: 16 / 11;
  }

  .fundraising-cause {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .fundraising-cause__image {
    order: -1;
    aspect-ratio: 5 / 4;
    position: static;
    top: auto;
  }
  .fundraising-cause__text .section-body {
    max-width: none;
  }

  .countdown {
    padding-top: 40px;
  }

  .training-body {
    font-size: 16px;
  }
  .training-body p:first-child {
    font-size: 20px;
  }
  .training-body__heading {
    margin-top: 44px;
  }

  .fundraising-impact__grid {
    grid-template-columns: 1fr;
  }
  .fundraising-impact__card {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
  .fundraising-impact__card:last-child {
    border-bottom: 0;
  }

  .fundraising-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 10px;
  }
  .fundraising-footer__left,
  .fundraising-footer__right {
    justify-self: center;
  }
}

/* very small screens */
@media (max-width: 420px) {
  :root {
    --gutter: 18px;
  }
  .btn {
    padding: 13px 22px;
    font-size: 11px;
  }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
