/**
 * ============================================================
 * KM KZZPRM w Trójmieście
 * Stopka - footer.css
 * ============================================================
 */

/* ============================================================
   1. STOPKA
   ============================================================ */

.site-footer {
    width: 100%;

    background:
        linear-gradient(110deg,
            #06172b 0%,
            #081d36 55%,
            #0c294a 100%);

    color: #ffffff;
}

/* ============================================================
   2. GŁÓWNY KONTENER
   ============================================================ */

.footer-container {
    width: min(960px, calc(100% - 48px));

    margin: 0 auto;
    padding: 38px 0 34px;

    display: grid;
    grid-template-columns: 1.5fr 0.7fr 0.8fr;

    gap: 56px;
}

/* ============================================================
   3. IDENTYFIKACJA
   ============================================================ */

.footer-brand {
    max-width: 340px;
}

.footer-logo-link {
    display: inline-flex;

    text-decoration: none;
}

.footer-logo {
    display: block;

    width: auto;
    height: 36px;

    margin-bottom: 14px;
}

.footer-name {
    margin: 0 0 8px;

    color: #ffffff;

    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.3;
}

.footer-description {
    max-width: 350px;

    margin: 0;

    color: #c8d6e5;

    font-size: 0.8rem;
    line-height: 1.6;
}

.footer-motto {
    position: relative;

    margin: 15px 0 0;
    padding-left: 22px;

    color: #ffffff;

    font-size: 0.82rem;
    font-weight: 800;
}

.footer-motto::before {
    content: "";

    position: absolute;

    left: 0;
    top: 50%;

    width: 14px;
    height: 2px;

    background-color: #c62032;

    transform: translateY(-50%);
}

/* ============================================================
   OFICJALNA STRONA KZZPRM
   ============================================================ */

.footer-national-link {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    margin-top: 15px;

    color: #c8d6e5;

    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.4;

    text-decoration: none;
}

.footer-national-link .external-link-icon {
    flex: 0 0 auto;

    width: 13px;
    height: 13px;

    color: #c62032;

    transition: transform 180ms ease;
}

.footer-national-link:hover,
.footer-national-link:focus-visible {
    color: #ffffff;
}

.footer-national-link:hover .external-link-icon,
.footer-national-link:focus-visible .external-link-icon {
    transform: translate(2px, -2px);
}

.footer-national-link:focus-visible {
    outline: 2px solid rgba(198, 32, 50, 0.5);
    outline-offset: 4px;
}

/* ============================================================
   4. KOLUMNY
   ============================================================ */

.footer-heading {
    margin: 3px 0 15px;

    color: #ffffff;

    font-size: 0.82rem;
    font-weight: 800;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-links {
    margin: 0;
    padding: 0;

    list-style: none;
}

.footer-links li+li {
    margin-top: 9px;
}

.footer-links a,
.footer-contact-link {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    color: #c8d6e5;

    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.45;

    text-decoration: none;
}

.footer-links a span,
.footer-contact-link span,
.footer-national-link span {
    display: inline-block;

    color: #c62032;

    transition: transform 180ms ease;
}

.footer-links a:hover span,
.footer-links a:focus-visible span,
.footer-contact-link:hover span,
.footer-contact-link:focus-visible span,
.footer-national-link:hover span,
.footer-national-link:focus-visible span {
    transform: translate(2px, -2px);
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-contact-link:hover,
.footer-contact-link:focus-visible {
    color: #ffffff;
}

/* ============================================================
   5. KONTAKT
   ============================================================ */

.footer-contact-text {
    margin: 0 0 13px;

    color: #c8d6e5;

    font-size: 0.8rem;
    line-height: 1.55;
}

.footer-contact-link {
    color: #ffffff;

    font-weight: 800;
}

.footer-location {
    margin: 12px 0 0;

    color: #90a7bd;

    font-size: 0.75rem;
}

/* ============================================================
   6. DOLNY PASEK
   ============================================================ */

.footer-bottom {
    width: 100%;

    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom-container {
    width: min(960px, calc(100% - 48px));

    margin: 0 auto;
    padding: 14px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.footer-copyright,
.footer-signature {
    margin: 0;

    color: #90a7bd;

    font-size: 0.7rem;
    line-height: 1.4;
}

.footer-signature {
    color: #c8d6e5;

    font-weight: 700;

    letter-spacing: 0.04em;
}

/* ============================================================
   7. FOCUS
   ============================================================ */

.footer-logo-link:focus-visible,
.footer-links a:focus-visible,
.footer-contact-link:focus-visible {
    outline: 2px solid rgba(198, 32, 50, 0.50);
    outline-offset: 4px;
}