/* ============================================
   Felső menüsáv (Navbar)
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 600;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(11, 34, 65, 0.08);
}

.site-header-inner {
    position: relative;
    max-width: 1500px;
    margin: 0 auto;
    padding: 14px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.main-nav a {
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #0b2241;
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    padding: 6px 0;
    transition: var(--transition-smooth);
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--btn-blue);
    transition: width 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--btn-blue);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.header-social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-social a {
    display: flex;
    color: #0b2241;
    transition: var(--transition-smooth);
}

.header-social a:hover {
    color: var(--btn-blue);
}

.header-social svg {
    width: 18px;
    height: 18px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #0b2241;
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
    .site-header-inner {
        padding: 12px 20px;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        box-shadow: 0 8px 20px rgba(11, 34, 65, 0.1);
        transition: max-height 0.35s ease;
    }

    .main-nav.is-open {
        max-height: 420px;
        padding: 8px 0;
    }

    .main-nav a {
        width: 100%;
        padding: 14px 20px;
    }

    .main-nav a::after {
        display: none;
    }

    .main-nav .header-social {
        justify-content: center;
        gap: 28px;
        width: 100%;
        padding: 18px 20px 14px;
        margin-top: 4px;
        border-top: 1px solid rgba(11, 34, 65, 0.08);
    }

    .main-nav .header-social svg {
        width: 22px;
        height: 22px;
    }
}
