/* UI Hero Illustration Video — Universal Inspect homepage hero.
   The video becomes the background layer of the existing hero container
   (Elementor element 893cc7b, min-height 936px desktop). The hero keeps its
   exact box and its own photo background (picture-3.jpg over navy #031B40),
   which stays in place underneath as the fallback — the plugin never
   removes it, so if the video cannot load or play, the homepage looks
   exactly as it does today. No layout shift is possible: the video is
   absolutely positioned inside the hero's existing box. */

/* Armed state (JS adds this the moment the video is inserted, before it can
   play): the container becomes the positioning context and clips the video
   to the hero box, exactly where its photo background paints today. */
.elementor-element-893cc7b.ui-hero-armed {
    position: relative;
    overflow: hidden;
}

/* The video fills the hero box like background-size: cover fills it now.
   object-position: center top keeps the burned-in "UniversalInspect.com"
   brand strip in frame when the wide hero box crops the 16:9 frame
   (the crop lesson from the Mars Roofers build). It starts invisible and
   fades in only in the on-state, after "canplay". */
.ui-hero-video {
    position: absolute;
    /* v1.0.1: the hero slides ~100px under the site's transparent header,
       whose logo / pill / BOOK NOW elements painted over the burned-in
       brand strip for the first seconds after load. The video element now
       starts 108px below the hero top so the strip lands just under the
       header zone; the armed container's overflow:hidden clips the 108px
       the element extends past the hero bottom, and the hero's photo
       background shows in the top strip exactly as it did pre-video. */
    top: 108px;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 1;
    display: block;
    border: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.elementor-element-893cc7b.ui-hero-on .ui-hero-video {
    opacity: 1;
}

/* On-state only: lift the hero content (headline, animated text, stats,
   "See Pricing" button, inspector photo) above the video layer. Without
   the video there is no on-state and this rule never applies. */
.elementor-element-893cc7b.ui-hero-on > .e-con-inner {
    position: relative;
    z-index: 2;
}
