/* =========================================================
   ARS HERITAGE GROUP
   PREMIUM GLOBAL HEADER — V2
   GOLD INTELLIGENCE × ELECTRIC BLUE TECHNOLOGY

   70% GOLD
   30% ELECTRIC BLUE

   Independent Header Layer
   ========================================================= */


/* =========================================================
   ROOT
   ========================================================= */

:root {

    --ars-gold: #d7b45a;
    --ars-gold-bright: #f3d77b;
    --ars-gold-deep: #8e6b25;

    --ars-blue: #159cff;
    --ars-blue-bright: #5ec8ff;
    --ars-blue-deep: #075a91;

    --ars-black: #050608;
    --ars-black-soft: #090b0f;

    --ars-glass: rgba(7, 10, 14, .78);

    --ars-line-gold: rgba(215,180,90,.28);
    --ars-line-blue: rgba(21,156,255,.30);

}


/* =========================================================
   GLOBAL HEADER
   ========================================================= */

.main-header {

    position: relative;
    z-index: 9000;

    width: 100%;

    background:
        linear-gradient(
            90deg,
            rgba(5,6,8,.98) 0%,
            rgba(5,6,8,.96) 52%,
            rgba(4,15,25,.96) 100%
        );

    border-bottom:
        1px solid
        rgba(215,180,90,.20);

    box-shadow:
        0 12px 45px rgba(0,0,0,.55),
        0 0 60px rgba(215,180,90,.045);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

}


/* =========================================================
   GOLD / BLUE ENERGY TOP EDGE
   ========================================================= */

.main-header::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            var(--ars-gold-deep) 12%,
            var(--ars-gold-bright) 38%,
            var(--ars-gold) 65%,
            var(--ars-blue) 82%,
            var(--ars-blue-bright) 94%,
            transparent 100%
        );

    opacity: .95;

}


/* =========================================================
   AMBIENT HEADER GLOW
   ========================================================= */

.main-header::after {

    content: "";

    position: absolute;

    top: 0;
    right: 0;

    width: 34%;
    height: 100%;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 85% 50%,
            rgba(21,156,255,.13),
            transparent 62%
        );

    opacity: .9;

}


/* =========================================================
   HEADER INNER
   ========================================================= */

.header-inner {

    position: relative;
    z-index: 2;

    width: min(96vw, 1800px);

    min-height: 86px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

}


/* =========================================================
   BRAND
   ========================================================= */

.header-brand {

    position: relative;

    display: flex;

    align-items: center;

    gap: 13px;

    text-decoration: none;

    min-width: max-content;

}


/* =========================================================
   BRAND MARK
   ========================================================= */

.header-brand-mark {

    position: relative;

    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

}


/* Gold energy ring */

.header-brand-mark::before {

    content: "";

    position: absolute;

    inset: 1px;

    border-radius: 50%;

    border:
        1px solid
        rgba(215,180,90,.65);

    box-shadow:
        0 0 15px rgba(215,180,90,.18),
        inset 0 0 14px rgba(215,180,90,.08);

}


/* Blue technological ring */

.header-brand-mark::after {

    content: "";

    position: absolute;

    width: 10px;
    height: 10px;

    right: -2px;
    bottom: 3px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            #bceaff 0%,
            var(--ars-blue) 35%,
            var(--ars-blue-deep) 75%,
            transparent 76%
        );

    box-shadow:
        0 0 10px var(--ars-blue),
        0 0 24px rgba(21,156,255,.65);

}


.header-brand-mark img {

    position: relative;
    z-index: 2;

    width: 34px;
    height: 34px;

    object-fit: contain;

}


/* =========================================================
   BRAND TYPOGRAPHY
   ========================================================= */

.header-brand-name {

    display: flex;

    flex-direction: column;

    line-height: 1;

}


.header-brand-primary {

    font-size: 23px;

    font-weight: 700;

    letter-spacing: .24em;

    color: var(--ars-gold-bright);

    text-shadow:
        0 0 16px rgba(215,180,90,.18);

}


.header-brand-secondary {

    margin-top: 6px;

    font-size: 8px;

    letter-spacing: .34em;

    color: rgba(230,235,240,.65);

}


/* =========================================================
   NAVIGATION
   ========================================================= */

.main-navigation {

    flex: 1;

    display: flex;

    justify-content: center;

}


.nav-list {

    display: flex;

    align-items: center;

    gap: clamp(12px, 1.7vw, 32px);

    margin: 0;
    padding: 0;

    list-style: none;

}


.nav-item {

    position: relative;

}


.nav-link {

    position: relative;

    display: flex;

    align-items: center;

    gap: 8px;

    min-height: 46px;

    padding: 0 3px;

    text-decoration: none;

    color: rgba(238,241,244,.78);

    font-size: 11px;

    font-weight: 500;

    letter-spacing: .13em;

    text-transform: uppercase;

    transition:
        color .35s ease,
        transform .35s ease;

}


.nav-link:hover {

    color: var(--ars-gold-bright);

    transform: translateY(-1px);

}


/* =========================================================
   NAV INDICATOR
   ========================================================= */

.nav-link-indicator {

    position: relative;

    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: var(--ars-gold);

    box-shadow:
        0 0 7px rgba(215,180,90,.8);

    transition:
        background .3s ease,
        box-shadow .3s ease,
        transform .3s ease;

}


.nav-link:hover .nav-link-indicator {

    background: var(--ars-blue-bright);

    box-shadow:
        0 0 8px var(--ars-blue),
        0 0 18px rgba(21,156,255,.7);

    transform: scale(1.5);

}


/* =========================================================
   NAV GOLD UNDERLINE
   ========================================================= */

.nav-link::after {

    content: "";

    position: absolute;

    left: 0;
    bottom: 3px;

    width: 0;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            var(--ars-gold),
            var(--ars-blue)
        );

    box-shadow:
        0 0 8px rgba(215,180,90,.45);

    transition: width .4s ease;

}


.nav-link:hover::after {

    width: 100%;

}


/* =========================================================
   HEADER ACTIONS
   ========================================================= */

.header-actions {

    display: flex;

    align-items: center;

    gap: 10px;

    min-width: max-content;

}


/* =========================================================
   SEARCH BUTTON
   ========================================================= */

.header-search {

    position: relative;

    width: 44px;
    height: 44px;

    display: grid;

    place-items: center;

    border: 1px solid rgba(215,180,90,.34);

    background:
        linear-gradient(
            145deg,
            rgba(215,180,90,.08),
            rgba(21,156,255,.05)
        );

    cursor: pointer;

    transition:
        border-color .35s ease,
        box-shadow .35s ease,
        transform .35s ease;

}


.header-search:hover {

    border-color: var(--ars-blue);

    box-shadow:
        0 0 15px rgba(21,156,255,.22),
        inset 0 0 15px rgba(21,156,255,.06);

    transform: translateY(-1px);

}


.header-action-icon svg {

    width: 18px;
    height: 18px;

    fill: none;

    stroke:
        var(--ars-gold-bright);

    stroke-width: 1.5;

    transition:
        stroke .3s ease,
        filter .3s ease;

}


.header-search:hover svg {

    stroke: var(--ars-blue-bright);

    filter:
        drop-shadow(
            0 0 5px
            rgba(21,156,255,.8)
        );

}


/* =========================================================
   ENTER ARS
   ========================================================= */

.header-cta {

    position: relative;

    min-height: 44px;

    padding:
        0 20px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    text-decoration: none;

    border:
        1px solid
        rgba(215,180,90,.58);

    background:
        linear-gradient(
            110deg,
            rgba(215,180,90,.16),
            rgba(215,180,90,.04)
        );

    color: var(--ars-gold-bright);

    font-size: 10px;

    font-weight: 600;

    letter-spacing: .18em;

    text-transform: uppercase;

    transition:
        color .35s ease,
        border-color .35s ease,
        box-shadow .35s ease;

}


.header-cta:hover {

    color: #ffffff;

    border-color:
        var(--ars-blue);

    box-shadow:
        0 0 18px rgba(21,156,255,.20),
        inset 0 0 20px rgba(21,156,255,.07);

}


.header-cta-energy {

    position: absolute;

    left: -100%;

    bottom: 0;

    width: 100%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--ars-gold-bright),
            var(--ars-blue-bright),
            transparent
        );

    transition: left .65s ease;

}


.header-cta:hover .header-cta-energy {

    left: 100%;

}


/* =========================================================
   MEGA MENU
   ========================================================= */

.nav-mega-panel {

    position: absolute;

    top: calc(100% + 12px);

    left: 50%;

    width: min(720px, 80vw);

    transform:
        translate(-50%, 12px);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    background:
        linear-gradient(
            135deg,
            rgba(7,9,12,.98),
            rgba(6,14,22,.98)
        );

    border:
        1px solid
        rgba(215,180,90,.26);

    box-shadow:
        0 30px 80px rgba(0,0,0,.68),
        0 0 50px rgba(21,156,255,.06);

    backdrop-filter: blur(22px);

    transition:
        opacity .35s ease,
        transform .35s ease,
        visibility .35s ease;

}


.nav-item.has-submenu:hover .nav-mega-panel {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translate(-50%, 0);

}


.nav-mega-inner {

    padding: 30px;

    display: grid;

    grid-template-columns:
        minmax(220px, .8fr)
        1.2fr;

    gap: 35px;

}


/* =========================================================
   MEGA MENU INTRO
   ========================================================= */

.nav-mega-kicker {

    display: block;

    margin-bottom: 12px;

    font-size: 8px;

    letter-spacing: .28em;

    color: var(--ars-blue-bright);

}


.nav-mega-intro h2 {

    margin: 0;

    color: var(--ars-gold-bright);

    font-size: 25px;

    font-weight: 500;

    line-height: 1.15;

}


.nav-mega-intro p {

    margin-top: 14px;

    color: rgba(230,235,240,.58);

    font-size: 11px;

    line-height: 1.8;

}


/* =========================================================
   MEGA LINKS
   ========================================================= */

.nav-mega-links {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 8px;

}


.nav-mega-links a {

    position: relative;

    min-height: 68px;

    padding: 14px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    text-decoration: none;

    border:
        1px solid
        rgba(21,156,255,.16);

    background:
        linear-gradient(
            135deg,
            rgba(21,156,255,.05),
            rgba(215,180,90,.025)
        );

    transition:
        border-color .3s ease,
        background .3s ease,
        transform .3s ease;

}


.nav-mega-links a:hover {

    border-color:
        rgba(21,156,255,.58);

    background:
        linear-gradient(
            135deg,
            rgba(21,156,255,.11),
            rgba(215,180,90,.055)
        );

    transform:
        translateX(4px);

}


.nav-mega-links span {

    color: #f0f1f2;

    font-size: 11px;

    letter-spacing: .08em;

}


.nav-mega-links small {

    margin-top: 6px;

    color:
        rgba(215,180,90,.65);

    font-size: 8px;

    letter-spacing: .12em;

}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.header-menu-toggle {

    position: relative;

    width: 44px;
    height: 44px;

    display: none;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 5px;

    border:
        1px solid
        rgba(21,156,255,.32);

    background:
        rgba(21,156,255,.035);

    cursor: pointer;

}


.menu-line {

    width: 18px;
    height: 1px;

    background:
        var(--ars-gold-bright);

    box-shadow:
        0 0 5px rgba(215,180,90,.45);

}


/* =========================================================
   SEARCH PANEL
   ========================================================= */

.ars-search-panel {

    position: absolute;

    top: 100%;
    left: 0;

    width: 100%;

    padding: 30px 5vw;

    background:
        linear-gradient(
            100deg,
            rgba(6,7,9,.98),
            rgba(4,14,23,.98)
        );

    border-bottom:
        1px solid
        rgba(215,180,90,.25);

    box-shadow:
        0 25px 60px rgba(0,0,0,.55);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-12px);

    transition:
        opacity .35s ease,
        transform .35s ease,
        visibility .35s ease;

}


.ars-search-panel.is-open {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);

}


.ars-search-kicker {

    display: block;

    margin-bottom: 14px;

    color: var(--ars-blue-bright);

    font-size: 8px;

    letter-spacing: .3em;

}


.ars-search-form {

    display: flex;

    max-width: 1000px;

    border-bottom:
        1px solid
        rgba(215,180,90,.38);

}


.ars-search-form input {

    flex: 1;

    height: 54px;

    border: 0;

    outline: none;

    background: transparent;

    color: #ffffff;

    font-size: 18px;

    letter-spacing: .04em;

}


.ars-search-form input::placeholder {

    color:
        rgba(230,235,240,.35);

}


.ars-search-form button {

    width: 60px;

    border: 0;

    background: transparent;

    color: var(--ars-gold-bright);

    font-size: 24px;

    cursor: pointer;

    transition:
        color .3s ease,
        transform .3s ease;

}


.ars-search-form button:hover {

    color: var(--ars-blue-bright);

    transform:
        translateX(4px);

}


/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

.mobile-navigation {

    position: absolute;

    top: 100%;
    left: 0;

    width: 100%;

    background:
        linear-gradient(
            135deg,
            rgba(5,7,10,.99),
            rgba(4,14,23,.99)
        );

    border-bottom:
        1px solid
        rgba(215,180,90,.25);

    box-shadow:
        0 30px 80px rgba(0,0,0,.7);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-15px);

    transition:
        opacity .35s ease,
        transform .35s ease,
        visibility .35s ease;

}


.mobile-navigation.is-open {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);

}


.mobile-navigation-inner {

    padding:
        30px 7vw 35px;

}


.mobile-navigation-kicker {

    display: block;

    color:
        var(--ars-blue-bright);

    font-size: 8px;

    letter-spacing: .28em;

}


.mobile-navigation-title {

    display: block;

    margin-top: 7px;

    color:
        var(--ars-gold-bright);

    font-size: 24px;

    letter-spacing: .04em;

}


.mobile-nav-list {

    margin: 25px 0 0;

    padding: 0;

    list-style: none;

}


.mobile-nav-list li {

    border-bottom:
        1px solid
        rgba(215,180,90,.11);

}


.mobile-nav-list a {

    min-height: 58px;

    display: flex;

    align-items: center;

    gap: 18px;

    color:
        rgba(240,242,244,.84);

    text-decoration: none;

    font-size: 13px;

    letter-spacing: .08em;

}


.mobile-nav-list a span {

    width: 28px;

    color:
        var(--ars-blue-bright);

    font-size: 9px;

    letter-spacing: .12em;

}


.mobile-navigation-cta {

    display: flex;

    justify-content: center;

    align-items: center;

    min-height: 48px;

    margin-top: 25px;

    border:
        1px solid
        rgba(215,180,90,.55);

    color:
        var(--ars-gold-bright);

    text-decoration: none;

    letter-spacing: .16em;

    font-size: 10px;

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .main-navigation {
        display: none;
    }

    .header-menu-toggle {
        display: flex;
    }

    .header-inner {
        width: 94vw;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .header-inner {

        min-height: 72px;

        gap: 8px;

    }


    .header-brand-mark {

        width: 40px;
        height: 40px;

    }


    .header-brand-mark img {

        width: 29px;
        height: 29px;

    }


    .header-brand-primary {

        font-size: 19px;

    }


    .header-brand-secondary {

        font-size: 6px;

    }


    .header-actions {

        gap: 6px;

    }


    .header-search,
    .header-menu-toggle {

        width: 40px;
        height: 40px;

    }


    .header-cta {

        min-height: 40px;

        padding:
            0 11px;

        font-size: 8px;

        letter-spacing: .12em;

    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 390px) {

    .header-brand-secondary {

        display: none;

    }


    .header-cta {

        display: none;

    }

}


/* =========================================================
   REDUCE MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        transition: none !important;

        animation: none !important;

    }

   }
