/* =========================================
   CTA Split (layout like screenshot)
========================================= */

.cta-split-container {
  /* card frame */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;

  display: flex;
  align-items: stretch;

  border-radius: 14px;
  overflow: hidden;

  /* subtle outer frame like the screenshot */
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 22, 1);
}

.cta-split-container.centered {
  margin-left: auto;
  margin-right: auto;
}

.cta-split-container.full-width {
  max-width: none;
  border-radius: 0;
}

.cta-split-container.shadow {
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

/* Reverse support (swap panes) */
.cta-split-container.reverse {
  flex-direction: row-reverse;
}

.cta-split-container.reverse .cta-inner {
  margin: 0;                /* no auto push */
}


/* =========================
   Panes
========================= */

.cta-split-container .left-pane,
.cta-split-container .right-pane {
  flex: 1 1 50%;
  min-height: 360px; /* gives it that tall hero feel */
}

/* Content pane (dark panel) */
.cta-split-container .left-pane {
  display: flex;
  align-items: center;      /* vertical centering */
  justify-content: center;  /* horizontal centering */
  position: relative;
}
/* Ensure the right pane has a color behind the image */
.cta-split-container .right-pane {
  position: relative;

  /* This color is what will tint the image.
     Option A: inherit whatever you're setting on the container via buildStyles().
     Option B: set a fixed default fallback here. */
  background-color: inherit;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Key: blend + transparency */
  background-blend-mode: multiply; /* try: multiply | overlay | soft-light */
}

/* Kill the old overlay completely */
.cta-split-container.with-image .right-pane::after {
  content: none !important;
}

/* Apply transparency to the image layer itself */
.cta-split-container.with-image .right-pane {
  opacity: 0.9; /* 0.75–0.9 is usually the sweet spot */
}

/* Optional: keep the *content* panel crisp (don’t let opacity affect text) */
/* This is already safe because opacity is only on .right-pane, not container */

/* Optional: if you want the image to be “more tinted” as backgrounds get lighter */
.cta-split-container.with-image .right-pane {
  filter: saturate(1.05) contrast(1.02);
}
.cta-split-container .cta-inner {
  position: relative; /* above overlay */
  width: 100%;
  max-width: 520px;

  padding: 54px 56px;
}



.cta-split-container .cta-inner {
  width: 60%;               /* ← 60% of pane */
  max-width: 600px;         /* safety cap for very wide screens */
  text-align: left;         /* ← left aligned text */
}

/* Image pane */
.cta-split-container .right-pane {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Image overlay (matches the tinted photo in screenshot) */
.cta-split-container.with-image .right-pane::after {
  content: "";
  position: absolute;
  inset: 0;

  /* purple/blue wash + subtle vignette */
  background:
    radial-gradient(
      120% 100% at 50% 50%,
      rgba(98, 86, 255, 0.25) 0%,
      rgba(78, 58, 230, 0.45) 55%,
      rgba(20, 16, 55, 0.65) 100%
    ),
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.18),
      rgba(0, 0, 0, 0.22)
    );
  pointer-events: none;
}

/* If no image, make it a “flat” single-panel CTA */
.cta-split-container.flat-style {
  display: block;
}

.cta-split-container.flat-style .left-pane {
  min-height: unset;
}

.cta-split-container.flat-style .cta-inner {
  max-width: 900px;
}

/* =========================
   Typography / spacing
========================= */

.cta-split-container h2 {
  margin: 0 0 12px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 750;
}

.cta-split-container h3 {
  margin: 0 0 16px;
  line-height: 1.25;
  font-weight: 600;
  opacity: 0.95;
}

.cta-split-container p {
  margin: 0 0 26px;
  line-height: 1.65;
  opacity: 0.9;
  max-width: 46ch;
}

.cta-split-container h2 {
  font-size: clamp(28px, 3vw, 44px);
}

.cta-split-container p {
  font-size: 16px;
  line-height: 1.7;
}
/* =========================
   Button
========================= */

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 18px;
  border-radius: 10px;

  font-weight: 650;
  text-decoration: none;
  cursor: pointer;

  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);

  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
  user-select: none;
}

.cta-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.cta-btn:active {
  transform: translateY(0px);
  filter: brightness(0.98);
}

/* Make <a> behave like a button */
a.cta-btn {
  -webkit-tap-highlight-color: transparent;
}

/* =========================
   Responsive
========================= */

@media (max-width: 900px) {
  .cta-split-container {
    flex-direction: column;
  }

  .cta-split-container.reverse {
    flex-direction: column; /* still stacks nicely on mobile */
  }

  .cta-split-container .cta-inner {
    width: 85%;             /* more breathing room on mobile */
    max-width: none;
  }

  .cta-split-container .left-pane,
  .cta-split-container .right-pane {
    flex: 0 0 auto;
    min-height: 280px;
  }

  .cta-split-container .cta-inner {
    padding: 34px 24px;
    max-width: 680px;
  }

  .cta-split-container p {
    max-width: none;
  }
}
