/* ==========================================================================
   Component: Section CTA Band
   ========================================================================== */

.cta-band {
  background: var(--color-surface);
  text-align: center;
  padding-block: var(--space-8);
}

.cta-band__heading {
  margin-bottom: var(--space-3);
}

.cta-band--image {
  position: relative;
  color: var(--color-text);
  overflow: hidden;
}

/* Background photo lives in its own layer (not the section's
   background-image) so the micro scroll-linked drift (js/cta-drift.js) can
   animate it via transform only — background-position would repaint every
   frame, which this system's Performance principles rule out. Extra
   vertical bleed (inset: -12% 0) keeps the drift from ever revealing an
   edge at the top/bottom of the band. */
.cta-band__bg {
  position: absolute;
  inset: -12% 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transform: translateY(var(--cta-drift-y, 0px));
  will-change: transform;
}

.cta-band--image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--overlay-hero);
}

.cta-band--image .container {
  position: relative;
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .cta-band__bg {
    transform: none;
  }
}
