/* Lightweight behavior styles replacing Elementor runtime JS. */
.sub-menu.elementor-nav-menu--dropdown {
    display: none;
}

/* Ensure longer labels (e.g., Workers Compensation) fit in submenu. */
.elementor-nav-menu .sub-menu.elementor-nav-menu--dropdown {
    min-width: 250px;
}

.elementor-nav-menu .sub-menu.elementor-nav-menu--dropdown .menu-link {
    white-space: nowrap;
}

/* Parent menu arrow for "Practice Areas". */
.menu-item-697 > .menu-link {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.menu-item-697 > .menu-link::after {
    content: none !important;
}

.menu-item-697 > .menu-link .dropdown-menu-toggle {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    position: static;
}

.menu-item-697 > .menu-link .dropdown-menu-toggle::before {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.menu-item-697 > .menu-link .dropdown-menu-toggle[aria-expanded="true"]::before {
    transform: rotate(-135deg);
}

.menu-item-has-children.is-open > .sub-menu.elementor-nav-menu--dropdown {
    display: block;
}

@media (min-width: 1025px) {
    .elementor-nav-menu--main .menu-item-has-children:hover > .sub-menu.elementor-nav-menu--dropdown,
    .elementor-nav-menu--main .menu-item-has-children:focus-within > .sub-menu.elementor-nav-menu--dropdown {
        display: block;
    }
}

@media (max-width: 1024px) {
    .elementor-widget-nav-menu {
        overflow: visible !important;
    }

    .elementor-nav-menu__container[aria-hidden="true"] {
        display: none !important;
    }

    .elementor-nav-menu__container.is-open {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        height: auto !important;
        max-height: calc(100vh - 70px) !important;
        overflow: auto !important;
        clip: auto !important;
        clip-path: none !important;
        pointer-events: auto !important;
        z-index: 99999 !important;
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        top: 70px !important;
        width: 100vw !important;
        background: #fff !important;
    }

    .elementor-nav-menu__container.is-open .sub-menu.elementor-nav-menu--dropdown {
        display: none !important;
    }

    .elementor-nav-menu__container.is-open .menu-item-has-children.is-open > .sub-menu.elementor-nav-menu--dropdown {
        display: block !important;
    }
}

/* WebP overrides for large Elementor background images on home page. */
.elementor-215 .elementor-element.elementor-element-ec6f245:not(.elementor-motion-effects-element-type-background),
.elementor-215 .elementor-element.elementor-element-ec6f245 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-image: url("../uploads/2026/02/top-banner-image-BG.webp");
}

.elementor-215 .elementor-element.elementor-element-ec6f245 > .elementor-background-overlay {
    background-image: url("../uploads/2026/02/Banner-image-BG.webp");
}

.elementor-215 .elementor-element.elementor-element-626eef4:not(.elementor-motion-effects-element-type-background),
.elementor-215 .elementor-element.elementor-element-626eef4 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-image: url("../uploads/2026/02/top-banner-image-BG-2.webp");
}

.elementor-215 .elementor-element.elementor-element-626eef4 > .elementor-background-overlay {
    background-image: url("../uploads/2026/02/Why-Choose-blue-BG-2.webp");
}

.elementor-215 .elementor-element.elementor-element-1f153dc:not(.elementor-motion-effects-element-type-background),
.elementor-215 .elementor-element.elementor-element-1f153dc > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-image: url("../uploads/2026/02/Proven-Results-BG.webp");
}

.elementor-215 .elementor-element.elementor-element-b628000:not(.elementor-motion-effects-element-type-background),
.elementor-215 .elementor-element.elementor-element-b628000 > .elementor-motion-effects-container > .elementor-motion-effects-layer,
.elementor-215 .elementor-element.elementor-element-52d0af5:not(.elementor-motion-effects-element-type-background),
.elementor-215 .elementor-element.elementor-element-52d0af5 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-image: url("../uploads/2026/02/map.webp");
}

@media (max-width: 767px) {
    .elementor-215 .elementor-element.elementor-element-838076e:not(.elementor-motion-effects-element-type-background) > .elementor-widget-wrap,
    .elementor-215 .elementor-element.elementor-element-838076e > .elementor-widget-wrap > .elementor-motion-effects-container > .elementor-motion-effects-layer {
        background-image: url("../uploads/2026/02/Banner-image-BG.webp");
    }
}

/* Footer background WebP override (post-599). */
.elementor-599 .elementor-element.elementor-element-2a60cfc:not(.elementor-motion-effects-element-type-background),
.elementor-599 .elementor-element.elementor-element-2a60cfc > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-image: url("../uploads/2026/02/footer-Dark-blue-BG-1.webp") !important;
}

.elementor-599 .elementor-element.elementor-element-2a60cfc > .elementor-background-overlay {
    background-image: none !important;
}
