/* Mars HVAC — illustration video as the Divi hero section's background.
   Target section: .et_pb_section_0.kenburns_header (unique on the page).
   The video and scrim start at opacity 0 and only fade in under
   .mh-hero-on, a class the JS adds after the video fires "canplay".
   Without JS, or if the video fails, no visible rule ever applies and
   the hero keeps its current photo background exactly as it is. */

/* Background layer: fills the hero section's existing box (the section
   is position:relative in Divi core), so the layout cannot shift.
   object-position: center top keeps the burned-in "MarsHVAC.com" brand
   strip in frame (the crop lesson from the 911 v1.0.0 fix). */
.et_pb_section_0.kenburns_header .mh-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 0;
    display: block;
    border: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

/* Readability scrim above the video, below the hero rows. The hero's
   white copy (kicker, 78px H1, 85%-white sub) is darkened today by the
   section's rgba(0,0,0,0.79) background-color blended with the photo;
   a <video> cannot inherit that blend, so this gradient reproduces a
   comparable darkening — strongest on the left, where the copy sits. */
.et_pb_section_0.kenburns_header .mh-hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(6, 17, 34, 0.20), rgba(6, 17, 34, 0.10) 55%, rgba(6, 17, 34, 0.26)),
        linear-gradient(90deg, rgba(6, 17, 34, 0.56) 0%, rgba(6, 17, 34, 0.34) 55%, rgba(6, 17, 34, 0.44) 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

/* On-state: clip the layers to the section box, fade them in, and lift
   the hero's rows (headline, CTA, REQUEST SERVICE form, link row) above
   both layers. Video and scrim are pointer-events:none, so the form and
   buttons stay fully interactive. */
.et_pb_section_0.kenburns_header.mh-hero-on {
    overflow: hidden;
}

.et_pb_section_0.kenburns_header.mh-hero-on .mh-hero-video,
.et_pb_section_0.kenburns_header.mh-hero-on .mh-hero-scrim {
    opacity: 1;
}

.et_pb_section_0.kenburns_header.mh-hero-on > .et_pb_row {
    position: relative;
    z-index: 2;
}
