/* cs-hero-feature — solid-background promo hero with big headline + accent image.
   All rem values follow BB Theme's html { font-size: 10px } base — 1.8rem = 18px. */

.cs-hero-feature {
  /* Break out of BB row constraint */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background-color: var(--cs-blue-soft);
  color: var(--cs-white);
  padding-block: var(--cs-space-2xl);
  font-family: var(--cs-font-body);
}

.cs-hero-feature__inner {
  max-width: var(--cs-container);
  margin: 0 auto;
  padding-inline: var(--cs-gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 4rem; /* 40px */
  align-items: center;
}

/* Content column */
.cs-hero-feature__content {
  display: flex;
  flex-direction: column;
  gap: var(--cs-space-lg);
}

/* Doubled-up class specificity so these survive BB Global Styles'
   `.fl-builder-content h1 / h1 span` color & font rules. */
.cs-hero-feature .cs-hero-feature__heading {
  margin: 0;
  font-family: var(--cs-font-display);
  font-weight: 700;
  /* Every term of the clamp scaled to 70% of the original
     `clamp(5.6rem, 8vw + 1rem, 14rem)`, so the heading is 30% smaller at any
     viewport rather than only where it hit the old ceiling. 39.2px → 98px. */
  font-size: clamp(3.92rem, 5.6vw + 0.7rem, 9.8rem); /* 39.2px → 98px */
  font-style: normal;
  line-height: 0.95;
  letter-spacing: var(--cs-tracking-tight);
  color: var(--cs-white);
  text-wrap: balance;
}

.cs-hero-feature__subtitle {
  font-family: var(--cs-font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 2rem; /* 20px */
  line-height: 1.6;
  color: var(--cs-blue-soft);
  max-width: 56rem;
}

.cs-hero-feature__subtitle p {
  margin: 0 0 var(--cs-space-sm);
}

.cs-hero-feature__subtitle p:last-child {
  margin-bottom: 0;
}

/* Media + CTA column */
.cs-hero-feature__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--cs-space-md);
}

/* CTA group sits in the content column, under the copy */
.cs-hero-feature__cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--cs-space-sm);
}

.cs-hero-feature__image {
  width: 100%;
  border-radius: var(--cs-radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.cs-hero-feature__image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 40rem; /* 400px */
  max-height: 60rem; /* 600px */
  object-fit: cover;
}

/* ---------- Shaped media variant ----------
   The image is a transparent PNG that already carries the Figma's stepped/
   notched panel shape, so no rounding/clipping is applied. */
.cs-hero-feature--media-shaped .cs-hero-feature__media {
  display: block;
}

.cs-hero-feature--media-shaped .cs-hero-feature__image {
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.cs-hero-feature--media-shaped .cs-hero-feature__image img {
  min-height: 0;
  max-height: none;
  height: auto;
  object-fit: contain;
}

/* CTA — white pill with brand-color text */
.cs-hero-feature .cs-hero-feature__cta,
.cs-hero-feature .cs-hero-feature__cta:link,
.cs-hero-feature .cs-hero-feature__cta:visited {
  display: inline-block;
  background: var(--cs-white);
  color: var(--cs-blue);
  font-family: var(--cs-font-display);
  font-weight: 700;
  font-size: 1.8rem; /* 18px */
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-align: center;
  padding: 1.4rem 3.2rem;
  border-radius: var(--cs-radius-pill);
  transition: background 200ms ease, transform 200ms ease, color 200ms ease;
}

.cs-hero-feature .cs-hero-feature__cta:hover,
.cs-hero-feature .cs-hero-feature__cta:focus-visible {
  background: var(--cs-off-white);
  color: var(--cs-blue-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

.cs-hero-feature__cta-caption {
  margin: 0;
  font-family: var(--cs-font-display);
  font-weight: 500;
  /* 16px type floor — was 10px uppercase, tolerable only as part of the
     shaped-image overlay artwork; in the content column it's readable copy. */
  font-size: 1.8rem;
  line-height: 1.5;
  letter-spacing: normal;
  color: var(--cs-white);
  text-align: left;
  max-width: 40rem;
}

/* Footnote — tiny italic note centered below the hero grid */
/* Now a standalone block below the hero, on the page background — so it is no
   longer in the hero's grid and no longer white-on-blue. The uppercase +
   10px + 75%-opacity treatment went with it: that is footnote styling, and
   this is a full sentence of positioning copy that people are meant to read. */
.cs-hero-feature__footnote {
  margin: var(--cs-space-lg) auto;
  padding-inline: var(--cs-gutter);
  max-width: 90rem;
  font-family: var(--cs-font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--cs-text-body); /* 18px — the body-copy floor */
  line-height: 1.5;
  letter-spacing: var(--cs-tracking-tight);
  text-align: center;
  color: var(--cs-ink-soft);
}

.cs-hero-feature__footnote p {
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cs-hero-feature {
    padding-block: var(--cs-space-xl);
  }
  .cs-hero-feature__inner {
    gap: var(--cs-space-xl);
  }
}

@media (max-width: 768px) {
  .cs-hero-feature__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--cs-space-lg);
  }
  .cs-hero-feature .cs-hero-feature__heading {
    font-size: clamp(2.8rem, 4.5vw + 1rem, 3.92rem);
  }
  .cs-hero-feature__image img {
    min-height: 28rem;
    max-height: 40rem;
  }

  /* Per-instance heading-first hero: drop the (stock) image on phones — the
     band is already brand blue, so the heading stands on it directly. */
  .cs-hero-feature--mobile-nomedia .cs-hero-feature__media {
    display: none;
  }
}

/* Tablets (600–768px): the short stacked headline leaves room for two
   columns (client call 2026-09-15) — content left, image right, image
   stretched to the content column's height so it reads as a composition
   rather than a floating photo. Phones below 600px keep the single-column
   stack above. */
@media (min-width: 600px) and (max-width: 768px) {
  .cs-hero-feature__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2.4rem;
  }
  .cs-hero-feature__media {
    align-self: stretch;
  }
  .cs-hero-feature__image {
    height: 100%;
  }
  .cs-hero-feature__image img {
    min-height: 24rem;
    max-height: none;
  }
}
