/* =========================================================================
   RESPONSIVE HEADER - PRODUCTION STYLING
   ========================================================================= */

/* --- DESKTOP VIEW STYLE COMPATIBILITY --- */
@media (min-width: 1025px) {
    /* Ensure desktop navigation list remains fully visible */
    #container_dphbrzu3a {
        display: flex !important;
    }
    /* Hide Mobile Hamburg Container on Desktop completely */
    #b9359d4 {
        display: none !important;
    }
}

/* --- MOBILE & TABLET RESPONSIVE SYSTEM --- */
@media (max-width: 1024px) {
    /* 1. Hide the entire desktop horizontal icon list and desktop Book a Call wrapper */
    #container_dphbrzu3a, 
    #container_spnmybp1c {
        display: none !important;
    }

    /* 2. Style the main Header Container to prevent horizontal scroll and force proper spacing */
    #container_xf3hsdbux {
        width: 100% !important;
        max-width: calc(100% - 2rem) !important;
        inset-inline-start: 50% !important;
        transform: translateX(-50%) !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.75rem 1.5rem !important;
        margin: 0 auto !important;
    }

    /* 3. Keep the Logo/Header left container static and fully visible */
    #container_efy89t226 {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        order: 1 !important;
        margin: 0 !important;
    }

    /* 4. Display the Mobile Hamburger Container on the right */
    #b9359d4 {
        display: block !important;
        order: 2 !important;
        margin: 0 !important;
    }

    /* Target hamburger button inside its container */
    #9a89da8 {
        display: inline-block !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        color: #ffffff !important;
        font-size: 1.8rem !important;
        cursor: pointer !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* 5. Mobile Full-Screen Overlay Navigation */
    #80a82fb {
        display: none; /* Invisible by default */
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(10, 10, 10, 0.98) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
        z-index: 999999 !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        box-sizing: border-box !important;
        padding: 2rem !important;
    }

    /* Offset overlay when WordPress Admin Bar is showing on mobile */
    body.admin-bar #80a82fb {
        top: var(--wp-admin--admin-bar--height, 32px) !important;
    }
    @media screen and (max-width: 782px) {
        body.admin-bar #80a82fb {
            top: 46px !important;
        }
    }

    /* Trigger State to show active mobile menu overlay */
    #80a82fb.is-active {
        display: flex !important;
    }

    /* Vertically center and spread vertical links wrapper */
    #41329d7 {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2.2rem !important;
        width: 100% !important;
    }

    /* Style the dynamic heading elements acting as links */
    #41329d7 h3 {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    #41329d7 h3 a {
        font-family: 'Inter', sans-serif !important;
        font-size: 2.2rem !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
        text-decoration: none !important;
        display: block !important;
        transition: color 0.25s ease, transform 0.25s ease !important;
    }

    #41329d7 h3 a:hover,
    #41329d7 h3 a:active {
        color: #9d4edd !important; /* Premium brand purple accent */
        transform: scale(1.05) !important;
    }

    /* Absolute positioning for mobile overlay close (X) button */
    #2875da7 {
        position: absolute !important;
        top: 2rem !important;
        right: 2rem !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        font-size: 2.2rem !important;
        color: #ffffff !important;
        cursor: pointer !important;
        padding: 0.5rem !important;
        line-height: 1 !important;
        display: block !important;
    }
    #2875da7:hover {
        color: #9d4edd !important;
    }
}
