/* VNTech Theme 5.3 desktop-first header and navigation. */
body.vntech-theme5 .site-header--t5 {
    position: fixed;
    z-index: var(--t5-z-header);
    inset: 0 0 auto;
    display: block;
    padding: 0;
    border: 0;
    border-bottom: 1px solid rgba(154, 187, 239, 0.12);
    background: rgba(3, 14, 31, 0.94);
    backdrop-filter: blur(14px) saturate(115%);
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

body.admin-bar.vntech-theme5 .site-header--t5 {
    top: 32px;
}

body.vntech-theme5 .site-header--t5.is-scrolled {
    border-bottom-color: rgba(159, 194, 248, 0.18);
    background: rgba(3, 14, 31, 0.985);
    box-shadow: 0 8px 26px rgba(0, 7, 19, 0.2);
}

body.vntech-theme5 .site-header__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    width: min(calc(100% - 44px), 1260px);
    min-height: var(--t5-header-height);
    align-items: center;
    gap: 22px;
    margin-inline: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.vntech-theme5 .site-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
}

body.vntech-theme5 .site-brand__logo,
body.vntech-theme5 .site-brand__image {
    display: block;
}

body.vntech-theme5 .site-brand__image {
    width: auto;
    max-height: 28px;
}

body.vntech-theme5 .site-brand__text {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

body.vntech-theme5 .site-brand__text strong {
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.vntech-theme5 .site-brand__text small {
    display: none;
}

body.vntech-theme5 .site-nav {
    display: flex;
    min-width: 0;
    justify-content: center;
}

body.vntech-theme5 .site-nav__menu {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 17px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.vntech-theme5 .site-nav__menu > li {
    position: relative;
    margin: 0;
}

body.vntech-theme5 .site-nav__menu > li > a {
    position: relative;
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 5px 0;
    border-radius: 0;
    background: transparent;
    color: rgba(229, 238, 252, 0.82);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: color 150ms ease;
}

body.vntech-theme5 .site-nav__menu > li > a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 1px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: #5594ff;
    opacity: 0;
    transform: scaleX(0.45);
    transition: opacity 150ms ease, transform 150ms ease;
}

body.vntech-theme5 .site-nav__menu > li > a:hover,
body.vntech-theme5 .site-nav__menu > li > a:focus-visible,
body.vntech-theme5 .site-nav__menu > li > a.is-active,
body.vntech-theme5 .site-nav__menu > li > a[aria-current="true"],
body.vntech-theme5 .site-nav__menu > li.current-menu-item > a {
    background: transparent;
    color: #fff;
}

body.vntech-theme5 .site-nav__menu > li > a:hover::after,
body.vntech-theme5 .site-nav__menu > li > a:focus-visible::after,
body.vntech-theme5 .site-nav__menu > li > a.is-active::after,
body.vntech-theme5 .site-nav__menu > li > a[aria-current="true"]::after,
body.vntech-theme5 .site-nav__menu > li.current-menu-item > a::after {
    opacity: 1;
    transform: scaleX(1);
}

body.vntech-theme5 .site-nav__menu .sub-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    left: -12px;
    display: grid;
    min-width: 210px;
    gap: 2px;
    margin: 0;
    padding: 7px;
    border: 1px solid rgba(165, 198, 252, 0.15);
    border-radius: 9px;
    background: rgba(4, 15, 34, 0.995);
    box-shadow: 0 18px 42px rgba(0, 8, 24, 0.3);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 150ms ease, visibility 150ms ease, transform 150ms ease;
}

body.vntech-theme5 .site-nav__menu li:hover > .sub-menu,
body.vntech-theme5 .site-nav__menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

body.vntech-theme5 .site-nav__menu .sub-menu a {
    display: block;
    padding: 8px 9px;
    border-radius: 6px;
    color: rgba(235, 242, 255, 0.78);
    font-size: 12px;
    text-decoration: none;
}

body.vntech-theme5 .site-nav__menu .sub-menu a:hover,
body.vntech-theme5 .site-nav__menu .sub-menu a:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

body.vntech-theme5 .site-header__actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

body.vntech-theme5 .t5-button--header {
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 7px;
    font-size: 11.5px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: none;
}

body.vntech-theme5 .menu-toggle {
    display: none;
    width: 38px;
    height: 38px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
    cursor: pointer;
}

body.vntech-theme5 .menu-toggle > span:not(.screen-reader-text) {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    border-radius: 999px;
    background: #fff;
}

body.vntech-theme5 .mobile-backdrop {
    position: fixed;
    z-index: calc(var(--t5-z-drawer) - 1);
    inset: 0;
    background: rgba(1, 7, 18, 0.62);
    backdrop-filter: blur(5px);
}

body.vntech-theme5 .mobile-backdrop[hidden] {
    display: none;
}

body.vntech-theme5 .mobile-drawer {
    position: fixed;
    z-index: var(--t5-z-drawer);
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    width: min(350px, 92vw);
    flex-direction: column;
    gap: 16px;
    padding: 18px;
    background: #06152d;
    box-shadow: -30px 0 80px rgba(0, 8, 24, 0.34);
    color: #fff;
    transform: translateX(105%);
    transition: transform 220ms var(--t5-ease);
}

body.vntech-theme5 .mobile-drawer.is-open {
    transform: none;
}

body.vntech-theme5 .mobile-drawer__close {
    align-self: flex-end;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 760;
}

body.vntech-theme5 .mobile-menu {
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.vntech-theme5 .mobile-menu a {
    display: flex;
    min-height: 42px;
    align-items: center;
    padding: 8px 9px;
    border-radius: 7px;
    color: rgba(238, 245, 255, 0.82);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

body.vntech-theme5 .mobile-menu a:hover,
body.vntech-theme5 .mobile-menu a:focus-visible {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

body.vntech-theme5 .mobile-drawer__contact {
    display: grid;
    gap: 7px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.vntech-theme5 .mobile-drawer__contact a {
    color: rgba(220, 233, 255, 0.7);
    font-size: 12px;
}

body.vntech-theme5 .scroll-top--t5 {
    position: fixed;
    z-index: var(--t5-z-floating);
    right: var(--t5-floating-edge);
    bottom: calc(var(--t5-floating-edge) + var(--t5-ai-launcher-clearance));
    left: auto;
    display: grid;
    width: var(--t5-floating-size);
    height: var(--t5-floating-size);
    padding: 0;
    place-items: center;
    border: 1px solid rgba(132, 177, 248, 0.3);
    border-radius: 50%;
    background: #07172f;
    box-shadow: 0 10px 28px rgba(4, 17, 38, 0.2);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

body.vntech-theme5 .scroll-top--t5.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
}

body.vntech-theme5 .scroll-top--t5:hover,
body.vntech-theme5 .scroll-top--t5:focus-visible {
    border-color: rgba(145, 190, 255, 0.58);
    background: #0b2450;
}

body.vntech-theme5 .scroll-top--t5 span,
body.vntech-theme5 .scroll-top--t5 svg {
    display: block;
    width: 18px;
    height: 18px;
}

body.vntech-theme5 .scroll-top--t5 svg,
body.vntech-theme5 .scroll-top--t5 path {
    fill: currentColor;
}

body.vntech-theme5 :is(
    .vntech-ai-widget__launcher,
    .vntech-ai-launcher,
    .vn-ai-launcher,
    [data-vntech-ai-launcher],
    [data-vn-ai-launcher]
) {
    right: var(--t5-floating-edge) !important;
    bottom: var(--t5-floating-edge) !important;
}

@media (max-width: 1260px) {
    body.vntech-theme5 .site-nav__menu {
        gap: 12px;
    }

    body.vntech-theme5 .site-nav__menu > li > a {
        font-size: 11.5px;
    }
}

@media (max-width: 1120px) {
    body.vntech-theme5 .site-nav,
    body.vntech-theme5 .t5-button--header {
        display: none;
    }

    body.vntech-theme5 .site-header__inner {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    body.vntech-theme5 .menu-toggle {
        display: block;
    }
}

@media (max-width: 782px) {
    body.admin-bar.vntech-theme5 .site-header--t5 {
        top: 46px;
    }
}

@media (max-width: 720px) {
    body.vntech-theme5 .site-header__inner {
        width: min(calc(100% - 24px), 100%);
        min-height: 54px;
    }

    body.vntech-theme5 .site-brand__image {
        max-height: 27px;
    }

    body.vntech-theme5 .site-brand__text strong {
        font-size: 14px;
    }

    body.vntech-theme5 {
        --t5-floating-edge: 12px;
        --t5-floating-size: 44px;
        --t5-floating-gap: 10px;
    }
}

@media (max-width: 600px) {
    body.admin-bar.vntech-theme5 .site-header--t5 {
        top: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.vntech-theme5 .site-header--t5,
    body.vntech-theme5 .mobile-drawer,
    body.vntech-theme5 .scroll-top--t5,
    body.vntech-theme5 .site-nav__menu > li > a::after {
        transition: none;
    }
}
