/* =========================================================
   JORDANPORTAL HEADER
   Public navigation matching the charcoal and gold homepage
   ========================================================= */


/* ---------------------------------------------------------
   Main header
   --------------------------------------------------------- */

.site-header {
    position: relative;
    z-index: 100;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid rgba(20, 24, 30, 0.08);
}

.header-inner {
    display: flex;
    width: min(calc(100% - 64px), 1400px);
    min-height: 92px;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin: 0 auto;
}


/* ---------------------------------------------------------
   Brand
   --------------------------------------------------------- */

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 15px;
    color: #17191d;
    text-decoration: none;
}

.brand:hover {
    color: #17191d;
}

.brand-mark {
    position: relative;
    display: inline-flex;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #17191d;
    border-radius: 15px;
    box-shadow: 0 10px 24px rgba(20, 24, 30, 0.16);
    color: #f5ad12;
    font-size: 1.05rem;
    font-weight: 900;
}

.brand-mark::before {
    position: absolute;
    top: -18px;
    right: -15px;
    width: 48px;
    height: 48px;
    background: rgba(245, 173, 18, 0.13);
    border-radius: 50%;
    content: "";
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    margin: 0;
    color: #17191d;
    font-size: 1.1rem;
    font-weight: 850;
    letter-spacing: -0.03em;
}

.brand-text span {
    margin-top: 5px;
    color: #6b7078;
    font-size: 0.78rem;
    font-weight: 600;
}


/* ---------------------------------------------------------
   Navigation
   --------------------------------------------------------- */

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    position: relative;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: 999px;
    color: #30343a;
    font-size: 0.9rem;
    font-weight: 760;
    text-decoration: none;
    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.nav-link::after {
    position: absolute;
    right: 16px;
    bottom: 7px;
    left: 16px;
    height: 2px;
    background: #f5ad12;
    border-radius: 999px;
    content: "";
    opacity: 0;
    transform: scaleX(0.5);
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}

.nav-link:hover {
    background: #f7f5ef;
    color: #17191d;
    transform: translateY(-1px);
}

.nav-link:hover::after {
    opacity: 1;
    transform: scaleX(1);
}


/* ---------------------------------------------------------
   Login button
   --------------------------------------------------------- */

.nav-login {
    min-height: 46px;
    margin-left: 8px;
    padding-right: 22px;
    padding-left: 22px;
    background: #17191d;
    color: #ffffff;
}

.nav-login::after {
    display: none;
}

.nav-login:hover {
    background: #f5ad12;
    color: #101114;
}


/* ---------------------------------------------------------
   Active link support
   --------------------------------------------------------- */

.nav-link[aria-current="page"],
.nav-link.active {
    background: #fff1c8;
    color: #17191d;
}

.nav-login[aria-current="page"],
.nav-login.active {
    background: #f5ad12;
    color: #101114;
}


/* ---------------------------------------------------------
   Sticky header support
   --------------------------------------------------------- */

.site-header.sticky,
.site-header.is-sticky {
    position: sticky;
    top: 0;
    box-shadow: 0 10px 30px rgba(20, 24, 30, 0.08);
}


/* ---------------------------------------------------------
   Mobile navigation button
   Ready for when the menu script is added
   --------------------------------------------------------- */

.nav-toggle,
.menu-toggle,
.mobile-menu-button {
    display: none;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #17191d;
    border: 0;
    border-radius: 13px;
    color: #f5ad12;
}

.menu-icon,
.mobile-menu-icon {
    position: relative;
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
}

.menu-icon::before,
.menu-icon::after,
.mobile-menu-icon::before,
.mobile-menu-icon::after {
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    content: "";
}

.menu-icon::before,
.mobile-menu-icon::before {
    top: -6px;
}

.menu-icon::after,
.mobile-menu-icon::after {
    top: 6px;
}


/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 1050px) {
    .header-inner {
        width: min(calc(100% - 40px), 1400px);
        gap: 22px;
    }

    .nav-link {
        padding-right: 11px;
        padding-left: 11px;
        font-size: 0.84rem;
    }

    .brand-text span {
        display: none;
    }
}

@media (max-width: 820px) {
    .header-inner {
        position: relative;
        min-height: 78px;
    }

    .nav-toggle,
    .menu-toggle,
    .mobile-menu-button {
        display: inline-flex;
        margin-left: auto;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 5px;
        padding: 18px 20px 22px;
        background: #ffffff;
        border-top: 1px solid rgba(20, 24, 30, 0.08);
        border-bottom: 1px solid rgba(20, 24, 30, 0.08);
        box-shadow: 0 20px 35px rgba(20, 24, 30, 0.12);
    }

    .site-nav.open,
    .site-nav.is-open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 13px 15px;
        border-radius: 10px;
    }

    .nav-link::after {
        display: none;
    }

    .nav-login {
        justify-content: center;
        margin-top: 7px;
        margin-left: 0;
    }
}

@media (max-width: 520px) {
    .header-inner {
        width: min(calc(100% - 28px), 1400px);
        min-height: 72px;
    }

    .brand-mark {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 13px;
    }

    .brand-text strong {
        font-size: 1rem;
    }
}