/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
header {
    background-color: rgba(255, 255, 255, 0.97);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-normal);
}

header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px; /* było 80px */
    gap: 24px;
}

/* ==========================================================================
   LOGO AREA
   ========================================================================== */
.logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    max-width: 280px;
    text-decoration: none;
    line-height: 1;
}

/* Tekstowe logo (fallback gdy brak custom logo) */
.logo-main {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary, #0b2046);
    letter-spacing: -0.5px;
}

.logo-main span {
    color: var(--color-accent, #ffb703);
}

.logo-sub {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--color-muted);
    letter-spacing: 1px;
    margin-top: -2px;
}

/* ==========================================================================
   CUSTOM LOGO (WordPress Customizer) - POWIĘKSZONE
   ========================================================================== */
.logo .custom-logo-link {
    display: flex;
    align-items: center;
    max-height: 72px;
    line-height: 0;
}

.logo .custom-logo-link img,
.logo img.custom-logo,
.logo img {
    display: block;
    max-height: 68px !important;
    width: auto !important;
    height: auto !important;
    max-width: 280px !important;
    object-fit: contain;
}

.logo > a.custom-logo-link {
    max-height: 72px;
}
/* ==========================================================================
   NAWIGACJA
   ========================================================================== */
.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-shrink: 1;
}

/* WordPress wp_nav_menu generuje <li> - resetujemy */
.nav-links li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a,
.nav-links li a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-dark, #1f2937);
    position: relative;
    transition: var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
}

.nav-links a:not(.btn):hover,
.nav-links li a:hover {
    color: var(--color-accent-hover, #fb8500);
}

.nav-links a:not(.btn)::after,
.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-accent, #ffb703);
    transition: var(--transition-fast);
}

.nav-links a:not(.btn):hover::after,
.nav-links li a:hover::after {
    width: 100%;
}

/* CTA w menu - bez underline hover */
.nav-links .cta-nav-btn::after,
.nav-links li .cta-nav-btn::after,
.nav-links a.btn::after {
    display: none !important;
}

.nav-links .btn {
    white-space: nowrap;
}

/* ==========================================================================
   HAMBURGER
   ========================================================================== */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
    flex-shrink: 0;
    padding: 0;
}

.hamburger:hover {
    background: var(--color-light, #f9fafb);
}

.hamburger .bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary, #0b2046);
    transition: var(--transition-fast);
    position: relative;
}

.hamburger .bar::before,
.hamburger .bar::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--color-primary, #0b2046);
    transition: var(--transition-fast);
    left: 0;
}

.hamburger .bar::before { top: -7px; }
.hamburger .bar::after { top: 7px; }

.hamburger.active .bar { background: transparent; }
.hamburger.active .bar::before { top: 0; transform: rotate(45deg); }
.hamburger.active .bar::after { top: 0; transform: rotate(-45deg); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
    .nav-links {
        gap: 18px;
    }
    
    .nav-links a,
    .nav-links li a {
        font-size: 0.9rem;
    }
    
    .logo {
        max-width: 200px;
    }
    
    .logo .custom-logo-link img,
    .logo img.custom-logo,
    .logo img {
        max-height: 58px !important;
        max-width: 220px !important;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--color-white, #ffffff);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 40px;
        gap: 24px;
        transition: var(--transition-normal);
        box-shadow: var(--shadow-md);
        overflow-y: auto;
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links .btn {
        margin-top: 16px;
    }
    
    .logo {
        max-width: 180px;
    }
    
    .logo .custom-logo-link img,
    .logo img.custom-logo,
    .logo img {
        max-height: 50px !important;
        max-width: 180px !important;
    }
}