/**
 * ============================================================
 * KM KZZPRM w Trójmieście
 * Nagłówek strony - header.css
 * ============================================================
 *
 * Motyw potomny: Astra Child
 *
 * Paleta:
 * - granat główny:   #0b1f3a
 * - granat jasny:    #163b65
 * - czerwony akcent: #c62032
 * - biały:           #ffffff
 * - obramowanie:     #d8e1ea
 */

/* ============================================================
   1. GŁÓWNY NAGŁÓWEK
   ============================================================ */

.site-header {
    position: relative;
    z-index: 100;

    width: 100%;

    background-color: #ffffff;

    border-bottom: 1px solid #d8e1ea;
}

/* ============================================================
   2. KONTENER
   ============================================================ */

.header-container {
    width: min(1320px, calc(100% - 64px));
    min-height: 96px;

    margin: 0 auto;

    display: flex;
    align-items: center;

    gap: 30px;
}

/* ============================================================
   3. LOGO KZZPRM
   ============================================================ */

.header-logo-area {
    flex: 0 0 auto;
}

.header-logo-link {
    display: flex;
    align-items: center;

    text-decoration: none;
}

.header-logo {
    display: block;

    width: auto;
    max-width: 300px;
    height: 62px;

    object-fit: contain;
}

/* ============================================================
   4. NAZWA KOMISJI
   ============================================================ */

.header-identity {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-slogan-link {
    display: block;
    line-height: 0;
}

.header-slogan {
    display: block;
    width: 380px;
    max-width: 100%;
    height: auto;
}

.header-title {
    color: #0b1f3a;

    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;

    text-decoration: none;
}

.header-title:hover,
.header-title:focus-visible {
    color: #163b65;
}

.header-motto {
    color: #34465b;

    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.3;
}

/* ============================================================
   5. NAWIGACJA
   ============================================================ */

.header-navigation {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 32px;
}

.header-link {
    position: relative;

    padding: 12px 0;

    color: #0b1f3a;

    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;

    text-decoration: none;
}

.header-link:hover,
.header-link:focus-visible,
.header-link.is-active {
    color: #0b1f3a;
}

/* Delikatna linia pod linkiem */

.header-link::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 4px;

    width: 0;
    height: 2px;

    background-color: #c62032;

    transition: width 180ms ease;
}

.header-link:hover::after,
.header-link:focus-visible::after,
.header-link.is-active::after {
    width: 100%;
}

/* ============================================================
   6. PRZYCISK DOŁĄCZ DO NAS
   ============================================================ */

.header-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 12px 20px;

    border: 2px solid #c62032;
    border-radius: 5px;

    background-color: #c62032;
    color: #ffffff;

    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;

    text-decoration: none;

    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.header-button:hover,
.header-button:focus-visible {
    border-color: #a91828;

    background-color: #a91828;
    color: #ffffff;

    transform: translateY(-1px);
}

/* ============================================================
   7. FOCUS - OBSŁUGA KLAWIATURY
   ============================================================ */

.header-logo-link:focus-visible,
.header-title:focus-visible,
.header-link:focus-visible,
.header-button:focus-visible {
    outline: 3px solid rgba(22, 59, 101, 0.35);
    outline-offset: 4px;
}

/* ============================================================
   8. OGRANICZENIE ANIMACJI
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .header-link::after,
    .header-button {
        transition: none;
    }

    .header-button:hover,
    .header-button:focus-visible {
        transform: none;
    }
}