/* =====================================================================
   Valinexis — shared site navigation
   Sits ON the hero gradient. No separate white header bar.
   Uses the existing theme palette only. No theme changes.
   ===================================================================== */

.vx-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    border: none;
    box-shadow: none;
    font-family: 'DM Sans', sans-serif;
}

.vx-nav__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 132px;
}

/* ---- Brand ---- */
.vx-nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex: 0 0 auto;
}

.vx-nav__brand img {
    height: 112px;
    width: auto;
    max-width: none;
    flex: 0 0 auto;
    display: block;
}

/* ---- Links ---- */
.vx-nav__links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.vx-nav__links > li {
    position: relative;
    display: flex;
    align-items: center;
    height: 48px;
}

.vx-nav__links a,
.vx-nav__trigger {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(234,251,253,0.9);
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.vx-nav__links a:hover,
.vx-nav__trigger:hover {
    color: var(--primary-glow, #00EEFF);
}

.vx-nav__links a.is-active {
    color: #ffffff;
    font-weight: 700;
}

.vx-nav__trigger .chevron {
    font-size: 0.7rem;
    transition: transform 0.22s ease;
    display: inline-block;
}

.vx-nav__item.open .chevron {
    transform: rotate(180deg);
}

.vx-nav__item.open .vx-nav__trigger {
    color: var(--primary-glow, #00EEFF);
}

/* ---- Agents dropdown ---- */
.vx-nav__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 36px rgba(0,0,0,0.22);
    border: 1px solid rgba(0,0,0,0.07);
    min-width: 268px;
    overflow: hidden;
}

.vx-nav__item.open .vx-nav__dropdown {
    display: block;
    animation: vxDropFade 0.2s ease;
}

@keyframes vxDropFade {
    from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.vx-nav__dropdown a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 20px;
    font-size: 0.94rem;
    font-weight: 500;
    color: #1a2e35;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: background 0.18s ease, color 0.18s ease;
}

.vx-nav__dropdown a:last-child {
    border-bottom: none;
}

.vx-nav__dropdown a:hover {
    background: var(--primary-light, #E6F7F9);
    color: var(--primary-dark, #0B5E6D);
}

.vx-nav__dropdown a i {
    font-size: 0.95rem;
    color: var(--primary-accent, #16A5B7);
    width: 18px;
    text-align: center;
    margin-top: 4px;
}

.vx-nav__dropdown small {
    display: block;
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-body, #4b6770);
    line-height: 1.5;
}

/* ---- CTA (white pill on the gradient) ---- */
.vx-nav__links a.vx-nav__cta {
    background: #ffffff;
    color: var(--primary-dark, #0B5E6D) !important;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    box-shadow: 0 3px 14px rgba(0,0,0,0.18);
    transition: background 0.28s ease, transform 0.28s ease;
}

.vx-nav__links a.vx-nav__cta:hover {
    background: var(--primary-glow, #00EEFF);
    color: var(--primary-dark, #0B5E6D) !important;
    transform: translateY(-2px);
}

/* ---- Hamburger ---- */
.vx-nav__burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #ffffff;
    padding: 6px;
}

@media (max-width: 991px) {
    .vx-nav__inner {
        height: 88px;
        padding: 0 20px;
    }

    .vx-nav__brand img {
        height: 62px;
    }

    .vx-nav__burger {
        display: block;
    }

    .vx-nav__links {
        display: none;
        position: absolute;
        top: 100%;
        left: 12px;
        right: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 16px 40px rgba(0,0,0,0.25);
        padding: 8px 0 16px;
    }

    .vx-nav.open .vx-nav__links {
        display: flex;
    }

    .vx-nav__links > li {
        width: 100%;
        height: auto;
        display: block;
    }

    .vx-nav__links > li > a:not(.vx-nav__cta),
    .vx-nav__trigger {
        width: 100%;
        padding: 13px 24px;
        justify-content: flex-start;
        color: #1a2e35;
    }

    .vx-nav__links a:hover,
    .vx-nav__trigger:hover,
    .vx-nav__item.open .vx-nav__trigger {
        color: var(--primary-accent, #16A5B7);
    }

    .vx-nav__links a.is-active {
        color: var(--primary-dark, #0B5E6D);
    }

    .vx-nav__dropdown {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        min-width: 100%;
        background: var(--bg-section, #f5fbfc);
    }

    .vx-nav__item.open .vx-nav__dropdown {
        animation: none;
    }

    .vx-nav__links a.vx-nav__cta {
        margin: 10px 24px 0;
        display: inline-block;
        background: linear-gradient(135deg, var(--primary-dark, #0B5E6D), var(--primary-accent, #16A5B7));
        color: #ffffff !important;
    }

    .vx-nav__links a.vx-nav__cta:hover {
        background: linear-gradient(135deg, var(--primary-dark, #0B5E6D), var(--primary-accent, #16A5B7));
        color: #ffffff !important;
        opacity: 0.9;
    }
}

@media (max-width: 480px) {
    .vx-nav__brand img {
        height: 52px;
    }
}
