/*
 * SafeHome | V3 edge-to-edge cinematic hero
 * Only the homepage hero is redesigned. Other pages keep the V2 styling.
 * The supplied square product images remain complete, using object-fit: contain.
 * An atmospheric, blurred backdrop fills the whole slide; it is not the product image.
 */

/* No card-like half-screen panel: the whole browser width is one continuous banner. */
.hero[data-hero-slideshow] {
    width: 100%;
    max-width: none;
    margin: 0;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #060c09;
    border: 0;
    border-bottom: 2px solid #315327;
}

.hero[data-hero-slideshow] .hero-slide,
.hero[data-hero-slideshow] .hero-slide.is-active {
    position: relative;
    width: 100%;
    min-height: clamp(680px, 47vw, 850px);
    background: #061009;
    overflow: hidden;
}

.hero[data-hero-slideshow] .hero-slide {
    display: none;
}

.hero[data-hero-slideshow] .hero-slide.is-active {
    display: block;
    animation: full-bleed-reveal .55s ease-out both;
}

@keyframes full-bleed-reveal {
    from { opacity: .35; }
    to { opacity: 1; }
}

/* A full-bleed cinematic background produced entirely with CSS and the original file. */
.hero[data-hero-slideshow] .hero-slide::before {
    content: "";
    position: absolute;
    inset: -12%;
    z-index: 0;
    background-image: var(--slide-image);
    background-size: cover;
    background-position: center;
    filter: blur(52px) saturate(.85) brightness(.28);
    transform: scale(1.1);
    pointer-events: none;
}

.hero[data-hero-slideshow] .hero-slide::after {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(2, 8, 5, 1) 0%, rgba(3, 10, 6, .99) 31%, rgba(3, 10, 6, .98) 43%, rgba(3, 10, 6, .78) 50%, rgba(3, 10, 6, .18) 62%, rgba(3, 10, 6, 0) 75%),
        linear-gradient(0deg, rgba(5, 12, 7, .55), transparent 23%);
    pointer-events: none;
}

.hero[data-hero-slideshow] .hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: clamp(680px, 47vw, 850px);
    padding: 0;
    gap: 0;
}

/* Text is an overlay ON the full-width slide, not a separate shaded column. */
.hero[data-hero-slideshow] .hero-content {
    position: relative;
    z-index: 4;
    display: block;
    flex: 0 0 min(49%, 740px);
    width: min(49%, 740px);
    max-width: none;
    min-width: 0;
    padding: 70px 25px 108px clamp(28px, 5.8vw, 125px);
    margin: 0;
    background: transparent;
}

.hero[data-hero-slideshow] .hero-content h1,
.hero[data-hero-slideshow] .hero-content h2 {
    max-width: 790px;
    font-size: clamp(3.05rem, 4.75vw, 5.5rem);
    line-height: 1.045;
    letter-spacing: -.056em;
    margin: 23px 0 23px;
    text-wrap: balance;
    text-shadow: 0 4px 22px rgba(0, 0, 0, .35);
}

.hero[data-hero-slideshow] .hero-content p {
    max-width: 650px;
    font-size: clamp(1.12rem, 1.35vw, 1.4rem);
    line-height: 1.65;
    color: #edf4e9;
    text-shadow: 0 2px 14px #0009;
}

.hero[data-hero-slideshow] .hero-overline {
    font-size: clamp(.75rem, .9vw, .88rem);
    color: #c2ff73;
    background: rgba(13, 31, 15, .52);
    border-color: rgba(171, 252, 66, .36);
}

.hero[data-hero-slideshow] .hero-badge {
    margin-top: 25px;
}

.hero[data-hero-slideshow] .hero-price {
    font-size: clamp(3.4rem, 5vw, 5.8rem);
}

.hero[data-hero-slideshow] .hero-content .btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: auto;
    margin-top: 26px;
}

/* Original product photograph fills the height of the right-hand part of the canvas.
   No card, no border, no rounded rectangle, and absolutely NO CROPPING. */
.hero[data-hero-slideshow] .hero-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 0;
    transform: none;
    overflow: hidden;
    background: transparent;
}

.hero[data-hero-slideshow] .hero-photo::before {
    display: none;
}

.hero[data-hero-slideshow] .hero-photo picture {
    position: absolute;
    inset: 0 0 0 auto;
    display: block;
    width: min(57%, 1050px);
    height: 100%;
    margin: 0;
    padding: 0;
}

.hero[data-hero-slideshow] .hero-photo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: right center;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    transform: none;
}

/* Blend the complete photo into a single panoramic slide behind readable copy. */
.hero[data-hero-slideshow] .hero-photo::after {
    content: "";
    position: absolute;
    display: block;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg,
        #030a05 0%,
        rgba(3,10,5,.99) 30%,
        rgba(3,10,5,.98) 41%,
        rgba(3,10,5,.85) 48%,
        rgba(3,10,5,.20) 60%,
        transparent 72%);
    pointer-events: none;
}

.hero[data-hero-slideshow] .hero-photo .image-note { display: none; }

.hero[data-hero-slideshow] .hero-controls {
    position: absolute;
    bottom: 26px;
    left: 0;
    right: 0;
    z-index: 8;
    background: transparent;
    padding: 0;
}

.hero[data-hero-slideshow] .hero-controls .container {
    width: calc(100% - clamp(48px, 12vw, 250px));
    max-width: none;
    margin: 0 auto;
}

.hero[data-hero-slideshow] .hero-arrows button {
    width: 52px;
    height: 52px;
    border: 1px solid #7f9c68;
    background: rgba(0, 0, 0, .62);
}

@media (max-width: 1080px) {
    .hero[data-hero-slideshow] .hero-content {
        flex-basis: 50%;
        width: 50%;
        padding-left: 5vw;
    }

    .hero[data-hero-slideshow] .hero-content h1,
    .hero[data-hero-slideshow] .hero-content h2 {
        font-size: clamp(2.65rem, 5vw, 4.4rem);
    }

    .hero[data-hero-slideshow] .hero-photo picture { width: 59%; }
}

/* On tablets and phones, the full-width slide becomes a single banner composition.
   The entire original image follows the text, never gets clipped, and uses 100% width. */
@media (max-width: 760px) {
    .hero[data-hero-slideshow] .hero-slide,
    .hero[data-hero-slideshow] .hero-slide.is-active,
    .hero[data-hero-slideshow] .hero-inner {
        min-height: 0;
    }

    .hero[data-hero-slideshow] .hero-slide::after {
        background: linear-gradient(180deg, rgba(2, 9, 5, .98), rgba(2, 9, 5, .65));
    }

    .hero[data-hero-slideshow] .hero-inner {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        width: 100%;
    }

    /* Display content pieces separately on mobile: headline > photo > CTAs. */
    .hero[data-hero-slideshow] .hero-content {
        display: contents;
    }

    .hero[data-hero-slideshow] .hero-intro {
        order: 1;
        position: relative;
        z-index: 3;
        width: 100%;
        padding: 30px 21px 14px;
    }

    .hero[data-hero-slideshow] .hero-intro h1,
    .hero[data-hero-slideshow] .hero-intro h2 {
        font-size: clamp(2.35rem, 9.4vw, 4.15rem);
        line-height: 1.06;
        margin: 12px 0;
    }

    .hero[data-hero-slideshow] .hero-intro p {
        font-size: 1rem;
        line-height: 1.48;
        max-width: 700px;
    }

    .hero[data-hero-slideshow] .hero-overline {
        font-size: .72rem;
        padding: 7px 11px;
    }

    .hero[data-hero-slideshow] .hero-photo {
        order: 2;
        position: relative;
        inset: auto;
        z-index: 3;
        width: 100%;
        height: auto;
        padding: 0;
        overflow: visible;
        background: transparent;
    }

    .hero[data-hero-slideshow] .hero-photo::after { display: none; }

    .hero[data-hero-slideshow] .hero-photo picture {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        display: block;
    }

    .hero[data-hero-slideshow] .hero-photo img {
        display: block;
        width: min(100%, 380px);
        height: auto;
        max-width: 100%;
        max-height: none;
        margin: 0 auto;
        object-fit: contain;
        border: 0;
        box-shadow: none;
        border-radius: 0;
    }

    .hero[data-hero-slideshow] .hero-actions {
        order: 3;
        position: relative;
        z-index: 4;
        padding: 15px 21px 20px;
        margin: 0;
    }

    .hero[data-hero-slideshow] .hero-actions .hero-badge {
        display: none; /* The $795 offer is already in slide 1's headline. */
    }

    .hero[data-hero-slideshow] .hero-actions .btn-group {
        margin-top: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .hero[data-hero-slideshow] .hero-actions .btn-group .btn {
        width: 100%;
        min-height: 53px;
    }

    .hero[data-hero-slideshow] .hero-controls {
        position: relative;
        bottom: auto;
        padding: 12px 0 17px;
        background: #071208;
    }

    .hero[data-hero-slideshow] .hero-controls .container { width: calc(100% - 34px); }
}

@media (max-width: 390px) {
    .hero[data-hero-slideshow] .hero-intro { padding: 26px 17px 12px; }
    .hero[data-hero-slideshow] .hero-intro h1,
    .hero[data-hero-slideshow] .hero-intro h2 { font-size: clamp(2.15rem, 10vw, 2.9rem); }
    .hero[data-hero-slideshow] .hero-actions { padding: 13px 17px 17px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero[data-hero-slideshow] .hero-slide.is-active { animation: none; }
}
