/* Grace Harbor — Hospice & Palliative Care Teams page
   Extends professionals editorial chrome; desktop-first, clean mobile stack. */

body.professionals-body.hospice-body .professionals-page {
  overflow-x: clip;
}

/* ----- Hero ----- */
.hospice-hero {
  position: relative;
  width: 100%;
  min-height: clamp(520px, 42vw, 680px);
  overflow: hidden;
  background-color: var(--pro-cream);
}

.hospice-hero__scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hospice-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 35%;
  display: block;
}

.hospice-hero__wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      92deg,
      #f7f0e4 0%,
      #f7f0e4 28%,
      rgba(247, 240, 228, 0.9) 40%,
      rgba(247, 240, 228, 0.4) 56%,
      rgba(247, 240, 228, 0.08) 72%,
      rgba(247, 240, 228, 0) 100%
    );
}

.hospice-hero__inner {
  position: relative;
  z-index: 2;
  width: min(92%, 1180px);
  min-height: inherit;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}

.hospice-hero__copy {
  width: min(52%, 640px);
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.5rem);
}

.hospice-hero__back {
  display: inline-block;
  margin: 0 0 1rem;
  color: var(--pro-olive);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

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

.hospice-hero__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--pro-olive);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.78rem;
}

.hospice-hero__title {
  margin: 0 0 1rem;
  font-family: "Cormorant Garamond", Baskerville, Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 650;
  line-height: 1.2;
  color: var(--pro-deep-olive);
}

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

.hospice-hero__intro:last-of-type {
  margin-bottom: 0;
}

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

/* ----- Support boxes ----- */
.hospice-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.hospice-support-grid .pro-card h3 {
  color: var(--pro-deep-olive);
}

/* ----- Steps ----- */
.hospice-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  max-width: 860px;
  margin: 0 auto;
}

.hospice-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
  text-align: left;
}

.hospice-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--pro-sage-light);
  color: var(--pro-deep-olive);
  font-family: "Cormorant Garamond", Baskerville, Georgia, serif;
  font-size: 1.2rem;
  font-weight: 650;
}

.hospice-step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
}

/* ----- Shareable resource cards ----- */
.hospice-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.hospice-resource-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.hospice-resource-card p {
  flex: 1 1 auto;
  margin-bottom: 1rem;
}

.hospice-resource-card__link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: auto !important;
  min-height: 2.5rem;
  padding: 0.55rem 1.15rem !important;
  border-radius: 999px !important;
  background: var(--pro-deep-olive) !important;
  border: 1px solid var(--pro-deep-olive) !important;
  color: var(--pro-ivory) !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  text-decoration: none !important;
  border-bottom: 1px solid var(--pro-deep-olive) !important;
}

.hospice-resource-card__link:hover,
.hospice-resource-card__link:focus-visible {
  background: #353b2c !important;
  border-color: #353b2c !important;
  color: var(--pro-ivory) !important;
  outline: 2px solid var(--pro-soft-gold);
  outline-offset: 3px;
}

.hospice-resource-card__pending {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: auto;
  min-height: 2.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid var(--pro-olive);
  color: var(--pro-muted);
  font-weight: 600;
  font-size: 0.88rem;
  opacity: 0.8;
  cursor: default;
}

/* ----- Partnership boxes ----- */
.hospice-partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

/* ----- Closing quote block ----- */
.hospice-closing {
  background:
    linear-gradient(180deg, rgba(217, 221, 207, 0.35), rgba(247, 240, 228, 0.95));
  text-align: center;
}

.hospice-closing h2 {
  margin: 0 0 1.15rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.hospice-closing p {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* ----- CTA ----- */
.hospice-cta .professionals-cta__actions {
  margin-top: 1.75rem;
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .hospice-support-grid,
  .hospice-resource-grid,
  .hospice-partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hospice-hero__copy {
    width: min(62%, 620px);
  }

  .hospice-hero__photo {
    object-position: 70% 30%;
  }
}

@media (max-width: 767px) {
  .hospice-hero {
    min-height: auto;
  }

  .hospice-hero__scene {
    position: relative;
    height: clamp(220px, 48vw, 300px);
  }

  .hospice-hero__photo {
    object-position: 72% 28%;
  }

  .hospice-hero__wash {
    background:
      linear-gradient(
        180deg,
        rgba(247, 240, 228, 0.15) 0%,
        rgba(247, 240, 228, 0.55) 55%,
        #f7f0e4 100%
      );
  }

  .hospice-hero__inner {
    display: block;
    min-height: 0;
    width: 100%;
    padding: 0;
  }

  .hospice-hero__copy {
    width: 100%;
    padding: 1.75rem 1.35rem 2.5rem;
    box-sizing: border-box;
  }

  .hospice-support-grid,
  .hospice-resource-grid,
  .hospice-partner-grid {
    grid-template-columns: 1fr;
  }

  .hospice-resource-card__link,
  .hospice-resource-card__pending {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    justify-content: center;
    min-height: 2.75rem;
  }

  .hospice-hero__wave {
    height: 48px;
  }
}
