/* Responsive nav label: show short form between 961px and 1040px */
.vig-nav-label-short { display: none; }

@media (max-width: 1100px) and (min-width: 961px) {
    .vig-nav-label-full  { display: none; }
    .vig-nav-label-short { display: inline; }
}

/* =============================================================
   Vigilis Site Header
   Homepage header review implementation for the public theme.
   ============================================================= */

.vig-site-header {
    --vig-header-gutter: 80px;
    --vig-shell-max-width: 1400px;
    --vig-shell-radius: 58px;
    --vig-shell-border: rgba(255, 255, 255, 0.42);
    --vig-shell-bg: rgba(8, 39, 20, 0.72);
    --vig-shell-bg-strong: rgba(8, 39, 20, 0.86);
    --vig-shell-shadow: 0 22px 60px rgba(2, 12, 8, 0.16);
    --vig-control-height: 44px;
    --vig-header-text-size: 16px;
    --vig-shell-padding-inline: 32px;
    --vig-bar-gap: 18px;
    position: fixed;
    top: 24px;
    left: 0;
    right: 0;
    z-index: var(--z-dropdown, 1000);
    width: 100%;
    padding: 0 var(--vig-header-gutter);
    box-sizing: border-box;
    pointer-events: none;
}

body.admin-bar .vig-site-header {
    top: calc(24px + 32px);
}

.vig-header-shell {
    position: relative;
    width: min(100%, var(--vig-shell-max-width));
    margin: 0 auto;
    padding: 16px var(--vig-shell-padding-inline);
    border: 1px solid var(--vig-shell-border);
    border-radius: var(--vig-shell-radius);
    background: var(--vig-shell-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--vig-shell-shadow);
    box-sizing: border-box;
    pointer-events: auto;
    transition:
        background 260ms cubic-bezier(0.2, 0.82, 0.2, 1),
        border-color 260ms cubic-bezier(0.2, 0.82, 0.2, 1),
        box-shadow 260ms cubic-bezier(0.2, 0.82, 0.2, 1);
}

.vig-site-header.is-scrolled .vig-header-shell,
.vig-site-header.is-menu-open .vig-header-shell {
    background: rgba(6, 28, 14, 0.96);
    border-color: rgba(255, 255, 255, 0.22);
}

.vig-header-bar {
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 56px;
}

.vig-header-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
    text-decoration: none;
}

.vig-header-logo img {
    display: block;
    width: auto;
    height: 42px;
    max-width: 100%;
}

.vig-header-vsep {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
    margin: 0 16px;
}

.vig-header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.vig-header-nav {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
    max-width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, 0.82);
}

.vig-header-nav__item {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: var(--vig-control-height);
    margin: 0;
    padding: 0;
}

.vig-header-nav__item + .vig-header-nav__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 23px;
    background: rgba(36, 96, 54, 0.14);
    transform: translateY(-50%);
    transition: opacity 220ms ease;
}

.vig-header-nav__item.is-active + .vig-header-nav__item::before {
    opacity: 0;
}

.vig-header-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 18px;
    border-radius: 999px;
    color: inherit;
    font-family: var(--wp--preset--font-family--lexend, "Lexend", sans-serif);
    font-size: var(--vig-header-text-size);
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition:
        color 260ms cubic-bezier(0.2, 0.82, 0.2, 1),
        background-color 260ms cubic-bezier(0.2, 0.82, 0.2, 1);
}

.vig-header-nav__link:hover,
.vig-header-nav__link:focus-visible {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.09);
}

.vig-header-nav__link:focus-visible {
    outline: 2px solid rgba(244, 129, 19, 0.5);
    outline-offset: 2px;
}

.vig-chevron {
    flex: 0 0 auto;
    color: currentColor;
    transition: transform 260ms cubic-bezier(0.2, 0.82, 0.2, 1);
}

.vig-header-nav__item.is-active .vig-header-nav__link {
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
}

.vig-header-nav__item.is-active .vig-chevron {
    transform: rotate(180deg);
}

.vig-header-right {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.vig-lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.vig-lang-option {
    font-family: var(--wp--preset--font-family--lexend, "Lexend", sans-serif);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    white-space: nowrap;
    transition: color 200ms ease;
}

.vig-lang-option.is-current {
    color: rgba(255, 255, 255, 0.88);
}

.vig-lang-option:hover,
.vig-lang-option:focus-visible {
    color: #fff;
}

.vig-lang-option:focus-visible {
    outline: 2px solid rgba(244, 129, 19, 0.45);
    outline-offset: 3px;
    border-radius: 3px;
}

.vig-lang-dot {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.2);
    user-select: none;
}

.vig-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 152px;
    min-height: var(--vig-control-height);
    padding: 0 22px;
    border-radius: 999px;
    background: var(--wp--preset--color--secondary, rgb(244, 129, 19));
    color: #020202;
    font-family: var(--wp--preset--font-family--lexend, "Lexend", sans-serif);
    font-size: var(--vig-header-text-size);
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background-color 220ms ease,
        color 220ms ease;
}

.vig-contact-btn:hover,
.vig-contact-btn:focus-visible {
    background: var(--color-primary-600, rgb(79, 125, 93));
    color: var(--wp--preset--color--white, rgb(255, 255, 255));
    text-decoration: none;
}

.vig-contact-btn:focus-visible {
    outline: 2px solid rgba(244, 129, 19, 0.45);
    outline-offset: 3px;
}

.vig-hamburger {
    display: none;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-left: auto;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--wp--preset--color--white, rgb(255, 255, 255));
    cursor: pointer;
}

.vig-hamburger__line,
.vig-hamburger__line::before,
.vig-hamburger__line::after {
    display: block;
    width: 30px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
    content: "";
    transition:
        transform 260ms cubic-bezier(0.2, 0.82, 0.2, 1),
        opacity 220ms ease;
}

.vig-hamburger__line::before {
    transform: translateY(-9px);
}

.vig-hamburger__line::after {
    transform: translateY(6px);
}

.vig-site-header.is-menu-open .vig-hamburger__line {
    background: transparent;
}

.vig-site-header.is-menu-open .vig-hamburger__line::before {
    transform: translateY(0) rotate(45deg);
}

.vig-site-header.is-menu-open .vig-hamburger__line::after {
    transform: translateY(-3px) rotate(-45deg);
}

@media (max-width: 1349px) {
    .vig-site-header {
        --vig-header-gutter: 32px;
        --vig-control-height: 40px;
        --vig-header-text-size: 14px;
        --vig-shell-padding-inline: 24px;
        --vig-bar-gap: 14px;
    }

    .vig-header-shell {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .vig-header-logo img {
        height: 36px;
    }

    .vig-header-nav__link,
    .vig-contact-btn {
        font-size: 14px;
    }

    .vig-header-nav__link {
        padding: 0 14px;
    }

    .vig-contact-btn {
        min-width: 132px;
        padding: 0 18px;
    }
}

@media (max-width: 1040px) {
    .vig-site-header {
        --vig-header-gutter: 24px;
        --vig-shell-padding-inline: 20px;
        --vig-bar-gap: 12px;
        --vig-header-text-size: 13px;
    }

    .vig-header-logo img {
        height: 32px;
    }

    .vig-header-center {
        justify-content: flex-start;
    }

    .vig-header-nav__link {
        gap: 6px;
        padding: 0 12px;
    }

    .vig-header-right {
        gap: 10px;
    }

    .vig-contact-btn {
        min-width: 120px;
        padding: 0 16px;
    }
}

@media (max-width: 960px) {
    .vig-site-header {
        --vig-header-gutter: 16px;
        --vig-shell-padding-inline: 22px;
        top: 16px;
    }

    .vig-header-shell {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .vig-header-bar {
        min-height: 64px;
    }

    .vig-header-logo img {
        height: 36px;
    }

    .vig-header-center,
    .vig-header-right,
    .vig-header-vsep {
        display: none;
    }

    .vig-hamburger {
        display: inline-flex;
    }
}

@media (max-width: 960px) {
    body.admin-bar .vig-site-header {
        top: calc(16px + 32px);
    }
}

@media (max-width: 782px) {
    body.admin-bar .vig-site-header {
        top: calc(16px + 46px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .vig-header-shell,
    .vig-header-nav__item + .vig-header-nav__item::before,
    .vig-header-nav__link,
    .vig-chevron,
    .vig-lang-option,
    .vig-contact-btn,
    .vig-hamburger__line,
    .vig-hamburger__line::before,
    .vig-hamburger__line::after {
        transition: none;
    }
}

