/* ==========================================================================
   Public site header — Pages/Shared/Partials/_Header.cshtml

   Loaded by Pages/Shared/_Layout.cshtml right after footer.css, so it also
   beats Bootstrap's own .nav-link rules. Everything is scoped under
   .main-header except the body offset the fixed header needs.
   ========================================================================== */

.main-header {
    --hdr-navy-1: #1a2a3a;
    --hdr-navy-2: #0f172a;
    --hdr-teal: #12b5a0;
    --hdr-gold: #fbbf24;

    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 1000;
    height: 70px;
    padding: 0 24px;
    color: #fff;
    background:
        radial-gradient(90% 220% at 88% -40%, rgba(18, 181, 160, .30), transparent 62%),
        linear-gradient(135deg, var(--hdr-navy-1) 0%, var(--hdr-navy-2) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    box-shadow: 0 10px 30px -18px rgba(2, 8, 24, .8);
    transition: box-shadow .25s ease, background-color .25s ease;
}

.main-header.is-scrolled {
    box-shadow: 0 18px 38px -20px rgba(2, 8, 24, .95);
    border-bottom-color: rgba(255, 255, 255, .11);
}

.main-header .header-container {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ---------- logo ---------- */

.main-header .header-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    text-decoration: none;
    color: #fff;
}

.main-header .header-logo__mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #8ff5e6;
    background: linear-gradient(150deg, rgba(18, 181, 160, .26) 0%, rgba(18, 181, 160, .06) 100%);
    box-shadow:
        inset 0 0 0 1px rgba(126, 240, 221, .3),
        0 6px 16px -10px rgba(18, 181, 160, .9);
    transition: transform .25s cubic-bezier(.22, .61, .36, 1), box-shadow .25s ease;
}

.main-header .header-logo:hover .header-logo__mark {
    transform: rotate(-4deg) scale(1.05);
    box-shadow:
        inset 0 0 0 1px rgba(126, 240, 221, .55),
        0 8px 20px -10px rgba(18, 181, 160, 1);
}

.main-header .header-logo__sim {
    width: 23px;
    height: 23px;
    overflow: visible;
}

.main-header .header-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.main-header .header-logo__name {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .4px;
    color: #fff;
}

.main-header .header-logo__name b {
    font-weight: 800;
    color: var(--hdr-gold);
}

.main-header .header-logo__tag {
    font-size: 9.5px;
    font-weight: 300;
    color: #8fa2c4;
}

/* ---------- nav ---------- */

.main-header .header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
}

.main-header .nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 999px;
    color: rgba(255, 255, 255, .78);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.main-header .nav-link__ico {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    opacity: .85;
    transition: opacity .2s ease, transform .25s cubic-bezier(.22, .61, .36, 1);
}

.main-header .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .09);
    transform: translateY(-1px);
}

.main-header .nav-link:hover .nav-link__ico {
    opacity: 1;
    transform: scale(1.08);
}

.main-header .nav-link.is-active {
    color: #fff;
    background: rgba(18, 181, 160, .18);
    box-shadow: inset 0 0 0 1px rgba(18, 181, 160, .35);
}

.main-header .nav-link.is-active .nav-link__ico {
    color: #7ef0dd;
    opacity: 1;
}

/* small dot under the current page */
.main-header .nav-link.is-active::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--hdr-teal);
    transform: translateX(-50%);
}

/* ---------- hamburger ---------- */

.main-header .mobile-menu-btn {
    display: none;
    flex: 0 0 auto;
}

.main-header .hamburger-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.main-header .hamburger-btn:hover {
    background: rgba(255, 255, 255, .14);
}

.main-header .hamburger-btn:active {
    transform: scale(.95);
}

.main-header .hamburger-btn svg {
    width: 20px;
    height: 20px;
}

/* ---------- drawer ---------- */

.main-header .mobile-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 282px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(120% 60% at 80% 0%, rgba(18, 181, 160, .22), transparent 60%),
        linear-gradient(160deg, #1a2a3a 0%, #0f172a 100%);
    box-shadow: -18px 0 45px -24px rgba(0, 0, 0, .85);
    transition: right .32s cubic-bezier(.22, .61, .36, 1);
    z-index: 1100;
}

.main-header .mobile-drawer.open {
    right: 0;
}

.main-header .drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.main-header .drawer-logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.main-header .drawer-logo__mark {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    color: #8ff5e6;
    background: rgba(18, 181, 160, .2);
    box-shadow: inset 0 0 0 1px rgba(126, 240, 221, .3);
}

.main-header .drawer-logo__mark svg {
    width: 19px;
    height: 19px;
}

.main-header .drawer-logo span {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .4px;
    color: #fff;
}

.main-header .drawer-logo b {
    font-weight: 800;
    color: var(--hdr-gold);
}

.main-header .drawer-close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
    transition: background .2s ease;
}

.main-header .drawer-close:hover {
    background: rgba(255, 255, 255, .16);
}

.main-header .drawer-close svg {
    width: 16px;
    height: 16px;
}

.main-header .drawer-links {
    flex: 1 1 auto;
    padding: 10px 8px;
    overflow-y: auto;
}

.main-header .drawer-link {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 2px;
    padding: 11px 12px;
    border-radius: 12px;
    color: rgba(255, 255, 255, .8);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, padding .18s ease;
}

.main-header .drawer-link svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    opacity: .8;
}

.main-header .drawer-link:hover {
    padding-inline-start: 16px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.main-header .drawer-link:hover svg {
    opacity: 1;
    color: #7ef0dd;
}

.main-header .drawer-link.is-active {
    background: rgba(18, 181, 160, .16);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(18, 181, 160, .3);
}

.main-header .drawer-link.is-active svg {
    color: #7ef0dd;
    opacity: 1;
}

.main-header .drawer-footer {
    padding: 14px 16px 18px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    text-align: center;
}

.main-header .drawer-footer .footer-copyright {
    margin-bottom: 8px;
    font-size: 10.5px;
    font-weight: 300;
    color: rgba(255, 255, 255, .45);
}

.main-header .drawer-footer .enamad-pic {
    width: 38px;
    height: 38px;
    padding: 3px;
    border-radius: 9px;
    background: #fff;
}

/* ---------- overlay ---------- */

.main-header .drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(4, 10, 24, .55);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.main-header .drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ---------- the fixed header needs room ----------
   _Layout only adds .has-site-header when the partial is actually rendered,
   so the DigitalCenterRequest / Shop pages (which hide the header) keep their
   full viewport height. */

body.has-site-header {
    padding-top: 70px;
}

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
    .main-header .header-nav {
        gap: 2px;
    }

    .main-header .nav-link {
        padding: 7px 10px;
        font-size: 11.5px;
    }

    .main-header .nav-link__ico {
        width: 15px;
        height: 15px;
    }
}

@media (max-width: 1000px) {
    .main-header .header-logo__text {
        display: none;
    }
}

@media (max-width: 900px) {
    .main-header {
        height: 62px;
        padding: 0 14px;
    }

    .main-header .header-nav {
        display: none;
    }

    .main-header .mobile-menu-btn {
        display: block;
        margin-inline-start: auto;
    }

    .main-header .header-logo__text {
        display: flex;
    }

    .main-header .header-logo__mark {
        width: 34px;
        height: 34px;
        border-radius: 11px;
    }

    .main-header .header-logo__sim {
        width: 21px;
        height: 21px;
    }

    body.has-site-header {
        padding-top: 62px;
    }
}

@media (min-width: 901px) {
    .main-header .mobile-drawer,
    .main-header .drawer-overlay {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .main-header,
    .main-header .nav-link,
    .main-header .nav-link__ico,
    .main-header .mobile-drawer,
    .main-header .drawer-link,
    .main-header .drawer-overlay {
        transition: none !important;
    }
}
