/* cs-hero-split — image + text split hero.
   All rem values follow BB Theme's html { font-size: 10px } base — 1.6rem = 16px. */

.cs-hero-split {
  /* Break out of BB row constraint (same trick as the navbar) */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--cs-off-white);
  padding-block: var(--cs-space-2xl);
  font-family: var(--cs-font-body);
  color: var(--cs-ink);
}

.cs-hero-split--bg-glow {
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(64, 133, 197, 0.08) 0%, transparent 60%),
    var(--cs-off-white);
}

.cs-hero-split__inner {
  max-width: var(--cs-container);
  margin: 0 auto;
  padding-inline: var(--cs-gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--cs-space-2xl);
  align-items: center;
}

/* Image position — flip grid order. Pin grid-row too: DOM order is
   media-first, and auto-placement won't backtrack to fill column 1 on
   row 1 after the media claims column 2 (content would wrap to row 2). */
.cs-hero-split--image-left .cs-hero-split__media   { grid-column: 1; grid-row: 1; }
.cs-hero-split--image-left .cs-hero-split__content { grid-column: 2; grid-row: 1; text-align: right; }

.cs-hero-split--image-right .cs-hero-split__media   { grid-column: 2; grid-row: 1; }
.cs-hero-split--image-right .cs-hero-split__content { grid-column: 1; grid-row: 1; text-align: left; }

/* Image */
.cs-hero-split__media {
  align-self: stretch;
}

.cs-hero-split__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 56rem; /* 560px */
  max-height: 84rem; /* 840px */
  object-fit: cover;
  border-radius: 5.3rem; /* 53px per Figma */
}

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

.cs-hero-split--image-left .cs-hero-split__content {
  align-items: flex-end;
}
.cs-hero-split--image-right .cs-hero-split__content {
  align-items: flex-start;
}

/* Eyebrow */
.cs-hero-split__eyebrow {
  margin: 0;
  font-family: var(--cs-font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 2.2rem; /* 22px */
  line-height: var(--cs-line-base);
  color: var(--cs-blue-dark);
}

/* Heading — doubled-up class specificity so these survive BB Global
   Styles' `.fl-builder-content h1 / h1 span` color & font rules. */
.cs-hero-split .cs-hero-split__heading {
  margin: 0;
  font-family: var(--cs-font-display);
  font-weight: 800;
  font-size: clamp(3.6rem, 4vw + 1.2rem, 7rem); /* 36px → 70px per Figma */
  font-style: normal;
  line-height: var(--cs-line-tight);
  letter-spacing: var(--cs-tracking-tight);
  text-wrap: balance;
}

.cs-hero-split__heading-main,
.cs-hero-split__heading-accent {
  display: block;
}

/* Heading color variants */
.cs-hero-split--heading-blue .cs-hero-split__heading-main,
.cs-hero-split--heading-blue .cs-hero-split__heading-accent {
  color: var(--cs-blue);
}

.cs-hero-split--heading-ink .cs-hero-split__heading-main {
  color: var(--cs-ink);
}
.cs-hero-split--heading-ink .cs-hero-split__heading-accent {
  color: var(--cs-blue);
}

/* Body — rich text */
.cs-hero-split__body {
  font-family: var(--cs-font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 1vw + 1.2rem, 2.4rem); /* 18px → 24px per Figma */
  line-height: 1.6;
  color: var(--cs-ink);
  opacity: 0.45;
  max-width: 63rem;
}

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

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

.cs-hero-split__body strong,
.cs-hero-split__body b {
  font-weight: 700;
  opacity: 1;
  color: var(--cs-ink);
}

/* Medium heading variant — 57px cap per the individual-therapy Figma */
.cs-hero-split--heading-size-md .cs-hero-split__heading {
  font-size: clamp(3.2rem, 3.3vw + 1rem, 5.7rem);
  line-height: 1.15;
}

/* Compact body variant — 17px full-ink text with an italic navy lead line */
.cs-hero-split--body-md .cs-hero-split__body {
  font-family: var(--cs-font-body);
  font-weight: 400;
  font-size: 1.7rem; /* 17px */
  line-height: 1.6;
  opacity: 1;
  color: #1a1a1a;
  max-width: 72rem;
}

.cs-hero-split--body-md .cs-hero-split__body strong,
.cs-hero-split--body-md .cs-hero-split__body b {
  font-weight: 700;
  color: #1a1a1a;
}

/* Italic paragraph = the navy lead line ("It's a lot to carry on your own.") */
.cs-hero-split__body p em:only-child {
  display: block;
  font-family: var(--cs-font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 2.2rem; /* 22px */
  line-height: 1.45;
  color: #2b4a69;
}

/* CTA — solid pill button */
.cs-hero-split .cs-hero-split__cta,
.cs-hero-split .cs-hero-split__cta:link,
.cs-hero-split .cs-hero-split__cta:visited {
  display: inline-block;
  background: var(--cs-blue);
  color: var(--cs-white);
  font-family: var(--cs-font-display);
  font-weight: 700;
  font-size: 1.6rem; /* 16px */
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  text-decoration: none;
  text-align: center;
  min-width: min(33rem, 100%); /* 330px per Figma */
  padding: 1rem 3.2rem; /* 44px tall */
  border-radius: var(--cs-radius-pill);
  margin-top: var(--cs-space-sm);
  transition: background 200ms ease, transform 200ms ease;
}

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

/* Compact CTA variant — small pill (220×52 per Figma), sentence case */
.cs-hero-split--cta-sm .cs-hero-split__cta,
.cs-hero-split--cta-sm .cs-hero-split__cta:link,
.cs-hero-split--cta-sm .cs-hero-split__cta:visited {
  min-width: 0;
  font-size: 1.4rem; /* 14px */
  letter-spacing: 0.03em;
  text-transform: none;
  padding: 1.4rem 4.8rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cs-hero-split {
    padding-block: var(--cs-space-xl);
  }
  .cs-hero-split__inner {
    gap: var(--cs-space-xl);
  }
  .cs-hero-split__media img {
    min-height: 48rem;
  }
}

@media (max-width: 768px) {
  .cs-hero-split__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--cs-space-lg);
  }
  /* Stack: image always on top, text below — regardless of desktop position */
  .cs-hero-split--image-left .cs-hero-split__media,
  .cs-hero-split--image-right .cs-hero-split__media {
    grid-column: 1;
    grid-row: 1;
  }
  .cs-hero-split--image-left .cs-hero-split__content,
  .cs-hero-split--image-right .cs-hero-split__content {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
    align-items: flex-start;
  }
  .cs-hero-split__media img {
    min-height: 32rem;
    max-height: 48rem;
  }
}
