/* ==========================================================================
   FOOTER.CSS - Style stopki strony (Footer) oraz nakładki z mapą
   ========================================================================== */

/* =========================================
   1. GŁÓWNY KONTENER I MAPA
   ========================================= */

footer {
    padding: 0;
    font-family: Verdana, sans-serif;
    margin-top: 100px;
    background-color: var(--bgTheme);
}

footer h3 {
    font-weight: bolder;
    margin-bottom: 5px;
}

.footer-map-container {
    position: relative;
    width: 100%;
    margin-bottom: 150px;
    display: flex;
    justify-content: center;
    /* Nakładka "Skontaktuj się" (absolutna, left:58% + stała szerokość) wychodziła
       poza prawą krawędź na typowych szerokościach desktopu, dając poziomy pasek
       przewijania na CAŁEJ stronie. clip ucina ten naddatek bez tworzenia scrolla
       i bez wpływu na pionową oś (nakładka mieści się w wysokości mapy). */
    overflow-x: clip;
}

.footer-map-overlay {
    position: absolute;
    top: 0;
    left: 58%;
    width: 500px;
    height: 380px;
    box-sizing: border-box;
    z-index: 10;
    background-color: var(--bgTheme);
    padding: 40px;
    line-height: 1.5em;
}


/* =========================================
   2. NOWOCZESNA STOPKA (FOOTER BOTTOM)
   ========================================= */

.site-footer-bottom {
    background-color: var(--leadThemeDark, #1a1a1a); /* Głęboki, elegancki ciemny kolor */
    color: #f0f0f0; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding-top: 60px;
}

/* Układ siatki 4 kolumn (Desktop) */
.foot-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 40px; 
}

/* Globalna typografia wewnątrz stopki */
.foot-col h3, 
.foot-col h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.foot-col h4 {
    font-size: 0.95rem;
    margin-top: 25px;
    margin-bottom: 15px;
}

.foot-col p, 
.foot-col address {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 15px;
    font-style: normal;
}


/* =========================================
   3. DETALE KOLUMN (Logo, Linki, Kontakt)
   ========================================= */

/* --- Kolumna 1: Logo --- */
.foot-logo-placeholder {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.foot-logo-placeholder img {
    max-width: 150px;
    height: auto;
    filter: brightness(0) invert(1);
}

/* --- Kolumna 2: Lista produktów --- */
ul.foot-products {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.foot-products li {
    margin-bottom: 12px;
}

ul.foot-products a {
    color: #f0f0f0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block; 
}

ul.foot-products a:hover {
    color: #ffffff;
    transform: translateX(5px); /* Delikatne przesunięcie w prawo */
}

/* --- Kolumna 3: Linki kontaktowe --- */
.foot-contact-info a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.foot-contact-info a:hover {
    color: var(--leadTheme, #999);
}


/* =========================================
   4. SOCIAL MEDIA (Ikony i efekty hover)
   ========================================= */

.social-links {
    display: flex;
    flex-direction: column; 
    gap: 15px;
    margin-top: 20px;
}

.social-btn {
    display: inline-flex;
    align-items: center; 
    gap: 12px;
    padding: 0;
    border: none; 
    background: transparent;
    color: #f0f0f0;
    text-decoration: none;
    font-size: 1.1rem; 
    font-weight: 800; 
    letter-spacing: 0.5px;
    text-transform: uppercase; 
    transition: all 0.3s ease;
}

.social-btn svg {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Elastyczna animacja */
}

/* Efekty powiększania ikony przy najechaniu */
.social-btn:hover svg {
    transform: scale(1.2); 
}

/* Kolory marek (Brands) */
.social-btn.facebook-btn:hover {
    color: #1877F2; 
}

.social-btn.instagram-btn:hover {
    color: #E1306C; 
}


/* =========================================
   5. PASEK COPYRIGHT (Dolna belka)
   ========================================= */

.foot-copyright {
    margin-top: 60px;
    padding: 25px 30px;
    background-color: #111111; 
    text-align: center;
    font-size: 0.85rem;
    color: #777;
}

.foot-copyright p {
    margin: 0;
}

.foot-copyright p a {
    color: #777;
    text-decoration: none;
    font-weight: 600;
    transition: 0.5s ease-in-out;
}

.foot-copyright p a:hover {
    color: #ffffff;
    /* text-decoration: underline; */
}


/* =========================================
   6. RESPONSYWNOŚĆ (Media Queries)
   ========================================= */

/* Laptopy i duże tablety (Układ 2 kolumn) */
@media (max-width: 992px) {
    .foot-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 30px;
    }
}

/* Telefony poziomo i pionowo (Układ 1 kolumny, centrowanie) */
@media (max-width: 576px) {
    .site-footer-bottom {
        padding-top: 40px;
    }
    
    .foot-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center; 
    }

    /* Układ poziomy dla ikon Social Media na telefonach */
    .social-links {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
    }
}

/* Bardzo małe ekrany (Poprawki układu) */
@media (max-width: 500px) {
    .foot-wrapper {
        display: flex; /* Zabezpieczenie przed ucinaniem flexboxem */
        flex-direction: column;
        height: auto;
    }

    .foot-col {
        margin-bottom: 20px;
    }

    /* Ukrycie nakładki z mapą na wąskich ekranach */
    .footer-map-overlay {
        display: none;
    }
}