/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/* =========================================================
   STACK IN CODE
   PROFESSIONAL SERVICES MEGA MENU
   Elementor WordPress Menu
   CSS CLASS: sic-mega-menu

   FINAL FIXED VERSION

   FEATURES:
   - Mega menu below main menu
   - 4 columns desktop
   - 2 columns tablet
   - 1 column mobile
   - Unlimited automatic rows
   - SVG icons
   - 50% transparent glass background
   - Attached hover bridge
   - Smooth hover
   - No Font Awesome dependency
   - Prevents random mega menu opening
   ========================================================= */


/* =========================================================
   1. MAIN MENU / HEADER
   ========================================================= */

.sic-mega-menu {
    position: relative !important;
    z-index: 999999 !important;
}

.sic-mega-menu .elementor-widget-container {
    overflow: visible !important;
}

.sic-mega-menu nav {
    overflow: visible !important;
}

.sic-mega-menu ul.menu {
    margin: 0 !important;
    padding: 0 !important;
}


/* =========================================================
   2. PARENT MENU ITEM
   ========================================================= */

.sic-mega-menu li.menu-item-has-children {
    position: static !important;
}


/* =========================================================
   3. REMOVE OLD ELEMENTOR / CUSTOM HOVER BRIDGE
   ========================================================= */

/*
 * IMPORTANT:
 * No full-screen ::after bridge.
 *
 * The old fixed 100vw bridge was causing the mega menu
 * to trigger when hovering unrelated areas of the page.
 */

.sic-mega-menu
li.menu-item-has-children::after {
    content: none !important;
    display: none !important;
}


/* =========================================================
   4. DESKTOP MEGA MENU
   1101px+
   ========================================================= */

@media (min-width: 1101px) {

    .sic-mega-menu
    li.menu-item-has-children
    > ul.elementor-nav-menu--dropdown {

        /* -------------------------------------------------
           POSITION
           ------------------------------------------------- */

        position: absolute !important;

        top: calc(100% + 12px) !important;

        left: 50% !important;

        right: auto !important;

        bottom: auto !important;

        transform: translateX(-50%) !important;


        /* -------------------------------------------------
           WIDTH
           ------------------------------------------------- */

        width: 1000px !important;

        max-width:
            calc(100vw - 30px) !important;

        min-width: 0 !important;


        /* -------------------------------------------------
           GRID
           ------------------------------------------------- */

        display: grid !important;

        grid-template-columns:
            repeat(4, minmax(0, 1fr)) !important;

        grid-auto-rows:
            minmax(58px, auto) !important;

        grid-auto-flow:
            row !important;

        column-gap:
            0 !important;

        row-gap:
            0 !important;


        /* -------------------------------------------------
           BOX SIZING
           ------------------------------------------------- */

        box-sizing:
            border-box !important;

        margin:
            0 !important;

        padding:
            18px !important;


        /* -------------------------------------------------
           GLASS BACKGROUND
           ------------------------------------------------- */

        background:
            rgba(255, 255, 255, 0.50) !important;

        backdrop-filter:
            blur(12px) !important;

        -webkit-backdrop-filter:
            blur(12px) !important;


        /* -------------------------------------------------
           BORDER
           ------------------------------------------------- */

        border:
            1px solid rgba(255, 255, 255, 0.45) !important;

        border-radius:
            14px !important;


        /* -------------------------------------------------
           SHADOW
           ------------------------------------------------- */

        box-shadow:
            0 15px 40px rgba(0, 0, 0, 0.18) !important;


        /* -------------------------------------------------
           Z-INDEX
           ------------------------------------------------- */

        z-index:
            999999 !important;


        /* -------------------------------------------------
           HIDDEN STATE
           ------------------------------------------------- */

        visibility:
            hidden !important;

        opacity:
            0 !important;

        pointer-events:
            none !important;


        /* -------------------------------------------------
           SMOOTH ANIMATION
           ------------------------------------------------- */

        transition:
            opacity 0.18s ease,
            visibility 0.18s ease !important;
    }


    /* =====================================================
       5. OPEN ONLY WHEN PARENT IS HOVERED
       ===================================================== */

    .sic-mega-menu
    li.menu-item-has-children:hover
    > ul.elementor-nav-menu--dropdown {

        visibility:
            visible !important;

        opacity:
            1 !important;

        pointer-events:
            auto !important;
    }


    /* =====================================================
       6. OPEN WHEN ELEMENTOR ARIA STATE IS OPEN
       ===================================================== */

    .sic-mega-menu
    li.menu-item-has-children
    > a[aria-expanded="true"]
    + ul.elementor-nav-menu--dropdown {

        visibility:
            visible !important;

        opacity:
            1 !important;

        pointer-events:
            auto !important;
    }


    /* =====================================================
       7. HOVER BRIDGE
       -----------------------------------------------------
       Small invisible bridge attached to the actual mega
       menu instead of covering the entire screen.
       ===================================================== */

    .sic-mega-menu
    li.menu-item-has-children
    > ul.elementor-nav-menu--dropdown::before {

        content:
            "" !important;

        position:
            absolute !important;

        left:
            0 !important;

        right:
            0 !important;

        top:
            -14px !important;

        height:
            14px !important;

        background:
            transparent !important;

        pointer-events:
            auto !important;

        display:
            block !important;
    }
}


/* =========================================================
   8. TABLET
   768px - 1100px
   ========================================================= */

@media (min-width: 768px) and (max-width: 1100px) {

    .sic-mega-menu
    li.menu-item-has-children
    > ul.elementor-nav-menu--dropdown {

        /* -------------------------------------------------
           POSITION
           ------------------------------------------------- */

        position:
            absolute !important;

        top:
            calc(100% + 10px) !important;

        left:
            50% !important;

        right:
            auto !important;

        bottom:
            auto !important;

        transform:
            translateX(-50%) !important;


        /* -------------------------------------------------
           WIDTH
           ------------------------------------------------- */

        width:
            calc(100vw - 30px) !important;

        max-width:
            calc(100vw - 30px) !important;

        min-width:
            0 !important;


        /* -------------------------------------------------
           GRID
           ------------------------------------------------- */

        display:
            grid !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        grid-auto-rows:
            minmax(58px, auto) !important;

        grid-auto-flow:
            row !important;

        column-gap:
            0 !important;

        row-gap:
            0 !important;


        /* -------------------------------------------------
           BOX
           ------------------------------------------------- */

        box-sizing:
            border-box !important;

        margin:
            0 !important;

        padding:
            18px !important;


        /* -------------------------------------------------
           GLASS
           ------------------------------------------------- */

        background:
            rgba(255, 255, 255, 0.50) !important;

        backdrop-filter:
            blur(12px) !important;

        -webkit-backdrop-filter:
            blur(12px) !important;


        /* -------------------------------------------------
           BORDER
           ------------------------------------------------- */

        border:
            1px solid rgba(255, 255, 255, 0.45) !important;

        border-radius:
            14px !important;


        /* -------------------------------------------------
           SHADOW
           ------------------------------------------------- */

        box-shadow:
            0 15px 40px rgba(0, 0, 0, 0.18) !important;


        /* -------------------------------------------------
           Z-INDEX
           ------------------------------------------------- */

        z-index:
            999999 !important;


        /* -------------------------------------------------
           HIDDEN
           ------------------------------------------------- */

        visibility:
            hidden !important;

        opacity:
            0 !important;

        pointer-events:
            none !important;


        transition:
            opacity 0.18s ease,
            visibility 0.18s ease !important;
    }


    /* =====================================================
       OPEN TABLET
       ===================================================== */

    .sic-mega-menu
    li.menu-item-has-children:hover
    > ul.elementor-nav-menu--dropdown,

    .sic-mega-menu
    li.menu-item-has-children:focus-within
    > ul.elementor-nav-menu--dropdown {

        visibility:
            visible !important;

        opacity:
            1 !important;

        pointer-events:
            auto !important;
    }


    /* =====================================================
       TABLET BRIDGE
       ===================================================== */

    .sic-mega-menu
    li.menu-item-has-children
    > ul.elementor-nav-menu--dropdown::before {

        content:
            "" !important;

        position:
            absolute !important;

        left:
            0 !important;

        right:
            0 !important;

        top:
            -12px !important;

        height:
            12px !important;

        background:
            transparent !important;

        pointer-events:
            auto !important;
    }
}


/* =========================================================
   9. SUBMENU ITEMS
   ========================================================= */

.sic-mega-menu
ul.elementor-nav-menu--dropdown
> li {

    display:
        block !important;

    width:
        auto !important;

    min-width:
        0 !important;

    margin:
        0 !important;

    padding:
        0 !important;

    box-sizing:
        border-box !important;


    border-right:
        1px solid rgba(0, 0, 0, 0.10) !important;
}


/* =========================================================
   10. REMOVE BORDER AFTER EVERY 4TH COLUMN
   ========================================================= */

.sic-mega-menu
ul.elementor-nav-menu--dropdown
> li:nth-child(4n) {

    border-right:
        none !important;
}


/* =========================================================
   11. SUBMENU LINKS
   ========================================================= */

.sic-mega-menu
ul.elementor-nav-menu--dropdown
> li
> a.elementor-sub-item.menu-link {

    position:
        relative !important;

    display:
        flex !important;

    align-items:
        center !important;


    width:
        100% !important;


    min-height:
        58px !important;


    padding:
        12px 14px !important;


    margin:
        0 !important;


    gap:
        12px !important;


    box-sizing:
        border-box !important;


    color:
        #111827 !important;


    background:
        transparent !important;


    text-decoration:
        none !important;


    text-align:
        left !important;


    font-size:
        14px !important;


    font-weight:
        600 !important;


    line-height:
        1.35 !important;


    white-space:
        normal !important;


    border-radius:
        10px !important;


    transition:
        background 0.22s ease,
        transform 0.22s ease,
        color 0.22s ease !important;
}


/* =========================================================
   12. SUBMENU HOVER
   ========================================================= */

.sic-mega-menu
ul.elementor-nav-menu--dropdown
> li
> a.elementor-sub-item.menu-link:hover {

    background:
        rgba(255, 255, 255, 0.68) !important;

    color:
        #006cff !important;

    transform:
        translateX(3px) !important;
}


/* =========================================================
   13. ICON CONTAINER
   ========================================================= */

.sic-mega-menu
ul.elementor-nav-menu--dropdown
> li
> a.elementor-sub-item.menu-link::before {

    content:
        "" !important;

    display:
        block !important;

    width:
        30px !important;

    min-width:
        30px !important;

    height:
        30px !important;

    flex:
        0 0 30px !important;

    background-repeat:
        no-repeat !important;

    background-position:
        center !important;

    background-size:
        25px 25px !important;

    opacity:
        1 !important;

    visibility:
        visible !important;

    font-family:
        initial !important;
}


/* =========================================================
   14. WEBSITE DEVELOPMENT
   ========================================================= */

.sic-mega-menu
ul.elementor-nav-menu--dropdown
> li:nth-child(1)
> a::before {

    background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.7 3.5 5.7 3.5 9S14.5 18.3 12 21M12 3c-2.5 2.7-3.5 5.7-3.5 9S9.5 18.3 12 21'/%3E%3C/svg%3E")
    !important;
}


/* =========================================================
   15. E-COMMERCE
   ========================================================= */

.sic-mega-menu
ul.elementor-nav-menu--dropdown
> li:nth-child(2)
> a::before {

    background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='2'/%3E%3Cpath d='M8 7h8M8 11h2M14 11h2M8 15h2M14 15h2M8 18h8'/%3E%3C/svg%3E")
    !important;
}


/* =========================================================
   16. SHOPIFY
   ========================================================= */

.sic-mega-menu
ul.elementor-nav-menu--dropdown
> li:nth-child(3)
> a::before {

    background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l1 12H4L5 8Z'/%3E%3Cpath d='M9 8a3 3 0 0 1 6 0'/%3E%3C/svg%3E")
    !important;
}


/* =========================================================
   17. SEO
   ========================================================= */

.sic-mega-menu
ul.elementor-nav-menu--dropdown
> li:nth-child(4)
> a::before {

    background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239c27b0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3Cpath d='M10.5 7v7M7 10.5h7'/%3E%3C/svg%3E")
    !important;
}


/* =========================================================
   18. SPEED OPTIMIZATION
   ========================================================= */

.sic-mega-menu
ul.elementor-nav-menu--dropdown
> li:nth-child(5)
> a::before {

    background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ea580c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 15a8 8 0 1 1 16 0'/%3E%3Cpath d='M12 15l4-5'/%3E%3Cpath d='M5 19h14'/%3E%3C/svg%3E")
    !important;
}


/* =========================================================
   19. WORDPRESS
   ========================================================= */

.sic-mega-menu
ul.elementor-nav-menu--dropdown
> li:nth-child(6)
> a::before {

    background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M7 8l2.5 8L12 10l2.5 6L17 8'/%3E%3C/svg%3E")
    !important;
}


/* =========================================================
   20. WEBSITE MAINTENANCE
   ========================================================= */

.sic-mega-menu
ul.elementor-nav-menu--dropdown
> li:nth-child(7)
> a::before {

    background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .3 1.9l.1.1-1.8 1.8-.1-.1a1.7 1.7 0 0 0-1.9-.3 1.7 1.7 0 0 0-1 1.5V20h-2.5v-.1a1.7 1.7 0 0 0-1-1.5 1.7 1.7 0 0 0-1.9.3l-.1.1-1.8-1.8.1-.1A1.7 1.7 0 0 0 8 15a1.7 1.7 0 0 0-1.5-1H6v-2.5h.1a1.7 1.7 0 0 0 1.5-1 1.7 1.7 0 0 0-.3-1.9l-.1-.1L9 6.7l.1.1a1.7 1.7 0 0 0 1.9.3 1.7 1.7 0 0 0 1-1.5V5h2.5v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.9-.3l.1-.1 1.8 1.8-.1.1a1.7 1.7 0 0 0-.3 1.9 1.7 1.7 0 0 0 .3 1.9 1.7 1.7 0 0 0 1.5 1h.1V14h-.1a1.7 1.7 0 0 0-1.5 1Z'/%3E%3C/svg%3E")
    !important;
}


/* =========================================================
   21. WEBSITE REDESIGN
   ========================================================= */

.sic-mega-menu
ul.elementor-nav-menu--dropdown
> li:nth-child(8)
> a::before {

    background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 16 10-10 4 4L8 20H4v-4Z'/%3E%3Cpath d='m13 7 4 4'/%3E%3C/svg%3E")
    !important;
}


/* =========================================================
   22. REMOVE ELEMENTOR DEFAULT SUBMENU ARROW
   ========================================================= */

.sic-mega-menu
ul.elementor-nav-menu--dropdown
> li
> a.elementor-sub-item.menu-link::after {

    content:
        none !important;

    display:
        none !important;
}


/* =========================================================
   23. MOBILE
   max-width: 767px
   ========================================================= */

@media (max-width: 767px) {

    /* -----------------------------------------------------
       Disable custom hover bridge
       ----------------------------------------------------- */

    .sic-mega-menu
    li.menu-item-has-children::after {

        display:
            none !important;

        content:
            none !important;
    }


    /* -----------------------------------------------------
       Mobile submenu
       ----------------------------------------------------- */

    .sic-mega-menu
    li.menu-item-has-children
    > ul.elementor-nav-menu--dropdown {

        position:
            static !important;

        width:
            100% !important;

        max-width:
            100% !important;

        min-width:
            0 !important;

        left:
            auto !important;

        right:
            auto !important;

        top:
            auto !important;

        bottom:
            auto !important;

        transform:
            none !important;


        /* -------------------------------------------------
           GRID
           ------------------------------------------------- */

        display:
            grid !important;

        grid-template-columns:
            1fr !important;

        grid-auto-rows:
            minmax(52px, auto) !important;


        /* -------------------------------------------------
           BOX
           ------------------------------------------------- */

        padding:
            10px !important;

        margin:
            0 !important;

        border-radius:
            10px !important;

        box-sizing:
            border-box !important;


        /* -------------------------------------------------
           GLASS
           ------------------------------------------------- */

        background:
            rgba(255, 255, 255, 0.50) !important;

        backdrop-filter:
            blur(12px) !important;

        -webkit-backdrop-filter:
            blur(12px) !important;


        box-shadow:
            0 10px 30px rgba(0, 0, 0, 0.12) !important;


        /* -------------------------------------------------
           MOBILE ELEMENTOR CONTROL
           ------------------------------------------------- */

        visibility:
            visible !important;

        opacity:
            1 !important;

        pointer-events:
            auto !important;
    }


    /* -----------------------------------------------------
       Mobile links
       ----------------------------------------------------- */

    .sic-mega-menu
    ul.elementor-nav-menu--dropdown
    > li
    > a.elementor-sub-item.menu-link {

        min-height:
            52px !important;

        padding:
            10px 12px !important;
    }


    /* -----------------------------------------------------
       Remove column borders on mobile
       ----------------------------------------------------- */

    .sic-mega-menu
    ul.elementor-nav-menu--dropdown
    > li {

        border-right:
            none !important;
    }
}


/* =========================================================
   24. PREVENT HORIZONTAL SCROLL
   ========================================================= */

html,
body {

    max-width:
        100% !important;

    overflow-x:
        hidden !important;
}


/* =========================================================
   END
   ========================================================= */
