/* ============================================
   STRIX HEADER — Custom sticky header
   ============================================ */

/* --- Base --- */
.strix-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.strix-header--scrolled {
    background: rgba(5, 2, 38, 0.92);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(156, 195, 241, 0.08);
}

.strix-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1360px;
    margin: 0 auto;
    padding: 18px 40px;
    transition: padding 0.3s ease;
}

.strix-header--scrolled .strix-header__inner {
    padding-top: 10px;
    padding-bottom: 10px;
}

/* --- Logo --- */
.strix-header__logo img {
    max-height: 40px;
    width: auto;
    display: block;
    transition: max-height 0.3s ease;
}

.strix-header--scrolled .strix-header__logo img {
    max-height: 32px;
}

/* --- Desktop Nav --- */
.strix-header__nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.strix-header__nav-list {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.strix-header__nav-item {
    position: relative;
}

.strix-header__nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Urbanist', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: #E4E4E4;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.strix-header__nav-link:hover,
.strix-header__nav-link--active {
    color: #CCE2F5;
    background: rgba(156, 195, 241, 0.06);
}

/* Underline slide on hover */
.strix-header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: #9CC3F1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
    border-radius: 1px;
}

.strix-header__nav-link:hover::after,
.strix-header__nav-link--active::after {
    transform: scaleX(1);
}

/* Dropdown arrow */
.strix-header__nav-arrow {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.strix-header__nav-item:hover > .strix-header__nav-link .strix-header__nav-arrow {
    transform: rotate(180deg);
}

/* --- Dropdown (Desktop) --- */
.strix-header__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: rgba(15, 14, 43, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(156, 195, 241, 0.12);
    border-radius: 12px;
    padding: 8px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Invisible bridge to keep hover when moving cursor from link → dropdown */
.strix-header__dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.strix-header__nav-item:hover > .strix-header__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.strix-header__dropdown-item {
    list-style: none;
}

.strix-header__dropdown-link {
    display: block;
    padding: 10px 16px;
    font-family: 'Urbanist', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    color: #E4E4E4;
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.strix-header__dropdown-link:hover {
    color: #9CC3F1;
    background: rgba(156, 195, 241, 0.08);
}

/* --- Right actions (Search + CTA) --- */
.strix-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Shared size for both action buttons */
a.strix-header__search,
.strix-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 42px;
    font-family: 'Urbanist', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

/* Search — ghost outline */
a.strix-header__search {
    gap: 6px;
    border: 1px solid rgba(228, 228, 228, 0.3);
    color: #E4E4E4;
    cursor: pointer;
}

a.strix-header__search:hover {
    background: rgba(156, 195, 241, 0.1);
    border-color: rgba(228, 228, 228, 0.5);
    color: #fff;
}

.strix-header__search-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* CTA — solid golden */
.strix-header__cta {
    color: #050226;
    background: #FFE361;
}

.strix-header__cta:hover {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 227, 97, 0.3);
}

/* --- Hamburger (hidden on desktop) --- */
.strix-header__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 6px;
    border-radius: 8px;
    transition: background 0.2s ease;
    z-index: 110;
}

.strix-header__hamburger:hover {
    background: rgba(156, 195, 241, 0.08);
}

.strix-header__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #E4E4E4;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger → X animation */
.strix-header__hamburger--active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.strix-header__hamburger--active span:nth-child(2) {
    opacity: 0;
}

.strix-header__hamburger--active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Mobile overlay --- */
.strix-header__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 2, 38, 0.98);
    z-index: 99;
    overflow-y: auto;
    padding: 100px 32px 40px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.strix-header__overlay--open {
    display: flex;
    flex-direction: column;
    opacity: 1;
}

.strix-header__mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.strix-header__mobile-item {
    border-bottom: 1px solid rgba(156, 195, 241, 0.08);
}

.strix-header__mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Urbanist', sans-serif;
    font-weight: 500;
    font-size: 1.15rem;
    color: #E4E4E4;
    text-decoration: none;
    padding: 18px 0;
    transition: color 0.2s ease;
}

.strix-header__mobile-link:hover,
.strix-header__mobile-link--active {
    color: #9CC3F1;
}

.strix-header__mobile-arrow {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s ease;
}

.strix-header__mobile-item--open > .strix-header__mobile-link .strix-header__mobile-arrow {
    transform: rotate(180deg);
}

/* Mobile submenu accordion */
.strix-header__mobile-submenu {
    list-style: none;
    margin: 0;
    padding: 0 0 8px 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.strix-header__mobile-item--open > .strix-header__mobile-submenu {
    max-height: 500px;
}

.strix-header__mobile-sublink {
    display: block;
    font-family: 'Urbanist', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: #b0b0c0;
    text-decoration: none;
    padding: 12px 0;
    transition: color 0.2s ease;
}

.strix-header__mobile-sublink:hover {
    color: #9CC3F1;
}

/* Mobile CTA */
.strix-header__mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: #050226;
    background: #FFE361;
    padding: 16px 32px;
    border-radius: 999px;
    text-decoration: none;
    margin-top: 32px;
    transition: background 0.2s ease;
    width: 100%;
    text-align: center;
}

.strix-header__mobile-cta:hover {
    background: #fff;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet & below: show hamburger, hide desktop nav */
@media (max-width: 1024px) {
    .strix-header__nav {
        display: none;
    }

    .strix-header__actions .strix-header__cta {
        display: none;
    }

    .strix-header__hamburger {
        display: flex;
    }

    .strix-header__inner {
        padding: 14px 24px;
    }

    .strix-header--scrolled .strix-header__inner {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

/* Small mobile */
@media (max-width: 767px) {
    .strix-header__inner {
        padding: 12px 16px;
    }

    .strix-header__logo img {
        max-height: 34px;
    }

    .strix-header--scrolled .strix-header__logo img {
        max-height: 28px;
    }

    .strix-header__overlay {
        padding: 90px 24px 32px;
    }

    .strix-header__mobile-link {
        font-size: 1.05rem;
        padding: 16px 0;
    }

    .strix-header__mobile-sublink {
        font-size: 0.95rem;
        padding: 10px 0;
    }
}

/* Large desktop: more spacing */
@media (min-width: 1400px) {
    .strix-header__nav-list {
        gap: 8px;
    }

    .strix-header__nav-link {
        padding: 8px 18px;
    }
}

/* Body scroll lock when menu open */
body.strix-menu-open {
    overflow: hidden;
}
