/* Grow the Good campaign: the donate page (components/donate). Built on the site's colours, fonts and buttons
   (styles.css); everything here is scoped to .gtg so nothing else on the site changes. The text in each part is
   Command Centre content (.editable_content), so these rules style whatever headings and paragraphs it holds. */

.gtg-section {
  width: 100%;
  padding: 9.6rem 3.2rem;
  background: white;
}
.gtg-inner {
  max-width: 1264px;
  margin: 0 auto;
}
.gtg-light {
  background: var(--light);
}
.gtg-pattern {
  background: var(--main) url(/assets/images/grow-the-good/pattern.jpg) center center / cover no-repeat;
  color: white;
}
.gtg-pattern :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, p, li) {
  color: white;
}
.gtg-pattern a:not(.superbutton) {
  color: white;
  text-decoration: underline;
}
.gtg h2 {
  font-size: clamp(3.2rem, 4.4vw, 4.8rem);
  margin-bottom: 2.4rem;
}
.gtg p {
  font-size: 1.8rem;
  line-height: 1.6;
}
.gtg-intro p,
.gtg-why p {
  font-size: clamp(1.8rem, 1.8vw, 2.2rem);
  color: var(--main);
  max-width: 76rem;
}

/* A link to /donate on a line of its own (see grow-the-good.php) */
.gtg .gtg-button-row {
  margin-top: 4rem;
}
.gtg a.superbutton.gtg-button {
  height: 6rem;
  padding: 2px 4.8rem 0;
  font-size: 1.8rem;
}

/* Text beside a photo; .gtg-solo when one of the two is missing */
.gtg-split {
  display: grid;
  gap: 6.4rem;
  align-items: center;
}
.gtg-split.gtg-solo {
  grid-template-columns: minmax(0, 1fr) !important;
}
.gtg-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.6rem;
  box-shadow: var(--shadow);
}

/* ----- Hero ----- */
.gtg-hero {
  padding-top: 12rem; /* clears the header's rounded bottom edge */
}
.gtg-hero .gtg-split {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}
.gtg-hero h1 {
  font-size: clamp(4rem, 4.3vw, 5.8rem);
  margin-bottom: 2.8rem;
}
.gtg-hero p {
  font-size: clamp(1.8rem, 1.6vw, 2.2rem);
  margin-bottom: .4rem;
}
.gtg-hero .gtg-solo .gtg-photo {
  max-width: 76rem;
}

/* ----- How a gift helps ----- */
.gtg-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3.2rem;
}
.gtg-intro + .gtg-cards {
  margin-top: 4.8rem;
}
.gtg-card .gtg-photo {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1.2rem;
  box-shadow: none;
  margin-bottom: 2rem;
}
.gtg-card h3 {
  font-size: clamp(2.2rem, 2vw, 2.6rem);
  margin-bottom: 1.2rem;
}
.gtg-card p {
  font-size: 1.7rem;
}

/* ----- Stories ----- */
.gtg-story {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: 6.4rem;
  align-items: center;
}
.gtg-story.gtg-solo {
  grid-template-columns: minmax(0, 1fr);
}
.gtg-story + .gtg-story {
  margin-top: 8rem;
}
.gtg-story figure {
  margin: 0;
}
.gtg-story-portrait figure {
  display: flex;
  justify-content: flex-end;
}
.gtg-story-portrait .gtg-photo {
  max-width: 36rem;
}
.gtg-story.gtg-solo .gtg-photo {
  max-width: 64rem;
}
.gtg-story.gtg-solo figure {
  justify-content: flex-start;
}
.gtg-story blockquote {
  margin: 0;
  padding: .4rem 0 .4rem 2.4rem;
  border-left: .4rem solid var(--second);
}
.gtg-story blockquote p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(2rem, 1.9vw, 2.4rem);
  line-height: 1.5;
  color: var(--main);
  margin-bottom: 1.2rem;
}
.gtg-story cite {
  font-family: var(--font);
  font-style: normal;
  font-weight: 600;
  color: var(--main);
  font-size: 1.6rem;
}

/* ----- Donate band ----- */
.gtg-band {
  text-align: center;
  padding: 11.2rem 3.2rem;
}
.gtg-band .gtg-button-row:first-child {
  margin-top: 0;
}

/* ----- Calendar (feature) ----- */
.gtg-feature .gtg-split {
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}
.gtg-feature .gtg-photo {
  border-radius: .4rem;
}
.gtg-feature a {
  color: var(--main);
}

/* ----- Why your donation matters: a centred statement card on the light blue, with a paw badge ----- */
.gtg-section.gtg-why {
  padding-top: 12rem; /* room for the badge */
}
.gtg-why .gtg-inner {
  position: relative;
  max-width: 96rem;
  padding: 7.2rem 8rem 6.4rem;
  background: white;
  border-radius: 1.6rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.gtg-why .gtg-inner::before { /* Font Awesome 6 paw (the site's icon font) */
  content: '\f1b0';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 7.2rem;
  height: 7.2rem;
  line-height: 7.2rem;
  border-radius: 50%;
  background: var(--second);
  color: white;
  font-size: 3rem;
  box-shadow: 0 0 0 .8rem var(--light);
}
.gtg-why h2::after {
  content: '';
  display: block;
  width: 8rem;
  height: .4rem;
  background: var(--second);
  margin: 2.4rem auto 0;
}
.gtg-why p {
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.9rem, 2vw, 2.4rem);
}

/* ----- Make a donation -----
   The CanadaHelps form has its own light green page colour (#F8FFEC, set in their CanadaHelps account), so the
   section around it, and the sponsor strip's wave just below it (widgets/logo-slider.php), use the same green.
   (Two classes, so the phone padding of .gtg-section doesn't put the removed bottom padding back.) */
.gtg-section.gtg-give {
  background: #F8FFEC;
  padding-bottom: 0; /* the form has its own green space below it */
}
.gtg #our-supporters img {
  visibility: hidden;
}
.gtg #our-supporters::before { /* the site's wave graphic in the form's green; same box as the hidden image */
  content: '';
  position: absolute;
  inset: -1px 0 1px;
  background: url(/assets/images/grow-the-good/wave-form-green.png) center / cover no-repeat;
}
.gtg-give h2 {
  font-size: clamp(2.8rem, 3.2vw, 4rem);
}
/* The message above the form: centred over the CanadaHelps card (800px wide, centred in its frame on desktop),
   with the same green rule under its heading as "Why Your Donation Matters" */
.gtg-give-text {
  max-width: 80rem;
  margin: 0 auto;
  text-align: center;
}
.gtg-give-text h2::after {
  content: '';
  display: block;
  width: 8rem;
  height: .4rem;
  background: var(--second);
  margin: 2.4rem auto 0;
}
.gtg-give-text p {
  font-size: 1.7rem;
  margin-bottom: 1.2rem;
}
.gtg-give a,
.gtg-give strong {
  color: var(--main);
}
.gtg-give-text + .gtg-anchor + .gtg-form {
  margin-top: .8rem; /* the form's frame has its own space above the card (80px desktop, 40px phone) */
}
/* What the Donate buttons go to. The site's link script (main.js) scrolls to 54px below the top, the phone header's
   height; on desktop the sticky header is taller, so the marker sits higher and the form lands just below it. */
.gtg-anchor {
  display: block;
  position: relative;
  top: -7.2rem;
  height: 0;
  scroll-margin-top: 5.4rem;
}

/* ----- Smaller screens ----- */
@media screen and (max-width: 1024px) {
  .gtg-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media screen and (max-width: 960px) {
  .gtg-section {
    padding: 6.4rem 2.4rem;
  }
  .gtg-hero {
    padding-top: 8rem;
  }
  .gtg-hero .gtg-split,
  .gtg-feature .gtg-split,
  .gtg-story {
    grid-template-columns: minmax(0, 1fr);
    gap: 4rem;
  }
  .gtg-story-portrait figure {
    justify-content: flex-start;
  }
  .gtg-story-portrait .gtg-photo {
    max-width: 32rem;
  }
  .gtg-story + .gtg-story {
    margin-top: 6.4rem;
  }
  .gtg-band {
    padding: 8rem 2.4rem;
  }
  .gtg-anchor {
    top: 0;
  }
  .gtg-section.gtg-why {
    padding-top: 9.6rem;
  }
  .gtg-why .gtg-inner {
    padding: 5.6rem 2.4rem 4.8rem;
  }
  .gtg-why .gtg-inner::before {
    width: 5.6rem;
    height: 5.6rem;
    line-height: 5.6rem;
    font-size: 2.4rem;
    box-shadow: 0 0 0 .6rem var(--light);
  }
}
@media screen and (max-width: 640px) {
  .gtg-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .gtg a.superbutton.gtg-button {
    width: 100%;
    padding: 2px 2.4rem 0;
    font-size: 1.6rem;
  }
}
