.wp-block-brandspeak-services {
  padding: 5em 0 0;
  position: relative;
  overflow: hidden;
}

.services-curve {
  position: absolute;
  inset: 0 auto 0 50%;
  transform: translateX(-50%);
  width: 120%;
  min-height: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.services-curve svg {
 	width: 100%;
	height: 100%;
	display: block;
}

@media (max-width: 768px) {
  .services-curve {
    width: 300%;
    min-width: 1000px;
  }
}

@media (max-width: 480px) {
  .services-curve {
    width: 400%;
    min-width: 1300px;
  }
}

.services__inner {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5em 12rem;
  display: flex;
  flex-direction: column;
}

.services__inner::after {
  content: '';
  display: block;
  height: 5rem;
}

.services__header {
  text-align: center;
  margin-bottom: 3rem;
  order: 1;
}

.services__header h2 {
  font-size: clamp(1.75rem, 5vw, 3.75rem);
  margin-bottom: 0.5rem;
}

.services__header p {
  margin: 0;
  color: #4a4a4a;
  font-size: 1.1rem;
  max-width: 940px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-items: center;
  column-gap: 2rem;
  row-gap: 2rem;
  grid-auto-flow: row;
  grid-auto-columns: minmax(280px, 1fr);
  order: 2;
}

@media (max-width: 900px) {
  .services__grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    width: auto;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
  }

  .services__inner {
    padding: 3rem 1rem;
  }

  .services__cta {
    position: relative !important;
    transform: none !important;
    width: auto;
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 0;
    justify-content: center;
    align-items: center;
    z-index: 1;
    left: auto !important;
    bottom: auto !important;
  }
}

.service-card {
  border-radius: 1.25rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  width: 100%;
  max-width: 416px;
  min-height: 210px;
}

.service-card__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #f8f8f8;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card__media--placeholder {
  background: linear-gradient(135deg, rgba(66, 43, 143, 0.04), rgba(0, 0, 0, 0.01)), #f5f5f5;
}

.service-card__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.service-card__cta {
  align-self: flex-start;
}

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  background: var(--BrandSpeak-White, #FAF9F5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #35c7c9;
  font-size: 1.5rem;
  padding: 10px;
}

.service-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.service-card__icon-fallback {
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: 0.05em;
  font-weight: 700;
  text-transform: uppercase;
}

.service-card__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--BrandSpeak-Black, #000708);
}

.service-card__title,
.services__header h2 {
  word-break: break-word;
}

.service-card__excerpt {
  margin: -0.5rem 0 0 0;
  flex: 1;
  color: #5a5a5a;
  font-size: 0.95rem;
  line-height: 1.5;
}

.service-card__button {
  align-self: flex-start;
  margin-top: auto;
}

.service-card__button.cta-pill {
  display: inline-flex;
  font-size: 0.9rem;
  --cta-bg: var(--brandSpeakDarkPurple);
  --cta-color: #ffffff;
  --cta-icon-bg: #ffffff;
  --cta-icon-color: var(--brandSpeakDarkPurple);
  --cta-padding-y: 0.7rem;
  --cta-padding-x: 2rem;
  --cta-icon-offset: 0.5rem;
  color: #ffffff;
}

.service-card__button.cta-pill::after {
  right: 0.35rem;
  width: 2.1rem;
  height: 2.1rem;
}

.service-card__button.cta-pill::before {
  right: 1.35rem;
  transform: translate(0, -50%) rotate(-45deg) scale(0.5);
}

.services__cta {
  position: absolute;
  left: 50%;
  bottom: -4rem;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  width: 100%;
  z-index: 2;
  padding: 3.5rem 0 0 0;
  margin-top: 3.5rem;
  margin-bottom: 4.5rem;
  order: 3;
}

.services__cta {
  margin-top: 1.5rem;
  justify-content: center !important;
}

.services__cta .btn-bubble-arrow {
  --bubble-content-bg: #43308a;
  --bubble-content-color: #ffffff;
  --bubble-arrow-bg: #35C7C9;
  --bubble-arrow-color: #ffffff;
  --bubble-arrow-duplicate-bg: #35C7C9;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.services__cta .btn-bubble-arrow__content {
  backdrop-filter: blur(16px);
}

@media (max-width: 640px) {
  .services__header {
    text-align: left;
  }
}
