/*
 * Homepage-only layout refinements.
 *
 * Kept in a separate stylesheet so the change is isolated, easy to review,
 * and easy to remove without affecting shared page styles.
 */

/* This breakpoint deliberately complements the shared max-width: 1020px
   responsive layout. The overrides therefore apply only while the homepage
   is using its desktop grid. */
@media (min-width: 1021px) {
  body[data-page="home"] .hero-copy,
  body[data-page="home"] .cta-layout > * {
    min-width: 0;
  }

  /* Give the hero message enough room to read as a statement rather than a stack. */
  body[data-page="home"] .hero-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
    gap: clamp(30px, 3vw, 52px);
  }

  body[data-page="home"] .hero-carousel h1,
  body[data-page="home"] .hero-carousel h2 {
    max-width: 700px;
    font-size: clamp(48px, 3.25vw, 58px);
    line-height: 1.07;
    text-wrap: pretty;
  }

  body[data-page="home"] .hero p {
    width: min(620px, 100%);
  }

  body[data-page="home"] .hero-points {
    width: min(650px, 100%);
  }

  /* Reserve a practical reading width for the CTA introduction and share
     the remaining space evenly between the three supporting points. */
  body[data-page="home"] .cta-layout {
    grid-template-columns: minmax(320px, 1.3fr) repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 2.2vw, 34px);
    align-items: start;
  }

  body[data-page="home"] .cta-layout > :first-child {
    max-width: 390px;
  }

  body[data-page="home"] .cta-band h2 {
    max-width: 390px;
    line-height: 1.15;
    text-wrap: pretty;
  }

  body[data-page="home"] .cta-band p {
    max-width: 380px;
  }

  body[data-page="home"] .cta-mini {
    padding-top: 6px;
  }

  body[data-page="home"] .cta-mini span {
    max-width: 210px;
  }
}
