/* ==== GŁÓWNY HEADER ==== */

.seo-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.seo-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0;
}

/* Brand + logo */

.seo-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.seo-header__logo {
    height: 46px;          /* POWIĘKSZONE LOGO */
    width: auto;
    display: block;
}

.seo-header__brand-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--seo-text-muted);
}

/* Nawigacja desktop */

.seo-header__nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.seo-header__nav-link {
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--seo-text-secondary);
    position: relative;
    padding-bottom: 0.15rem;
    transition: color 0.16s ease, opacity 0.16s ease;
}

.seo-header__nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--seo-primary);
    transition: width 0.18s ease-out;
}

.seo-header__nav-link:hover,
.seo-header__nav-link:focus {
    color: var(--seo-primary);
}

.seo-header__nav-link:hover::after,
.seo-header__nav-link:focus::after {
    width: 100%;
}

.seo-header__nav-cta {
    font-size: 0.85rem;
    padding-inline: 0.9rem;
    border-radius: 999px;
}

/* ==== HAMBURGER – MOBILE ==== */

.seo-header__toggle {
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #ffffff;
    border-radius: 999px;
    width: 46px;           /* WIĘKSZY PRZYCISK */
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;              /* odstęp między kreskami */
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    padding: 0;
    transition:
        background 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.16s ease;
}

.seo-header__toggle span {
    display: block;
    width: 22px;           /* SZERSZE KRESKI */
    height: 2.5px;
    border-radius: 999px;
    background: #0f172a;
    transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.seo-header__toggle:hover {
    background: rgba(37, 99, 235, 0.04);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

/* Stan aktywny – X */

.seo-header__toggle.is-active span:first-child {
    transform: translateY(3px) rotate(45deg);
}

.seo-header__toggle.is-active span:last-child {
    transform: translateY(-3px) rotate(-45deg);
}

/* ==== FULLSCREEN MOBILE MENU ==== */

.seo-header__overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: #ffffff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease-out, visibility 0.18s ease-out;
}

.seo-header__overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.seo-header__overlay-inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 1.4rem 1.4rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* przycisk zamknięcia */

.seo-header__close {
    border: 1px solid #000;
    background: #ffffff;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    cursor: pointer;
    position: relative;
    transition: background 0.15s ease, transform 0.15s ease;
}

.seo-header__close span {
    position: absolute;
    width: 18px;
    height: 2.5px;
    border-radius: 999px;
    background: #000000;
}

.seo-header__close span:first-child {
    transform: rotate(45deg);
}

.seo-header__close span:last-child {
    transform: rotate(-45deg);
}

.seo-header__close:hover {
    background: rgba(37, 99, 235, 0.06);
    transform: translateY(-1px);
}

/* logo w overlay – większe, wycentrowane */

.seo-header__overlay-logo {
    display: flex;
    justify-content: center;
    margin: 0.6rem 0 1.4rem;
}

.seo-header__overlay-logo img {
    height: 82px;          /* POWIĘKSZONE LOGO W MENU */
    width: auto;
    display: block;
}

/* lista linków */

.seo-header__overlay-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.seo-header__overlay-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 0;
    font-size: 1.02rem;
    text-decoration: none;
    color: #111827;
    border-bottom: 1px solid #e5e7eb;
}

/* STRZAŁKI – TERAZ NIEBIESKIE JAK LOGO */

.seo-header__overlay-link::before {
    content: "»";
    font-size: 1.2rem;
    line-height: 1;
    color: var(--seo-primary);              /* NIEBIESKI */
    margin-right: 0.15rem;
}

/* CTA w overlay */

.seo-header__overlay-cta {
    margin-top: auto;
    border-radius: 999px;
    padding-block: 0.9rem;
    font-size: 1rem;
    text-align: center;
}

/* ==== RESPONSYWNOŚĆ ==== */

@media (max-width: 991.98px) {
    .seo-header__logo {
        height: 42px;  /* trochę mniejsze, ale dalej większe niż wcześniej */
    }

    .seo-header__bar {
        padding: 0.6rem 0.2rem;
    }
}

@media (min-width: 992px) {
    .seo-header__toggle {
        display: none !important;
    }

    .seo-header__overlay {
        display: none;
    }
}
/* gdy menu mobilne jest otwarte – blokujemy scroll body */
body.seo-header--nav-open {
    overflow: hidden;
}
