/* Service detail pages */

.nf-svc-hero {
  position: relative;
  color: #fff;
  padding: 8.2rem 0 5rem;
  overflow: hidden;
  background: var(--nf-green-900);
}

.nf-svc-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 58% 42%;
  filter: saturate(0.82);
}

.nf-svc-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(13, 66, 34, 0.94) 0%, rgba(13, 66, 34, 0.62) 58%, rgba(13, 66, 34, 0.38) 100%);
}

.nf-svc-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 44rem;
}

.nf-svc-hero .nf-eyebrow { color: #b7d7c2; }

.nf-svc-hero h1 {
  color: #fff;
  max-width: 16ch;
  margin: 0 0 1.1rem;
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  line-height: 1.06;
}

.nf-svc-hero .nf-lede {
  color: #eef6f0;
  max-width: 34rem;
  margin: 0;
  font-size: 1.16rem;
}

.nf-svc-hero .nf-hero-actions { margin-top: 1.8rem; }

.nf-service .nf-section-head {
  max-width: none;
  margin: 0 0 1.7rem;
  text-align: left;
}

.nf-service .nf-section-head h2 {
  margin: 0;
  max-width: none;
  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-section-green-photo {
  position: relative;
  overflow: hidden;
  background: var(--nf-green-900);
}
.nf-section-green-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  filter: saturate(0.82);
}
.nf-section-green-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(13, 66, 34, 0.94) 0%, rgba(13, 66, 34, 0.82) 52%, rgba(13, 66, 34, 0.70) 100%);
}
.nf-section-green-photo .nf-wrap {
  position: relative;
  z-index: 1;
}

.nf-service .nf-section-green .nf-svc-copy,
.nf-service .nf-section-green .nf-section-head,
.nf-service .nf-section-green .nf-section-head h2,
.nf-service .nf-section-green .nf-prose,
.nf-service .nf-section-green .nf-prose p,
.nf-service .nf-section-green .nf-subblock,
.nf-service .nf-section-green .nf-plain-list,
.nf-service .nf-section-green .nf-faq {
  max-width: none;
  width: 100%;
}

.nf-service .nf-chips {
  justify-content: flex-start;
}

.nf-svc-split {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 3.25rem;
  align-items: stretch;
}

.nf-svc-split-flip {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}
.nf-svc-split-flip .nf-service-photo { order: -1; }

.nf-svc-prose-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  align-items: start;
}

.nf-svc-prose .nf-section-head,
.nf-svc-has-photo .nf-section-head {
  max-width: none;
  margin-bottom: 1.2rem;
}
.nf-svc-prose .nf-section-head h2,
.nf-svc-has-photo .nf-section-head h2 {
  max-width: none;
}
.nf-svc-prose-grid .nf-prose,
.nf-svc-prose-grid .nf-prose p,
.nf-svc-prose-grid .nf-plain-list,
.nf-service .nf-svc-prose-grid .nf-prose,
.nf-service .nf-svc-prose-grid .nf-prose p,
.nf-svc-prose .nf-prose,
.nf-svc-prose .nf-prose p,
.nf-svc-has-photo .nf-prose,
.nf-svc-has-photo .nf-prose p {
  max-width: none;
  width: 100%;
}

.nf-service .nf-plain-list {
  columns: 1;
}

.nf-service-photo {
  margin: 0;
  position: static;
  min-height: 100%;
}

.nf-service-photo img {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  display: block;
  object-fit: cover;
  object-position: center 30%;
  aspect-ratio: 4 / 3;
  background: var(--nf-green-50);
}

.nf-svc-prose.nf-svc-has-photo .nf-service-photo img {
  aspect-ratio: 4 / 5;
  min-height: 26rem;
}

.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 + .nf-prose,
.nf-service .nf-steps + .nf-prose,
.nf-service .nf-why-grid + .nf-prose {
  max-width: none;
  width: 100%;
  padding: 2rem 0 1.25rem;
}

.nf-service .nf-card-grid + .nf-prose p,
.nf-service .nf-steps + .nf-prose p,
.nf-service .nf-why-grid + .nf-prose p {
  max-width: none;
  width: 100%;
}

.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;
}

.nf-mtfs-covers-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-bottom: 2.4rem;
}
.nf-mtfs-covers-top .nf-section-head {
  max-width: none;
  margin-bottom: 0;
}
.nf-mtfs-covers-top .nf-lede {
  margin-top: 0.85rem;
  max-width: 46rem;
}
.nf-mtfs-covers-photo {
  margin: 0;
}
.nf-mtfs-covers-photo img {
  width: 100%;
  height: 100%;
  max-height: 22rem;
  display: block;
  object-fit: cover;
  object-position: center 28%;
  aspect-ratio: 5 / 4;
  background: var(--nf-green-50);
}
.nf-mtfs-cover-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--nf-line);
}
.nf-mtfs-cover-grid article {
  padding: 1.7rem 1.8rem 1.55rem 0;
  border-bottom: 1px solid var(--nf-line);
  background: transparent;
  box-shadow: none;
}
.nf-mtfs-cover-grid article:nth-child(odd) {
  padding-right: 2.2rem;
  border-right: 1px solid var(--nf-line);
}
.nf-mtfs-cover-grid article:nth-child(even) {
  padding-left: 2.2rem;
}
.nf-mtfs-cover-grid article span {
  display: block;
  font-family: var(--nf-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--nf-green-700);
  margin-bottom: 0.55rem;
}
.nf-mtfs-cover-grid article h3 {
  font-size: 1.28rem;
  line-height: 1.25;
  margin: 0 0 0.55rem;
  max-width: none;
}
.nf-mtfs-cover-grid article p {
  margin: 0;
  color: var(--nf-muted);
  max-width: none;
}

.nf-svc-spread-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-bottom: 2.15rem;
}
.nf-svc-spread-top-flip {
  grid-template-columns: 1fr;
}
.nf-svc-spread-top .nf-section-head {
  max-width: none;
  margin-bottom: 0;
}
.nf-svc-spread-top .nf-lede {
  margin-top: 0.85rem;
  max-width: 46rem;
}
.nf-svc-spread-photo {
  margin: 0;
}
.nf-svc-spread-photo img {
  width: 100%;
  height: 100%;
  max-height: 22rem;
  display: block;
  object-fit: cover;
  object-position: center 20%;
  aspect-ratio: 5 / 4;
  background: var(--nf-green-50);
}
.nf-svc-spread-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.45rem 1.55rem;
}
.nf-svc-spread-grid article {
  background: #fff;
  border: 1px solid var(--nf-line);
  padding: 1.7rem 1.65rem 1.5rem;
  box-shadow: none;
}
.nf-svc-spread-grid article span {
  display: block;
  font-family: var(--nf-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--nf-green-700);
  margin-bottom: 0.55rem;
}
.nf-svc-spread-grid article h3 {
  font-size: 1.28rem;
  line-height: 1.25;
  margin: 0 0 0.65rem;
  max-width: none;
}
.nf-svc-spread-grid article p {
  margin: 0;
  color: var(--nf-muted);
  max-width: none;
}
.nf-svc-spread-grid article:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.nf-svc-spread-foot {
  margin: 1.7rem 0 0;
  max-width: none;
  color: var(--nf-muted);
}

.nf-hub-hero {
  position: relative;
  color: #fff;
  padding: 8.2rem 0 5rem;
  overflow: hidden;
  background: var(--nf-green-900);
}
.nf-hub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(13, 66, 34, 0.94) 0%, rgba(13, 66, 34, 0.62) 58%, rgba(13, 66, 34, 0.38) 100%),
    var(--nf-hub-image) center 42% / cover no-repeat;
  filter: saturate(0.82);
  pointer-events: none;
}
.nf-hub-hero .nf-wrap {
  position: relative;
  z-index: 1;
  max-width: 44rem;
}

.nf-hub-hero .nf-eyebrow { color: #b7d7c2; }
.nf-hub-hero h1 {
  color: #fff;
  max-width: 16ch;
  margin: 0 0 1.1rem;
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  line-height: 1.06;
}
.nf-hub-hero .nf-lede {
  color: #eef6f0;
  max-width: 34rem;
  margin: 0;
  font-size: 1.16rem;
}
.nf-hub-hero .nf-hero-actions { margin-top: 1.8rem; }

.nf-hub-row { padding: 3.6rem 0; }
.nf-hub-row:nth-child(even) { background: var(--nf-cream); }

.nf-hub-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: center;
}

.nf-hub-feature-flip .nf-hub-split { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
.nf-hub-feature-flip .nf-hub-photo { order: 2; }

.nf-hub-photo { margin: 0; }
.nf-hub-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  background: var(--nf-green-50);
}

.nf-hub-copy { max-width: 36rem; }
.nf-hub-copy h2 { margin-bottom: 0.7rem; }
.nf-hub-plain .nf-hub-copy { max-width: none; }
.nf-hub-plain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 3rem;
}

@media (max-width: 1100px) {
  .nf-svc-split { gap: 2rem; }
}

@media (max-width: 900px) {
  .nf-svc-hero,
  .nf-hub-hero { padding: 6.4rem 0 3.2rem; }
  .nf-svc-hero h1,
  .nf-hub-hero h1,
  .nf-svc-hero .nf-lede,
  .nf-svc-hero-inner { max-width: none; }
  .nf-svc-split,
  .nf-svc-split-flip,
  .nf-svc-prose-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .nf-svc-split-flip .nf-service-photo { order: 0; }
  .nf-service-photo { position: static; }
  .nf-service-photo img,
  .nf-svc-prose.nf-svc-has-photo .nf-service-photo img {
    aspect-ratio: 16 / 10;
    min-height: 0;
    object-position: center;
  }
  .nf-svc-prose .nf-section-head h2,
  .nf-svc-has-photo .nf-section-head h2 { max-width: none; }
  .nf-mtfs-covers-top {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    align-items: start;
  }
  .nf-mtfs-covers-photo img {
    max-height: none;
    aspect-ratio: 16 / 10;
  }
  .nf-mtfs-cover-grid {
    grid-template-columns: 1fr;
  }
  .nf-mtfs-cover-grid article:nth-child(odd),
  .nf-mtfs-cover-grid article:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-right: 0;
  }
  .nf-svc-spread-top,
  .nf-svc-spread-top-flip {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    align-items: start;
  }
  .nf-svc-spread-top-flip .nf-svc-spread-photo {
    order: 0;
  }
  .nf-svc-spread-photo img {
    max-height: none;
    aspect-ratio: 16 / 10;
  }
  .nf-svc-spread-grid {
    grid-template-columns: 1fr;
  }
  .nf-svc-spread-grid article:last-child:nth-child(odd) {
    grid-column: auto;
  }
  .nf-hub-hero { padding: 6.2rem 0 2.6rem; }
  .nf-hub-split,
  .nf-hub-feature-flip .nf-hub-split { grid-template-columns: 1fr; }
  .nf-hub-feature-flip .nf-hub-photo { order: 0; }
  .nf-hub-photo img { aspect-ratio: 16 / 10; }
  .nf-hub-plain-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .nf-service-photo { position: static; }
}
