/* ============================================================
   11-footer.css
   Stopka, dok, przełącznik motywu.
   Ładowany ZAWSZE (footer.php jest na każdej stronie).
   Wygenerowane ze styles.php — kolejność reguł zachowana.
   ============================================================ */


/* --- 16. STOPKA --- */
.footer { background:var(--blue-deep); color:rgba(255,255,255,0.9); padding:3rem 0 2rem; margin-top:3rem; border-top:4px solid var(--blue-light); }
.footer h3.footer-heading { color:var(--white); font-size:0.9rem; margin-bottom:0.75rem; }
.footer a { color:rgba(255,255,255,0.9); text-decoration:none; font-size:0.85rem; transition:color 0.2s; }
.footer a:hover { color:var(--blue-pale); }
.footer-brand { font-size:1.3rem; color:var(--white); }
.footer ul li { margin-bottom:0.3rem; }
.footer-heading + .list-unstyled li a { color:rgba(255, 255, 255, 0.8) !important; text-decoration:none; transition:color 0.2s ease; }
.footer-heading + .list-unstyled li a:hover { color:#ffffff !important; text-decoration:underline; }
.footer-heading { color:#ffffff !important; }

/* --- 20. BACK TO TOP + THEME TOGGLE --- */
.back-to-top { position:fixed; bottom:2rem; right:2rem; width:44px; height:44px; background:var(--blue-mid); color:var(--white); border:none; border-radius:50%; font-size:1.1rem; cursor:pointer; display:flex; align-items:center; justify-content:center; opacity:0; pointer-events:none; transition:opacity 0.25s, transform 0.25s, background 0.2s; z-index:999; box-shadow:0 4px 16px rgba(10,42,110,0.3); line-height:1; }
.back-to-top.visible { opacity:1; pointer-events:auto; }
.back-to-top:hover { background:var(--blue-deep); transform:translateY(-3px); }
.theme-toggle { display:flex; align-items:center; gap:0.55rem; cursor:pointer; user-select:none; }
.theme-toggle-track { width:44px; height:24px; background:rgba(255,255,255,0.2); border:1px solid rgba(255,255,255,0.25); border-radius:12px; position:relative; transition:background 0.2s; flex-shrink:0; }
.theme-toggle-thumb { position:absolute; top:3px; left:3px; width:16px; height:16px; background:var(--white); border-radius:50%; transition:transform 0.2s; }
.theme-toggle-label { font-size:0.8rem; color:rgba(255,255,255,0.65); }
.theme-toggle-icon { font-size:0.95rem; }

/* --- 46. DARK MODE --- */
body.dark-mode .theme-toggle-track { background:var(--blue-light); border-color:var(--blue-light); }
body.dark-mode .theme-toggle-thumb { transform:translateX(20px); }

/* ============================================================
   STOPKA — karta CTA, pasek dolny, pływający dok
   Przeniesione 1:1 z bloku <style> w footer.php / module.
   Powód: blok stał ZA markupem stopki, więc karta CTA i dok
   renderowały się bez stylów i wskakiwały po pierwszym malowaniu.
   Po wgraniu tego pliku USUŃ ten <style> ze stopki.
   ============================================================ */

.footer .footer-tagline{ color: rgba(255,255,255,.9); }

.footer .footer-social{
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1rem;
}
.footer .footer-social-btn{
    font-size: .75rem;
    padding: .4rem 1rem;
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.25);
}
.footer .footer-social-btn:hover{ background: rgba(255,255,255,.22); }

/* --- karta CTA --- */
.footer .footer-cta{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
    padding: 1.25rem;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 16px;
    background: rgba(255,255,255,.08);
}
.footer .footer-cta-kicker{
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #fff;
}
.footer .footer-cta-kicker svg{
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linejoin: round;
}
.footer .footer-cta-text{
    margin: 0;
    font-size: .85rem;
    line-height: 1.5;
    color: rgba(255,255,255,.85);
}
.footer .footer-cta-btn{
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1.1rem;
    border-radius: 999px;
    background: #fff;
    color: #16224a;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.footer .footer-cta-btn:hover{
    background: #f1f5fb;
    color: #16224a;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -8px rgba(0,0,0,.6);
}
.footer .footer-cta-btn:focus-visible{ outline: 2px solid #fff; outline-offset: 3px; }

/* --- pasek dolny --- */
.footer .footer-bottom{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .5rem 1.5rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: .85rem;
}

/* ============ MOBILE ============ */
@media (max-width: 991.98px){
    .footer .footer-col-brand{
        text-align: center;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,.12);
    }
    .footer .footer-tagline{ max-width: 34ch; margin-inline: auto; }
    .footer .footer-social{ justify-content: center; }
    .footer .footer-social-btn{ flex: 1 1 auto; min-width: 96px; text-align: center; }

    .footer .footer-col-nav ul{ margin-bottom: 0; }
    .footer .footer-col-nav li + li{ margin-top: .35rem; }

    .footer .footer-col-cta{
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255,255,255,.12);
    }
    .footer .footer-cta{
        align-items: center;
        text-align: center;
    }
    .footer .footer-cta-text{ max-width: 40ch; }

    .footer .footer-bottom{
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: .35rem;
    }
}

/* ukryty, ale funkcjonalny przełącznik motywu */
.wiw-theme-engine{
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    pointer-events: none;
}

/* ============ PŁYWAJĄCY DOK ============ */
.wiw-dock{
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 1030;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.wiw-dock-btn{
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 12px;
    background: #232d3b;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 6px 18px -6px rgba(15, 23, 42, .55);
    transition: background-color .18s ease, transform .18s ease,
                box-shadow .18s ease, opacity .22s ease, visibility .22s ease;
}
.wiw-dock-btn:hover{ background: #2f3d50; transform: translateY(-2px); }
.wiw-dock-btn:active{ transform: translateY(0); }
.wiw-dock-btn:focus-visible{ outline: 2px solid #7cb6ec; outline-offset: 2px; }

.wiw-dock-btn svg{
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .3s ease;
}
.wiw-dock-theme.is-dark svg{ transform: rotate(180deg); }

.wiw-dock-top{
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
}
.wiw-dock-top.is-visible{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

@media (max-width: 575px){
    .wiw-dock{ right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); gap: 6px; }
    .wiw-dock-btn{ width: 42px; height: 42px; border-radius: 11px; }
    .wiw-dock-btn svg{ width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce){
    .footer .footer-cta-btn,
    .wiw-dock-btn, .wiw-dock-btn svg{ transition: none; }
    .footer .footer-cta-btn:hover,
    .wiw-dock-btn:hover{ transform: none; }
}
