.call-to-action {
  background-color: var(--black);
  color: var(--text-inverse);
  padding: var(--space-4xl) var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle gradient overlay for depth */
.call-to-action::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(151, 35, 63, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.call-to-action .container {
  position: relative;
  z-index: 1;
}

.call-to-action .cta-content {
  max-width: 640px;
  margin: 0 auto var(--space-xl);
  font-family: var(--font-family);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.7;
  color: var(--gray-300);
}

.call-to-action .cta-buttons {
  margin-top: var(--space-xl);
}

/* ── White background variant ── */

.call-to-action.white-bg {
  background-color: var(--white);
  color: var(--gray-900);
}

.call-to-action.white-bg::before {
  background: radial-gradient(
    ellipse at center,
    rgba(151, 35, 63, 0.03) 0%,
    transparent 70%
  );
}

.call-to-action.white-bg .cta-content {
  color: var(--text-secondary);
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .call-to-action {
    padding: var(--space-3xl) var(--space-md);
  }

  .call-to-action .cta-content {
    font-size: var(--text-base);
  }
}

@media (max-width: 480px) {
  .call-to-action {
    padding: var(--space-2xl) var(--space-md);
  }

  .call-to-action .cta-content {
    font-size: var(--text-sm);
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   CTA Hero Banner — image style variant
   Activated when .cta-hero-banner is present alongside .call-to-action
───────────────────────────────────────────────────────────────────────────── */

.call-to-action.cta-hero-banner {
  padding: 0;
  text-align: left;
  min-height: clamp(340px, 52vw, 620px);
  display: flex;
  align-items: center;
  background-color: var(--black); /* fallback while bg image loads */
}

/* Disable the base radial gradient on the image variant */
.call-to-action.cta-hero-banner::before {
  display: none;
}

/* Background image — set via inline style from PHP */
.cta-hero-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  animation: cta-kb 18s ease-in-out forwards;
}

@keyframes cta-kb {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

/* Cinematic overlay — gradient set via inline style from PHP */
.cta-hero-banner__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Player image — fades into the bg on the left edge */
.cta-hero-banner__player {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 100%;
  width: clamp(280px, 46%, 620px);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 18%,
    black 42%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 18%,
    black 42%
  );
  animation: cta-player-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.cta-hero-banner__player img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: bottom right;
}

@keyframes cta-player-in {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Content — uses .container for max-width, layered above bg/player */
.cta-hero-banner__content {
  position: relative;
  z-index: 3;
  width: min(540px, 55%);
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(48px, 7vw, 88px);
  display: flex;
  flex-direction: column;
  gap: var(--space-md, 20px);
  animation: cta-content-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

@keyframes cta-content-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Eyebrow */
.cta-hero-banner__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-family);
  font-size: var(--text-xs, 12px);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red, #97233f); /* matches your brand red */
  margin: 0;
}

.cta-hero-banner__eyebrow::before {
  content: "";
  display: block;
  width: 28px;
  height: 1.5px;
  background-color: currentColor;
  flex-shrink: 0;
}

/* Headline — extends .section-title */
.cta-hero-banner__headline {
  font-size: clamp(32px, 4.2vw, 60px);
  line-height: 1;
  color: var(--text-inverse);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
  margin: 0;
}

/* Sub-headline — extends .cta-content */
.cta-hero-banner .cta-content {
  margin: 0;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.65);
}

.cta-hero-banner .cta-buttons {
  margin-top: var(--space-sm, 8px);
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .call-to-action.cta-hero-banner {
    min-height: 480px;
    align-items: flex-start;
    padding: 0;
  }

  .cta-hero-banner__player {
    width: 70%;
    height: 75%;
    right: -10px;
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, 0.5) 25%,
      black 55%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, 0.5) 25%,
      black 55%
    );
  }

  .cta-hero-banner__content {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .cta-hero-banner__player {
    width: 100%;
    opacity: 0.45;
  }

  .cta-hero-banner__overlay {
    background: linear-gradient(
      160deg,
      rgba(8, 8, 12, 0.85) 0%,
      rgba(8, 8, 12, 0.65) 100%
    );
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-hero-banner__bg,
  .cta-hero-banner__player,
  .cta-hero-banner__content {
    animation: none;
  }
}
