/* ============================================================
   GIVE — International Typographic Style (Swiss)
   ------------------------------------------------------------
   Same grid, gutter and type scale as the homepage and
   Ministries, so the page shares the site's one left edge.

   The old file put the hero's contents in `position: fixed`, so
   the title and the verse stayed pinned to the viewport while
   the page scrolled underneath them; the white section below
   only hid it by covering them up.
   ============================================================ */

/* Preflight is off in this project, so border-box is not the default. */
.give-hero,
.give-hero *,
.give-body,
.give-body * {
  box-sizing: border-box;
}

.give-hero,
.give-body {
  --give-ink: #000;
  --give-paper: #fff;
  --give-accent: #ff820d;
  --give-muted: #5c5c5c;
  --give-rule: #d8d8d8;
  --give-rule-strong: #000;

  --give-gutter: clamp(1.25rem, 5vw, 6rem);
  --give-max: 1440px;

  font-family: 'Sofia Pro', sans-serif;
}

/* ============================================================
   Hero
   ============================================================ */
.give-hero {
  position: relative;
  width: 100%;
  min-height: min(88svh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: #1b1b1b;
}

.give-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  /* Anchored to the top of the frame: `center` splits the crop between top
     and bottom, which takes the tops of heads off a photograph of people.
     Trimming from the bottom instead keeps faces in. */
  background-position: center top;
  background-repeat: no-repeat;
}

.give-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.55) 45%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

.give-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--give-max);
  margin: 0 auto;
  padding: clamp(6rem, 14vh, 9rem) var(--give-gutter) clamp(3rem, 8vh, 6rem);
  text-align: left;
}

.give-hero__overline {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 clamp(1rem, 2vw, 1.75rem);
  color: var(--give-accent);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.give-hero__overline::before {
  content: "";
  width: clamp(2.5rem, 6vw, 5rem);
  height: 2px;
  background: var(--give-accent);
  flex: none;
}

.give-hero__title {
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 11vw, 9rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

/* ------------------------------------------------------------
   The verse — a quotation, set as one.

   It used to be centred at 4vh with the citation on its own line
   after two <br>s. Flush left on a reading measure, with a rule
   marking it off, is what makes it read as scripture rather than
   as a caption for the title.
   ------------------------------------------------------------ */
.give-hero__quote {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding-left: clamp(1rem, 2vw, 1.5rem);
  border-left: 2px solid var(--give-accent);
  max-width: 46ch;
}

.give-hero__quote blockquote {
  margin: 0;
  color: #fff;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 300;
  line-height: 1.5;
  text-align: left;          /* was centred */
}

.give-hero__quote figcaption {
  margin-top: clamp(0.75rem, 1.5vw, 1rem);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.give-hero__cta {
  display: inline-flex;
  align-items: center;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 1rem 2.25rem;

  background: var(--give-accent);
  border: 0;
  border-radius: 0;              /* was an 8vh pill */
  color: #000;

  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: filter .15s ease;
}

.give-hero__cta:hover {
  filter: brightness(1.06);
}

.give-hero__cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ============================================================
   Body — the case for giving beside the thing that takes it
   ============================================================ */
.give-body {
  width: 100%;                   /* was 100vw */
  background: var(--give-paper);
  color: var(--give-ink);
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3.5rem, 7vw, 6rem);

  /* The hero's button points here. */
  scroll-margin-top: clamp(5rem, 12vh, 7rem);
}

.give-body__grid {
  max-width: var(--give-max);
  margin: 0 auto;
  padding-inline: var(--give-gutter);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(1rem, 2vw, 2rem);
  row-gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

.give-body__text {
  grid-column: 1 / span 5;
  min-width: 0;
}

.give-body__form {
  grid-column: 7 / span 6;
  min-width: 0;
}

/* Both columns open the same way, which is what makes them read
   as two halves of one section. */
.give-body__text,
.give-body__form {
  border-top: 2px solid var(--give-rule-strong);
  padding-top: clamp(0.9rem, 1.6vw, 1.25rem);
}

.give-body__label {
  margin: 0 0 clamp(1.25rem, 2.5vw, 2rem);
  color: var(--give-muted);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* "Thank you!" shared a rule with the body copy, so it rendered at
   the same 3vh as the paragraphs under it and had no hierarchy. */
.give-body__title {
  margin: 0 0 clamp(1.25rem, 2.5vw, 1.75rem);
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.give-body__form-title {
  margin: 0 0 clamp(1.25rem, 2.5vw, 1.75rem);
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.give-body__para {
  margin: 0 0 1.1rem;
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  font-weight: 300;
  line-height: 1.6;
  text-align: left;              /* was justified, which rivers at this measure */
  max-width: 56ch;
}

.give-body__para:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------
   The giving widget

   Subsplash controls what is inside the frame, so the only thing
   this can do is give it a square, hairlined box and a height
   that does not clip the form on a phone.
   ------------------------------------------------------------ */
.give-body__frame {
  border: 1px solid var(--give-rule);
  background: var(--give-paper);
}

.give-body__frame iframe {
  display: block;
  width: 100%;
  height: clamp(560px, 78vh, 720px);   /* was a fixed 630 */
  border: 0;
  overflow: hidden;
}

/* ============================================================
   Responsive — the grid collapses, the left edge never moves
   ============================================================ */
@media screen and (max-width: 1024px) {

  .give-body__text,
  .give-body__form {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 620px) {

  /* Sized to its label, not stretched across the screen: the hero's
     overline, title and lead all begin on the gutter, and a button
     spanning the full measure is the only thing that would not. */
  .give-hero__cta {
    width: auto;
    align-self: flex-start;
  }

  .give-body__para {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .give-hero__cta {
    transition: none;
  }
}
