/* ============================================
   FOOTER - GŁÓWNY KONTENER
   ============================================ */

.site-footer {
    background-color: var(--dust-grey);
    color: var(--twilight-indigo);
    font-family: var(--font-base);
    font-size: var(--font-size-submenu);
    line-height: 1.6;
    margin-top: 50px;
    padding-top: 50px;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto 16px;
    padding: 0 24px;
}

/* ============================================
   GŁÓWNA SIATKA
   ============================================ */

.footer-main {
    align-items: stretch;
    flex-wrap: nowrap;
    width: auto;
    min-width: 0;
}

.footer-main > .col-lg-8 {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
}

.footer-col {
    margin-bottom: 0;
}

/* Reset Bootstrapowych gutterów w wierszach footera */
.footer-main > [class*="col-"],
.footer-owner-row > [class*="col-"] {
    margin-top: 0;
}

/* ============================================
   KOLUMNA 1 - WIZYTÓWKA
   ============================================ */

.footer-col-brand {
    display: flex;
    flex-direction: column;
    min-width: 405px;
}

.footer-logo {
    display: inline-block;
    height: 70px;
    margin: 0;
    align-self: flex-start;
}

.footer-logo img {
    max-height: 70px;
    max-width: 100%;
    width: auto;
    display: block;
}

.footer-tagline {
    font-size: var(--font-size-menu);
    font-weight: 700;
    color: var(--twilight-indigo);
    margin: 0;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

/* Rząd właściciela */
.footer-owner-row {
    margin: 0;
    align-items: stretch;
    flex-wrap: nowrap;
}

.footer-photo-col {
    flex: 0 0 160px;
    max-width: 160px;
    padding: 0;
}

.footer-owner-photo {
    width: 128px;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--radius);
    margin: 0 auto;
}

.footer-owner-info {
    flex: 1 1 auto;
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.footer-owner {
    font-style: normal;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    line-height: 1.3;
}

.footer-owner-name {
    font-size: var(--font-size-submenu);
    font-weight: 700;
    color: var(--twilight-indigo);
    margin: 0;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.footer-owner-contact {
    margin: 0;
    font-size: var(--font-size-submenu);
    align-self: flex-start;
}

/* ============================================
   LINKI W FOOTERZE
   ============================================ */

.footer-owner-contact a,
.footer-heading a,
.footer-menu a,
.footer-info-item a,
.footer-bottom a {
    color: var(--twilight-indigo);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-owner-contact a:hover,
.footer-owner-contact a:focus,
.footer-heading a:hover,
.footer-heading a:focus,
.footer-menu a:hover,
.footer-menu a:focus,
.footer-info-item a:hover,
.footer-info-item a:focus,
.footer-bottom a:hover,
.footer-bottom a:focus {
    color: var(--carrot-orange);
}

/* ============================================
   KOLUMNY Z LINKAMI
   ============================================ */

.footer-heading {
    font-size: var(--font-size-menu);
    font-weight: 700;
    color: var(--twilight-indigo);
    margin: 0;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    line-height: 1.2;
}

.footer-menu {
    margin: 0;
    padding: 0;
}

.footer-menu a {
    font-size: var(--font-size-submenu);
    display: inline-block;
}

/* ============================================
   KOLUMNA - INFORMACJE
   ============================================ */

.footer-company {
    font-style: normal;
    margin: 0;
}

.footer-info-item {
    margin-bottom: 0;
    font-size: var(--font-size-submenu);
    line-height: 1.6;
    color: var(--twilight-indigo);
}

.footer-info-item strong {
    display: inline-block;
    color: var(--twilight-indigo);
    font-weight: 700;
    font-size: var(--font-size-submenu);
    margin-bottom: 2px;
}

.footer-info-item a {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* ============================================
   DOLNY PASEK - COPYRIGHT
   ============================================ */

.footer-bottom {
    min-height: 50px;
    background-color: rgba(27, 49, 82, 0.05);
    border-top: 1px solid var(--color-border-light);
    padding: 0;
    color: var(--twilight-indigo);
    font-size: 14px;
    font-weight: 700;
}

.footer-bottom .container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 50px 1fr;
    align-items: center;
    height: 50px;
}

.footer-bottom-left,
.footer-bottom-center,
.footer-bottom-right {
    display: flex;
    align-items: center;
    height: 50px;
}

.footer-bottom-left {
    justify-content: flex-end;
    padding-right: 12px;
}

.footer-bottom-center {
    justify-content: center;
    width: 50px;
    opacity: 0.5;
}

.footer-bottom-right {
    justify-content: flex-start;
    padding-left: 12px;
}

/* ============================================
   RESPONSYWNOŚĆ
   ============================================ */

@media (max-width: 991px) {

    .footer-main {
        flex-wrap: wrap;
    }

    .site-footer {
        padding-top: 40px;
    }

    .footer-col-brand {
        align-items: center;
        text-align: center;
        min-width: auto;
        margin-bottom: 40px;
    }

    .footer-logo,
    .footer-tagline,
    .footer-owner-name {
        align-self: center;
        justify-content: center;
        text-align: center;
    }

    .footer-heading {
        justify-content: center;
        text-align: center;
    }

    .footer-col {
        text-align: center;
    }

    .footer-menu a {
        display: inline-block;
    }
}

@media (max-width: 767px) {

    .footer-bottom-grid {
        grid-template-columns: 1fr;
        height: auto;
        padding: 12px 0;
        gap: 4px;
        text-align: center;
    }

    .footer-bottom-left,
    .footer-bottom-center,
    .footer-bottom-right {
        height: auto;
        justify-content: center;
        padding: 0;
    }

    .footer-bottom-center {
        display: none;
    }
}