/* --- Nowoczesny Footer w stylu Apple --- */
.site-footer {
    background-color: #000;
    color: #fff; /* Pełny kontrast dla tekstów bazowych */
    padding: 80px 0 0 0;
    margin-top: 0;
    border-top: 1px solid #1c1c1e;
}

.site-footer h3 {
    color: #f5f5f7;
    margin-bottom: 24px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* POPRAWKA: Wymuszenie stabilnych 4 kolumn w jednym rzędzie na desktopie */
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
    align-items: start;
}

.footer-widget p, 
.footer-widget li {
    font-size: 14px;
    color: #fff; /* Czysta biel dla idealnej czytelności WCAG */
    margin-bottom: 12px;
    line-height: 1.5;
}

.footer-widget strong {
    color: #f5f5f7;
    font-weight: 600;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget a {
    color: #fff;
    transition: opacity 0.2s ease;
}

.footer-widget a:hover {
    opacity: 0.8;
}

/* --- Social Media Icons --- */
.social-links-icons {
    display: flex;
    gap: 12px;
    padding: 0;
    margin: 0;
}

.social-links-icons li {
    margin-bottom: 0;
}

.social-links-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.social-links-icons svg {
    width: 16px;
    height: 16px;
}

.social-links-icons a:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

/* --- Dolny pasek (copyrights, polityki, realizacja) --- */
.footer-bottom {
    border-top: 1px solid #1c1c1e;
    padding: 24px 0;
    background-color: #000;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p, 
.footer-bottom a {
    margin: 0;
    font-size: 12px;
    color: #86868b;
}

.footer-bottom a:hover {
    color: #f5f5f7;
}

.footer-links {
    display: flex;
    gap: 24px;
}

/* --- Responsywność (Grid dla Tabletów i Mobile) --- */
@media (max-width: 992px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr); /* 2x2 na tabletach, żeby nic się nie gniotło */
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding-top: 60px;
        padding-bottom: 100px; /* Miejsce pod przycisk FAB */
    }

    .footer-widgets {
        grid-template-columns: 1fr; /* 1 kolumna na telefonach */
        gap: 35px;
        text-align: center;
    }

    .social-links-icons {
        justify-content: center; /* Wyśrodkowanie ikon na mobile */
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}

/* --- Mobile FAB (Floating Action Button) --- */
.fab-container {
    display: none;
}

@media (max-width: 768px) {
    .fab-container {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 9999;
    }

    .fab-tooltip {
        position: absolute;
        right: 76px;
        bottom: 12px;
        background: rgba(30, 30, 30, 0.9);
        color: #fff;
        padding: 10px 18px;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 500;
        letter-spacing: -0.01em;
        white-space: nowrap;
        pointer-events: none;
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        opacity: 0;
        transform: translateX(15px);
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .fab-tooltip::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -6px;
        transform: translateY(-50%);
        border-width: 6px 0 6px 6px;
        border-style: solid;
        border-color: transparent transparent transparent rgba(30, 30, 30, 0.9);
    }

    .fab-tooltip.show {
        opacity: 1;
        transform: translateX(0);
    }

    .fab-menu {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 16px;
        margin-bottom: 16px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(20px);
        transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .fab-container.active .fab-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .fab-item-wrapper {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .fab-label {
        background: rgba(30, 30, 30, 0.85);
        color: #fff;
        padding: 8px 16px;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 500;
        letter-spacing: -0.01em;
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }

    .fab-item {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background-color: #fff;
        color: #000;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
        transition: transform 0.2s ease;
    }

    .fab-item:active {
        transform: scale(0.92);
    }

    .fab-item svg {
        width: 20px;
        height: 20px;
    }

    .fab-item.whatsapp { background-color: #25D366; color: #fff; }
    .fab-item.email { background-color: #000; color: #fff; }

    .fab-toggle {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background-color: #fff;
        color: #000;
        border: none;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        cursor: pointer;
        transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .fab-toggle svg {
        width: 28px;
        height: 28px;
        transition: transform 0.3s ease;
    }

    .fab-container.active .fab-toggle {
        transform: scale(0.95);
        background-color: #f2f2f7;
    }

    .fab-container.active .fab-icon-plus {
        transform: rotate(45deg);
    }
}