/* =========================================================
   Eben Ministries donation page
   File: css/donate.css

   The hero image remains controlled by the existing
   .hero--donate rule in css/style.css.
   ========================================================= */

.donation-support-section {
  background: #f1f0ec;
}

.donation-support-grid {
  align-items: stretch;
}

.donation-amazon-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.amazon-card {
  position: relative;
  min-height: 540px;
  height: 100%;
  overflow: hidden;
}

.amazon-card img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  transition: transform 220ms ease;
}

.amazon-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: clamp(1.25rem, 4vw, 2rem);
  color: #fff;
  background:
    linear-gradient(
      to top,
      rgba(40, 34, 23, 0.96),
      rgba(40, 34, 23, 0.72) 65%,
      transparent
    );
}

.amazon-overlay-content {
  max-width: 560px;
}

.amazon-overlay .eyebrow,
.amazon-overlay h2,
.amazon-overlay p {
  color: #fff;
}

.amazon-overlay h2 {
  margin: 0.35rem 0 0.5rem;
}

.amazon-overlay p {
  margin: 0 0 0.75rem;
}

.amazon-link {
  font-weight: 800;
}

.donation-amazon-link:hover .amazon-card img,
.donation-amazon-link:focus-visible .amazon-card img {
  transform: scale(1.025);
}

.donation-amazon-link:focus-visible {
  outline: 3px solid #b79292;
  outline-offset: 4px;
  border-radius: 14px;
}

.donation-stone-panel {
  min-height: 540px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.donation-stone-panel .stone-wall {
  padding-bottom: 12px;
  overflow: visible;
}

.donation-stone-panel .stone-details {
  width: 100%;
  text-align: left;
}

.donation-impact-section {
  background: #fff;
}

.donation-section-heading {
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}

.donation-section-heading h2,
.donation-section-heading p {
  margin-inline: auto;
}

.donation-impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.donation-impact-card {
  height: 100%;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  text-align: center;
}

.donation-impact-card h3 {
  margin: 0.75rem 0 0.5rem;
}

.donation-impact-card p {
  margin: 0;
}

.donation-impact-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  color: #433822;
  background: #cde9eb;
  font-size: 1.25rem;
  font-weight: 800;
}

.donation-section {
  background: #f1f0ec;
}

.donation-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  max-width: 1040px;
  margin: 0 auto 1rem;
}

.donation-trust-row span {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(67, 56, 34, 0.14);
  border-radius: 999px;
  color: #433822;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  font-weight: 700;
}

.donation-trust-row span::before {
  margin-right: 0.4rem;
  content: "\2713";
  color: #66785c;
  font-weight: 900;
}

.donation-embed-card {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  padding: clamp(0.5rem, 1.5vw, 1rem);
  overflow: hidden;
  background: #fff;
}

.donation-iframe {
  display: block;
  width: 100%;
  min-height: 2605px;
  border: 0;
  background: #fff;
}

.donation-fallback {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  max-width: 1040px;
  margin: 1rem auto 0;
}

.donation-fallback p {
  margin: 0;
}

.donation-fallback .btn {
  flex: 0 0 auto;
}

.donation-other-ways-section {
  background: #fff;
}

.donation-other-ways-card {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: #c2cde2;
}

.donation-other-ways-card .stack {
  max-width: 720px;
}

.donation-other-ways-card h2,
.donation-other-ways-card p {
  margin-bottom: 0;
}

.donation-other-ways-card .btn {
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .donation-support-grid,
  .donation-impact-grid {
    grid-template-columns: 1fr;
  }

  .amazon-card,
  .amazon-card img,
  .donation-stone-panel {
    min-height: 430px;
  }

  .donation-impact-card {
    text-align: left;
  }

  .donation-other-ways-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .amazon-card,
  .amazon-card img,
  .donation-stone-panel {
    min-height: 360px;
  }

  .donation-embed-card {
    padding: 0;
    border-radius: 10px;
  }

  .donation-iframe {
    min-height: 2700px;
  }

  .donation-fallback {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }

  .donation-fallback .btn,
  .donation-other-ways-card .btn {
    width: 100%;
  }

  .donation-trust-row {
    align-items: stretch;
    flex-direction: column;
  }

  .donation-trust-row span {
    justify-content: center;
  }
}

@media (max-width: 430px) {
  .donation-iframe {
    min-height: 2850px;
  }
}
