.page-footer {
    padding: 35px 0 20px;
}

.footer-flex h3 {
    font-size: 16px;
    color: var(--secondary-color);
    font-weight: 700;

    a {
        font-size: inherit;
        color: inherit;
        text-decoration: none;
        font-weight: inherit;
    }
}

.footer-flex {
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-content {
    margin-top: 20px;
}

.footer-info-col {
    width: 100%;
}

.footer-contact ul {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-contact ul li {
    padding: 0 0 0 35px;
    margin: 0;
    font-size: 16px;
    color: var(--heading-color);
    line-height: 1.2em;
}

.footer-contact ul li a {
    font-size: 16px;
    color: var(--heading-color);
    line-height: 1.2em;
    display: block;
    text-decoration: none;
}

.footer-contact ul li:before {
    display: none;
}

.footer-contact ul li i {
    position: absolute;
    left: 0;
    top: 50%;
    width: 25px;
    height: 25px;
    transform: translate(0, -50%);
    border-radius: 4px;
    background: var(--light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--heading-color);
}

.footer-social ul {
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
}

.footer-social ul li {
    padding: 0;
    margin: 0;
}

.footer-social ul li a {
    font-size: 35px;
    color: var(--heading-color);
    display: block;
    border-radius: 6px;
    text-decoration: none;
    overflow: hidden;
}

.footer-social ul li:before {
    display: none;
}

.footer-social {
    margin: 20px 0 0;
}

.footer-links ul {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links ul li {
    padding: 0;
    margin: 0;
    font-size: 16px;
    color: var(--heading-color);
    line-height: 1.2em;
}

.footer-links ul li a {
    font-size: 16px;
    color: var(--heading-color);
    line-height: 1.2em;
    display: block;
    text-decoration: none;
}

.footer-links ul li:before {
    display: none;
}

.footer-links {
    width: calc(50% - 16px);
}

.footer-bottom {
    padding: 20px 20px;
    border-radius: 8px;
    background: var(--off-white-darker);
    margin: 40px 0 0;
}

.back-to-top {
    text-align: center;
}

.back-to-top a {
    font-size: 16px;
    color: var(--blue);
    font-weight: normal;
    font-family: var(--secondary-font);
    display: block;
    text-decoration: none;
    position: relative;
}

.back-to-top a:after {
    content: "\e904";
    font-family: 'zimmerman-icons';
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    top: -40px;
    font-size: 29px;
}

.footer-bottom ul {
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.footer-bottom ul li {
    padding: 0;
    margin: 0;
    font-size: 15px;
    color: var(--blue);
    line-height: 1em;
}

.footer-bottom ul li a {
    font-size: 15px;
    color: var(--blue);
    line-height: 1em;
    display: block;
    text-decoration: none;
}

.footer-bottom ul li:before {
    display: none;
}

.back-to-top {
    margin: 0 0 20px;
}

.footer-top {
    margin-bottom: 30px;
}



@media(min-width: 768px) {
    .footer-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0;
    }

    .footer-top .btn-group {
        margin-top: 0;
    }

    .footer-flex {
        margin: 0;
        gap: 35px;
        padding: 0;
        position: relative;
    }

    .footer-content {
        margin-top: 32px;
        position: relative;
    }

    .footer-btns {
        position: absolute;
        bottom: 0;
        right: 0;
    }

    .footer-flex h3 {
        font-size: 20px;
    }

    .footer-info-col {
        width: auto;
    }

    .footer-links {
        width: auto;
    }

    .footer-links--two-column ul {
        display: block;
        column-gap: 0;
        column-count: 2;
    }

    .footer-links--two-column ul li {
        margin: 0 0 15px;
    }

    .footer-links--two-column {
        width: 373px;
    }

    .footer-links--tips {
        margin-left: 33px;
    }

    .footer-bottom {
        padding: 20px 25px;
        margin: 32px 0 0;
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
    }

    .footer-bottom ul {
        justify-content: flex-start;
        gap: 15px 50px;
        width: 70%;
    }

    .back-to-top {
        margin: 10px 0 0;
    }

    .page-footer {
        padding: 50px 0 25px;
    }
}

@media(min-width: 1200px) {
    .footer-links--two-column {
        width: auto;
    }

    .footer-links--two-column ul {
        display: flex;
    }

    .footer-links--two-column ul li {
        margin: 0;
    }

    .footer-links--tips {
        margin-left: 0;
    }

    .footer-flex {
        margin: 52px 0 0;
        gap: 0;
        padding: 0;
    }

    .footer-bottom {
        padding: 15px 25px;
        margin: 62px auto 0;
        max-width: 1048px;
    }

    .page-footer {
        padding: 75px 0 35px;
    }

    .footer-flex h3 {
        font-size: 22px;
        margin: 0 0 15px;
    }

    .back-to-top {
        margin: 2px 0 0;
    }

    .footer-contact ul li a:hover,
    .footer-links ul li a:hover {
        opacity: 0.7;
    }

    .footer-bottom ul li a:hover,
    .back-to-top a:hover {
        color: var(--heading-color);
    }

    .footer-social ul li a:hover {
        opacity: 0.7;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .footer-links:last-child,
    .footer-links:last-of-type {
        > ul {
            flex-direction: row;
            flex-wrap: wrap;

            > li {
                width: calc(50% - 10px);
            }
        }
    }
}

.footer-contractor-info {
    margin-top: 20px;
    text-align: left;
    font-weight: 500;
    
    p {
        font-size: 18px;
        color: var(--heading-color);
    }
}

@media (min-width: 768px) {
    .footer-contractor-info {
        margin-top: 0;
        text-align: right;
    }
}