/* Layout helpers for the service pages. */

.page-hero h1 {
  max-width: 22ch;
}

.service-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.service-body p {
  margin: 0 0 1rem;
}

.service-body p:last-child {
  margin-bottom: 0;
}

.service-body h2 {
  margin: 2rem 0 0.8rem;
}

.service-body h2:first-child {
  margin-top: 0;
}

.service-points {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
}

.service-points li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.15rem;
  border-top: 1px solid var(--line);
}

.service-points li:first-child {
  border-top: 0;
}

.service-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 0.5rem;
  height: 2px;
  background: var(--blue);
}

.service-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-grid a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.related-grid a:hover h3,
.related-grid a:focus-visible h3 {
  color: var(--blue-dark);
}

.service-photos {
  margin-top: 0.5rem;
}

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

  .related-grid {
    grid-template-columns: 1fr;
  }
}


.service-grid .service-card > a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.service-grid .service-card > a:hover h3,
.service-grid .service-card > a:focus-visible h3 {
  color: var(--blue-dark);
}
