/* =========================
   LAYOUT / HEADER V26 PRO
   Clean desktop nav + real mobile hamburger menu
========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #0f172a;
    color: #f8fafc;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 14px 34px rgba(15,23,42,0.18);
}

.nav {
    position: relative;
    min-height: 78px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* =========================
   LOGO
========================= */

.logo,
.premium-logo,
.site-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    flex: 0 0 auto;
    white-space: nowrap;
}

.logo img,
.premium-logo img,
.site-logo img {
    display: block;
    height: 56px;
    width: auto;
    max-height: 56px;
    max-width: 235px;
    object-fit: contain;
    opacity: 1 !important;
    filter: none !important;
}

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

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.site-nav a {
    color: #e5eefb;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    padding: 10px 13px;
    border-radius: 999px;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.site-nav a:hover {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    transform: translateY(-1px);
}

.site-nav .nav-cta {
    background: linear-gradient(135deg,#2563eb,#1d4ed8);
    color: #fff;
    box-shadow: 0 10px 24px rgba(37,99,235,.24);
}

.site-nav .nav-cta:hover {
    background: linear-gradient(135deg,#1d4ed8,#1e40af);
    color: #fff;
}

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

.mobile-menu-btn {
    display: none;
    width: 46px;
    height: 46px;
    min-width: 46px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    box-shadow: none;
}

.mobile-menu-btn span {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    transition: transform .2s ease, opacity .2s ease;
}

.site-header.is-menu-open .mobile-menu-btn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.is-menu-open .mobile-menu-btn span:nth-child(2) {
    opacity: 0;
}

.site-header.is-menu-open .mobile-menu-btn span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================
   BADGES
========================= */

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    margin-left: 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

/* =========================
   FOOTER / GRID
========================= */

.site-footer {
    text-align: center;
    padding: 20px 0 30px;
    color: #64748b;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

@media (max-width: 860px) {
    .site-header {
        background: #0f172a;
    }

    .nav {
        min-height: 68px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .logo img,
    .premium-logo img,
    .site-logo img {
        height: 44px;
        max-height: 44px;
        max-width: 180px;
    }

    .mobile-menu-btn {
        display: inline-flex !important;
    }

    .site-nav {
        position: absolute;
        left: 20px;
        right: 20px;
        top: calc(100% + 8px);
        z-index: 1001;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
        border-radius: 22px;
        background: rgba(15,23,42,0.98);
        border: 1px solid rgba(255,255,255,0.10);
        box-shadow: 0 22px 60px rgba(15,23,42,0.28);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    }

    .site-header.is-menu-open .site-nav {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .site-nav a {
        width: 100%;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px 14px;
        font-size: 15px;
        color: #e5eefb;
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 16px;
        transform: none !important;
    }

    .site-nav a:hover {
        background: rgba(255,255,255,0.10);
        color: #fff;
    }

    .site-nav .nav-cta {
        background: linear-gradient(135deg,#2563eb,#1d4ed8);
        border-color: rgba(37,99,235,0.9);
        color: #fff;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
}
