/* ========================================
   Donate page
======================================== */

.donate-hero {
  position: relative;
  overflow: hidden;
  padding: 50px 0 120px;
}

.donate-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 70px;
}

.donate-copy h1,
.donation-copy h2,
.thank-you-card h2 {
  margin: 0;
  color: var(--dark);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.donate-copy h1 {
  max-width: 760px;
  font-size: clamp(3.1rem, 6vw, 5.9rem);
}

.donate-copy > p {
  max-width: 660px;
  margin: 26px 0 0;
  color: var(--ink-muted);
  font-size: 1.16rem;
}

/* Support message card */

.support-card {
  position: relative;
  padding: 38px;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: rgba(251, 230, 212, 0.82);
  box-shadow: var(--shadow);
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 350ms ease;
}

.support-card:hover {
  transform: translateY(-8px) rotate(1deg);
  box-shadow: 0 34px 80px rgba(54, 36, 26, 0.16);
}

.support-icon {
  display: grid;
  width: 72px;
  height: 72px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 22px;
}

.support-icon img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.support-quote {
  margin: 0;
  color: var(--dark);
  font-size: 1.28rem;
  line-height: 1.55;
}

.support-thanks {
  margin: 22px 0 0;
  color: var(--primary);
  font-weight: 800;
}

/* Floating donate hero shapes */

.donate-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.donate-orb-one {
  top: -170px;
  right: -120px;
  width: 520px;
  height: 520px;
  background: rgba(166, 216, 170, 0.22);
  animation: donateFloat 12s ease-in-out infinite;
}

.donate-orb-two {
  bottom: -180px;
  left: -150px;
  width: 420px;
  height: 420px;
  background: rgba(251, 230, 212, 0.9);
  animation: donateFloatReverse 15s ease-in-out infinite;
}

/* Impact cards */

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 54px;
}

.impact-card {
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(251, 230, 212, 0.68);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.impact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(54, 36, 26, 0.08);
}

.impact-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  place-items: center;
  color: var(--primary);
  background: rgba(166, 216, 170, 0.3);
  border-radius: 15px;
  font-size: 1.25rem;
  font-weight: 800;
}

.impact-card h3 {
  margin: 0 0 10px;
  color: var(--dark);
  font-size: 1.28rem;
}

.impact-card p {
  margin: 0;
  color: var(--ink-muted);
}

/* Donation call to action */

.donation-section {
  padding: 20px 0 110px;
}

.donation-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 54px;
  padding: 58px;
  border-radius: 32px;
  background: var(--surface);
  box-shadow: 0 20px 55px rgba(54, 36, 26, 0.09);
}

.donation-copy {
  max-width: 680px;
}

.donation-copy h2,
.thank-you-card h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.donation-copy > p {
  margin: 18px 0 0;
  color: var(--ink-muted);
}

.donation-note {
  font-size: 0.9rem;
}

.donation-action {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
}

.donation-action span {
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.button-large {
  min-height: 58px;
  padding-right: 30px;
  padding-left: 30px;
}

/* Monthly section */

.monthly-support-section {
  padding: 20px 0 70px;
}

.monthly-support-section .narrow {
  margin: 0 auto;
}

.monthly-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 54px;
}

.monthly-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 32px;
  text-align: center;

  border: 1px solid var(--border);
  border-radius: 24px;

  background: var(--surface);
  transition: transform 220ms ease, box-shadow 220ms ease,
    border-color 220ms ease;
}

.monthly-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(54, 36, 26, 0.08);
  border: 1px solid var(--primary);
}

.price {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--dark);
}

.frequency {
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.monthly-card p {
  margin-top: 24px;
  color: var(--ink-muted);
}

/* Thank-you section */

.thank-you-section {
  padding: 0 0 110px;
}

.thank-you-card {
  max-width: 820px;
  padding: 54px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.3);
}

.thank-you-card p {
  max-width: 650px;
  margin: 22px auto 0;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.text-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--primary);
  font-weight: 800;
}

.text-link:hover {
  text-decoration: underline;
}

/* Donate page animations */

@keyframes donateFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-18px, 20px, 0) scale(1.04);
  }
}

@keyframes donateFloatReverse {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(18px, -16px, 0);
  }
}

/* ========================================
   Donate page responsive styles
   Keep these at the bottom of the file
======================================== */

@media (max-width: 900px) {
  .donate-hero {
    padding: 72px 0 90px;
  }

  .donate-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .donate-copy {
    width: 100%;
    text-align: center;
  }

  .donate-copy h1 {
    margin-right: auto;
    margin-left: auto;
  }

  .donate-copy > p {
    margin-right: auto;
    margin-left: auto;
  }

  .donate-copy .hero-actions {
    justify-content: center;
  }

  .support-card {
    width: min(100%, 620px);
    margin: 0 auto;
  }

  .impact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .donation-panel {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
  }

  .donation-copy {
    width: 100%;
    max-width: none;
  }

  .donation-action {
    align-items: stretch;
    width: 100%;
  }

  .donation-action .button {
    width: 100%;
  }

  .monthly-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .donate-hero {
    padding: 52px 0 72px;
  }

  .donate-hero-inner {
    gap: 36px;
  }

  .donate-copy h1 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .donate-copy > p {
    font-size: 1rem;
  }

  .donate-copy .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .donate-copy .hero-actions .button {
    width: 100%;
  }

  .support-card,
  .impact-card,
  .donation-panel,
  .thank-you-card {
    padding: 26px;
  }

  .support-card {
    border-radius: 24px;
  }

  .support-quote {
    font-size: 1.08rem;
  }

  .impact-grid {
    gap: 16px;
    margin-top: 36px;
  }

  .donation-section {
    padding: 10px 0 76px;
  }

  .donation-panel {
    gap: 32px;
    border-radius: 24px;
  }

  .donation-action {
    text-align: center;
  }

  .thank-you-section {
    padding-bottom: 76px;
  }

  .thank-you-card {
    border-radius: 24px;
  }
}
