/* Remove inline baseline space so the subtitle starts at the section padding. */
.home-services-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Match the decorative title treatment in the company introduction. */
.home-services-title-group {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin-bottom: 20px;
}

.home-services-title-group h2.title {
  margin-bottom: 0;
}

.home-services-watermark {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #edf1f8;
  font-family: Arial, sans-serif;
  font-size: 88px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* All service cards share the height required by the longest description. */
.home-services-grid {
  --service-content-gap: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 24px;
  margin: 30px 0 0;
}

.home-services-grid > [class*="col-"] {
  display: flex;
  width: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
}

.home-services-grid .service.service__style--2.text-start {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 32px 24px;
  margin: 0;
}

.home-services-grid .service.service__style--2 .icon {
  height: 47px;
  margin-bottom: var(--service-content-gap);
}

.home-services-grid .service.service__style--2 .content h3.title {
  margin-bottom: var(--service-content-gap);
  line-height: 1.4;
  overflow-wrap: break-word;
}

.home-services-grid .service.service__style--2 .content p {
  margin-bottom: 0;
  overflow-wrap: break-word;
}

@media (min-width: 1440px) {
  .home-services-container {
    width: calc(100% - 80px);
    max-width: 1440px;
  }

  .home-services-grid .service.service__style--2.text-start {
    padding: 32px 28px;
  }
}

@media (min-width: 1200px) and (max-width: 1279px) {
  .home-services-grid .service.service__style--2 .content h3.title {
    font-size: 18px;
  }
}

@media (max-width: 1199px) {
  .home-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .home-services-watermark {
    font-size: clamp(28px, 10vw, 60px);
  }

  .home-services-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 24px;
  }
}
