/* =========================================
             HEADER / NAWIGACJA
========================================= */

header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    background: var(--header);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

header img {
    height: clamp(50px, 6vw, 70px);
}

header nav a {
    padding: 10px 15px;
    font-size: 18px;
    text-decoration: none;
    font-variant: small-caps;
    color: var(--header-text);
    transition: color 0.3s ease;
}

header nav a:hover {
    color: var(--rufio-meble-color);
}

header nav p, 
header button {
    display: none;
}

@media(max-width: 900px) {
    header {
        padding: 0 20px;
        justify-content: space-between;
    }

    header button {
        display: block;
        border: none;
        outline: none;
        background: none;
        font-size: 30px;
        color: var(--header-text);
        cursor: pointer;
        transition: color 0.3s ease;
    }   
    
    header button:hover {
        color: var(--rufio-meble-color);
    }   

    header nav {
        transition: transform 0.3s ease;
        transform: scaleY(0);
        transform-origin: top;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(16, 23, 29, 0.95);
        backdrop-filter: blur(15px);
        padding-top: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    header nav.hidden {
        transform: scaleY(0);
    }

    header nav:not(.hidden) {
        transform: scaleY(1);
    }

    header nav a {
        text-align: center;
        width: 100%;
        padding: 20px;
        font-size: 20px;
    }

    header nav a:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    header nav p {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: auto;
        margin-bottom: 30px;
        color: var(--rufio-meble-color);
        font-size: 16px;
    }
}