/* =========================================================
   YAMA HEADER v8.1 — PREMIUM HEADER ONLY
   Strictly scoped to #ya-header. No page/content selectors.
========================================================= */

#ya-header {
    --ya-h-accent:#2f80ed;
    --ya-h-accent-soft:#8fc7ff;
    --ya-h-deep:#04101f;
    --ya-h-navy:#061a33;
    --ya-h-radius:14px;
}

#ya-header.is-scrolled,
#ya-header.is-solid-start {
    background:linear-gradient(180deg,rgba(4,16,31,.965) 0%,rgba(6,26,51,.935) 100%) !important;
    border-bottom-color:rgba(143,199,255,.20) !important;
    box-shadow:0 14px 42px rgba(4,16,31,.28),inset 0 -1px 0 rgba(255,255,255,.035) !important;
    backdrop-filter:blur(20px) saturate(138%) !important;
    -webkit-backdrop-filter:blur(20px) saturate(138%) !important;
}

#ya-header .ya-header-row {
    transition:min-height .28s ease,gap .28s ease !important;
}

#ya-header.is-scrolled .ya-header-row {
    min-height:84px !important;
}

#ya-header .ya-logo img {
    transform:translateZ(0);
    transition:transform .28s cubic-bezier(.2,.7,.2,1),filter .28s ease,opacity .28s ease !important;
}

#ya-header .ya-logo:hover img {
    transform:translateY(-1px) scale(1.012);
    filter:drop-shadow(0 6px 16px rgba(0,0,0,.24));
}

#ya-header .ya-nav-list a {
    letter-spacing:.01em;
    transition:color .22s ease,opacity .22s ease,transform .22s ease !important;
}

#ya-header .ya-nav-list a:hover {
    transform:translateY(-1px);
}

#ya-header .ya-nav-list a::after {
    left:50% !important;
    right:auto !important;
    width:100% !important;
    transform:translateX(-50%) scaleX(0);
    transform-origin:center;
    background:linear-gradient(90deg,var(--ya-h-accent),var(--ya-h-accent-soft)) !important;
    box-shadow:0 0 16px rgba(47,128,237,.48) !important;
    transition:transform .24s cubic-bezier(.2,.7,.2,1) !important;
}

#ya-header .ya-nav-list a:hover::after,
#ya-header .ya-nav-list a[aria-current="page"]::after {
    transform:translateX(-50%) scaleX(1);
}

#ya-header .ya-icon-link,
#ya-header .ya-language-button,
#ya-header .ya-menu-button {
    border-color:rgba(255,255,255,.22) !important;
    background:linear-gradient(145deg,rgba(255,255,255,.10),rgba(4,16,31,.24)) !important;
    box-shadow:0 8px 24px rgba(0,0,0,.11),inset 0 1px 0 rgba(255,255,255,.06) !important;
    transition:transform .22s cubic-bezier(.2,.7,.2,1),background .22s ease,border-color .22s ease,box-shadow .22s ease !important;
}

#ya-header .ya-icon-link:hover,
#ya-header .ya-language-button:hover,
#ya-header .ya-menu-button:hover {
    transform:translateY(-2px) !important;
    background:linear-gradient(145deg,rgba(47,128,237,.34),rgba(11,43,75,.78)) !important;
    border-color:rgba(143,199,255,.66) !important;
    box-shadow:0 14px 30px rgba(4,16,31,.24),0 0 20px rgba(47,128,237,.12) !important;
}

#ya-header .ya-language-button {
    min-width:54px !important;
    width:54px !important;
    padding:0 9px !important;
    gap:6px !important;
}

#ya-header .ya-language-flag {
    width:26px !important;
    height:17px !important;
    border-radius:4px !important;
    box-shadow:0 0 0 1px rgba(255,255,255,.36),0 3px 8px rgba(0,0,0,.14) !important;
}

#ya-header .ya-header-cta {
    position:relative;
    overflow:hidden;
    isolation:isolate;
    border-color:rgba(255,255,255,.96) !important;
    background:linear-gradient(180deg,#ffffff 0%,#f4f9ff 100%) !important;
    box-shadow:0 12px 30px rgba(0,0,0,.17),inset 0 1px 0 rgba(255,255,255,.9) !important;
    transition:transform .23s cubic-bezier(.2,.7,.2,1),box-shadow .23s ease,background .23s ease !important;
}

#ya-header .ya-header-cta::before {
    content:"";
    position:absolute;
    inset:0;
    z-index:-1;
    background:linear-gradient(110deg,transparent 0%,rgba(143,199,255,.22) 48%,transparent 72%);
    transform:translateX(-120%);
    transition:transform .55s ease;
}

#ya-header .ya-header-cta:hover {
    transform:translateY(-2px) !important;
    background:linear-gradient(180deg,#ffffff 0%,#eaf5ff 100%) !important;
    box-shadow:0 18px 38px rgba(4,16,31,.24),0 0 24px rgba(47,128,237,.13) !important;
}

#ya-header .ya-header-cta:hover::before {
    transform:translateX(120%);
}

#ya-header .ya-header-cta .fa-arrow-right {
    transition:transform .22s ease !important;
}

#ya-header .ya-header-cta:hover .fa-arrow-right {
    transform:translateX(3px);
}

#ya-header .ya-language-menu {
    padding:9px !important;
    border-radius:16px !important;
    border-color:rgba(11,43,75,.12) !important;
    box-shadow:0 26px 64px rgba(4,16,31,.28),0 0 0 1px rgba(255,255,255,.6) inset !important;
}

#ya-header .ya-language-menu a {
    border-radius:11px !important;
    transition:background .18s ease,color .18s ease,transform .18s ease !important;
}

#ya-header .ya-language-menu a:hover,
#ya-header .ya-language-menu a.is-active {
    transform:translateX(2px);
    background:linear-gradient(90deg,#eef6ff,#f8fbff) !important;
}

#ya-header .ya-mobile-menu {
    border-top:1px solid rgba(143,199,255,.14) !important;
    box-shadow:0 24px 54px rgba(4,16,31,.30) !important;
    backdrop-filter:blur(22px) saturate(130%) !important;
    -webkit-backdrop-filter:blur(22px) saturate(130%) !important;
}

#ya-header .ya-mobile-nav a {
    transition:background .2s ease,color .2s ease,transform .2s ease,border-color .2s ease !important;
}

#ya-header .ya-mobile-nav a:hover,
#ya-header .ya-mobile-nav a:focus-visible {
    transform:translateX(3px);
    background:rgba(47,128,237,.10) !important;
    border-color:rgba(143,199,255,.22) !important;
}

#ya-header .ya-menu-button span {
    transition:transform .22s ease,opacity .22s ease,width .22s ease !important;
}

#ya-header .ya-menu-button:hover span:nth-child(2) {
    width:70%;
}

@media (max-width:1180px) {
    #ya-header .ya-header-shell {
        width:min(100% - 36px,1420px) !important;
    }
}

@media (max-width:782px) {
    #ya-header .ya-header-shell {
        width:calc(100% - 24px) !important;
    }

    #ya-header .ya-header-row,
    #ya-header.is-scrolled .ya-header-row {
        min-height:76px !important;
    }

    #ya-header .ya-logo img {
        max-height:58px !important;
    }

    #ya-header .ya-language-button,
    #ya-header .ya-menu-button {
        height:43px !important;
        min-width:43px !important;
    }

    #ya-header .ya-language-button {
        width:49px !important;
    }
}

@media (prefers-reduced-motion:reduce) {
    #ya-header,
    #ya-header *,
    #ya-header *::before,
    #ya-header *::after {
        scroll-behavior:auto !important;
        transition-duration:.01ms !important;
        animation-duration:.01ms !important;
        animation-iteration-count:1 !important;
    }

    #ya-header .ya-logo:hover img,
    #ya-header .ya-nav-list a:hover,
    #ya-header .ya-icon-link:hover,
    #ya-header .ya-language-button:hover,
    #ya-header .ya-menu-button:hover,
    #ya-header .ya-header-cta:hover,
    #ya-header .ya-language-menu a:hover,
    #ya-header .ya-mobile-nav a:hover {
        transform:none !important;
    }
}
