/* ===================================
   Services Page
   =================================== */

.services-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: clamp(7rem, 12vw, 10rem) clamp(1rem, 5vw, 5rem) clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  color: var(--white);
  background: var(--black);
}

.services-hero__media-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.services-hero__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.04) contrast(1.04) brightness(0.62);
}

.services-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(8, 8, 8, 0.88), rgba(8, 8, 8, 0.28) 58%, rgba(8, 8, 8, 0.04)),
    linear-gradient(90deg, rgba(8, 8, 8, 0.4), transparent 55%);
  pointer-events: none;
}

.services-hero__content {
  position: relative;
  z-index: 2;
  max-width: 76rem;
}

.services-hero__eyebrow {
  margin: 0 0 0.8rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 244, 240, 0.74);
}

.services-hero h1 {
  max-width: 62rem;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.8rem, 9vw, 10rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
}

.services-hero__lede {
  max-width: 42rem;
  margin: clamp(1rem, 2vw, 1.5rem) 0 0;
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 1.58;
  color: rgba(245, 244, 240, 0.82);
}

.services-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem clamp(1.25rem, 3vw, 2rem);
  margin-top: clamp(1.7rem, 3vw, 2.6rem);
}

.services-directory,
.services-decision,
.services-seo-copy,
.services-footer-cta {
  background: var(--pet-route-bg, #ebe6db);
  color: var(--black);
}

.services-directory {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem) clamp(4rem, 8vw, 7rem);
}

.services-directory > *:not(.services-foliage) {
  position: relative;
  z-index: 1;
}

.services-foliage {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  opacity: 0.045;
  filter: grayscale(1) contrast(0.85);
  mix-blend-mode: multiply;
}

.services-foliage--fern {
  top: clamp(1rem, 4vw, 4rem);
  right: clamp(-13rem, -12vw, -5rem);
  width: clamp(28rem, 48vw, 58rem);
  transform: rotate(-8deg);
}

.services-foliage--thistles {
  left: clamp(-8rem, -7vw, -3rem);
  top: 44%;
  width: clamp(14rem, 24vw, 28rem);
  opacity: 0.05;
}

.services-foliage--sprig {
  right: clamp(-6rem, -4vw, -2rem);
  bottom: 8%;
  width: clamp(12rem, 20vw, 24rem);
  opacity: 0.035;
  transform: scaleX(-1) rotate(12deg);
}

.services-directory__header {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid rgba(8, 8, 8, 0.18);
}

.services-directory__header h2 {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 8vw, 8rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
}

.services-directory__header p:not(.section-kicker) {
  max-width: 46rem;
  margin: 0;
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  line-height: 1.65;
  color: rgba(8, 8, 8, 0.66);
}

.services-index {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(1.5rem, 3vw, 2.25rem);
  background: rgba(8, 8, 8, 0.15);
  border: 1px solid rgba(8, 8, 8, 0.15);
}

.services-index a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.75rem;
  padding: 0.95rem 1rem;
  background: var(--pet-route-bg, #ebe6db);
  color: rgba(8, 8, 8, 0.74);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.services-index a:hover {
  background: rgba(8, 8, 8, 0.04);
  color: var(--black);
}

.services-index span {
  color: var(--gold);
}

.services-list {
  display: grid;
  border-top: 1px solid rgba(8, 8, 8, 0.22);
}

.service-entry {
  display: grid;
  grid-template-columns: clamp(4rem, 7vw, 6rem) minmax(0, 1fr) minmax(18rem, 34vw, 32rem);
  grid-template-areas:
    "date content media"
    "date actions media";
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  padding: clamp(1.6rem, 3.2vw, 2.7rem) 0;
  border-bottom: 1px solid rgba(8, 8, 8, 0.16);
  color: var(--black);
  scroll-margin-top: 5rem;
}

.service-entry__date {
  grid-area: date;
  align-self: stretch;
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding-top: 0.15rem;
  font-family: var(--font-ui);
  text-transform: uppercase;
}

.service-entry__date span {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: rgba(8, 8, 8, 0.45);
}

.service-entry__date strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 0.9;
}

.service-entry__media {
  grid-area: media;
  justify-self: center;
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 32rem;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: rgba(8, 8, 8, 0.08);
  border-radius: clamp(0.5rem, 1.2vw, 0.9rem);
}

.service-entry__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.02) contrast(1.04) brightness(0.88);
  transition: transform 0.7s var(--ease-main), filter 0.3s ease;
}

.service-entry:hover .service-entry__media img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.04) brightness(0.94);
}

.service-entry__ghost-label {
  position: absolute;
  left: clamp(0.75rem, 1.5vw, 1rem);
  bottom: clamp(0.75rem, 1.5vw, 1rem);
  z-index: 1;
  max-width: calc(100% - 2rem);
  padding: 0.35rem 0.55rem;
  background: rgba(245, 244, 240, 0.78);
  color: rgba(8, 8, 8, 0.68);
  font-family: var(--font-ui);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.service-entry__content {
  grid-area: content;
  min-width: 0;
}

.service-entry__content .section-kicker {
  margin-bottom: 0.35rem;
}

.service-entry h3 {
  max-width: 42rem;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.4vw, 4.6rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.service-entry__best-for,
.service-entry__summary {
  max-width: 52rem;
  margin: 0.75rem 0 0;
  font-size: clamp(0.92rem, 1.25vw, 1rem);
  line-height: 1.58;
  color: rgba(8, 8, 8, 0.68);
}

.service-entry__best-for strong {
  color: var(--black);
  font-weight: 500;
}

.service-entry__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.service-entry__tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(8, 8, 8, 0.2);
  font-family: var(--font-ui);
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
  color: rgba(8, 8, 8, 0.62);
}

.service-entry__actions {
  grid-area: actions;
  justify-self: start;
}

.service-entry__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 6.5rem;
  min-height: 2.75rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(8, 8, 8, 0.85);
  color: var(--black);
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.service-entry__link::after {
  content: "↗";
  font-size: 0.9rem;
  line-height: 1;
  color: var(--gold);
}

.service-entry__link:hover {
  background: var(--black);
  color: var(--white);
}

.service-entry--featured {
  margin: 0 calc(-1 * clamp(1rem, 5vw, 5rem));
  padding-left: clamp(1rem, 5vw, 5rem);
  padding-right: clamp(1rem, 5vw, 5rem);
  background: #080808;
  color: var(--white);
  border-bottom-color: transparent;
}

.service-entry--featured .section-kicker,
.service-entry--featured .service-entry__date span,
.service-entry--featured .service-entry__tag,
.service-entry--featured .service-entry__best-for,
.service-entry--featured .service-entry__summary {
  color: rgba(245, 244, 240, 0.68);
}

.service-entry--featured .service-entry__best-for strong,
.service-entry--featured .service-entry__date strong {
  color: var(--white);
}

.service-entry--featured .service-entry__tag {
  border-color: rgba(245, 244, 240, 0.24);
}

.service-entry--featured .service-entry__link {
  border-color: rgba(245, 244, 240, 0.68);
  color: var(--white);
}

.service-entry--featured .service-entry__link:hover {
  background: var(--white);
  color: var(--black);
}

.service-entry--featured .service-entry__ghost-label {
  background: rgba(8, 8, 8, 0.62);
  color: rgba(245, 244, 240, 0.78);
}

.services-decision {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
  border-top: 1px solid rgba(8, 8, 8, 0.14);
}

.services-decision__intro {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.services-decision h2 {
  max-width: 76rem;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.7rem, 6.4vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.services-decision__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(8, 8, 8, 0.16);
  border: 1px solid rgba(8, 8, 8, 0.16);
}

.services-decision__grid article {
  min-height: clamp(14rem, 21vw, 19rem);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: var(--pet-route-bg, #ebe6db);
}

.services-decision__grid span {
  display: block;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3.5rem);
  line-height: 0.9;
}

.services-decision__grid h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.8vw, 2.7rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.services-decision__grid p {
  margin: 0.9rem 0 0;
  font-size: clamp(0.95rem, 1.25vw, 1.05rem);
  line-height: 1.6;
  color: rgba(8, 8, 8, 0.68);
}

.services-decision__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.4rem;
  align-items: center;
  justify-content: center;
  margin-top: clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.services-decision__footer p {
  margin: 0;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.5;
  color: rgba(8, 8, 8, 0.6);
}

.services-seo-copy {
  margin-top: clamp(4rem, 8vw, 7rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(8, 8, 8, 0.12);
}

.services-seo-copy p {
  max-width: 76rem;
  margin: 0;
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  line-height: 1.8;
  color: rgba(8, 8, 8, 0.48);
}

.services-footer-cta {
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
  min-height: 82svh;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: clamp(5rem, 10vw, 9rem) clamp(1rem, 5vw, 5rem);
}

.services-footer-cta > *:not(.pet-foliage) {
  position: relative;
  z-index: 1;
}

.services-footer-cta .pet-foliage {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  height: auto;
  max-width: none;
  opacity: 0.28;
}

.services-footer-cta .pet-foliage--tl {
  top: -4%;
  left: -3%;
  width: clamp(16rem, 28vw, 28rem);
}

.services-footer-cta .pet-foliage--tr {
  top: -4%;
  right: -3%;
  width: clamp(16rem, 28vw, 28rem);
  transform: scaleX(-1);
}

.services-footer-cta .pet-foliage--logo {
  top: 5%;
  left: 50%;
  width: clamp(14rem, 22vw, 28rem);
  transform: translateX(-50%);
  opacity: 0.08;
  mix-blend-mode: multiply;
}

.services-footer-cta h2 {
  max-width: 58rem;
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
}

.services-footer-cta p:not(.section-kicker) {
  max-width: 40rem;
  margin: clamp(1rem, 2.5vw, 1.75rem) 0 0;
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  line-height: 1.6;
  color: rgba(8, 8, 8, 0.66);
}

.services-footer-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem clamp(1.25rem, 3vw, 2rem);
  align-items: center;
  justify-content: center;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.site-footer__mark img {
  display: block;
  width: clamp(5rem, 11vw, 9rem);
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1100px) {
  .services-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-entry {
    grid-template-columns: clamp(3.5rem, 8vw, 5rem) minmax(0, 1fr) minmax(13rem, 30vw, 20rem);
  }

  .service-entry__actions {
    justify-self: start;
    margin-top: -0.25rem;
  }

  .services-decision__intro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .services-hero {
    min-height: 100svh;
    padding-bottom: clamp(2rem, 8vw, 3rem);
  }

  .services-hero h1 {
    font-size: clamp(3.1rem, 15vw, 5.5rem);
  }

  .services-directory {
    padding-top: clamp(3.5rem, 12vw, 5rem);
  }

  .services-foliage {
    opacity: 0.026;
  }

  .services-foliage--fern {
    right: -18rem;
    width: 34rem;
  }

  .services-foliage--thistles,
  .services-foliage--sprig {
    display: none;
  }

  .services-footer-cta .pet-foliage--tl,
  .services-footer-cta .pet-foliage--tr {
    display: none;
  }

  .services-footer-cta .pet-foliage--logo {
    width: clamp(7rem, 36vw, 12rem);
  }

  .services-directory__header h2,
  .services-decision h2,
  .services-footer-cta h2 {
    font-size: clamp(2.7rem, 13vw, 4.6rem);
  }

  .services-index {
    grid-template-columns: 1fr;
  }

  .services-index a {
    min-height: 3.25rem;
  }

  .service-entry,
  .service-entry--featured {
    grid-template-columns: clamp(3.5rem, 14vw, 4.5rem) minmax(0, 1fr);
    grid-template-areas:
      "date media"
      "date content"
      "date actions";
    gap: 1rem;
    padding-top: clamp(1.5rem, 7vw, 2.25rem);
    padding-bottom: clamp(1.5rem, 7vw, 2.25rem);
  }

  .service-entry__date {
    grid-column: auto;
    grid-row: auto;
  }

  .service-entry__media {
    width: min(100%, 34rem);
    max-width: none;
    aspect-ratio: 16 / 10;
  }

  .service-entry__content,
  .service-entry__actions {
    grid-column: auto;
  }

  .service-entry__actions {
    justify-self: start;
    margin-top: 0;
  }

  .service-entry h3 {
    font-size: clamp(2rem, 10vw, 3.4rem);
  }

  .service-entry__best-for,
  .service-entry__summary {
    font-size: 0.94rem;
  }

  .service-entry__link {
    min-width: 0;
    width: 100%;
  }

  .services-decision__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .service-entry,
  .service-entry--featured {
    grid-template-columns: 1fr;
    grid-template-areas:
      "date"
      "media"
      "content"
      "actions";
  }

  .service-entry__date,
  .service-entry__media,
  .service-entry__content,
  .service-entry__actions {
    grid-column: auto;
  }

  .service-entry__date {
    grid-row: auto;
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
  }
}
