/* ==========================================================================
   Closing CTA — photo beside a solid panel (split layout)
   ========================================================================== */
.cta-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 520px;
  background: var(--color-bg-alt);
  overflow: hidden;
}

.cta-hero-media {
  position: relative;
  overflow: hidden;
}

/* Slightly taller than its frame so it has slack to drift on scroll
   (parallax — see js/parallax.js). JS overrides the transform each frame;
   this centered state is the reduced-motion / no-JS fallback. */
.cta-hero-media img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 132%;
  object-fit: cover;
  object-position: 50% 30%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cta-hero-panel {
  display: flex;
  align-items: center;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.cta-hero-content {
  max-width: 30rem;
}

.cta-hero-content .eyebrow {
  margin-bottom: var(--space-1);
}

.cta-hero h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.18;
  color: var(--color-text);
  margin: 0 0 var(--space-2);
}

.cta-hero p {
  color: var(--color-text-muted);
  font-size: 1.02rem;
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

/* Centered pill under the copy. */
.cta-hero-content .btn {
  display: flex;
  width: fit-content;
  margin-inline: auto;
}

@media (max-width: 760px) {
  .cta-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .cta-hero-media {
    aspect-ratio: 4 / 3;
  }

  .cta-hero-panel {
    padding: var(--space-5) var(--space-3);
  }
}
