/*!
 * "Porch" dressing for a solution page (/solutions/package-delivery-camera):
 * the hero as the front door at dusk - the first stars out, a picket fence along the
 * path, the porch light on and the parcels waiting on the step. Decoration
 * only: aria-hidden, ignores the pointer and sits behind the copy. Artwork is
 * in /img/porch. The hero keeps its own dark colours on every site palette.
 */

#header-btm.porch-hero {
    position: relative;
    overflow: hidden;
    background-color: #2a2046 !important;
    background-image:
        radial-gradient(circle at 20% 110%, rgba(255, 140, 110, .30), transparent 46%),
        linear-gradient(180deg, #121030 0%, #2a2046 55%, #553350 100%);
}

#header-btm.porch-hero > .container-xxl {
    position: relative;
    z-index: 2;
}

.porch-decor {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.porch-decor > * {
    position: absolute;
}

/* The first few stars of the evening */
.porch-stars {
    inset: 0 0 45% 0;
    opacity: .8;
    background-image:
        radial-gradient(2.2px 2.2px at 9% 30%, #fff, transparent),
        radial-gradient(1.7px 1.7px at 27% 14%, #e6e0ff, transparent),
        radial-gradient(2.2px 2.2px at 44% 36%, #fff, transparent),
        radial-gradient(1.7px 1.7px at 61% 10%, #e6e0ff, transparent),
        radial-gradient(2.4px 2.4px at 79% 24%, #fff, transparent),
        radial-gradient(1.7px 1.7px at 95% 44%, #e6e0ff, transparent);
}

.porch-ground {
    left: 0;
    right: 0;
    bottom: 0;
    height: 12px;
    background: #100c22;
}

.porch-fence {
    left: 0;
    bottom: 10px;
    width: 62%;
    height: 28px;
    background: url(/img/porch/fence.svg?v=1) repeat-x 0 0 / 22px 28px;
    -webkit-mask: linear-gradient(90deg, #000 72%, transparent);
    mask: linear-gradient(90deg, #000 72%, transparent);
}

.porch-house {
    right: 7%;
    bottom: 0;
    width: 236px;
}

.porch-house img {
    display: block;
    width: 100%;
    height: auto;
}

/* The porch light, breathing a little */
.porch-house::after {
    content: '';
    position: absolute;
    left: 62.3%;
    top: 53.5%;
    width: 34%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 220, 150, .55), rgba(255, 220, 150, 0) 66%);
    animation: porch-lamp 6s ease-in-out infinite;
}

@media (min-width: 992px) {
    /* Room on the ground for the porch under the hero chat */
    #header-btm.porch-hero {
        padding-bottom: 5.5rem !important;
    }
}

@media (max-width: 991.98px) {
    #header-btm.porch-hero {
        padding-bottom: 6.25rem !important;
    }

    .porch-house { right: 14px; width: 160px; }
    .porch-fence { width: 50%; height: 22px; background-size: 17px 22px; }
}

@keyframes porch-lamp {
    0%, 100% { opacity: .6; }
    50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .porch-house::after {
        animation: none !important;
    }
}
