/* CSS/donate.css
 * --------------------------------------
 * Intermediate donation page styling.
 * Layered on top of CSS/style.css to inherit the site's NAU palette,
 * typography, and button system.
 */

.donate-page {
  background: var(--gray-50);
  color: var(--text-main);
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.donate-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(420px, 62vh, 620px);
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  padding: clamp(48px, 8vh, 96px) 0;
}

.donate-hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.donate-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.donate-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg,
      rgba(0, 36, 84, 0.88) 0%,
      rgba(0, 36, 84, 0.72) 45%,
      rgba(0, 36, 84, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.35) 100%);
}

.donate-hero-inner {
  position: relative;
  max-width: 760px;
}

.donate-eyebrow {
  display: inline-block;
  background: var(--nau-gold);
  color: var(--nau-blue);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

.donate-hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 16px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.donate-lede {
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  max-width: 60ch;
  margin: 0 0 28px;
}

.donate-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* CTA arrow icon shared by hero + final CTA */
.btn-donate-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 1rem;
}

.btn-donate-cta svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

.btn-donate-cta:hover svg,
.btn-donate-cta:focus-visible svg {
  transform: translateX(3px);
}

/* Light outline variant used on the dark hero */
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  padding: 13px 22px;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  color: var(--white);
}

/* ------------------------------------------------------------------ */
/* Sections                                                            */
/* ------------------------------------------------------------------ */

.donate-section {
  padding: clamp(56px, 8vh, 96px) 0;
}

.donate-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(28px, 4vh, 48px);
}

.donate-section-header h2 {
  color: var(--nau-blue);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  text-wrap: balance;
}

.donate-section-header p {
  color: var(--gray-700);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

/* ------------------------------------------------------------------ */
/* Mission summary                                                     */
/* ------------------------------------------------------------------ */

.donate-mission {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.donate-mission-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.donate-mission-copy h2 {
  color: var(--nau-blue);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  text-wrap: balance;
}

.donate-mission-copy p {
  color: var(--gray-700);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 14px;
}

.donate-mission-copy p:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------------ */
/* Impact / where your gift goes                                       */
/* ------------------------------------------------------------------ */

.donate-impact {
  background: var(--gray-50);
}

.donate-impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(16px, 2.4vw, 24px);
  max-width: 1100px;
  margin: 0 auto;
}

.donate-impact-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px 22px 22px;
  box-shadow: 0 8px 24px rgba(0, 36, 84, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.donate-impact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color 0.25s ease;
}

.donate-impact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 36, 84, 0.12);
  border-color: color-mix(in srgb, var(--nau-gold) 50%, var(--gray-200));
}

.donate-impact-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--nau-blue), color-mix(in srgb, var(--nau-blue) 75%, var(--nau-gold)));
  color: var(--white);
  margin-bottom: 14px;
}

.donate-impact-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.donate-impact-card h3 {
  margin: 0 0 8px;
  color: var(--nau-blue);
  font-size: 1.1rem;
  letter-spacing: -0.005em;
}

.donate-impact-card p {
  margin: 0;
  color: var(--gray-700);
  font-size: 0.97rem;
  line-height: 1.55;
}

/* ------------------------------------------------------------------ */
/* Final CTA                                                           */
/* ------------------------------------------------------------------ */

.donate-cta {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
}

.donate-cta-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 32px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--nau-blue) 96%, black) 0%, var(--nau-blue) 60%, color-mix(in srgb, var(--nau-blue) 88%, black) 100%);
  color: var(--white);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--nau-gold) 35%, transparent),
    0 18px 50px rgba(0, 36, 84, 0.22);
}

.donate-cta-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--nau-gold) 65%, transparent) 0%, transparent 60%);
  pointer-events: none;
}

.donate-cta-copy h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.donate-cta-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 56ch;
}

.donate-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.donate-cta .btn-outline-blue {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.donate-cta .btn-outline-blue:hover,
.donate-cta .btn-outline-blue:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: var(--white);
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 900px) {
  .donate-cta-card {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

@media (max-width: 600px) {
  .donate-hero {
    min-height: 0;
    padding: 72px 0 56px;
  }

  .donate-hero-actions {
    width: 100%;
  }

  .donate-hero-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .donate-impact-grid {
    grid-template-columns: 1fr;
  }
}
