
/* =========================================
   PROLYNXS PREMIUM HEADER
   White background / Navy text / Blue accents
   Isolated classes: pxh-
========================================= */

.pxh-header,
.pxh-header * {
    box-sizing: border-box;
}

.pxh-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e8edf4;
    box-shadow: 0 4px 20px rgba(19, 42, 76, 0.045);
    font-family: inherit;
}

.pxh-header .pxh-container {
    width: 100%;
    max-width: 1320px;
    min-height: 88px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

/* ---------- LOGO ---------- */

.pxh-header .pxh-brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    min-width: 190px;
}

.pxh-header .pxh-brand a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    outline-offset: 5px;
}

.pxh-header .pxh-brand img {
    display: block;
    width: 190px;
    max-width: 100%;
    height: auto;
    max-height: 62px;
    object-fit: contain;
    object-position: left center;
}

/* ---------- DESKTOP NAVIGATION ---------- */

.pxh-header .pxh-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
    flex: 1 1 auto;
    min-width: 0;
}

.pxh-header .pxh-nav {
    display: flex;
    align-items: center;
}

.pxh-header .pxh-nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.pxh-header .pxh-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.pxh-header .pxh-nav-item > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    color: #34445c;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.pxh-header .pxh-nav-item > a::after {
    position: absolute;
    right: 14px;
    bottom: 4px;
    left: 14px;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, #1769ed, #42b9f5);
    border-radius: 10px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
}

.pxh-header .pxh-nav-item:hover > a,
.pxh-header .pxh-nav-item:focus-within > a,
.pxh-header .pxh-current > a {
    color: #155ac2;
}

.pxh-header .pxh-nav-item:hover > a::after,
.pxh-header .pxh-nav-item:focus-within > a::after,
.pxh-header .pxh-current > a::after {
    transform: scaleX(1);
}

/* ---------- DROPDOWN ARROW ---------- */

.pxh-header .pxh-chevron {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.pxh-header .pxh-has-dropdown:hover > a .pxh-chevron,
.pxh-header .pxh-has-dropdown:focus-within > a .pxh-chevron {
    margin-top: 3px;
    transform: rotate(225deg);
}

/* ---------- DESKTOP DROPDOWN ---------- */

.pxh-header .pxh-dropdown {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    z-index: 1005;
    display: block;
    width: 245px;
    min-width: 220px;
    padding: 10px;
    margin: 0;
    list-style: none;
    background: #ffffff;
    border: 1px solid #e5ebf3;
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(24, 46, 78, 0.13);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(9px);
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}

.pxh-header .pxh-has-dropdown:hover > .pxh-dropdown,
.pxh-header .pxh-has-dropdown:focus-within > .pxh-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.pxh-header .pxh-dropdown li {
    display: block;
    padding: 0;
    margin: 0;
    list-style: none;
}

.pxh-header .pxh-dropdown li a {
    display: flex;
    align-items: center;
    min-height: 43px;
    padding: 11px 13px;
    color: #35445a;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.45;
    text-decoration: none;
    border-radius: 7px;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        padding 0.2s ease;
}

.pxh-header .pxh-dropdown li a:hover,
.pxh-header .pxh-dropdown li a:focus {
    padding-left: 17px;
    color: #155ac2;
    background: #f0f6ff;
}

/* ---------- CONTACT BUTTON ---------- */

.pxh-header .pxh-contact-btn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 21px;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    background: linear-gradient(110deg, #145fe0, #347eff);
    border: 1px solid #286ee8;
    border-radius: 8px;
    box-shadow: 0 5px 16px rgba(37, 105, 225, 0.16);
    transition:
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.pxh-header .pxh-contact-btn span {
    display: inline-block;
    font-size: 19px;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.2s ease;
}

.pxh-header .pxh-contact-btn:hover,
.pxh-header .pxh-contact-btn:focus {
    color: #ffffff;
    background: linear-gradient(110deg, #0d51c7, #286be8);
    box-shadow: 0 8px 22px rgba(37, 105, 225, 0.23);
    transform: translateY(-1px);
}

.pxh-header .pxh-contact-btn:hover span {
    transform: translateX(3px);
}

/* ---------- MOBILE TOGGLE ---------- */

.pxh-header .pxh-mobile-toggle {
    display: none;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    cursor: pointer;
    background: #f4f7fc;
    border: 1px solid #dce5f1;
    border-radius: 9px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.pxh-header .pxh-mobile-toggle:hover {
    background: #eaf2ff;
    border-color: #c4d9fb;
}

.pxh-header .pxh-mobile-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    background: #142c4d;
    border-radius: 5px;
    transition:
        transform 0.22s ease,
        opacity 0.22s ease;
}

.pxh-header .pxh-mobile-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.pxh-header .pxh-mobile-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.pxh-header .pxh-mobile-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- MOBILE PANEL ---------- */

.pxh-header .pxh-mobile-panel {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 1004;
    width: 100%;
    padding: 12px 24px 22px;
    background: #ffffff;
    border-bottom: 1px solid #e4eaf2;
    box-shadow: 0 18px 35px rgba(20, 42, 75, 0.12);
}

.pxh-header .pxh-mobile-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.pxh-header .pxh-mobile-list > li {
    display: block;
    padding: 0;
    margin: 0;
    list-style: none;
    border-bottom: 1px solid #edf1f6;
}

.pxh-header .pxh-mobile-list > li:last-child {
    border-bottom: 0;
}

.pxh-header .pxh-mobile-list > li > a,
.pxh-header .pxh-services-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 49px;
    padding: 12px 3px;
    color: #293d57;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    text-decoration: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.pxh-header .pxh-mobile-list > li > a:hover,
.pxh-header .pxh-services-toggle:hover {
    color: #145fe0;
}

.pxh-header .pxh-services-toggle .pxh-chevron {
    flex: 0 0 auto;
    margin-right: 4px;
}

.pxh-header .pxh-services-toggle[aria-expanded="true"] .pxh-chevron {
    margin-top: 4px;
    transform: rotate(225deg);
}

.pxh-header .pxh-mobile-submenu {
    display: none;
    padding: 0 0 10px 12px;
    margin: 0;
    list-style: none;
}

.pxh-header .pxh-mobile-services.pxh-submenu-open .pxh-mobile-submenu {
    display: block;
}

.pxh-header .pxh-mobile-submenu li {
    display: block;
    padding: 0;
    margin: 0;
    list-style: none;
}

.pxh-header .pxh-mobile-submenu a {
    display: block;
    padding: 10px 12px;
    color: #53657d;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

.pxh-header .pxh-mobile-submenu a:hover,
.pxh-header .pxh-mobile-submenu a:focus {
    color: #145fe0;
    background: #f0f6ff;
}

/* ---------- TABLET & SMALL LAPTOP ---------- */

@media (max-width: 1100px) {
    .pxh-header .pxh-container {
        gap: 20px;
        padding-right: 22px;
        padding-left: 22px;
    }

    .pxh-header .pxh-brand {
        min-width: 165px;
    }

    .pxh-header .pxh-brand img {
        width: 170px;
    }

    .pxh-header .pxh-navigation {
        gap: 14px;
    }

    .pxh-header .pxh-nav-list {
        gap: 0;
    }

    .pxh-header .pxh-nav-item > a {
        padding-right: 10px;
        padding-left: 10px;
        font-size: 13.5px;
    }

    .pxh-header .pxh-nav-item > a::after {
        right: 10px;
        left: 10px;
    }

    .pxh-header .pxh-contact-btn {
        min-height: 44px;
        padding-right: 15px;
        padding-left: 15px;
        font-size: 13px;
    }
}

/* ---------- MOBILE NAVIGATION ---------- */

@media (max-width: 900px) {
    .pxh-header .pxh-container {
        min-height: 78px;
        padding-right: 22px;
        padding-left: 22px;
    }

    .pxh-header .pxh-brand {
        min-width: 0;
    }

    .pxh-header .pxh-brand img {
        width: 170px;
        max-height: 55px;
    }

    .pxh-header .pxh-navigation {
        flex: 0 0 auto;
        gap: 12px;
    }

    .pxh-header .pxh-nav {
        display: none;
    }

    .pxh-header .pxh-contact-btn {
        min-height: 43px;
        padding: 0 15px;
    }

    .pxh-header .pxh-mobile-toggle {
        display: flex;
    }

    .pxh-header .pxh-mobile-panel.pxh-mobile-open {
        display: block;
    }
}

/* ---------- SMALL MOBILE ---------- */

@media (max-width: 480px) {
    .pxh-header .pxh-container {
        min-height: 72px;
        gap: 12px;
        padding-right: 15px;
        padding-left: 15px;
    }

    .pxh-header .pxh-brand img {
        width: 148px;
        max-height: 48px;
    }

    .pxh-header .pxh-navigation {
        gap: 9px;
    }

    .pxh-header .pxh-contact-btn {
        min-height: 40px;
        gap: 5px;
        padding: 0 11px;
        font-size: 12px;
        border-radius: 7px;
    }

    .pxh-header .pxh-contact-btn span {
        font-size: 16px;
    }

    .pxh-header .pxh-mobile-toggle {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .pxh-header .pxh-mobile-panel {
        padding: 10px 18px 20px;
    }
}

/* ---------- VERY SMALL SCREENS ---------- */

@media (max-width: 360px) {
    .pxh-header .pxh-container {
        padding-right: 11px;
        padding-left: 11px;
    }

    .pxh-header .pxh-brand img {
        width: 125px;
    }

    .pxh-header .pxh-navigation {
        gap: 7px;
    }

    .pxh-header .pxh-contact-btn {
        padding: 0 8px;
        font-size: 11px;
    }

    .pxh-header .pxh-mobile-toggle {
        flex-basis: 37px;
        width: 37px;
        height: 37px;
    }
}

/* ---------- ACCESSIBILITY ---------- */

.pxh-header a:focus-visible,
.pxh-header button:focus-visible {
    outline: 3px solid rgba(37, 105, 225, 0.45);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .pxh-header *,
    .pxh-header *::before,
    .pxh-header *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
