/* therapies cta section */
.therapies-cta-section {
  min-height: auto;
  display: flex;
  justify-content: center;
  padding: 48px 2vw;
  box-sizing: border-box;
}

.therapies-cta-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
}

.therapies-cta-text {
  flex: 1 1 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.therapies-cta-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #242646;
  line-height: 1.12;
  margin-bottom: 16px;
}

.therapies-cta-description {
  font-size: 1.13rem;
  color: #69717a;
  line-height: 1.55;
  max-width: 510px;
  margin-bottom: 42px;
}

.therapies-cta-button {
  background: #7e9bac;
  color: white;
  padding: 14px 32px;
  border-radius: 36px;
  font-weight: 700;
  font-size: 1.04rem;
  text-decoration: none;
  border: none;
  box-shadow: 0 4px 16px rgba(126, 155, 188, 0.4);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.25s ease;
  width: fit-content;
}

.therapies-cta-button:hover,
.therapies-cta-button:focus {
  background: #a9bfcf;
  color: #242646;
  transform: translateY(-3px);
  box-shadow: 0 6px 22px rgba(169, 191, 207, 0.6);
}

/*
      Main gallery: two columns
      Left image height matches stacked images height on right
    */
.therapies-cta-gallery {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 38px;
  flex: 1 1 350px;
  max-width: 520px;
}

.therapies-cta-image {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 38px rgba(0, 0, 0, 0.08);
  max-width: 240px;
  transition: transform 0.3s;
  flex: none;
  height: auto;
  display: flex;
  flex-direction: column;
}

.therapies-cta-image.main-image {
  width: 100%;
  height: 100%;
  flex-grow: 1;
}

.therapies-cta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}

.therapies-cta-image-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: flex-start;
  max-width: 240px;
  flex: none;
}

.therapies-cta-image-stack .therapies-cta-image {
  max-width: 100%;
  height: auto;
  flex: none;
}

.therapies-cta-image:hover {
  transform: scale(1.04);
}

/* Responsive Tweaks */

@media (max-width: 1090px) {
  .therapies-cta-content {
    gap: 48px;
  }
}

@media (max-width: 990px) {
  .therapies-cta-content {
    justify-content: center;
  }

  .therapies-cta-text,
  .therapies-cta-gallery {
    flex: 1 1 100%;
    max-width: 550px;
    text-align: center;
    margin: 0 auto;
  }

  .therapies-cta-gallery {
    flex-wrap: wrap;
    justify-content: center;
    max-width: none;
    gap: 28px;
  }

  .therapies-cta-image-stack {
    flex-direction: row;
    max-width: none;
  }

  .therapies-cta-image,
  .therapies-cta-image-stack .therapies-cta-image {
    max-width: 160px;
    margin: 0 auto;
    height: auto;
  }
}

@media (max-width: 600px) {
  .therapies-cta-title {
    font-size: 2.1rem;
  }

  .therapies-cta-description {
    font-size: 1rem;
  }

  .therapies-cta-button {
    padding: 12px 24px;
    font-size: 0.97rem;
  }

  .therapies-cta-image,
  .therapies-cta-image-stack .therapies-cta-image {
    flex: 1 1 140px;
    max-width: 140px;
  }

  .therapies-cta-image-stack {
    flex-direction: column;
    gap: 14px;
  }
}

/* Animations */

.js-animate-fadein-up,
.js-animate-fadein-up-delay,
.js-animate-slidein-right,
.js-animate-slidein-right-delayed,
.js-animate-slidein-right-delayed2 {
  opacity: 0;
  transform-origin: center center;
  will-change: opacity, transform;
  transition-property: opacity, transform;
}

.js-animate-fadein-up {
  transform: translateY(40px);
  transition-duration: 0.7s;
  transition-timing-function: cubic-bezier(0.52, 0.01, 0.1, 1);
}

.js-animate-fadein-up-delay {
  transform: translateY(60px);
  transition-duration: 0.9s;
  transition-delay: 0.18s;
  transition-timing-function: cubic-bezier(0.52, 0.01, 0.1, 1);
}

.js-animate-slidein-right {
  transform: translateX(50px);
  transition-duration: 0.85s;
  transition-timing-function: cubic-bezier(0.52, 0.01, 0.1, 1);
}

.js-animate-slidein-right-delayed {
  transform: translateX(80px);
  transition-duration: 1.05s;
  transition-delay: 0.22s;
  transition-timing-function: cubic-bezier(0.52, 0.01, 0.1, 1);
}

.js-animate-slidein-right-delayed2 {
  transform: translateX(100px);
  transition-duration: 1.3s;
  transition-delay: 0.38s;
  transition-timing-function: cubic-bezier(0.52, 0.01, 0.1, 1);
}

.js-animate-visible {
  opacity: 1 !important;
  transform: translateX(0) translateY(0) !important;
}
