/* Service detail pages */

.nf-svc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  width: 100%;
  min-height: min(78vh, 46rem);
  background: var(--nf-green-900);
  color: #fff;
  overflow: hidden;
}

.nf-svc-hero-pane {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7.25rem 3rem 4rem max(1.25rem, calc((100vw - var(--nf-max)) / 2));
}

.nf-svc-hero-copy {
  max-width: 38rem;
  text-align: left;
}

.nf-svc-hero .nf-crumbs {
  margin-bottom: 1.1rem;
}

.nf-svc-hero .nf-eyebrow {
  color: #b7d7c2;
  margin-bottom: 0.85rem;
}

.nf-svc-hero h1 {
  color: #fff;
  max-width: 36rem;
  margin: 0 0 1rem;
  font-size: clamp(2.15rem, 4vw, 3.35rem);
  text-align: left;
}

.nf-svc-hero .nf-lede {
  color: #eef6f0;
  max-width: 34rem;
  margin: 0 0 1rem;
  font-size: 1.12rem;
}

.nf-svc-hero-intro {
  max-width: 36rem;
  margin: 0 0 1.6rem;
  opacity: 0.92;
  line-height: 1.7;
}

.nf-svc-hero .nf-hero-actions {
  margin-top: 0.4rem;
}

.nf-svc-hero-media {
  position: relative;
  min-height: 100%;
  background-size: cover;
  background-position: center;
}

.nf-svc-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 66, 34, 0.42) 0%, transparent 38%),
    linear-gradient(180deg, rgba(13, 66, 34, 0.28) 0%, transparent 32%);
  pointer-events: none;
}

.nf-service .nf-section-head {
  max-width: 40rem;
  margin: 0 0 1.7rem;
  text-align: left;
}

.nf-service .nf-section-head h2 {
  margin: 0;
  max-width: 22ch;
  text-align: left;
}

.nf-service .nf-prose,
.nf-service .nf-prose p,
.nf-service .nf-subblock,
.nf-service .nf-faq {
  max-width: 40rem;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.nf-service .nf-chips {
  justify-content: flex-start;
}

.nf-svc-split {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3.25rem;
  align-items: start;
}

.nf-service-photo {
  margin: 0;
  position: sticky;
  top: 6rem;
}

.nf-service-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  background: var(--nf-green-50);
}

.nf-svc-has-photo .nf-plain-list {
  columns: 1;
}

.nf-service .nf-card-grid,
.nf-service .nf-why-grid {
  margin-top: 0.4rem;
}

.nf-service .nf-card-grid article,
.nf-service .nf-why-grid article {
  text-align: left;
}

.nf-service .nf-card-grid article h3,
.nf-service .nf-why-grid article h3,
.nf-service .nf-steps h3 {
  margin-bottom: 0.45rem;
}

.nf-service .nf-faq {
  max-width: 46rem;
}

.nf-svc-related .nf-section-head h2 {
  max-width: none;
}

@media (max-width: 1100px) {
  .nf-svc-hero-pane { padding: 7rem 2rem 3.4rem max(1.25rem, calc((100vw - var(--nf-max)) / 2)); }
  .nf-svc-split { gap: 2rem; }
}

@media (max-width: 900px) {
  .nf-svc-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .nf-svc-hero-media {
    min-height: 38vh;
    order: -1;
  }
  .nf-svc-hero-pane {
    padding: 2.4rem max(1.25rem, calc((100vw - var(--nf-max)) / 2)) 3rem;
  }
  .nf-svc-hero h1,
  .nf-svc-hero .nf-lede,
  .nf-svc-hero-intro,
  .nf-svc-hero-copy { max-width: none; }
  .nf-svc-split { grid-template-columns: 1fr; }
  .nf-service-photo { position: static; }
  .nf-service-photo img { aspect-ratio: 16 / 10; }
}

@media (prefers-reduced-motion: reduce) {
  .nf-service-photo { position: static; }
}
