.services-list {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .services-list {
    padding-top: 3rem;
    padding-bottom: 4rem;
  }
}

.services-list__wrapper {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.services-list__header {
  margin-bottom: 2rem;
}

.services-list__label {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dotted var(--gray);
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .services-list__label {
    font-size: 15px;
  }
}

.services-list__header h2 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 28px;
  letter-spacing: -1px;
  line-height: 1.1;
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .services-list__header h2 {
    font-size: 42px;
  }
}

.services-list__description {
  max-width: 760px;
}

.services-list__description p {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

/* SERVICES — one card per service */
.services-list__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* an incomplete last row sits centred */
  column-gap: 3%;
}

.services-list-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 1rem;
  padding: 1.5rem;
  background-color: var(--white);
  border-top-right-radius: 25px;
  border-bottom-left-radius: 25px;
}

/* For tablet portrait up */
@media (min-width: 600px) {
  .services-list-item {
    width: 48.5%;
    margin-bottom: 1.5rem;
  }
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .services-list-item {
    width: 31.33%;
    padding: 2rem;
  }
}

.services-list-item h3 {
  margin-bottom: 0.75rem;
  color: var(--primary-color);
  font-size: 22px;
  line-height: 1.2;
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .services-list-item h3 {
    font-size: 26px;
  }
}

.services-list-item__description {
  flex: 1;
}

.services-list-item__description p {
  margin-bottom: 0.75rem;
  font-size: 15px;
  line-height: 1.6;
}

.services-list-item footer {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px dotted var(--gray);
}

.services-list-item footer a {
  color: var(--primary-color);
  font-family: var(--body-font-family);
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
}

.services-list-item footer a:hover {
  color: var(--primary-color-darkened);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.services-list-item footer a:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 4px;
}
