/* =========================
   Split Homepage Banner (Individuals / Business)
   ========================= */

.split-banner {
  width: 100%;
  background-color: #00053e;
}

.split-banner__row {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
}

.split-banner__panel {
  position: relative;
  display: flex;
  align-items: center;
  width: 50%;
  min-height: 588px;
  overflow: hidden;
}

/* Background image */

.split-banner__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.split-banner__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Dark-to-transparent overlay, always left -> right */

.split-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 5, 62, 0.95) 0%,
    rgba(0, 5, 62, 0.85) 30%,
    rgba(0, 5, 62, 0.35) 55%,
    rgba(0, 5, 62, 0) 80%
  );
}

/* Content sits in the dark left-hand portion */

.split-banner__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 0 0 0 60px;
  color: #ffffff;
}

.split-banner__eyebrow {
  margin: 0 0 12px !important;
  padding: 0 !important;
  color: #f57f29 !important;
  font-family: "Gilroy", Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  line-height: 1.2 !important;
  text-transform: uppercase;
}

.split-banner__heading {
  margin: 0 0 20px !important;
  padding: 0 !important;
  color: #ffffff !important;
  font-family: "Gilroy", Arial, sans-serif !important;
  font-size: 40px !important;
  font-weight: 700 !important;
  letter-spacing: -0.75px !important;
  line-height: 1.15 !important;
}

.split-banner__intro {
  margin-bottom: 24px;
  color: #e6e6e6;
  font-size: 16px;
  line-height: 1.6;
}

.split-banner__intro p:last-child {
  padding-bottom: 0;
}

/* CTA button - pill shape, matching site-wide button styling
   (.content-section__button, .topbar-cta-btn, .gform_button all use 999px) */

.split-banner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 28px;
  border: 2px solid #f57f29;
  border-radius: 999px;
  background-color: #f57f29;
  color: #ffffff;
  font-family: "Gilroy", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.split-banner__cta:hover,
.split-banner__cta:focus-visible {
  background-color: #00053e;
  border-color: #ffffff;
  color: #ffffff;
}

/* Clear, visible keyboard focus indicator (WCAG 2.4.7 / 2.4.11) */
.split-banner__cta:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

/* =========================
   Tablet
   ========================= */

@media (max-width: 1199px) {
  .split-banner__panel {
    min-height: 480px;
  }

  .split-banner__heading {
    font-size: 32px !important;
  }

  .split-banner__content {
    padding-left: 40px;
  }
}

/* =========================
   Mobile: stacked, compact panels so both options
   are visible together on a phone screen.
   Panel 1 (Individuals) on top, panel 2 (Business) below.
   ========================= */

@media (max-width: 767px) {
  .split-banner__row {
    flex-direction: column;
  }

  /* Height comes from content + padding, with a sensible floor.
     Never a fixed height, so longer editor text can't be clipped. */
  .split-banner__panel {
    width: 100%;
    min-height: 260px;
    padding: 32px 0;
  }

  /* Keep the subject toward the right, clear of the text */
  .split-banner__image {
    object-position: 70% center;
  }

  /* Flatter, stronger tint than desktop so text stays readable
     across the whole width of a narrow panel */
  .split-banner__overlay {
    background: linear-gradient(
      to right,
      rgba(0, 5, 62, 0.92) 0%,
      rgba(0, 5, 62, 0.78) 55%,
      rgba(0, 5, 62, 0.55) 100%
    );
  }

  .split-banner__content {
    max-width: none;
    padding: 0 24px;
  }

  .split-banner__eyebrow {
    margin-bottom: 8px !important;
    font-size: 13px !important;
    letter-spacing: 0.75px !important;
  }

  .split-banner__heading {
    margin-bottom: 16px !important;
    font-size: clamp(26px, 8vw, 34px) !important;
    letter-spacing: -0.5px !important;
    line-height: 1.15 !important;
  }

  .split-banner__intro {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
  }

  .split-banner__cta {
    min-height: 44px;
    padding: 8px 22px;
    font-size: 15px;
  }
}

/* =========================
   Small phones (iPhone SE and similar)
   ========================= */

@media (max-width: 380px) {
  .split-banner__panel {
    min-height: 240px;
    padding: 28px 0;
  }

  .split-banner__content {
    padding: 0 20px;
  }
}
