/* ================================================
   FOOTER – my-theme
   Czcionka: Comfortaa (Google Fonts)
   ================================================ */

/* ---- Zmienne (dziedziczone z headera, ale powtórzone dla pewności) ---- */
:root {
    --footer-bg:        #6FB02D;
    --footer-copyright-bg: #2a2a2a;
    --footer-font:      'Comfortaa', cursive;
    --footer-text:      #f6d915;
    --footer-divider:   #f6d915;
}

/* ================================================
   GŁÓWNA CZĘŚĆ FOOTERA
   ================================================ */
#site-footer {
    width: 100%;
    font-family: var(--footer-font);
}

.footer-main {
    background-color: var(--footer-bg);
    padding: 60px 0;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 100px;
    display: flex;
    align-items: stretch;
    gap: 0;
}

/* ---- Kolumny ---- */
.footer-col {
    flex: 1;
    padding: 0 50px;
    color: var(--footer-text);
    font-family: var(--footer-font);
}

.footer-col:first-child {
    padding-left: 0;
}

.footer-col:last-child {
    padding-right: 0;
}

/* Widgety wewnątrz kolumn */
.footer-col .footer-widget {
    margin-bottom: 24px;
}

.footer-col .footer-widget:last-child {
    margin-bottom: 0;
}

.footer-col .footer-widget-title {
    font-family: var(--footer-font);
    font-size: 1rem;
    font-weight: 700;
    color: var(--footer-heading-color, var(--footer-text));
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

/* Nagłówki H1–H6 wstawiane bezpośrednio w treści widgetu footera */
.footer-col .footer-widget h1,
.footer-col .footer-widget h2,
.footer-col .footer-widget h3,
.footer-col .footer-widget h4,
.footer-col .footer-widget h5,
.footer-col .footer-widget h6 {
    font-family: var(--footer-font);
    color: var(--footer-heading-color, var(--footer-text));
    transition: color 0.2s ease;
}

.footer-col .footer-widget h1:hover,
.footer-col .footer-widget h2:hover,
.footer-col .footer-widget h3:hover,
.footer-col .footer-widget h4:hover,
.footer-col .footer-widget h5:hover,
.footer-col .footer-widget h6:hover,
.footer-col .footer-widget-title:hover {
    color: var(--footer-heading-hover-color, #ffffff);
}

.footer-col .footer-widget p,
.footer-col .footer-widget li,
.footer-col .footer-widget span,
.footer-col .footer-widget label,
.footer-col .footer-widget td,
.footer-col .footer-widget th,
.footer-col .footer-widget div {
    font-family: var(--footer-font);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85) !important;
    line-height: 1.8;
}

.footer-col .footer-widget a,
.footer-col .footer-widget a:visited {
    font-family: var(--footer-font);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none;
    line-height: 1.8;
    transition: color 0.2s ease;
}

.footer-col .footer-widget a:hover {
    color: #ffffff !important;
}

/* Ikony social media – kolor #d31919 */
.footer-col .footer-widget .wp-social-link,
.footer-col .footer-widget .social-link,
.footer-col .footer-widget a[href*="facebook"],
.footer-col .footer-widget a[href*="twitter"],
.footer-col .footer-widget a[href*="instagram"],
.footer-col .footer-widget a[href*="linkedin"],
.footer-col .footer-widget a[href*="youtube"] {
    color: #f6d915 !important;
}

.footer-col .footer-widget .wp-social-link svg,
.footer-col .footer-widget .social-link svg {
    fill: #f6d915 !important;
}

.footer-col .footer-widget .wp-social-link:hover,
.footer-col .footer-widget .social-link:hover,
.footer-col .footer-widget a[href*="facebook"]:hover,
.footer-col .footer-widget a[href*="twitter"]:hover,
.footer-col .footer-widget a[href*="instagram"]:hover,
.footer-col .footer-widget a[href*="linkedin"]:hover,
.footer-col .footer-widget a[href*="youtube"]:hover {
    color: #ffffff !important;
}

.footer-col .footer-widget .wp-block-social-links .wp-social-link {
    background-color: transparent !important;
    color: #f6d915 !important;
}

.footer-col .footer-widget .wp-block-social-links .wp-social-link svg {
    fill: #f6d915 !important;
}

.footer-col .footer-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col .footer-widget ul li {
    padding: 3px 0;
}

/* ---- Linie separujące ---- */
.footer-divider {
    width: 1px;
    height: 120px; /* wartość domyślna – nadpisywana przez Customizer */
    background-color: var(--footer-divider);
    flex-shrink: 0;
    align-self: center;
}

/* ================================================
   PASEK COPYRIGHT
   ================================================ */
.footer-copyright {
    background-color: var(--footer-copyright-bg);
    padding: 14px 0;
}

.footer-copyright-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-copyright span {
    font-family: var(--footer-font);
    font-size: 0.85rem;
    font-weight: 400;
    color: #f6d915;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 991px) {
    .footer-inner {
        flex-direction: column;
        padding: 0 40px;
        gap: 0;
    }

    .footer-col {
        padding: 30px 0;
    }

    .footer-col:first-child {
        padding-top: 0;
    }

    .footer-col:last-child {
        padding-bottom: 0;
    }

    .footer-divider {
        width: 100%;
        height: 1px;
        margin: 0 30px;
    }

    .footer-copyright-inner {
        padding: 0 40px;
    }
}

@media (max-width: 480px) {
    .footer-main {
        padding: 40px 0;
    }

    .footer-inner {
        padding: 0 20px;
    }

    .footer-divider {
        margin: 0 20px;
    }

    .footer-copyright-inner {
        padding: 0 20px;
        text-align: center;
    }
}

