/* ==========================================================================
   eShield Footer (moved from footer.php inline styles)
   ========================================================================== */

/* ========================================= */
/* === STYLE PODSTAWOWE (Footer Scope) === */
/* ========================================= */
:root {
    /* Paleta Engineering Shield */
    --primary-color: #0055FF;
    --primary-hover: #0044CC;
    --warning-color: #FF4800;
    --dark-bg: #0f172a;
    --dark-footer: #020617;
    /* Głęboka czerń/granat */
    --text-body: #334155;
    --text-heading: #0f172a;
    --border-light: #e2e8f0;

    /* Fonty (local stack fallback) */
    --font-heading: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ========================================= */
/* === AGENCY FOOTER (FINAL POLISH) === */
/* ========================================= */
.site-footer {
    background-color: #020617;
    /* Najgłębsza czerń */
    color: #94a3b8;
    /* Slate-400 */
    padding: 80px 0 40px;
    font-size: 0.8125rem;
    /* 13px - idealny kompromis */
    font-family: var(--font-body);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    letter-spacing: -0.01em;
}

/* NAGŁÓWKI: Precyzja */
.footer-heading {
    color: #f1f5f9;
    /* Prawie biały, ale nie rażący */
    font-family: var(--font-heading);
    font-size: 0.75rem;
    /* 12px */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    /* Szerokie liternictwo dla elegancji */
    margin-bottom: 1.5rem;
    opacity: 1;
}

/* OPIS: Czytelność */
.footer-desc {
    font-size: 0.8125rem;
    /* 13px */
    line-height: 1.7;
    /* Większy oddech */
    color: #64748b;
    /* Slate-500 */
    margin-bottom: 2rem;
    max-width: 300px;
}

/* SEPARATOR PIONOWY (Desktop Only) */
@media (min-width: 992px) {
    .footer-divider {
        border-right: 1px solid rgba(255, 255, 255, 0.05);
        padding-right: 3rem;
        /* Odstęp od linii */
    }

    .footer-col-offset {
        padding-left: 3rem;
        /* Odstęp za linią */
    }
}

/* LINKI: Mikro-interakcje */
.footer-links {
    padding: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 400;
    font-size: 0.8125rem;
    /* 13px */
    display: inline-block;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(3px);
    /* Subtelny ruch */
}

/* BADGE ISO: Techniczny detal */
.iso-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 4px;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    cursor: default;
}

.iso-badge:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

/* ISO cert image: "our" premium filter + hover reveal */
.iso-cert-link {
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 6px;
}

.iso-cert-link img {
    display: block;
    height: 82px; /* +120% vs previous 68px */
    width: auto;
    max-width: 100%;
    /* Similar to our map / dark-ui treatment: muted + inverted */
    filter: grayscale(100%) invert(88%) contrast(80%);
    opacity: 0.78;
    transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.iso-cert-link:hover img,
.iso-cert-link:focus-visible img {
    filter: none;
    opacity: 1;
    transform: translateY(-1px);
}

/* SOCIALE: Modern Boxy Style */
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    /* Lekko zaokrąglony kwadrat - bardziej "pro" */
    color: #94a3b8;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
}

.social-btn:hover {
    color: white;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.social-btn svg {
    width: 15px;
    height: 15px;
}

/* KONTAKT: Hierarchia */
.footer-contact li {
    margin-bottom: 1.25rem;
}

.footer-contact span {
    display: block;
    color: #475569;
    /* Etykieta ciemniejsza */
    font-size: 0.65rem;
    /* 10.5px */
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.footer-contact a,
.footer-contact div {
    color: #e2e8f0;
    /* Dane jaśniejsze */
    font-weight: 500;
    font-size: 0.8125rem;
    /* 13px */
}

/* BELKA DOLNA */
.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    font-size: 0.75rem;
    color: #475569;
    margin-bottom: 0;
}

.footer-bottom a {
    color: #64748b;
    font-size: 0.75rem;
    margin-left: 2rem;
    transition: color 0.2s;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #e2e8f0;
}

/* Progress Bar */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 9999;
}

.scroll-progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .site-footer {
        text-align: center;
    }

    .footer-desc,
    .footer-contact {
        margin-left: auto;
        margin-right: auto;
    }

    .site-footer .d-flex.gap-2 {
        justify-content: center;
    }

    .site-footer .d-flex.gap-3 {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        margin-top: 3rem;
    }

    .footer-bottom a {
        margin: 0 10px;
    }

    .footer-divider {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 2rem;
        margin-bottom: 2rem;
        padding-right: 0;
    }

    .footer-col-offset {
        padding-left: 0.75rem;
    }
}

