/* css-global.css - PODSTAWY, ZMIENNE I LAYOUT - Sebolazty ADV */

:root {
    --sebo-black: #000000;
    --sebo-yellow: #ffcc00; 
    --sebo-white: #ffffff;
    --sebo-border: #e1e1e1;
    --text-main: #1a1a1a;
    --header-height: 80px;
}

/* --- RESET I PODSTAWY --- */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

body { 
    font-family: 'Montserrat', sans-serif; 
    color: var(--text-main); 
    background-color: var(--sebo-white); 
    scroll-behavior: smooth; 
}

img {
    max-width: 100%;
    height: auto;
}

/* --- NAGŁÓWEK (HEADER) --- */
.main-header { 
    background-color: var(--sebo-black); 
    height: var(--header-height); 
    width: 100%; 
    position: fixed; 
    top: 0; 
    left: 0; 
    z-index: 1000; 
    display: flex; 
    align-items: center; 
    border-bottom: 1px solid #222; 
}

.header-container { 
    max-width: 1200px; 
    width: 100%; 
    margin: 0 auto; 
    padding: 0 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo img { height: 50px; display: block; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 25px; align-items: center; }
.main-nav a { 
    color: #ffffff; 
    text-decoration: none; 
    text-transform: uppercase; 
    font-size: 13px; 
    font-weight: 700; 
    transition: 0.3s; 
    letter-spacing: 1px; 
}
.main-nav a:hover { color: var(--sebo-yellow); }

.client-zone-link { 
    background-color: var(--sebo-yellow) !important; 
    color: #000 !important; 
    padding: 8px 15px !important; 
    border-radius: 20px; 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    font-weight: 800 !important; 
}

/* --- STOPKA (FOOTER) --- */
.footer-main { 
    background-color: var(--sebo-black); 
    color: #fff; 
    padding: 80px 0; 
    border-top: 2px solid var(--sebo-yellow); 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 50px; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.footer-col { 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

.footer-col h4 { 
    color: var(--sebo-yellow); 
    text-transform: uppercase; 
    margin-bottom: 25px; 
    font-weight: 800; 
}

/* --- SOCIAL (stopka) — spójne z żółtym akcentem, bez ramki --- */
.social-links {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 4px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #1f1f1f;
    color: #fff;
    text-decoration: none;
    border-radius: 50%;
    border: none;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.social-links a:focus-visible {
    outline: 2px solid var(--sebo-yellow);
    outline-offset: 3px;
}

.social-links a i {
    font-size: 18px;
    line-height: 1;
}

.social-links a:hover {
    background: var(--sebo-yellow);
    color: var(--sebo-black);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(255, 204, 0, 0.22);
}

.footer-bottom { 
    background: #0a0a0a; 
    color: rgba(255,255,255,0.3); 
    padding: 25px 0; 
    text-align: center; 
    font-size: 11px; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
}

/* RWD MOBILNE */
.mobile-client-link {
    display: none;
    background: var(--sebo-yellow);
    color: #000;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

@media (max-width: 768px) {
    .mobile-client-link {
        order: 2;
        display: flex;
    }

    /* Mobile: menu domyślnie ukryte (strona główna). Lista tylko na podstronach. */
    .main-nav {
        display: none !important;
    }

    body.page-home .main-header {
        position: fixed;
        top: 0;
        height: var(--header-height);
        min-height: unset;
        align-items: center;
    }

    body.page-home .header-container {
        flex-wrap: nowrap;
        justify-content: space-between;
        row-gap: unset;
        padding-top: 0;
        padding-bottom: 0;
    }

    body.page-home .logo,
    body.page-home .mobile-client-link {
        order: unset;
    }

    body:not(.page-home) .main-header {
        position: sticky;
        top: 0;
        height: auto;
        min-height: var(--header-height);
        align-items: stretch;
    }

    body:not(.page-home) .header-container {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        row-gap: 12px;
        padding-top: 12px;
        padding-bottom: 14px;
    }

    body:not(.page-home) .logo {
        order: 1;
    }

    body:not(.page-home) .main-nav {
        display: block !important;
        order: 3;
        flex-basis: 100%;
        width: 100%;
        border-top: 1px solid #333;
        padding-top: 12px;
    }

    body:not(.page-home) .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    body:not(.page-home) .main-nav li {
        border-bottom: 1px solid #222;
    }

    body:not(.page-home) .main-nav li:last-child {
        border-bottom: none;
    }

    body:not(.page-home) .main-nav a {
        display: block;
        padding: 12px 2px;
        font-size: 12px;
    }

    body:not(.page-home) .main-nav .client-zone-link {
        justify-content: center;
        margin-top: 8px;
        border-radius: 8px;
    }
}