/* ══════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    padding: 16px 0;
    background-color: transparent;
    border-bottom: 1px solid rgba(31, 25, 16, 0.08);
    transition: background-color 0.3s, backdrop-filter 0.3s;
}
.header.scroll {
    background-color: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.header.open {
    background: #141212 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.header_desktop {
    padding: 0;
}
.header_desktop .container > div {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.header .navbar-brand img {
    height: 36px;
    width: auto;
}

.header_nav_list {
    display: flex;
    align-items: center;
    gap: clamp(20px, 2.8vw, 40px);
    padding: 0;
    margin: 0;
}
.header_nav_list a {
    color: #BFBFBF;
    font-family: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
    font-size: clamp(14px, 1.2vw, 17px);
    line-height: 28px;
    font-weight: 600;
    transition: color 0.2s;
    text-decoration: none;
}
.header_nav_list a:hover {
    color: #FFFFFF;
}

/* "Coming Soon" tooltip for nav items */
.coming_soon {
    position: relative;
}
.coming_soon a {
    pointer-events: none;
}
.coming_soon::after {
    content: 'coming soon';
    display: block;
    position: absolute;
    color: #fff;
    font-size: 12px;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}
@media (min-width: 769px) {
    .coming_soon::after {
        background-color: #000;
        padding: 8px 12px;
        border-radius: 16px;
        display: none;
        bottom: -32px;
    }
}
.coming_soon:hover::after {
    display: block;
}
.coming_soon.v2 a {
    pointer-events: all;
}
.coming_soon.v2::after {
    content: 'coming soon';
}

.header_right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.footer_social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    transition: background-color 0.2s;
}
.footer_social:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile header */
.header_mobile { display: none; padding: 0; }
.header_mobile_top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    z-index: 45;
}
.header_burger, .header_burger_close {
    width: 32px;
    height: 32px;
    background-color: transparent;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-left: auto;
}
/* Hide close button by default, show hamburger */
.header_burger_close { display: none; }
/* When menu is open, swap: hide hamburger, show close */
.header.open .header_burger { display: none; }
.header.open .header_burger_close { display: flex; }
.header_burger img, .header_burger_close img {
    filter: brightness(0) saturate(100%) invert(92%) sepia(12%) saturate(31%) hue-rotate(73deg) brightness(106%) contrast(108%);
}
.header_mobile_body {
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    background-color: #141212;
    transition: max-height 0.4s ease, visibility 0s 0.4s;
}
.header_mobile_body.active {
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    visibility: visible;
    transition: max-height 0.4s ease, visibility 0s 0s;
}
.header_mobile_body .header_nav_list {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
}
.header_mobile_body .header_nav_list a {
    color: #fff !important;
    font-size: 18px !important;
    line-height: 1.5;
    display: block;
}
.header_mobile_body .primaryBtn {
    margin: 0 auto;
}

/* ══════════════════════════════════════════
   HEADER RESPONSIVE
   Breakpoints: 1080px (compact desktop), 768px (mobile)
   ══════════════════════════════════════════ */

/* Compact desktop — tighter nav, still horizontal */
@media (max-width: 1080px) {
    .header { padding: 12px 0; }
    .header .navbar-brand img { height: 30px; }
    .header_nav_list { gap: clamp(10px, 1.5vw, 20px); }
    .header_nav_list a { font-size: clamp(12px, 1.4vw, 15px); }
    .header_right { gap: 10px; }
    .footer_social { width: 34px; height: 34px; }
}

/* Mobile — hamburger menu */
@media (max-width: 768px) {
    .header { padding: 10px 0; }
    .header.scroll {
        background-color: rgba(17, 17, 17, 0.95);
    }
    .header_desktop { display: none; }
    .header_right { display: none; }
    .header_mobile { display: block; }
    .header .navbar-brand { overflow: hidden; flex-shrink: 1; min-width: 0; }
    .header .navbar-brand img { height: 28px; }
    .header_nav_list a { color: #fff; font-size: 16px; }
    .footer_top .coming_soon::after { left: 0; transform: translateX(0); }
}
