/* CTA Hero Image Styles */

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

/* Background Overlay */
.cta-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

/* Background Image Handling */
.cta-hero-image[data-bg] {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Inner container for proper layout */
.cta-hero-inner {
  position: relative;
  z-index: 2;
}

/* CTA Hero Grid - Two Column Layout */
.cta-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
  position: relative;
}

/* Content Column */
.cta-hero-content {
  max-width: 680px;
  z-index: 2;
}

.cta-hero-heading h2 {
  margin: 0;
}

.cta-hero-description p {
  margin: 0;
  line-height: 1.4;
}

.cta-hero-subtext p {
  margin: 0;
  line-height: 1.4;
}

/* Image Column */
.cta-hero-grid .cta-hero-image {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.cta-hero-grid .cta-hero-image img,
.cta-hero-grid .cta-hero-image svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Desktop Layout - Image flush to right edge */
@media (min-width: 1024px) {
  .cta-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
  }

  .cta-hero-content {
    max-width: 680px;
  }

  .cta-hero-grid .cta-hero-image {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 50%;
    max-width: none;
    margin: 0;
  }

  .cta-hero-grid .cta-hero-image img,
  .cta-hero-grid .cta-hero-image svg {
    height: 100%;
    width: 100%;
    max-width: none;
    display: block;
    object-fit: cover;
    object-position: center;
  }
}

/* Tablet Layout */
@media (min-width: 768px) and (max-width: 1023px) {
  .cta-hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .cta-hero-image {
    max-width: 500px;
  }
}

/* Mobile Layout */
@media (max-width: 767px) {
  .cta-hero-button a {
    display: inline-block;
    width: auto;
  }
}

