/*
Theme Name: Coastal Heat Pumps
Theme URI: https://coastalheatpumps.com
Description: Child theme for Hello Elementor used by Coastal Heat Pumps.
Author: Coastal Heat Pumps
Author URI: https://coastalheatpumps.com
Template: hello-elementor
Version: 1.0.0
Text Domain: coastalheatpumps
*/

/* Add child theme styles below this line. */



html, body {
    width: 100%;
    overflow-x: hidden;
}
.elementor-nav-menu--dropdown {
    top: 55px !important;
}
footer.elementor-element {
    color: #fff;
}

/* In Elementor > Site Settings > Custom CSS or child theme */
.elementor-button,
input[type="submit"],
.chp-menu-buttons a.btn,
a.btn,
.mega-btn a,
button {
    background-color: var(--e-global-color-accent);
    color: #ffffff;
    border-radius: 30px;
    padding: 1em 1.25em;
    font-weight: 600;
    line-height: 1.1em;
    border: none;
    cursor: pointer;
    border: 1px solid var(--e-global-color-accent);

    &.btn-outline {
        background: transparent !important;
        border-color: #fff !important;
        color: #fff !important;
    }
}
.mega-btn a.mega-menu-link {
    background-color: var(--e-global-color-accent) !important;
    color: #ffffff !important;
    border-radius: 60px !important;
    padding: 1em 1.25em !important;
    font-weight: 600;
    min-height: 0 !important;
    line-height: 1.1em !important;
     border: none;
     white-space: nowrap;
    cursor: pointer;
    border: 1px solid var(--e-global-color-accent) !important;
}

ul#mega-menu-menu-1 {
    font-weight: 800;
    flex-wrap: nowrap !important;

    & > li.mega-current-menu-item:not(.mega-btn) {
        a.mega-menu-link {
            color:var(--e-global-color-secondary) !important;
            text-decoration: underline !important;
             text-underline-offset: 10px !important;
             text-decoration-thickness: 3px !important;
             decoration-color: var(--e-global-color-primary) !important;

             @media (max-width: 1199px) {
                color: var(--e-global-color-34ea02d) !important;
                 text-decoration: none !important;
             }
        }
    }
    @media (max-width: 1023px) {
        width: 100vw !important;
        padding-bottom: 0 !important;
        & > li.mega-menu-item:not(.mega-chp-menu-buttons) {
            border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        }
        li.mega-chp-menu-buttons {
            margin-top: 30px !important;
            margin-bottom: 30px !important;
        }
        .mega-sub-menu {
            background: none !important;
            background-color: transparent !important;
            color: #fff !important;
            a.mega-menu-link  {
                background: transparent !important;
                color: #fff !important;
            }
        }
    }
    .mega-indicator {
        color: var(--e-global-color-accent) !important;
        @media (min-width: 1024px) {
            display: none !important;
        }
    }
    .mega-mobile-menu-footer {
        background-color: var(--e-global-color-primary) !important;
        margin-left: -20px !important;
        margin-right: -20px !important;
        
        padding: 30px 20px !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    li.chp-mobile-cta-buttons {
        @media (min-width: 1024px) {
            display: none !important;
        }
        display: flex;
        flex-direction: row;
        gap: 1rem;
        padding: 20px 0px 20px;
        width: 100%;
        list-style: none;

        .elementor-element-760aa2f {
            display: flex;
            flex-direction: row;
            gap: 1rem;
            width: 100%;
        }

        .elementor-widget-button {
            flex: 1;

            .elementor-button {
                width: 100%;
                display: flex;
                justify-content: center;
            }
        }

        .elementor-element-8d5b7fa .elementor-button {
            background: transparent !important;
            border: 1px solid #fff !important;
            color: #fff !important;

            &:hover {
                background: rgba(255, 255, 255, 0.1) !important;
            }
        }
    }
    .chp-emergency-btn-wrapper {
        display: flex;
        justify-content: center;
    }
    .chp-emergency-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.6em;
        padding: 0.85em 1.5em;
        border: 2px solid rgba(255, 255, 255, 0.5) !important;
        border-radius: 50px;
        color: #fff !important;
        font-size: 1rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        text-decoration: none;
        background: transparent !important;

        svg {
            width: 1.4em;
            height: 1.4em;
            fill: var(--e-global-color-accent);
            flex-shrink: 0;
        }

        &:hover {
            border-color: #fff !important;
            background: rgba(255, 255, 255, 0.05) !important;
        }
    }
    .elementor-social-icons-wrapper {
        justify-content: center;
        .elementor-icon {
            background: transparent !important;
            color: #fff !important;
        }
    }
    
    
}
@media (max-width: 1023px) {
    html:has(.mega-menu-toggle.mega-menu-open) {
        overflow: hidden !important;
        height: 100vh !important;
    }
    :root #mega-menu-wrap-menu-1 .mega-menu-toggle.mega-menu-open + #mega-menu-menu-1 {
        position: absolute !important;
        visibility: visible;
        height: calc(100vh - 95px) !important;
        overflow-y: auto !important;
    }
}
li.mega-chp-menu-buttons {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: stretch !important;
    gap: 1rem;
    border-bottom: none !important;
    

    a.btn {
        flex-grow: 1;
        white-space: nowrap;
        text-align: center;
        font-weight: bold;

        &.btn-outline {
            background: transparent !important;
            border-color: #fff !important;
            color: #fff !important;
            @media (min-width: 1024px) {
                display: none !important;
            }
        }

        @media (min-width: 1024px) {
            font-size: 18px !important;
        }
    }
}



.elementor-button:hover,
input[type="submit"]:hover,
button:hover {
    background-color: #cc2e22;
}

.elementor-location-footer {
    li.menu-item a::after {
        display: none !important;
    }
    .elementor-menu-toggle {
        width: 100%;
        justify-content: flex-end;
    }
    .elementor-nav-menu--stretch .elementor-nav-menu__container.elementor-nav-menu--dropdown {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
    }
}

@media (max-width: 767px) {
    .chp-dark-tabs.elementor-element {
        .e-n-tab-title {
            text-align: left !important;
                padding-left: 0 !important;
                padding-right: 0 !important;
                
                justify-content: space-between !important;
                border-bottom: none !important;
                margin-bottom: 0 !important;
                font-weight: bold !important;
        }


        .e-font-icon-svg {
            display: none !important;
        }
    }
}
@media (min-width: 768px) {
    .chp-dark-tabs.elementor-element {
         .e-font-icon-svg {
            display: none !important;
        }
    }
}

@media (min-width: 1024px) {
    .chp-virtues .elementor-element {
        box-shadow: none !important;
    }
}
@media (max-width: 1023px) {
    .chp-virtues  {
        background: none !important;
        box-shadow: none !important;
    }
}

.elementor-widget-maxmegamenu {
    width: 100%;
}

li.mega-menu-row {
     filter: drop-shadow(0px 10px 8px rgba(0, 0, 0, 0.2));
    @media (min-width: 1024px) {
        overflow-x: visible !important;
        &:before {
            display: block !important;
            content: " ";

            position: absolute;
            width: 999vw;
            height: 100%;
            top: 0;
            left: -100vw;
            background: #fff !important;
             z-index: -1;
        }
    }
}

.mega-menu-item.widget_elementor-library {
    padding: 0 !important;
}

.elementor-widget-n-accordion .e-n-accordion-item[open] .e-n-accordion-item-title {
   border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
.elementor-widget-n-accordion {
    .e-n-accordion-item-title {
        padding: 1.5rem;
    }
    .elementor-element.e-child {
        padding: 1.5rem;
        padding-top: 0;
    }
}
