/* RMKB Hero Illustration Video — v1.0.2
   The video becomes the background layer of the homepage hero section
   (Divi .et_pb_section_0, min-height:100vh), inside the section's existing
   box, so the page layout cannot shift. Every visual rule below is gated
   on .rmkb-hero-on, a class the JS adds to the section ONLY after the
   video fires "canplay". Without JS, or if the video fails to load, no
   rule applies and the hero keeps its current photo background and light
   overlay blend exactly as it is today.
   v1.0.2: new modern illustration cut (hero-v2 assets) and NO white wash
   over the video — see the note further down. */

/* The video fills the hero's box. object-position: center top keeps the
   burned-in "RemodelMyKitchenorBath.com" brand strip in frame (the crop
   lesson from the Mars Roofers build). */
/* v1.0.1: the section gains clipping the moment the video is inserted
   (JS adds .rmkb-hero-armed), because the video element is offset below
   the site's fixed header and extends past the section's bottom edge. */
.et_pb_section_0.rmkb-hero-armed {
    overflow: hidden;
}

.et_pb_section_0 .rmkb-hero-video {
    position: absolute;
    /* v1.0.1: starts 96px below the section top so the burned-in brand
       strip lands just under the fixed transparent header — in v1.0.0 the
       header's nav links printed directly over the gold strip text. The
       section's photo background (no longer hidden, see below) shows in
       the top 96px exactly as it did pre-video. */
    top: 96px;
    left: 0;
    right: 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;
}

/* On-state (v1.0.1): the section's photo background STAYS — the video
   covers everything from 96px down, so the photo is visible only in the
   top strip behind the transparent header, exactly as it was pre-video.
   (In v1.0.0 the photo was hidden because the video covered the whole
   section.) Deactivating the plugin — or any failure before "canplay" —
   restores the full photo hero instantly. */

/* v1.0.2: the white wash is GONE. In v1.0.0/v1.0.1 a ::after layer painted
   a linear-gradient of rgba(255,255,255,0.52) over the lower two-thirds of
   the video (mirroring the lightening the photo background receives from
   its rgba(255,255,255,0.8) overlay blend). That wash is exactly what made
   the hero look faded and washed out, so the rule is removed entirely:
   the video now renders at full colour, and the hero copy sits directly
   on the moving frames. Do not re-add a lightening layer over the video. */

/* v1.0.3: copy legibility WITHOUT touching the video's colour. With the
   wash gone, the hero's dark slate-blue headline/subheading crossed busy
   bright frames and lost contrast in spots (verified on the live page).
   Fix: a soft navy halo behind the copy zone only (radial, fading to
   transparent — the video stays full colour everywhere else) plus the
   hero copy switched to white with a soft navy text-shadow. The "Get a
   free quote" button is already solid slate-blue with white text and is
   left untouched. All rules stay gated on .rmkb-hero-on, so any failure
   before "canplay" restores the original photo hero + dark copy. */
.et_pb_section_0.rmkb-hero-on::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse 78% 58% at 50% 42%,
        rgba(10, 30, 60, 0.42) 0%,
        rgba(10, 30, 60, 0.26) 55%,
        rgba(10, 30, 60, 0) 78%);
}

.et_pb_section_0.rmkb-hero-on > .et_pb_row h1,
.et_pb_section_0.rmkb-hero-on > .et_pb_row h2,
.et_pb_section_0.rmkb-hero-on > .et_pb_row .et_pb_text_inner p {
    color: #ffffff !important;
    text-shadow: 0 2px 18px rgba(10, 30, 60, 0.55), 0 1px 3px rgba(10, 30, 60, 0.65);
}

/* Keep the hero's bottom divider wave above the video (the site's own
   rule sets it to z-index:1; this selector wins on specificity and lifts
   it to 2, so the wave keeps its exact teal colour over the video). */
.et_pb_section.et_pb_section_0.rmkb-hero-on .et_pb_bottom_inside_divider {
    z-index: 2;
}

/* Keep the hero copy (the section's rows) above everything. */
.et_pb_section_0.rmkb-hero-on > .et_pb_row {
    position: relative;
    z-index: 3;
}
