/* xLocums homepage (page 82): restore the fixed team photo behind the
   "refreshingly different" section (desktop d8777e5, phone 1d4ea9a).
   Switch: xl_home_refresh_bg_enabled. Body class: xl-refresh-bg.
   Beats homepage unified style, which had set those sections to a plain
   white fill and background-image to none.
   Style only. No Elementor data is edited. Widgets 524e6fc, 688ad07,
   f47ffac and e2dde17 are not targeted. Accent spans stay as they are.
   The faint footer photo band is not changed.
   The photo URL is set as --xl-refresh-bg-image by an inline style so a
   concatenated or cached CSS path cannot break the image.
   Desktop fixed effect is applied by home-refresh-bg.js. A CSS
   background-attachment of fixed is not used: overflow on body makes it
   behave like a normal scroll in Chrome. iOS, iPadOS, touch, tablet,
   and reduced-motion keep a normal cover image. */

/* Clear the unified white fill so the photo layer can show. Isolation
   keeps the photo layer inside this section and not behind the page. */
body.xl-refresh-bg .elementor-82 .elementor-element-d8777e5,
body.xl-refresh-bg .elementor-82 .elementor-element-1d4ea9a,
body.xl-hu-on.xl-hu-on.xl-refresh-bg .elementor-82.elementor-82 .elementor-element-d8777e5,
body.xl-hu-on.xl-hu-on.xl-refresh-bg .elementor-82.elementor-82 .elementor-element-1d4ea9a {
  position: relative !important;
  background-color: transparent !important;
  background-image: none !important;
  isolation: isolate;
  z-index: 0;
  overflow: hidden !important;
}

/* Photo layer: cover image by default (phones, tablets, reduced motion).
   Desktop JS updates --xl-refresh-bg-size and --xl-refresh-bg-pos. */
body.xl-refresh-bg .elementor-82 .elementor-element-d8777e5::before,
body.xl-refresh-bg .elementor-82 .elementor-element-1d4ea9a::before,
body.xl-hu-on.xl-hu-on.xl-refresh-bg .elementor-82.elementor-82 .elementor-element-d8777e5::before,
body.xl-hu-on.xl-hu-on.xl-refresh-bg .elementor-82.elementor-82 .elementor-element-1d4ea9a::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--xl-refresh-bg-image);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  background-attachment: scroll;
}

body.xl-refresh-bg.xl-refresh-bg--fixed .elementor-82 .elementor-element-d8777e5::before,
body.xl-hu-on.xl-hu-on.xl-refresh-bg.xl-refresh-bg--fixed .elementor-82.elementor-82 .elementor-element-d8777e5::before {
  background-size: var(--xl-refresh-bg-size, cover);
  background-position: var(--xl-refresh-bg-pos, center top);
}

/* Keep heading, copy, and buttons above the photo. */
body.xl-refresh-bg .elementor-82 .elementor-element-d8777e5 > *,
body.xl-refresh-bg .elementor-82 .elementor-element-1d4ea9a > *,
body.xl-hu-on.xl-hu-on.xl-refresh-bg .elementor-82.elementor-82 .elementor-element-d8777e5 > *,
body.xl-hu-on.xl-hu-on.xl-refresh-bg .elementor-82.elementor-82 .elementor-element-1d4ea9a > * {
  position: relative;
  z-index: 1;
}

/* The old phone HTML widget (b980ad1) already draws a fixed .bg layer
   at z-index -1, which sits behind the unified white fill. Hide it so
   this feature's own layer is the only photo, on every breakpoint. */
body.xl-refresh-bg .elementor-82 .mobile-parallex .bg,
body.xl-hu-on.xl-hu-on.xl-refresh-bg .elementor-82.elementor-82 .mobile-parallex .bg {
  display: none !important;
}
