/* static/css/components/cta-section.css */
/* CTA Section Component */
.cta-section {
  padding: var(--space-20) 0;
  background: var(--bg-primary);
}

.cta-section__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

/* Main content area with background */
.cta-section__main {
  position: relative;
  width: 100%;
  min-height: clamp(400px, 50vh, 600px);
  border-radius: clamp(1rem, 3vw, 2rem);
  overflow: hidden;
  background-image: url('/static/img/homepage/ctabg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Content overlay */
.cta-section__content {
  position: absolute;
  top: 50%;
  left: clamp(2rem, 5vw, 4rem);
  transform: translateY(-50%);
  display: flex;
  width: clamp(300px, 80vw, 437.672px);
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1rem, 3vw, 1.5rem);
  z-index: 2;
}

/* Subtitle link */
.cta-section__subtitle {
  display: flex;
  width: clamp(180px, 40vw, 197px);
  height: clamp(40px, 8vw, 48px);
  padding: clamp(8px, 2vw, 12px) clamp(12px, 3vw, 16px);
  justify-content: center;
  align-items: center;
  border-radius: clamp(32px, 8vw, 42.328px);
  border: clamp(0.5px, 0.1vw, 0.847px) solid #040548;
  background: radial-gradient(50.91% 97.54% at 50% 2.46%, #11127C 0%, #040548 100%);
  box-shadow: 0px clamp(12px, 3vw, 17.778px) clamp(24px, 6vw, 33.27px) rgba(132, 0, 255, 0.33);
  
  color: #ffffff;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(12px, 2.5vw, 14px);
  font-style: normal;
  font-weight: 400;
  line-height: 180%;
  text-decoration: none;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.cta-section__subtitle:hover {
  transform: translateY(-2px);
  box-shadow: 0px clamp(16px, 4vw, 22px) clamp(32px, 8vw, 40px) rgba(132, 0, 255, 0.4);
}

/* Main title */
.cta-section__title {
  color: #ffffff;
  font-family: var(--font-family);
  font-size: clamp(24px, 6vw, 48px);
  font-style: normal;
  font-weight: 600;
  line-height: 120%;
  margin: 0;
  max-width: clamp(280px, 70vw, 400px);
}

/* CTA Button */
.cta-section__button {
  display: flex;
  padding: clamp(10px, 2.5vw, 12px) clamp(14px, 3.5vw, 16px);
  justify-content: center;
  align-items: center;
  gap: clamp(6px, 1.5vw, 8px);
  border-radius: clamp(32px, 8vw, 42.328px);
  border: clamp(0.5px, 0.1vw, 0.847px) solid #EB1260;
  background: radial-gradient(50.91% 97.54% at 50% 2.46%, #7B1B3D 0%, #EB1260 100%);
  box-shadow: 0px clamp(12px, 3vw, 17.778px) clamp(24px, 6vw, 33.27px) rgba(132, 0, 255, 0.33);
  
  color: #E3E1EB;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(14px, 3vw, 16px);
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
  text-decoration: none;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.cta-section__button:hover {
  transform: translateY(-2px);
  box-shadow: 0px clamp(16px, 4vw, 22px) clamp(32px, 8vw, 40px) rgba(235, 18, 96, 0.4);
  color: #ffffff;
}

/* Woman image (hidden on mobile/tablet) */
.cta-section__image {
  display: none;
}

.cta-section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Desktop Layout (1024px and up) */
@media (min-width: 1024px) {
  .cta-section__container {
    flex-direction: row;
    padding-bottom: 100px;
    gap: clamp(26px, 1.5vw, 32px);
    align-items: stretch;
  }
  
  .cta-section__main {
    flex: 3;
    border-radius: clamp(1rem, 2vw, 2rem) 0 0 clamp(1rem, 2vw, 2rem);
  }
  
  .cta-section__content {
    left: clamp(3rem, 5vw, 4rem);
    width: clamp(350px, 35vw, 437.672px);
    gap: clamp(1.5rem, 2vw, 2rem);
  }
  
  .cta-section__image {
    display: block;
    flex: 1;
    min-height: clamp(400px, 40vh, 600px);
    transform: translateY(20%);
    border-radius: 0 clamp(1rem, 2vw, 2rem) clamp(1rem, 2vw, 2rem) 0;
    overflow: hidden;
  }
  
  .cta-section__title {
    font-size: clamp(36px, 4vw, 48px);
    max-width: clamp(350px, 30vw, 400px);
  }
  
  .cta-section__subtitle {
    width: 197px;
    height: 48px;
    font-size: 14px;
  }
  
  .cta-section__button {
    font-size: 16px;
  }
}

/* Large Desktop adjustments */
@media (min-width: 1280px) {
  .cta-section__content {
    left: 4rem;
    width: 437.672px;
    gap: 24px;
  }
  
  .cta-section__title {
    font-size: 48px;
  }
}

/* Theme adjustments */
[data-theme="light"] .cta-section {
  background: var(--bg-primary);
}

[data-theme="light"] .cta-section__title,
[data-theme="light"] .cta-section__subtitle {
  color: #ffffff; /* Keep white text for contrast on background image */
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .cta-section__subtitle,
  .cta-section__button {
    transition: none;
  }
  
  .cta-section__subtitle:hover,
  .cta-section__button:hover {
    transform: none;
  }
}

/* Print styles */
@media print {
  .cta-section {
    background: white;
    color: black;
  }
  
  .cta-section__image {
    display: none;
  }
}