/*!
Theme Name: Hostinger AI theme
Author: Hostinger
Author URI: https://hostinger.com
Details URI: https://hostinger.com
Description: Hostinger AI theme built with SEO and mobile responsiveness in mind, this theme ensures optimal performance and a better online presence.
Version: 2.1.1
Tested up to: 7.0
Requires at least: 5.6
Requires PHP: 8.1
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: hostinger-ai-theme
Tags: ai-theme
*/

/* -------------------------------------------------------------
 * Fix for Elementor / Xpro Horizontal Mobile Responsive Menu:
 * 1. Hidden by default on page load (shows ONLY when hamburger is clicked)
 * 2. Full 100% width mobile drawer when opened (.active)
 * ------------------------------------------------------------- */

/* -------------------------------------------------------------
 * Premium Mobile Navigation & Dropdown Styling
 * ------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
    /* Hamburger Menu Toggle Button */
    .xpro-elementor-horizontal-menu-toggler-wrapper,
    .xpro-elementor-horizontal-menu-toggler,
    .elementor-widget-xpro-horizontal-menu .xpro-elementor-horizontal-menu-toggler {
        display: block !important;
        visibility: visible !important;
    }

    /* Single Sleek Close Button (Top-Left of drawer in indicated area) */
    .xpro-elementor-horizontal-menu-close {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: absolute !important;
        top: 20px !important;
        left: 20px !important;
        right: auto !important;
        width: 42px !important;
        height: 42px !important;
        border-radius: 50% !important;
        background-color: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        color: #0f172a !important;
        cursor: pointer !important;
        z-index: 1000000 !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
        transition: background-color 0.25s ease, transform 0.25s ease, color 0.25s ease !important;
    }

    .xpro-elementor-horizontal-menu-close:hover {
        background-color: #f1f5f9 !important;
        color: #0052cc !important;
        transform: rotate(90deg) scale(1.05) !important;
    }

    /* Hide duplicate fallback icon if SVG/i icon is present */
    .xpro-elementor-horizontal-menu-close i ~ .xpro-menu-close-icon,
    .xpro-elementor-horizontal-menu-close svg ~ .xpro-menu-close-icon {
        display: none !important;
    }

    .xpro-menu-close-icon {
        font-size: 26px !important;
        line-height: 1 !important;
        font-weight: 300 !important;
        color: #0f172a !important;
        display: inline-block !important;
        margin-top: -2px !important;
    }

    .xpro-elementor-horizontal-menu-close i,
    .xpro-elementor-horizontal-menu-close svg {
        font-size: 20px !important;
        width: 20px !important;
        height: 20px !important;
        fill: currentColor !important;
    }

    /* 1. DEFAULT (INACTIVE): Off-screen slide-out (Slow & Ultra-Smooth 0.55s) */
    .xpro-elementor-horizontal-navbar-wrapper:not(.active),
    .elementor-widget-xpro-horizontal-menu .xpro-elementor-horizontal-navbar-wrapper:not(.active),
    .xpro-elementor-horizontal-menu-responsive-mobile:not(.active),
    .xpro-elementor-horizontal-menu-responsive-tablet:not(.active),
    [class*="xpro-elementor-horizontal-menu-responsive-"]:not(.active) {
        display: block !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 100% !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        -webkit-transform: translate3d(100%, 0, 0) !important;
        transform: translate3d(100%, 0, 0) !important;
        transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.45s ease-out, visibility 0.55s step-end !important;
    }

    .xpro-elementor-horizontal-menu-overlay:not(.active) {
        display: block !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        transition: opacity 0.45s ease-out, visibility 0.45s step-end !important;
    }

    /* 2. WHEN CLICKED (.active): Full 100% Width Premium Drawer */
    .xpro-elementor-horizontal-navbar-wrapper.active,
    .elementor-widget-xpro-horizontal-menu .xpro-elementor-horizontal-navbar-wrapper.active,
    .xpro-elementor-horizontal-menu-responsive-mobile.active,
    .xpro-elementor-horizontal-menu-responsive-tablet.active,
    [class*="xpro-elementor-horizontal-menu-responsive-"].active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background-color: #ffffff !important;
        background: #ffffff !important;
        z-index: 999999 !important;
        box-sizing: border-box !important;
        -webkit-transform: translate3d(0, 0, 0) !important;
        transform: translate3d(0, 0, 0) !important;
        transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.45s ease-in, visibility 0s !important;
        overflow-y: auto !important;
        padding: 80px 24px 40px 24px !important;
        box-shadow: -10px 0 30px rgba(15, 23, 42, 0.12) !important;
    }

    /* Premium Menu List & Links */
    .xpro-elementor-horizontal-navbar-wrapper.active .xpro-elementor-horizontal-navbar-nav {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        gap: 4px !important;
    }

    .xpro-elementor-horizontal-navbar-wrapper.active .xpro-elementor-horizontal-navbar-nav > li {
        width: 100% !important;
        margin: 0 !important;
        position: relative !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }

    .xpro-elementor-horizontal-navbar-wrapper.active .xpro-elementor-horizontal-navbar-nav > li > a {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding: 16px 18px !important;
        font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
        font-size: 17px !important;
        font-weight: 600 !important;
        color: #0f172a !important;
        text-decoration: none !important;
        border-radius: 12px !important;
        background-color: transparent !important;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
        box-sizing: border-box !important;
    }

    .xpro-elementor-horizontal-navbar-wrapper.active .xpro-elementor-horizontal-navbar-nav > li:hover > a,
    .xpro-elementor-horizontal-navbar-wrapper.active .xpro-elementor-horizontal-navbar-nav > li.current-menu-item > a {
        background-color: #f0f7ff !important;
        color: #0052cc !important;
        padding-left: 24px !important;
        font-weight: 700 !important;
    }

    /* Submenu / Dropdown Items */
    .xpro-elementor-horizontal-navbar-wrapper.active .xpro-elementor-dropdown-menu {
        background-color: #f8fafc !important;
        border-radius: 12px !important;
        padding: 8px 0 8px 12px !important;
        margin: 4px 0 12px 0 !important;
        border-left: 3px solid #0052cc !important;
        box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.03) !important;
        list-style: none !important;
    }

    .xpro-elementor-horizontal-navbar-wrapper.active .xpro-elementor-dropdown-menu > li > a {
        display: block !important;
        padding: 12px 16px !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        color: #475569 !important;
        border-radius: 8px !important;
        transition: all 0.2s ease !important;
    }

    .xpro-elementor-horizontal-navbar-wrapper.active .xpro-elementor-dropdown-menu > li:hover > a {
        background-color: #e0e7ff !important;
        color: #0052cc !important;
        font-weight: 600 !important;
        padding-left: 20px !important;
    }

    /* Dropdown Toggle Caret */
    .xpro-elementor-horizontal-navbar-wrapper.active .xpro-dropdown-menu-toggle {
        width: 36px !important;
        height: 36px !important;
        border-radius: 8px !important;
        background-color: #f1f5f9 !important;
        color: #475569 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: transform 0.3s ease, background-color 0.2s ease !important;
    }

    .xpro-elementor-horizontal-navbar-wrapper.active .xpro-dropdown-menu-toggle.active {
        transform: rotate(180deg) !important;
        background-color: #0052cc !important;
        color: #ffffff !important;
    }

    /* Dark Overlay Backdrop */
    .xpro-elementor-horizontal-menu-overlay.active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background-color: rgba(15, 23, 42, 0.4) !important;
        backdrop-filter: blur(4px) !important;
        z-index: 999998 !important;
        transition: opacity 0.3s ease, visibility 0.3s !important;
    }
}


