/* Content stays in normal document flow so replacement copy can grow. */
.services-intro {
  padding-block: 78px 90px;
}

.services-intro h2 {
  margin: 0 0 48px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.6;
}

.services-intro p {
  margin: 0;
  font-size: 16px;
  line-height: 2;
}

.services-intro__link {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

.services-list {
  padding-block: 90px;
}

.service-group {
  display: grid;
  grid-template-columns: minmax(0, 289fr) minmax(0, 680fr);
  gap: 91px;
}

.service-group + .service-group {
  margin-top: 90px;
  border-top: 1px solid rgb(0 0 0 / .2);
  padding-top: 90px;
}

.service-group__intro h2 {
  margin: 0;
  color: var(--navy);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.4;
}

.service-group__intro h2 span {
  font-size: 24px;
}

.service-group__intro p {
  margin: 32px 0 0;
  font-size: 17px;
  line-height: 2;
}

.service-item + .service-item {
  margin-top: 50px;
}

.service-item__heading {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  min-height: 71px;
  border-bottom: 1px solid rgb(0 0 0 / .3);
  padding-bottom: 20px;
}

.service-item__icon {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.service-item h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
}

.service-item__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-item__tags li {
  border: 1px solid rgb(0 0 0 / .8);
  padding: 5px 9px;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}

.service-item__description {
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 2;
  white-space: pre-line;
}

/* Match the home page contact section on this lower page. */
.contact h2 {
  margin: 0;
  color: var(--navy);
  font-size: 42px;
  font-weight: 600;
  line-height: 1.2;
}

.contact__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px 680px;
  gap: 90px;
  align-items: start;
  width: min(1060px, calc(100% - 120px));
  margin: 0 auto;
  border-top: 1px solid rgba(0, 0, 0, .12);
  padding: 110px 0;
}

.contact__content { width: 680px; }
.contact__lead { margin: 1px 0 18px; font-size: 17px; line-height: 1.5; }
.contact__link { position: relative; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--navy); padding: 0 0 5px; line-height: 2; }
.contact__link strong { color: var(--navy); font-size: 22px; }
.contact__link img { width: 15px; height: 13px; }

@media (min-width: 768px) and (max-width: 1180px) {
  .contact h2 { font-size: 28px; }
  .contact__inner { display: block; width: 100%; padding: 60px 20px; text-align: center; }
  .contact h2 { margin-bottom: 35px; }
  .contact__content { width: 100%; }
  .contact__lead { display: block; margin: 0 0 27px; font-size: 14px; line-height: 2; }
  .contact__link { justify-content: center; width: 270px; height: 54px; margin: 0 auto; border: 1px solid transparent; border-radius: 28px; background: linear-gradient(rgba(255,255,255,.32), rgba(255,255,255,.32)) padding-box, linear-gradient(90deg, #002e62, #ca0101) border-box; padding: 0; }
  .contact__link strong { font-size: 14px; }
  .contact__link img { position: absolute; right: 24px; }
}

@media (max-width: 767px) {
  .contact h2 { font-size: 28px; }
  .contact__inner { display: block; width: 100%; padding: 60px 20px; text-align: center; }
  .contact h2 { margin-bottom: 35px; }
  .contact__content { width: 100%; }
  .contact__lead { display: block; margin: 0 0 27px; font-size: 14px; line-height: 2; }
  .contact__link { justify-content: center; width: 270px; height: 54px; margin: 0 auto; border: 1px solid transparent; border-radius: 28px; background: linear-gradient(rgba(255,255,255,.32), rgba(255,255,255,.32)) padding-box, linear-gradient(90deg, #002e62, #ca0101) border-box; padding: 0; }
  .contact__link strong { font-size: 14px; }
  .contact__link img { position: absolute; right: 24px; }
}

@media (max-width: 767px) and (hover: hover) {
  .contact__link { justify-content: space-between; width: 100%; height: auto; margin: 0; border: 0; border-bottom: 1px solid var(--navy); border-radius: 0; background: transparent; padding: 0 0 5px; }
  .contact__link strong { font-size: 18px; }
  .contact__link img { position: static; }
}

@media (max-width: 767px) and (hover: none) {
  .contact__link { width: min(290px, 100%); height: 54px; border: 0; border-radius: 100px; background: #fff; color: #002e62; font-size: 14px; }
  .contact__link::before, .contact__link::after { content: none; }
  .contact__link > strong, .contact__link > img { position: relative; z-index: 2; }
  .contact__link > img { position: absolute; right: 25px; width: 15px; height: 13px; filter: invert(15%) sepia(61%) saturate(1594%) hue-rotate(179deg) brightness(91%) contrast(105%); }
}

@media (hover: hover) {
  .contact__link img { transition: filter .42s cubic-bezier(.22, 1, .36, 1); }
  .contact__link:hover img { filter: invert(15%) sepia(61%) saturate(1594%) hue-rotate(179deg) brightness(91%) contrast(105%); }
  .contact__link::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: #005f97; content: ""; transform: scaleX(0); transform-origin: right center; transition: transform .52s cubic-bezier(.76, 0, .24, 1); }
  .contact__link:hover::after { transform: scaleX(1); transform-origin: left center; }
}

@supports (text-box-trim: trim-both) {
  @media (min-width: 768px) {
    .service-item__description {
      text-box-trim: trim-both;
      text-box-edge: cap alphabetic;
      margin-top: 30px;
    }
  }
}

@media (min-width: 768px) and (max-width: 1150px) {
  .service-group {
    grid-template-columns: minmax(210px, 1fr) minmax(0, 2.4fr);
    gap: 40px;
  }

  .service-group__intro h2 {
    font-size: 28px;
  }

  .service-group__intro h2 span {
    font-size: 20px;
  }

  .service-group__intro p {
    font-size: 15px;
  }

  .service-group__intro p br {
    display: none;
  }

  .service-item__heading {
    grid-template-columns: 35px minmax(0, 1fr);
  }

  .service-item__tags {
    grid-column: 2;
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .services-intro {
    padding-block: 38px 60px;
  }

  .services-intro h2 {
    margin-bottom: 16px;
    font-size: 20px;
    line-height: 2;
  }

  .services-intro p {
    font-size: 14px;
  }

  .services-intro__link {
    margin-top: 34px;
  }

  .services-list {
    padding-block: 44px 60px;
  }

  .service-group {
    display: block;
  }

  .service-group + .service-group {
    margin-top: 50px;
    padding-top: 44px;
  }

  .service-group__intro h2 {
    font-size: 28px;
  }

  .service-group__intro h2 span {
    font-size: 20px;
  }

  .service-group__intro p {
    margin-top: 24px;
    font-size: 14px;
  }

  .service-group__items {
    margin-top: 40px;
  }

  .service-item + .service-item {
    margin-top: 40px;
  }

  .service-item__heading {
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 16px 15px;
    min-height: 0;
    border-bottom: 0;
    border-left: 1px solid rgb(0 0 0 / .2);
    padding: 0 0 0 20px;
  }

  .service-item__icon {
    width: 25px;
    height: 25px;
  }

  .service-item h3 {
    font-size: 20px;
  }

  .service-item__tags {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 5px;
  }

  .service-item__tags li {
    padding: 5px 9px;
    font-size: 12px;
  }

  .service-item__description {
    margin-top: 20px;
    font-size: 14px;
  }
}
