body {
    margin: 0;
    background: #101012;
    color: #fff;
    padding-top: 78px;
}

html {
    scroll-behavior: smooth;
}

.text-blur .elementor-heading-title {
    visibility: hidden;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    background: var(--navy-strong);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header_logo{
    width: 143px;
}

/* Respect WordPress admin bar */
.admin-bar .site-header {
    top: 32px;
}
@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

.brand a {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Header socials */
.header-socials {
    display: flex;
    align-items: center;
}
.header-socials .social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}
.header-socials .social-links a {
    color: #ffffff;
    opacity: 0.85;
    transition: color 0.2s ease, opacity 0.2s ease;
}
.header-socials .social-links a:hover {
    color: #6fb2ff;
    opacity: 1;
}

/* Nav overlay socials (mobile only) */
.menu-socials { display: none; }
.menu-socials .social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-links .menu {
    display: flex;
    gap: 20px;
    font-size: 14px;
    opacity: 0.9;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links .menu > .menu-item {
    position: relative;
}

.nav-links .menu a {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-links .menu a:hover {
    color: #6fb2ff;
}

.nav-links .menu .menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border: 2px solid currentColor;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    margin-left: 4px;
}

.nav-links .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: rgba(6, 16, 32, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 0;
    list-style: none;
    margin: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    display: none;
    z-index: 30;
}

/* Enable multi-level submenus on desktop */
.nav-links .sub-menu .menu-item {
    position: relative;
}

/* Position the next level to the right of its parent */
.nav-links .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

/* Show nested submenu on hover/focus as well */
.nav-links .sub-menu .menu-item:hover > .sub-menu,
.nav-links .sub-menu .menu-item:focus-within > .sub-menu {
    display: block;
}

.nav-links .sub-menu .menu-item {
    padding: 0 16px;
}

.nav-links .sub-menu a {
    width: 100%;
    padding: 10px 0;
    color: #e7eeff;
}

.nav-links .menu > .menu-item:hover > .sub-menu,
.nav-links .menu > .menu-item:focus-within > .sub-menu,
.nav-links .sub-menu:hover {
    display: block;
}

.cta {
    padding: 10px 16px;
    border-radius: 12px;
    background: white;
    color: #0a1224;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    position: relative;
    z-index: 50;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #ffffff;
    transition: transform 0.2s ease, opacity 0.2s ease;
    transform-origin: center;
}

@media (max-width: 900px) {
    body.nav-open {
        overflow: hidden;
    }

    body.nav-open .site-header {
        transform: none !important;
        backdrop-filter: none !important;
    }

    .site-header {
        padding: 14px 18px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    /* Hamburger to cross when menu open */
    body.nav-open .menu-toggle span:nth-child(1),
    .menu-toggle.is-open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    body.nav-open .menu-toggle span:nth-child(2),
    .menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }
    body.nav-open .menu-toggle span:nth-child(3),
    .menu-toggle.is-open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links .menu-primary-menu-container{
        width: 100%;
    }

    .nav-links {
        position: fixed;
        inset: 0;
        background: rgba(6, 16, 32, 0.98);
        backdrop-filter: blur(12px);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 24px 32px;
        gap: 0;
        z-index: 40;
        overflow: auto;
    }

    .nav-links.is-open {
        transform: translateX(0);
    }

    .nav-links .menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-links .menu > .menu-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-links .menu > .menu-item:last-child {
        border-bottom: none;
    }

    .nav-links .menu a {
        width: 100%;
        padding: 16px 12px;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: #ffffff;
        transition: background-color 0.2s ease;
    }

    .nav-links .menu a:hover,
    .nav-links .menu a:active {
        background-color: rgba(255, 255, 255, 0.05);
    }

    /* Hide desktop header socials in compact mobile header */
    .header-socials {
        display: none;
    }

    /* Show socials at bottom of mobile nav overlay */
    .menu-socials {
        display: flex;
        margin-top: auto;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        width: 100%;
        justify-content: flex-start;
        opacity: 1;
    }

    .menu-socials .social-links {
        display: flex;
        align-items: center;
        gap: 12px;
        opacity: 1;
    }

    .menu-socials .social-links a {
        color: #ffffff;
        opacity: 1;
        transition: color 0.2s ease, opacity 0.2s ease;
    }

    .menu-socials .social-links a:hover {
        color: #6fb2ff;
        opacity: 1;
    }

    .nav-links .sub-menu {
        position: relative;
        top: 0;
        left: 0;
        background: rgba(255, 255, 255, 0.03);
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 8px 0;
        margin: 0;
        display: none;
    }

    /* Improve readability for nested levels on mobile */
    .nav-links .sub-menu .sub-menu a {
        padding-left: 44px;
    }

    /* Disable desktop hover/focus behavior on mobile so class controls visibility
       but don't hide when explicitly opened via class */
    .nav-links .menu > .menu-item:not(.submenu-open):hover > .sub-menu,
    .nav-links .menu > .menu-item:not(.submenu-open):focus-within > .sub-menu {
        display: none;
    }

    .nav-links .sub-menu .menu-item {
        border-bottom: none;
        padding: 0;
    }

    .nav-links .sub-menu a {
        padding: 12px 12px 12px 28px;
        font-size: 15px;
        color: rgba(255, 255, 255, 0.9);
    }

    .nav-links .submenu-open > .sub-menu {
        display: block;
    }

    .nav-links .menu .menu-item-has-children > a::after {
        margin-left: auto;
        transform: rotate(45deg);
        transition: transform 0.3s ease;
        flex-shrink: 0;
    }

    .nav-links .submenu-open > a::after {
        transform: rotate(225deg);
    }

    .cta {
        display: none;
    }
}