/* The footer hangs below the page from the bottom of <html>; base.html reserves space with the body's bottom margin */
footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100px;
}

.site-footer {
    font-size: 15px;
    color: rgba(255, 255, 255, .72);
    background-color: var(--brand-navy-dark);
    border-top: 4px solid transparent;
    border-image: var(--brand-gradient) 1;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 56px;
    padding-bottom: 48px;
}

@media (min-width: 768px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 32px;
    }
}

@media (min-width: 992px) {
    .footer-main {
        grid-template-columns: minmax(0, 1fr) repeat(4, auto);
        column-gap: 56px;
    }
}

.site-footer .footer-heading {
    margin: 0 0 16px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: white;
}

.site-footer a {
    color: rgba(255, 255, 255, .72);
    transition: color .15s;
}

.site-footer a:hover,
.site-footer a:focus {
    color: white;
    text-decoration: none;
}

.footer-address {
    margin-bottom: 14px;
    line-height: 1.7;
}

.footer-contact,
.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-contact li {
    margin-bottom: 6px;
}

.footer-contact .glyphicon {
    margin-right: 8px;
    font-size: 12px;
    color: var(--primary-blue);
}

.footer-links li {
    margin-bottom: 10px;
    line-height: 1.4;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.site-footer .footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 17px;
    color: white;
    background-color: rgba(255, 255, 255, .08);
    border-radius: 50%;
    transition: background-color .15s;
}

.site-footer .footer-social-link:hover,
.site-footer .footer-social-link:focus {
    color: white;
    background-color: var(--primary-blue);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, .6);
}

.footer-flag {
    margin-left: 4px;
    vertical-align: -2px;
}
