/* ===========================================
   ExaHubs Professional Navbar
=========================================== */

.site-header{
    position:sticky;
    top:0;
    z-index:9999;
    background:rgba(255,255,255,.96);
    backdrop-filter:blur(18px);
    border-bottom:1px solid #e5e7eb;
    transition:.25s;
}

.nav-wrap{
    position:relative;
    display:flex;
    justify-content:space-between;
    align-items:center;
    min-height:78px;
    gap:24px;
}

.brand{
    display:flex;
    align-items:center;
    gap:14px;
    text-decoration:none;
    color:#0f172a;
    font-size:24px;
    font-weight:900;
    flex-shrink:0;
}

.brand-mark{
    width:48px;
    height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:16px;
    color:white;
    font-size:22px;
    font-weight:900;
    background:linear-gradient(135deg,#2563eb,#14b8a6);
    box-shadow:0 14px 35px rgba(37,99,235,.25);
}

.nav{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:20px;
}

.nav a{
    position:relative;
    text-decoration:none;
    color:#334155;
    font-weight:800;
    font-size:15px;
    white-space:nowrap;
    transition:.25s;
}

.nav a:hover{
    color:#2563eb;
}

.nav a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-6px;
    width:0;
    height:2px;
    background:#2563eb;
    transition:.25s;
}

.nav a:hover::after{
    width:100%;
}

.nav-toggle{
    display:none;
    width:46px;
    height:46px;
    align-items:center;
    justify-content:center;
    border:1px solid #dbe3ef;
    border-radius:13px;
    background:#ffffff;
    color:#0f172a;
    font-size:21px;
    cursor:pointer;
    box-shadow:0 6px 18px rgba(15,23,42,.08);
    transition:.2s;
}

.nav-toggle:hover{
    border-color:#93c5fd;
    color:#2563eb;
    background:#f8fafc;
}

.nav-toggle:focus-visible{
    outline:3px solid rgba(37,99,235,.25);
    outline-offset:2px;
}

@media(max-width:1100px){

    .nav{
        gap:14px;
    }

    .nav a{
        font-size:14px;
    }
}

@media(max-width:900px){

    .site-header{
        background:rgba(255,255,255,.98);
    }

    .nav-wrap{
        min-height:70px;
        flex-direction:row !important;
        gap:12px !important;
    }

    .brand{
        font-size:22px;
    }

    .brand-mark{
        width:44px;
        height:44px;
        border-radius:14px;
    }

    .nav-toggle{
        display:flex;
        margin-left:auto;
    }

    .nav{
        position:absolute;
        top:calc(100% + 1px);
        left:0;
        right:0;

        display:none !important;
        flex-direction:column;
        align-items:stretch;
        justify-content:flex-start;

        gap:4px;

        padding:14px;

        background:#ffffff;
        border:1px solid #e2e8f0;
        border-radius:0 0 18px 18px;

        box-shadow:0 20px 40px rgba(15,23,42,.14);
    }

    .nav.nav-open{
        display:flex !important;
    }

    .nav a{
        width:100%;
        margin:0 !important;
        padding:13px 14px;
        border-radius:10px;

        color:#334155;
        font-size:15px;
        text-align:left;
    }

    .nav a:hover{
        background:#eff6ff;
        color:#2563eb;
    }

    .nav a::after{
        display:none;
    }
}

@media(max-width:480px){

    .nav-wrap{
        width:92%;
    }

    .brand{
        gap:10px;
        font-size:20px;
    }

    .brand-mark{
        width:40px;
        height:40px;
        font-size:19px;
    }

    .nav-toggle{
        width:42px;
        height:42px;
        font-size:19px;
    }

    .nav{
        padding:10px;
    }

    .nav a{
        padding:12px;
        font-size:15px;
    }
}
