/* ==========================================================================
   Sectors page only - the Framer hero illustration, placed and masked as in the Framer design
   (framer.app/sectors): a 617x585 box, contained image, exact 112deg fade, 135px below the hero top, slid in from the
   frame's right edge so the whole picture is visible. Loaded only by sectors.php; scoped to body.healthcare-page.
   ========================================================================== */

body.healthcare-page .strategic-hero-visual {
  position: absolute !important;
  top: 135px !important;
  right: clamp(40px, 7vw, 130px) !important;
  bottom: auto !important;
  left: auto !important;
  width: 617px !important;
  max-width: none !important;
  height: 585px !important;
  aspect-ratio: auto !important;
  overflow: visible !important;
  pointer-events: none !important;
  z-index: 1 !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

body.healthcare-page .strategic-hero-img {
  display: block !important;
  width: 617px !important;
  max-width: none !important;
  height: 585px !important;
  object-fit: contain !important;
  object-position: 50% 50% !important;
  -webkit-mask-image: linear-gradient(112deg, rgba(0, 0, 0, 0) 23.2759%, rgb(0, 0, 0) 100%);
  mask-image: linear-gradient(112deg, rgba(0, 0, 0, 0) 23.2759%, rgb(0, 0, 0) 100%);
}

/* The page stylesheet puts a frosted white panel (#ffffff91 + blur) over the hero text block; it would wash out and
   blur the image wherever the two overlap. Framer has no such panel. */
body.healthcare-page .strategic-hero-content {
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  position: relative;
  z-index: 2;
}

/* The text block stops where the image's strong part begins (it may run ~142px into the faded edge), so the
   heading and paragraph never sit on top of the illustration. Image left = frame right - offset - 617px. */
@media (min-width: 1025px) {
  body.healthcare-page .strategic-hero-content {
    width: 100% !important;
    max-width: calc(100% - 395px - clamp(40px, 7vw, 130px)) !important;
  }
}

/* ---- Tablet / mobile: the illustration sits in the flow under the text ---- */
@media (max-width: 1024px) {
  body.healthcare-page .strategic-hero-visual {
    position: static !important;
    width: 100% !important;
    max-width: 420px !important;
    height: auto !important;
    margin: 20px 0 0 !important;
  }

  body.healthcare-page .strategic-hero-img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1358 / 1159;
  }
}

/* Hero heading sizing (was an inline style attribute; inline letter-spacing with !important fails the
   "text spacing must be adjustable" accessibility rule, so it lives in the stylesheet now). */
body.healthcare-page .strategic-hero-content .strategic-main-heading {
  max-width: 100% !important;
  font-size: clamp(24px, 3.2vw, 45px) !important;
  line-height: 1.15 !important;
  margin-bottom: 18px !important;
  letter-spacing: -0.02em !important;
}
