/*=========================================================
    VBLINK HR CONSULTANTS
    HEADER.CSS

    Main Header Bar Only

    Contains:
    - Site header
    - Header inner
    - Logo
    - Logo animation
    - Brand name
    - Brand tagline
    - Desktop navigation
    - Phone link
    - Apply Now button
    - Header menu toggle button
    - Header animated border
    - Header responsive sizing

    Does NOT contain:
    - Mobile side drawer
    - Drawer overlay
    - Drawer menu items
    - Drawer close button
    - Drawer footer

    Those are handled by:
        side-drawer.css
=========================================================*/


/*=========================================================
    HEADER ROOT
=========================================================*/

.site-header{

    position:sticky;

    top:0;

    left:0;

    width:100%;

    z-index:1000;

    backdrop-filter:blur(18px);

    -webkit-backdrop-filter:blur(18px);

    background:rgba(255,255,255,.88);

    border-bottom:
        1px solid rgba(47,84,235,.08);

    transition:
        all .45s ease;

}


/*=========================================================
    SHRINK HEADER
    Activated by header.js
=========================================================*/

.site-header.shrink{

    background:
        rgba(255,255,255,.96);

    box-shadow:
        0 12px 35px rgba(0,0,0,.08);

}


/*=========================================================
    HEADER CONTAINER
=========================================================*/

.header-container{

    width:100%;

}


/*=========================================================
    HEADER INNER
=========================================================*/

.header-inner{

    display:flex;

    justify-content:space-around;

    align-items:center;

    min-height:96px;

    transition:.4s;

}


/*=========================================================
    SHRINK HEADER INNER
=========================================================*/

.site-header.shrink .header-inner{

    min-height:72px;

}


/*=========================================================
    BRAND
=========================================================*/

.brand{

    display:flex;

    align-items:center;

    gap:16px;

    color:inherit;

}


/*=========================================================
    LOGO SECTION
=========================================================*/

.logo-section{

    position:relative;

    display:flex;

    justify-content:center;

    align-items:center;

}


/*=========================================================
    LOGO RING
=========================================================*/

.logo-ring{

    position:relative;

    width:78px;

    height:78px;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    overflow:visible;

    background:
        linear-gradient(
            135deg,
            #2f54eb,
            #5b8cff
        );

    box-shadow:

        0 0 0 5px
            rgba(47,84,235,.10),

        0 15px 35px
            rgba(47,84,235,.30);

    transition:.45s;

}


/*=========================================================
    SHRINK LOGO
=========================================================*/

.site-header.shrink .logo-ring{

    width:64px;

    height:64px;

}


/*=========================================================
    LOGO IMAGE
=========================================================*/

.logo-ring img{

    width:58px;

    height:58px;

    border-radius:50%;

    background:#ffffff;

    padding:6px;

    object-fit:contain;

    transition:.4s;

}


/*=========================================================
    SHRINK LOGO IMAGE
=========================================================*/

.site-header.shrink .logo-ring img{

    width:48px;

    height:48px;

}


/*=========================================================
    LOGO HOVER
=========================================================*/

.logo-ring:hover{

    transform:
        rotate(-10deg)
        scale(1.08);

}


/*=========================================================
    LOGO DOTS
=========================================================*/

.dot{

    position:absolute;

    width:8px;

    height:8px;

    border-radius:50%;

}


/*=========================================================
    DOT 1
=========================================================*/

.dot1{

    background:#11d4ff;

    box-shadow:
        0 0 12px #11d4ff;

    animation:
        orbit1 5s linear infinite;

}


/*=========================================================
    DOT 2
=========================================================*/

.dot2{

    background:#ffd93d;

    box-shadow:
        0 0 12px #ffd93d;

    animation:
        orbit2 5s linear infinite;

}


/*=========================================================
    LOGO PARTICLE 1
=========================================================*/

.logo-ring::before{

    content:"";

    position:absolute;

    width:5px;

    height:5px;

    border-radius:50%;

    background:#ffffff;

    top:10px;

    left:50%;

    transform:
        translateX(-50%);

    box-shadow:
        0 0 15px #ffffff;

    animation:
        sparkle 2s infinite;

}


/*=========================================================
    LOGO PARTICLE 2
=========================================================*/

.logo-ring::after{

    content:"";

    position:absolute;

    width:4px;

    height:4px;

    border-radius:50%;

    background:#9ad4ff;

    bottom:12px;

    right:18px;

    box-shadow:
        0 0 15px #9ad4ff;

    animation:
        sparkle2 2.4s infinite;

}


/*=========================================================
    LOGO ANIMATION
=========================================================*/

@keyframes orbit1{

    from{

        transform:
            rotate(0deg)
            translateX(44px)
            rotate(0deg);

    }

    to{

        transform:
            rotate(360deg)
            translateX(44px)
            rotate(-360deg);

    }

}


@keyframes orbit2{

    from{

        transform:
            rotate(180deg)
            translateX(44px)
            rotate(-180deg);

    }

    to{

        transform:
            rotate(540deg)
            translateX(44px)
            rotate(-540deg);

    }

}


@keyframes sparkle{

    0%,
    100%{

        opacity:.3;

        transform:
            translateX(-50%)
            scale(.7);

    }

    50%{

        opacity:1;

        transform:
            translateX(-50%)
            scale(1.6);

    }

}


@keyframes sparkle2{

    0%,
    100%{

        opacity:.2;

        transform:
            scale(.6);

    }

    50%{

        opacity:1;

        transform:
            scale(1.5);

    }

}


/*=========================================================
    BRAND TEXT
=========================================================*/

.brand-text{

    display:flex;

    flex-direction:column;

    justify-content:center;

}


/*=========================================================
    BRAND NAME
=========================================================*/

.brand-name{

    font-size:25px;

    font-weight:700;

    letter-spacing:.6px;

    line-height:1.15;

    background:
        linear-gradient(
            90deg,
            #0d47ff,
            #4d8dff,
            #7ecbff,
            #4d8dff,
            #0d47ff
        );

    background-size:300% auto;

    -webkit-background-clip:text;

    -webkit-text-fill-color:transparent;

    background-clip:text;

    color:transparent;

    text-shadow:

        0 0 5px
            rgba(32,66,191,.25),

        0 0 10px
            rgba(32,66,191,.25),

        0 0 20px
            rgba(64,132,255,.18);

    animation:
        brandGlow 6s linear infinite;

    transition:
        all .35s ease;

}


/*=========================================================
    BRAND NAME HOVER
=========================================================*/

.brand-name:hover{

    transform:
        translateY(-2px);

    text-shadow:

        0 0 8px
            rgba(0,102,255,.45),

        0 0 18px
            rgba(0,102,255,.35),

        0 0 35px
            rgba(0,153,255,.30);

}


/*=========================================================
    BRAND GRADIENT ANIMATION
=========================================================*/

@keyframes brandGlow{

    0%{

        background-position:
            0% center;

    }

    100%{

        background-position:
            300% center;

    }

}


/*=========================================================
    BRAND TAGLINE
=========================================================*/

.brand-tagline{

    margin-top:4px;

    font-size:14px;

    color:#6f7e99;

    font-weight:500;

    letter-spacing:.4px;

}


/*=========================================================
    SHRINK BRAND
=========================================================*/

.site-header.shrink .brand-name{

    font-size:25px;

}


.site-header.shrink .brand-tagline{

    font-size:13px;

}


/*=========================================================
    DESKTOP NAVIGATION
=========================================================*/

.main-nav{

    display:flex;

    align-items:center;

    gap:.35rem;

    margin-left:1.5rem;

}


/*=========================================================
    NAVIGATION ITEM
=========================================================*/

.nav-item{

    position:relative;

    display:inline-flex;

    align-items:center;

    justify-content:center;

    min-width:84px;

    padding:
        .6rem .85rem;

    font-size:.86rem;

    font-weight:700;

    color:#102033;

    text-decoration:none;

    background:#edf4ff;

    border:
        1px solid
        rgba(37,99,235,.12);

    border-radius:8px;

    transform:
        skewX(-14deg);

    overflow:hidden;

    cursor:pointer;

    transition:

        transform .25s ease,

        background .25s ease,

        color .25s ease,

        border-color .25s ease,

        box-shadow .25s ease;

}


/*=========================================================
    NAVIGATION TEXT
=========================================================*/

.nav-item span{

    display:inline-block;

    transform:
        skewX(14deg);

    position:relative;

    z-index:2;

    white-space:nowrap;

}


/*=========================================================
    NAVIGATION TOP / BOTTOM LINES
=========================================================*/

.nav-item::before,
.nav-item::after{

    content:"";

    position:absolute;

    left:16%;

    width:68%;

    height:2px;

    background:#2563eb;

    transform:
        scaleX(0);

    transition:
        transform .30s ease;

}


.nav-item::before{

    top:6px;

    transform-origin:left;

}


.nav-item::after{

    bottom:6px;

    transform-origin:right;

}


/*=========================================================
    NAVIGATION HOVER / ACTIVE
=========================================================*/

.nav-item:hover,
.nav-item.active{

    background:#dfeaff;

    color:#1746a2;

    border-color:
        rgba(37,99,235,.25);

    box-shadow:
        0 8px 18px
        rgba(37,99,235,.15);

    transform:
        skewX(-14deg)
        translateY(-1px);

}


/*=========================================================
    NAVIGATION LINE ANIMATION
=========================================================*/

.nav-item:hover::before,
.nav-item:hover::after,
.nav-item.active::before,
.nav-item.active::after{

    transform:
        scaleX(1);

}


/*=========================================================
    NAVIGATION CLICK EFFECT
=========================================================*/

.nav-item:active{

    transform:
        skewX(-14deg)
        translateY(1px);

}


/*=========================================================
    NAVIGATION ACCESSIBILITY
=========================================================*/

.nav-item:focus-visible{

    outline:none;

    box-shadow:

        0 0 0 3px
            rgba(37,99,235,.18),

        0 8px 20px
            rgba(37,99,235,.15);

}


/*=========================================================
    HEADER ACTIONS
=========================================================*/

.header-actions{

    display:flex;

    align-items:center;

    gap:14px;

}


/*=========================================================
    PHONE LINK
=========================================================*/

.phone-link{

    display:flex;

    align-items:center;

    gap:5px;

    color:#2f54eb;

    font-weight:500;

    transition:.35s;

}


/*=========================================================
    PHONE LINK HOVER
=========================================================*/

.phone-link:hover{

    transform:
        translateY(-2px);

}


/*=========================================================
    PHONE ICON BUTTON
=========================================================*/

.phone-icon-btn{

    width:32px;

    height:32px;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    background:#eef4ff;

    transition:.35s;

}


/*=========================================================
    PHONE HOVER
=========================================================*/

.phone-link:hover
.phone-icon-btn{

    background:#2f54eb;

}


.phone-link:hover svg{

    fill:#ffffff;

}


/*=========================================================
    PHONE SVG
=========================================================*/

.phone-icon-btn svg{

    width:18px;

    height:18px;

    fill:#2f54eb;

    transition:.35s;

}


/*=========================================================
    APPLY NOW BUTTON
=========================================================*/

.apply-btn{

    position:relative;

    overflow:hidden;

    padding:6px 6px;

    border-radius:30px;

    color:#ffffff;

    font-weight:600;

    background:
        linear-gradient(
            135deg,
            #2f54eb,
            #5b8cff
        );

    box-shadow:
        0 12px 28px
        rgba(47,84,235,.25);

    transition:.35s;

}


/*=========================================================
    APPLY BUTTON HOVER
=========================================================*/

.apply-btn:hover{

    transform:
        translateY(-3px);

    box-shadow:
        0 18px 40px
        rgba(47,84,235,.35);

}


/*=========================================================
    APPLY BUTTON SHINE
=========================================================*/

.apply-btn::before{

    content:"";

    position:absolute;

    top:0;

    left:-120%;

    width:100%;

    height:100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.45),
            transparent
        );

    transition:.7s;

}


.apply-btn:hover::before{

    left:120%;

}


/*=========================================================
    APPLY BUTTON PULSE
=========================================================*/

.pulse-cta{

    animation:
        pulse 2.8s infinite;

}


@keyframes pulse{

    0%{

        box-shadow:
            0 0 0 0
            rgba(47,84,235,.45);

    }

    70%{

        box-shadow:
            0 0 0 18px
            rgba(47,84,235,0);

    }

    100%{

        box-shadow:
            0 0 0 0
            rgba(47,84,235,0);

    }

}


/*=========================================================
    MOBILE MENU TOGGLE
=========================================================

    IMPORTANT:

    This styles only the hamburger button
    located in the main header.

    It does NOT style or control the
    side drawer itself.

=========================================================*/

.menu-toggle{

    width:32px;

    height:32px;

    border:none;

    border-radius:12px;

    display:none;

    justify-content:center;

    align-items:center;

    flex-direction:column;

    gap:5px;

    cursor:pointer;

    background:#eef4ff;

    transition:.35s;

}


.menu-toggle:hover{

    background:#dbe7ff;

}


.menu-toggle span{

    width:22px;

    height:2px;

    border-radius:10px;

    background:#2f54eb;

    transition:.35s;

}


/*=========================================================
    HAMBURGER ACTIVE ANIMATION
=========================================================

    This is only the visual animation of the
    button itself.

    The actual drawer open/close behavior is
    handled by side-drawer.js.

=========================================================*/

.menu-toggle.active
span:nth-child(1){

    transform:
        translateY(7px)
        rotate(45deg);

}


.menu-toggle.active
span:nth-child(2){

    opacity:0;

}


.menu-toggle.active
span:nth-child(3){

    transform:
        translateY(-7px)
        rotate(-45deg);

}


/*=========================================================
    ANIMATED HEADER BOTTOM BORDER
=========================================================*/

.site-header::after{

    content:"";

    position:absolute;

    left:0;

    bottom:0;

    width:100%;

    height:2px;

    background:
        linear-gradient(
            90deg,
            #2f54eb,
            #5b8cff,
            #11d4ff,
            #5b8cff,
            #2f54eb
        );

    background-size:300%;

    animation:
        borderMove 6s linear infinite;

}


/*=========================================================
    HEADER BORDER ANIMATION
=========================================================*/

@keyframes borderMove{

    from{

        background-position:0%;

    }

    to{

        background-position:300%;

    }

}


/*=========================================================
    HEADER TRANSITION
=========================================================*/

.site-header{

    transition:

        background .4s,

        box-shadow .4s,

        border-color .4s,

        backdrop-filter .4s;

}


/*=========================================================
    DESKTOP
    993px AND ABOVE
=========================================================*/

@media (min-width:993px){

    .menu-toggle{

        display:none;

    }

}


/*=========================================================
    LARGE TABLETS
    993px - 1200px
=========================================================*/

@media (max-width:1200px){

    .header-inner{

        padding:0 10px;

    }


    .brand-name{

        font-size:20px;

    }


    .brand-tagline{

        font-size:13px;

    }


    .phone-number{

        display:none;

    }


    .main-nav{

        gap:2px;

    }


    .nav-item{

        padding:
            5px 7px;

        font-size:14px;

    }

}


/*=========================================================
    TABLETS / MOBILE HEADER
    992px AND BELOW
=========================================================

    IMPORTANT:

    The old mobile .main-nav drawer has been
    completely removed.

    The side drawer is now a separate component.

=========================================================*/

@media (max-width:992px){

    .header-inner{

        min-height:78px;

    }


    /*
       Hide desktop navigation.
       The separate side drawer contains
       the mobile navigation.
    */

    .main-nav{

        display:none;

    }


    /*
       Header actions are hidden on tablet/mobile
       according to the existing design.
    */

    .header-actions{

        display:none;

    }


    /*
       Show hamburger button.
    */

    .menu-toggle{

        display:flex;

        z-index:1200;

    }


    .brand-name{

        font-size:24px;

    }


    .brand-tagline{

        font-size:13px;

    }

}


/*=========================================================
    SMALL MOBILE
    768px AND BELOW
=========================================================*/

@media (max-width:768px){

    .header-inner{

        min-height:72px;

        padding:
            0 10px;

    }


    .brand{

        gap:10px;

    }


    .brand-name{

        font-size:20px;

    }


    .brand-tagline{

        font-size:11px;

    }


    .logo-ring{

        width:64px;

        height:64px;

    }


    .logo-ring img{

        width:48px;

        height:48px;

    }


    .menu-toggle{

        width:34px;

        height:34px;

        flex-shrink:0;

    }

}


/*=========================================================
    VERY SMALL MOBILE
    480px AND BELOW
=========================================================*/

@media (max-width:480px){

    .header-inner{

        min-height:68px;

        padding:
            0 8px;

    }


    .brand{

        gap:8px;

    }


    .logo-ring{

        width:58px;

        height:58px;

    }


    .logo-ring img{

        width:44px;

        height:44px;

    }


    .brand-name{

        font-size:17px;

        letter-spacing:.3px;

    }


    .brand-tagline{

        font-size:10px;

        margin-top:2px;

    }


    .menu-toggle{

        width:32px;

        height:32px;

    }


    .menu-toggle span{

        width:21px;

    }

}


/*=========================================================
    REDUCED MOTION
=========================================================*/

@media (prefers-reduced-motion:reduce){

    .logo-ring,
    .logo-ring img,
    .brand-name,
    .apply-btn,
    .pulse-cta,
    .site-header::after,
    .dot1,
    .dot2,
    .logo-ring::before,
    .logo-ring::after{

        animation:none;

        transition:none;

    }

}