/* ==========================================================================
   STOPKA (Footer)
   ========================================================================== */
footer {
    background-color: var(--color-primary-dark, #051024);
    color: #9ca3af;
    padding: 80px 0 30px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

/* ==========================================================================
   LOGO W STOPCE
   ========================================================================== */
.footer-logo-wrapper {
    margin-bottom: 24px;
}

/* Fallback - tekstowe logo */
.footer-logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-white, #ffffff);
    text-decoration: none;
    display: inline-block;
}

.footer-logo-text span {
    color: var(--color-accent, #ffb703);
}

/* Custom logo z WordPressa - ograniczenia */
.footer-logo-wrapper .custom-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.footer-logo-wrapper img {
    display: block;
    max-height: 55px !important;
    width: auto !important;
    height: auto !important;
    max-width: 240px !important;
    object-fit: contain;
    /* UWAGA: Jeśli wgrasz czarne logo z Headera i chcesz je wymusić na białe w stopce: */
    /* filter: brightness(0) invert(1); */
}

.footer-about p {
    line-height: 1.7;
    margin-bottom: 24px;
    color: #9ca3af;
    max-width: 380px;
}

/* ==========================================================================
   SOCIAL MEDIA I MENU
   ========================================================================== */
.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--color-accent, #ffb703);
    color: var(--color-primary, #0b2046);
}

.footer-social a svg {
    width: 18px;
    height: 18px;
}

/* Kolumny */
.footer-col h4 {
    font-size: 1.05rem;
    color: var(--color-white, #ffffff);
    margin-bottom: 24px;
    font-weight: 600;
    font-family: var(--font-heading);
}

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

.footer-col ul li {
    margin-bottom: 14px;
}

.footer-col ul li a,
.footer-col ul li span {
    font-size: 0.95rem;
    color: #9ca3af;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: var(--transition-fast);
    text-decoration: none;
}

.footer-col ul li a:hover {
    color: var(--color-white, #ffffff);
}

.footer-col ul li a .arrow {
    color: var(--color-accent, #ffb703);
    font-weight: bold;
    transition: transform var(--transition-fast);
}

.footer-col ul li a:hover .arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   NOWE IKONY KONTAKTOWE (ŻÓŁTE SVG)
   ========================================================================== */
.contact-list li a,
.contact-list li span {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #9ca3af;
}

.contact-list li a:hover {
    color: var(--color-accent, #ffb703);
}

/* Stylowanie ikonek SVG */
.contact-list li svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--color-accent, #ffb703); /* Akcent - na sztywno zolty/pomarańczowy */
    stroke-width: 2.5;
}

/* ==========================================================================
   DOLNA SEKCJA (Bottom bar)
   ========================================================================== */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.copyright {
    font-size: 0.85rem;
    color: #6b7280;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-bottom-links a,
.footer-bottom-links li a {
    font-size: 0.85rem;
    color: #9ca3af;
    transition: var(--transition-fast);
    text-decoration: none;
}

.footer-bottom-links a:hover,
.footer-bottom-links li a:hover {
    color: var(--color-white, #ffffff);
}

/* ==========================================================================
   SCROLL DO GÓRY (Floating Button)
   ========================================================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-lg);
    background: var(--color-accent, #ffb703);
    color: var(--color-primary, #0b2046);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-normal);
    z-index: 999;
    padding: 0;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--color-primary, #0b2046);
    color: var(--color-white, #ffffff);
    transform: translateY(-3px);
}

.scroll-top svg {
    width: 22px;
    height: 22px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-logo-wrapper img {
        max-height: 44px !important;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}