/* ==================== */
/* FOOTER COMPONENT     */
/* ==================== */

.footer {
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    flex-wrap: wrap;
    border-top: 2px solid black;
    padding-top: 31px;
    padding-bottom: 20px;
    margin-top: 70px;
    gap: 20px;
    max-width: 1440px;
    margin-left: 20px;
    margin-right: 20px;
}


.footer__location > .footer__text {
    font-size: 14px;
    line-height: 150%;
}

.footer__contact > .footer__text {
    font-size: 16px;
    line-height: 150%;

}

/* Branding section */
.footer__branding {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.footer__location {
    display: flex;
    flex-direction: column;
}

.footer__location-title {
    margin: 18px 0;
    line-height: 126%;
    font-size: 18px;
}

/* Content layout */
.footer__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 38px;
    margin: 0 auto;
}

/* Contact section */
.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 27px;
}

.footer__contact-section {
    display: flex;
    flex-direction: column;
}

.footer__title {
    margin-bottom: 7px;
    margin-top: 0;
    font-size: 20px;
    font-weight: bold;
}

/* Navigation */
.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer__nav-item {
    font-size: 18px;
}

/* Social media */
.footer__social {
    display: flex;
    flex-direction: column;
}

/* Copyright */
.footer__copyright {
    color: var(--gray--text);
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}

/* ==================== */
/* MEDIA QUERIES        */
/* ==================== */
@media (min-width: 768px) {
    .footer {
        padding-top: 42px;
    }

    .footer__content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }

    .footer__branding {
        order: 1;
    }

    .footer__contact {
        order: 3;
    }

    .footer__nav {
        order: 2;
    }

    .footer__social {
        order: 4;
    }
}

@media (min-width: 1122px) {
    .footer {
        gap: 0;
    }

    .footer__content {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        justify-content: space-between;
    }

    .footer__branding {
        gap: 15px;
    }

    .footer__copyright {
        align-self: flex-end;
        margin-right: 32.5%;
    }

    .footer__branding {
        order: unset;
    }

    .footer__contact {
        order: unset;
    }

    .footer__nav {
        order: unset;
    }

    .footer__social {
        order: unset;
    }
}

@media (min-width: 1440px) {
    .footer {
        margin-left: auto;
        margin-right: auto;
    }
}