/* Desktop values reviewed from Services Desktop Figma Inspect documentation. */
.services-section {
  position: relative;
  display: grid;
  grid-template-columns: 336px 1fr;
  column-gap: 67px;
  height: 800px;
  padding: 130px 0 0 93px;
  overflow: hidden;
  background: var(--color-navy-500);
}

.services-section__content {
  display: flex;
  width: 336px;
  margin-top: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.services-section h2 {
  width: 336px;
  color: var(--color-cyan-500);
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
}

.services-section p {
  width: 336px;
  color: var(--color-navy-200);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  text-transform: uppercase;
}

.services-section__desktop-cta {
  width: 259px;
  height: 38px;
  padding: 7px 45.5px 7px 46.5px;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 400;
  line-height: normal;
}

.services-section__scroller {
  width: min(calc(100vw - 496px), 860px);
  max-width: 860px;
  height: 610px;
  overflow-x: hidden;
  overflow-y: hidden;
  padding-bottom: 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: auto;
  clip-path: inset(0 0 0 0);
  contain: paint;
}

.services-section__scroller::-webkit-scrollbar {
  display: none;
}

.services-section__cards {
  display: flex;
  width: max-content;
  min-width: 2527px;
  height: 590px;
  align-items: flex-start;
  gap: 60px;
  will-change: transform;
}

.services-section__scroller[data-carousel-mode="step"] {
  scroll-behavior: auto;
}

.services-section__scroller[data-carousel-mode="step"] .services-section__cards {
  transform: translate3d(0, 0, 0);
}

.service-card {
  display: flex;
  width: 400px;
  height: 590px;
  padding: 56px 0;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
  opacity: 0.25;
}

.service-card.is-active {
  height: 478px;
  padding: 0;
  opacity: 1;
}


.service-card__media {
  width: 400px;
  height: 400px;
  flex: 0 0 auto;
  border-radius: 32px;
  object-fit: cover;
  background: linear-gradient(0deg, rgba(12, 21, 38, 0.20) 0%, rgba(12, 21, 38, 0.20) 100%);
}

.service-card__label {
  display: flex;
  width: 400px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: rgba(129, 133, 142, 0.30);
  backdrop-filter: blur(9.300000190734863px);
}

.service-card__label h3 {
  color: var(--color-cyan-500);
  text-align: center;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
}

.services-section__mobile-cta {
  display: none;
}

.services-section__scroller:hover .services-section__cards,
.services-section__scroller:focus-within .services-section__cards {
  will-change: auto;
}


.services-section__scroller[data-carousel-mode="services-two-card"] {
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}

.services-section__scroller[data-carousel-mode="services-two-card"]:active {
  cursor: grabbing;
}

.services-section__scroller[data-carousel-mode="services-two-card"] .services-section__cards {
  transform: translate3d(0, 0, 0);
  transition: transform 1200ms cubic-bezier(0.68, 0, 0.24, 1);
}

.services-section__cards.is-dragging {
  transition: none !important;
}

.services-section__scroller[data-carousel-mode="services-two-card"] .service-card {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 360ms ease, visibility 0s linear 360ms;
}

.services-section__scroller[data-carousel-mode="services-two-card"] .service-card.is-active,
.services-section__scroller[data-carousel-mode="services-two-card"] .service-card.is-next {
  visibility: visible;
  pointer-events: auto;
  transition: opacity 360ms ease, visibility 0s linear 0s;
}

.services-section__scroller[data-carousel-mode="services-two-card"] .service-card.is-active {
  opacity: 1;
}

.services-section__scroller[data-carousel-mode="services-two-card"] .service-card.is-next {
  opacity: 0.25;
}

.services-section__scroller[data-carousel-mode="services-two-card"] .service-card.is-offstage {
  opacity: 0;
  visibility: hidden;
}


/* Services two-phase visibility helper: only .is-active and .is-next remain visible. */
.services-section__scroller[data-carousel-mode="services-two-card"] .service-card.is-active,
.services-section__scroller[data-carousel-mode="services-two-card"] .service-card.is-next {
  visibility: visible;
}

@media (max-width: 767px) {
  .services-section {
    display: flex;
    height: 499px;
    padding: 40px 0 0 24px;
    flex-direction: column;
    gap: 0;
  }

  .services-section__content {
    width: 336px;
    max-width: calc(100vw - 48px);
    gap: 8px;
    margin-top: 0;
  }

  .services-section h2 {
    width: 331px;
    height: 45px;
    font-size: 40px;
    white-space: nowrap;
  }

  .services-section p {
    width: 336px;
    height: 80px;
    font-size: 12px;
    text-transform: none;
    overflow: hidden;
  }

  .services-section__desktop-cta {
    display: none;
  }

  .services-section__scroller {
    width: calc(100vw - 23px);
    max-width: none;
    height: 200px;
    margin-top: 24px;
    overflow-x: auto;
    padding-bottom: 0;
  }

  .services-section__cards {
    width: max-content;
    min-width: 0;
    height: 200px;
    gap: 8px;
    align-items: center;
  }

  .service-card,
  .service-card.is-active {
    position: relative;
    display: flex;
    width: 200px;
    height: 200px;
    padding: 0;
    justify-content: flex-end;
    align-items: center;
    gap: 0;
    border-radius: 8px;
    opacity: 1;
    overflow: hidden;
  }

  .service-card__media {
    position: absolute;
    inset: 0;
    width: 200px;
    height: 200px;
    border-radius: 8px;
  }

  .service-card__label {
    position: relative;
    z-index: 1;
    width: 200px;
    height: 31px;
    padding: 10px 9px 0 10px;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
    border-radius: 8px;
  }

  .service-card__label h3 {
    width: 181px;
    font-size: 10px;
  }

  .services-section__mobile-cta {
    display: inline-flex;
    margin: 24px 0 0 89px;
  }
}
