/* Service pages share the Nostra home page's type, colour and navigation. */
body:has(.nostra-service-page) .page-title,
body:has(.nostra-service-page) .block-page-title-block {
  display: none;
}

.nostra-service-page .nh-nav__link[aria-current="page"] {
  background: var(--blush);
  color: var(--brick-deep);
}

.nsp-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 650px;
  padding: 90px 0;
  overflow: hidden;
  background: var(--cream);
}

.nsp-hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,
    rgb(252 248 245 / 0.72) 0%,
    rgb(252 248 245 / 0.88) 27%,
    rgb(252 248 245 / 0.88) 73%,
    rgb(252 248 245 / 0.72) 100%);
  content: "";
}

.nsp-hero__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.nostra-service-page .nsp-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
}

.nostra-service-page--healthcare .nsp-hero__visual img {
  object-position: center 25%;
}

.nsp-hero__in {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.nsp-hero h1 {
  max-width: 950px;
  margin: 24px 0;
  font-size: clamp(3rem, 5.8vw, 6rem);
  line-height: 1.03;
}

.nsp-hero__lede {
  max-width: 690px;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  color: var(--muted);
}

.nsp-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 35px;
}

.nsp-intro__in {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}

.nsp-intro h2 {
  max-width: 760px;
}

.nsp-intro p:not(.nh-label) {
  max-width: 760px;
  margin-top: 24px;
  font-size: 1.16rem;
  color: var(--muted);
}

.nsp-grid,
.nsp-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.nsp-card,
.nsp-steps li {
  padding: 32px;
  border-radius: var(--radius);
}

.nsp-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--hair);
  padding: 0;
}

.nostra-service-page .nsp-card__image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.nsp-card__body {
  padding: 28px 32px 32px;
}

.nsp-card__number,
.nsp-steps__number {
  display: inline-block;
  font-weight: 800;
  color: var(--brick);
}

.nsp-card__number {
  margin-bottom: 18px;
}

.nsp-steps__number {
  margin-bottom: 36px;
}

.nsp-card h3,
.nsp-steps h3 {
  margin-bottom: 12px;
}

.nsp-card p,
.nsp-steps p {
  color: var(--muted);
}

.nsp-steps li {
  border-top: 2px solid var(--brick);
  border-radius: 0;
  padding-left: 0;
}

.nsp-worker__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  background: var(--blush);
}

.nsp-worker__panel h2 {
  max-width: 680px;
  margin-top: 18px;
}

.nsp-worker__panel p:not(.nh-label) {
  max-width: 740px;
  margin-top: 20px;
  color: var(--muted);
}

.nsp-cta {
  padding: 85px 0;
  background: var(--sand);
}

.nsp-cta__in {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.nsp-cta p:not(.nh-label) {
  margin-top: 18px;
  color: var(--muted);
}

@media (max-width: 960px) {
  .nsp-intro__in {
    grid-template-columns: 1fr;
  }

  .nsp-worker__panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 720px) {
  .nsp-hero {
    min-height: 600px;
    padding: 70px 0;
  }

  .nsp-hero::after {
    background: rgb(252 248 245 / 0.88);
  }

  .nsp-actions {
    align-self: stretch;
    flex-direction: column;
  }

  .nsp-grid,
  .nsp-steps {
    grid-template-columns: 1fr;
  }

  .nsp-card__body {
    padding: 24px;
  }

  .nsp-worker__panel {
    padding: 28px;
  }

  .nsp-cta__in {
    align-items: start;
    flex-direction: column;
  }
}
