/* 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.6rem = 16px. */

.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;
  font-size: clamp(5.6rem, 8vw + 1rem, 14rem); /* 56px → 140px */
  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);
}

.cs-hero-feature__cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--cs-space-md);
}

.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. The button +
   caption overlay the bottom-left notch, on the blue band behind. */
.cs-hero-feature--media-shaped .cs-hero-feature__media {
  position: relative;
  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;
}

.cs-hero-feature--media-shaped .cs-hero-feature__cta-group {
  position: absolute;
  left: 1%;
  bottom: 0;
  align-items: flex-start;
  gap: var(--cs-space-sm);
  width: 55%;
}

.cs-hero-feature--media-shaped .cs-hero-feature__cta {
  width: 100%;
}

.cs-hero-feature--media-shaped .cs-hero-feature__cta-caption {
  text-align: center;
  width: 100%;
  max-width: none;
}

/* 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.6rem; /* 16px */
  line-height: 1.5;
  text-transform: uppercase;
  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: 700;
  font-size: 1rem; /* 10px */
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--cs-white);
  text-align: center;
  max-width: 32rem;
}

/* Footnote — tiny italic note centered below the hero grid */
.cs-hero-feature__footnote {
  grid-column: 1 / -1;
  margin: var(--cs-space-lg) auto 0;
  max-width: 90rem;
  font-family: var(--cs-font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1rem; /* 10px */
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
}

.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__image img {
    min-height: 28rem;
    max-height: 40rem;
  }
}
