/* Grace Harbor — Nurse Care Extension hero
   Full-width professional hero, matching hospice/professionals treatment. */

body.nurses-body {
  --nce-ivory: #fbf7ef;
  --nce-cream: #f7f0e4;
  --nce-sage-light: #d9ddcf;
  --nce-sage: #879275;
  --nce-olive: #596247;
  --nce-deep-olive: #414a36;
  --nce-soft-blue: #36566b;
  --nce-charcoal: #35342f;
  --nce-body: #5b544a;
  --nce-muted: #7a7064;
  --nce-gold: #e8d8ae;
  --nce-border: rgba(100, 86, 66, 0.25);
}

body.nurses-body .header {
  background: rgba(251, 247, 239, 0.96);
  border-bottom: 1px solid var(--nce-border);
  position: sticky !important;
  top: 0 !important;
  left: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  z-index: 1000;
}

body.nurses-body .header::after {
  content: none;
  display: none;
}

/* Break the hero out of the role-page card shell */
main.page.gh-tier-page.role-page > section.nce-hero,
main.page.role-page.gh-tier-page > section.nce-hero {
  position: relative;
  isolation: isolate;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: clamp(520px, 42vw, 680px);
  overflow: hidden;
  background: var(--nce-cream) !important;
  box-sizing: border-box;
}

main.page.gh-tier-page.role-page > section.nce-hero > div,
main.page.role-page.gh-tier-page > section.nce-hero > div {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  text-align: left !important;
}

.nce-hero__scene {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: 68%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 24%);
}

.nce-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 52% 34%;
}

.nce-hero__wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      #f7f0e4 0%,
      #f7f0e4 34%,
      rgba(247, 240, 228, 0.88) 46%,
      rgba(247, 240, 228, 0.42) 58%,
      rgba(247, 240, 228, 0.1) 70%,
      rgba(247, 240, 228, 0) 84%
    );
}

main.page.gh-tier-page.role-page > section.nce-hero > .nce-hero__inner {
  position: relative;
  z-index: 2;
  width: min(92%, 1500px);
  min-height: inherit;
  margin: 0 auto !important;
  display: flex;
  align-items: center;
  padding: clamp(2rem, 4vw, 3.5rem) 0 !important;
  box-sizing: border-box;
}

.nce-hero__copy {
  width: min(52%, 640px);
  max-width: 640px;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.5rem);
  box-sizing: border-box;
  text-align: left;
}

.nce-hero__back {
  display: inline-block;
  margin: 0 0 1rem;
  color: var(--nce-olive);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.nce-hero__back:hover,
.nce-hero__back:focus-visible {
  color: var(--nce-deep-olive);
  border-bottom-color: var(--nce-olive);
}

main.page.gh-tier-page.role-page .nce-hero__title {
  margin: 0 0 0.85rem !important;
  font-family: "Cormorant Garamond", Baskerville, Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.85rem) !important;
  font-weight: 650 !important;
  line-height: 1.2;
  text-align: left !important;
  color: var(--nce-deep-olive) !important;
}

.nce-hero__lede {
  margin: 0 0 1rem;
  font-family: "Cormorant Garamond", Baskerville, Georgia, serif;
  font-size: clamp(1.12rem, 1.8vw, 1.32rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
  color: var(--nce-soft-blue);
}

.nce-hero__intro {
  margin: 0 0 1.35rem;
  font-family: "Cormorant Garamond", Baskerville, Georgia, serif;
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  line-height: 1.7;
  color: var(--nce-charcoal);
}

.nce-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 2.75rem;
  padding: 0.65rem 1.45rem;
  border-radius: 999px;
  background: var(--nce-deep-olive);
  border: 1px solid var(--nce-deep-olive);
  color: var(--nce-ivory);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}

.nce-hero__button:hover,
.nce-hero__button:focus-visible {
  background: #353b2c;
  border-color: #353b2c;
  color: var(--nce-ivory);
  outline: 2px solid var(--nce-gold);
  outline-offset: 3px;
}

.nce-hero__note {
  margin: 0.85rem 0 0;
  max-width: 34rem;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--nce-muted);
}

.nce-hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(48px, 7vw, 90px);
  z-index: 3;
  display: block;
  pointer-events: none;
}

@media (min-width: 1200px) {
  main.page.gh-tier-page.role-page > section.nce-hero > .nce-hero__inner {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(2rem, 4vw, 3.5rem) clamp(2.75rem, 8vw, 6.5rem) !important;
  }

  .nce-hero__copy {
    padding-left: 0;
  }
}

@media (min-width: 1025px) and (max-width: 1199px) {
  .nce-hero__scene {
    width: 64%;
  }

  .nce-hero__wash {
    background:
      linear-gradient(
        90deg,
        #f7f0e4 0%,
        #f7f0e4 36%,
        rgba(247, 240, 228, 0.92) 48%,
        rgba(247, 240, 228, 0.5) 60%,
        rgba(247, 240, 228, 0.16) 72%,
        rgba(247, 240, 228, 0) 86%
      );
  }
}

@media (max-width: 1024px) {
  main.page.gh-tier-page.role-page > section.nce-hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }

  .nce-hero__inner {
    order: 1;
  }

  .nce-hero__scene {
    order: 2;
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    width: 100%;
    height: clamp(220px, 42vw, 320px);
    -webkit-mask-image: none;
    mask-image: none;
  }

  .nce-hero__photo {
    position: absolute;
    inset: 0;
    object-position: 55% 28%;
  }

  .nce-hero__wash {
    display: none;
  }

  .nce-hero__wave {
    order: 3;
    position: relative;
    bottom: auto;
    height: 48px;
    margin-top: -48px;
  }

  main.page.gh-tier-page.role-page > section.nce-hero > .nce-hero__inner {
    display: block;
    width: 100% !important;
    min-height: 0;
    padding: 1.75rem 1.35rem 1.5rem !important;
  }

  .nce-hero__copy {
    width: 100%;
    max-width: none;
    padding: 0;
  }
}

@media (max-width: 767px) {
  main.page.gh-tier-page.role-page > section.nce-hero > .nce-hero__inner {
    padding: 1.5rem 1.25rem 1.35rem !important;
  }

  .nce-hero__scene {
    height: clamp(200px, 48vw, 260px);
  }

  .nce-hero__button {
    width: 100%;
    min-height: 3rem;
  }

  main.page.gh-tier-page.role-page .nce-hero__title {
    font-size: clamp(1.85rem, 8vw, 2.35rem) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nce-hero__button {
    transition: none;
  }
}
