/* =============================================================================
   Home — supporting financing band (near the closing CTA)
   -----------------------------------------------------------------------------
   Companion stylesheet for Views/Home/Sections/_FinancingBand.cshtml. Copy
   from "Elevate 1.png"'s financing band; links to /financing for the details.
   Scoped so it cannot collide with other pages' section CSS.

   Measured from "Elevate 1.png" (1440px export, band y4009-4355): heading
   44px over two lines (same scale as the hero heading), body ~15px/1.75
   wrapping at ~340px, gold eyebrow, and a 47px-tall navy button right-aligned
   and vertically centred against the copy. The export is a fixed 1440 canvas,
   so — as in home-hero.css — the type scales with the viewport (vw clamps;
   user request 2026-10-13 to match the hero treatment).
   ============================================================================= */

.home-financing-band {
  padding-block: clamp(3.25rem, 3.75vw, 4.25rem) clamp(4rem, 5.4vw, 5.5rem);
}

/* Design geometry: the copy column must be wide enough for the heading's
   686px first line (~690px at 1440); the button occupies a narrow right
   column (282px button, right edge at the container pad). */
.home-financing-band .split {
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: clamp(4rem, 10vw, 12rem);
}

.home-financing-band__copy .eyebrow {
  margin-bottom: clamp(1rem, 1.7vw, 2rem);
  font-size: clamp(0.8125rem, 0.97vw, 1.25rem);
}

.home-financing-band__copy h2 {
  /* Design line 1 ("Flexible financing to help your") measures 686px at 1440 —
     the heading needs ~50vw to break exactly there. base.css sets
     text-wrap: balance on headings, which re-breaks the lines ("help" | "your
     project…") instead of the export's break, so balancing is off here. */
  max-width: max(30rem, 50.5vw);
  text-wrap: initial;
  margin-bottom: clamp(1.25rem, 2.5vw, 3rem);
  font-size: clamp(1.875rem, 3.1vw, 4.25rem);
  line-height: 1.15;
}

.home-financing-band__body {
  /* Design body line 1 measures 495px at 1440 (~35vw). */
  max-width: max(22rem, 35vw);
  margin: 0;
  font-size: clamp(0.9375rem, 1.1vw, 1.5rem);
  line-height: 1.75;
}

.home-financing-band__action {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.home-financing-band__action .btn {
  font-size: clamp(0.8125rem, 0.97vw, 1.1875rem);
  padding: 0.9em 1.9em;
}

@media (min-width: 56.26em) {
  .home-financing-band__action {
    justify-content: flex-end;
  }
}

/* --- Narrow viewports ------------------------------------------------------------------ */
@media (max-width: 56.25em) {
  .home-financing-band__copy h2 {
    max-width: none;
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }

  .home-financing-band__body {
    max-width: none;
    font-size: 1rem;
  }
}
