/* Service / facility directory + detail — mobile-first (from web html/service-pages.css). */

.service-directory {
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px 20px 48px;
}

.service-directory > h2 {
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 24px;
  text-transform: uppercase;
}

.service-directory-empty {
  margin: 0;
  color: #6c696a;
  font-size: 15px;
  line-height: 1.6;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.service-card {
  display: block;
  color: #231f20;
  text-decoration: none;
}

.service-card > div {
  aspect-ratio: 1;
  overflow: hidden;
  background: #f4f4f4;
}

.service-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s;
}

.service-card h3 {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  margin: 10px 0 0;
  transition: color .25s;
}

.service-card:hover img {
  transform: scale(1.03);
}

.service-card:hover h3 {
  color: #319b42;
}

.service-reveal .service-card {
  opacity: 0;
  translate: 0 16px;
  transition: opacity .65s var(--delay, 0ms), translate .65s var(--delay, 0ms);
}

.service-reveal .service-card.is-visible {
  opacity: 1;
  translate: none;
}

.service-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 20px 50px;
  color: #6c696a;
  animation: service-enter .6s both;
}

.service-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 22px;
}

.service-crumb a {
  color: inherit;
  text-decoration: none;
}

.service-crumb a:hover {
  color: #319b42;
}

.service-crumb [aria-current] {
  color: #231f20;
}

.service-detail h1 {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 500;
  color: #231f20;
  margin: 0 0 26px;
}

.service-article {
  font-size: 14px;
  line-height: 23px;
}

.service-article > p {
  margin: 0 0 24px;
}

.service-article section {
  margin-bottom: 22px;
}

.service-article h2 {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 4px;
  color: #231f20;
}

.service-article ul {
  padding-left: 18px;
  margin: 0;
}

.service-photo {
  border: 0;
  background: none;
  padding: 0;
  cursor: zoom-in;
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 0 26px;
  min-height: 44px;
}

.service-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.service-lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 94vw;
  max-height: 94vh;
  overflow: visible;
}

.service-lightbox::backdrop {
  background: rgba(0, 0, 0, .8);
}

.service-lightbox > img {
  display: block;
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
}

.service-lightbox-close {
  position: absolute;
  right: 10px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #231f20;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

@keyframes service-enter {
  from { opacity: 0; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}

@media (min-width: 768px) {
  .service-directory {
    padding: 56px 2.6% 80px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }

  .service-detail {
    padding: 64px 32px 90px;
  }

  .service-detail h1 {
    font-size: 40px;
    margin-bottom: 36px;
  }

  .service-photo {
    margin-bottom: 36px;
  }

  .service-article {
    font-size: 15px;
    line-height: 24px;
  }
}

@media (min-width: 992px) {
  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-detail {
    animation: none;
  }

  .service-reveal .service-card {
    opacity: 1;
    translate: none;
    transition: none;
  }

  .service-card img,
  .service-card h3 {
    transition: none;
  }
}
