/* Homepage — Our Services section */
.services .text-link {
  color: var(--text-primary);
  transition: color var(--motion-default) ease;
}

@media (min-width: 981px) {
  .services .service-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.services .text-link span {
  display: inline-block;
  transition: transform var(--motion-default) var(--ease-standard);
}

.services .text-link:hover,
.services .text-link:focus-visible {
  color: var(--text-brand-primary);
}

.services .text-link:hover span,
.services .text-link:focus-visible span {
  transform: translateX(5px);
}

.services .service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: auto;
  height: 516px;
  padding: 16px;
  border: 0;
  border-radius: 16px;
  background: var(--surface-default);
  box-shadow: 0 10px 28px rgba(53, 53, 54, 0.1);
  transition: background-color var(--motion-default) ease, box-shadow var(--motion-default) var(--ease-standard);
}

.services .service-card h3 {
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
}

.services .service-card p {
  min-height: 0;
  margin: 31px 0 0;
  font-weight: var(--font-weight-light);
}

.services .service-card > div {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

.services .service-card h3 {
  width: calc(100% - 60px);
  min-height: 96px;
  margin: 0 !important;
}

.services .service-card > img {
  width: 100%;
  height: 190px;
  margin: auto 0 0;
  border-radius: 12px;
  object-fit: cover;
}

.services .service-more {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 31px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface-default);
  color: var(--text-brand-primary);
  font-size: 23px;
  font-weight: var(--font-weight-regular);
  line-height: 1;
  transition: color var(--motion-default) ease, background-color var(--motion-default) ease;
}

.services .service-more span {
  display: inline-block;
  transition: transform var(--motion-default) var(--ease-standard);
}

.services .service-more svg {
  display: block;
  width: 43px;
  height: 32px;
  overflow: visible;
}

.services .service-more svg rect,
.services .service-more svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.services .service-more svg rect {
  transition: fill var(--motion-default) ease, stroke var(--motion-default) ease;
}

.services .service-more svg path {
  transition: stroke var(--motion-default) ease, transform var(--motion-default) var(--ease-standard);
}

.services .service-more:hover,
.services .service-more:focus-visible,
.services .service-card:hover .service-more {
  background-color: transparent;
  color: var(--text-brand-primary);
}

.services .service-more:hover span,
.services .service-more:focus-visible span,
.services .service-card:hover .service-more span {
  transform: none;
}

.services .service-more:hover svg rect,
.services .service-more:focus-visible svg rect,
.services .service-card:hover .service-more svg rect {
  fill: var(--text-brand-primary);
  stroke: var(--text-brand-primary);
}

.services .service-more:hover svg path,
.services .service-more:focus-visible svg path,
.services .service-card:hover .service-more svg path {
  stroke: var(--text-inverse);
  transform: translateX(3px);
}

@media (hover: hover) and (pointer: fine) {
  .services .service-card:hover {
    transform: none;
    background-color: var(--surface-default);
    box-shadow: 0 10px 28px rgba(53, 53, 54, 0.1);
  }
  .services .service-card:hover img {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services .service-card,
  .services .text-link,
  .services .text-link span,
  .services .service-more,
  .services .service-more span {
    transition: none;
  }
}

.services .service-card:focus-visible {
  outline: 3px solid rgba(234, 184, 0, .45);
  outline-offset: 4px
}

.service-pagination {
  display: none;
}

.services .service-title-shuttle > span {
  display: block;
  margin-top: 0;
  font-size: inherit;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .service-grid {
    padding-right: 32px;
    scrollbar-width: none;
  }
  .service-grid::-webkit-scrollbar {
    display: none;
  }
  .service-grid .service-card {
    flex-basis: min(388px, calc(100vw - 64px));
    width: min(388px, calc(100vw - 64px));
  }
  .services .service-grid .service-card.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .service-pagination {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 10px;
  }
  .service-pagination button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .service-pagination button::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d8d9da;
    content: "";
    transition: background-color 180ms ease-out, transform 180ms cubic-bezier(.22, 1, .36, 1);
  }
  .service-pagination button.is-active::before {
    background: #eab800;
    transform: scale(1.35);
  }
  .service-pagination button:focus-visible {
    outline: 2px solid #1260ab;
    outline-offset: -4px;
    border-radius: 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-pagination button::before {
    transition: none;
  }
}

@media (max-width: 380px) {
  .service-grid .service-card {
    height: 552px;
  }
  .service-grid .service-card > img {
    flex-shrink: 0;
  }
}
