/* A single full-bleed scene: live content in open sky, scenery along the
   lower edge. The artwork never creates a second row or a left/right seam. */
#home.hero--neighborhood {
    --hero-sky: #e7f4fd;
    --hero-scene-clearance: max(88px, calc(7.5vw + 12px));
    display: block;
    min-height: 0;
    /* The fixed navbar covers the first 70px of this section. Equal space
       above/below the complete copy stack centers it in the visible scene.
       The minimum clearance keeps the trust row out of the detailed horizon. */
    padding: calc(70px + var(--hero-scene-clearance)) 0 var(--hero-scene-clearance);
    background: var(--hero-sky);
    isolation: isolate;
}

#home.hero--neighborhood .hero-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

#home.hero--neighborhood .hero-image {
    display: block;
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    overflow: visible;
}

#home.hero--neighborhood .hero-bg-img {
    display: block;
    position: static;
    width: 100%;
    max-width: none;
    height: auto;
    opacity: 1;
}

/* Only blend the asset's empty topmost sky with the same page sky color.
   No horizontal mask, mirrored scenery, cover crop, or white side panel. */
#home.hero--neighborhood .hero-image::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 48px;
    background: linear-gradient(var(--hero-sky), transparent);
    pointer-events: none;
}

#home.hero--neighborhood .hero-grid {
    display: block;
    min-height: 0;
    text-align: center;
}

#home.hero--neighborhood .hero-text {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

#home.hero--neighborhood .hero-title {
    margin: 0 auto 12px;
    color: #122f52;
    font-size: clamp(2.125rem, 4.2vw, 3.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

#home.hero--neighborhood .hero-title .highlight {
    color: #2563eb;
    background: none;
}

#home.hero--neighborhood .hero-description {
    max-width: 650px;
    margin: 0 auto 16px;
    color: #334b65;
    font-size: 1.0625rem;
    line-height: 1.6;
    text-wrap: pretty;
}

#home.hero--neighborhood .hero-description a {
    display: inline-block;
    max-width: 100%;
    color: #233f61;
    text-decoration-color: #9bb1c9;
    text-underline-offset: 3px;
}

#home.hero--neighborhood .hero-description a:hover {
    color: #1d4ed8;
    text-decoration-color: currentColor;
}

#home.hero--neighborhood .hero-description a:focus-visible,
#home.hero--neighborhood .hero-buttons .btn:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 5px;
}

#home.hero--neighborhood .hero-features {
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-bottom: 16px;
}

#home.hero--neighborhood .feature-item {
    gap: 7px;
    color: #334b65;
    font-size: 0.875rem;
}

#home.hero--neighborhood .feature-item i {
    color: #287c6c;
    font-size: 0.875rem;
}

#home.hero--neighborhood .hero-buttons {
    justify-content: center;
    margin-bottom: 0;
}

#home.hero--neighborhood .hero-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    width: min(100%, 300px);
    margin: 0 auto;
    padding: 14px 22px;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 14px;
    background: #1e3a8a;
    box-shadow: 0 5px 14px rgba(30, 58, 138, 0.14);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

#home.hero--neighborhood .hero-buttons .btn:hover {
    background: #1d4ed8;
    box-shadow: 0 7px 18px rgba(30, 58, 138, 0.18);
    transform: none;
}

#home.hero--neighborhood .hero-trust {
    margin-top: 12px;
}

#home.hero--neighborhood .google-review-badge {
    width: min(100%, 300px);
    min-height: 78px;
    margin: 0 auto;
    text-align: left;
    box-shadow: 0 3px 10px rgba(28, 57, 90, 0.06);
    border-color: #dce4ec;
}

#home.hero--neighborhood .google-review-business-name {
    font-size: 1rem;
    line-height: 1.2;
}

#home.hero--neighborhood .google-review-badge-headline {
    margin-bottom: 2px;
}

#home.hero--neighborhood .google-review-badge-stars,
#home.hero--neighborhood .google-review-badge-score {
    font-size: 0.875rem;
    line-height: 1.2;
}

#home.hero--neighborhood .google-review-provider {
    margin-top: 2px;
    color: #475b72;
    font-size: 0.8125rem;
    line-height: 1.3;
}

#home.hero--neighborhood .google-review-badge:hover {
    transform: none;
    border-color: #9bb1c9;
}

#home.hero--neighborhood .hero-trust .trust-badges {
    width: min(100%, 300px);
    justify-content: center;
    margin: 8px auto 0;
    gap: 22px;
}

#home.hero--neighborhood .trust-badge {
    gap: 7px;
    color: #334b65;
    font-size: 0.875rem;
}

#home.hero--neighborhood .trust-badge i {
    color: #426b96;
}

/* Keep the address calculator visually connected to the hero. */
#home.hero--neighborhood + #pricing.savings-search {
    padding-top: 32px;
}

@media (max-width: 1200px) {
    #home.hero--neighborhood .hero-features {
        display: none;
    }
}

@media (max-width: 699px) {
    #home.hero--neighborhood {
        --hero-scene-clearance: 88px;
    }

    #home.hero--neighborhood .hero-title {
        max-width: 520px;
        margin-bottom: 12px;
        font-size: clamp(2rem, 6.8vw, 2.875rem);
        line-height: 1.12;
    }

    #home.hero--neighborhood .hero-description {
        max-width: 455px;
        margin-bottom: 16px;
    }

    #home.hero--neighborhood + #pricing.savings-search {
        padding-top: 24px;
    }
}

@media (max-width: 480px) {
    #home.hero--neighborhood {
        /* The phone artwork has a taller foreground than the panorama. */
        --hero-scene-clearance: max(96px, calc(22vw + 12px));
    }
}

/* The desktop menu stops fitting before the phone breakpoint. This stylesheet
   is homepage-only; other pages retain their existing navigation treatment. */
.homepage #hamburger {
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
}

.homepage #hamburger:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

@media (max-width: 1024px) {
    .homepage #hamburger {
        display: flex;
    }

    .homepage .nav-logo {
        max-width: calc(100% - 64px);
    }

    .homepage #nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 70px);
        max-height: calc(100dvh - 70px);
        overflow-y: auto;
        flex-direction: column;
        gap: 12px;
        padding: 20px;
        background: #fff;
        box-shadow: 0 12px 24px rgba(18, 47, 82, 0.1);
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: none;
    }

    .homepage #nav-menu.active {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    .homepage #nav-menu .nav-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
    }

    .homepage #nav-menu .nav-item-dropdown {
        width: 100%;
        text-align: center;
    }

    .homepage #nav-menu .nav-submenu {
        display: none;
        position: static;
        transform: none;
        width: 100%;
        min-width: 0;
        max-height: none;
        padding: 4px 0;
        margin: 0;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        border: 0;
        background: #f3f9ff;
        box-shadow: none;
    }

    .homepage #nav-menu .nav-dropdown-toggle[aria-expanded="true"] + .nav-submenu {
        display: block;
    }

    .homepage #nav-menu .nav-submenu::before {
        display: none;
    }

    .homepage #nav-menu .nav-submenu-link {
        padding: 12px;
        text-align: center;
    }
}


@media (max-width: 1200px) and (max-height: 500px) {
    #home.hero--neighborhood .hero-title {
        font-size: 2.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    #home.hero--neighborhood .hero-buttons .btn,
    #home.hero--neighborhood .google-review-badge {
        transition: none;
    }
}
