/******************/
/* Footer Section */
/******************/

footer {
    background-color: var(--clr-primary-100);
}

.footer-container {
    max-width: 1440px;
    margin: auto;
    padding: 6rem;
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
    align-items: center;
    gap: 6rem;
}

.footer-container .description {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 22.5rem;
    font-size: var(--fs-md);
}

.footer-container .description .logo {
    width: 5.5rem;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
}

.footer-container .description .logo img {
    object-fit: contain;
}

.footer-container .links ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: var(--fs-md);
}

.footer-container .links li {
    transition: var(--timing-function) 0.2s;
}

.footer-container .links li:hover {
    color: var(--clr-primary-700);
}

.footer-container .socials h3 {
    max-width: 9rem;
    font-size: var(--fs-lg);
    color: var(--clr-primary-700);
    margin-bottom: 1.5rem;
}

.footer-container .socials ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    font-size: var(--fs-md);
}

.footer-container .socials li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-container .socials li img {
    width: 32px;
    height: 32px;
}

/*****************/
/* Media Queries */
/*****************/

@media only screen and (max-width: 900px) {
    .footer-container {
        align-items: self-start;
        gap: 4rem;
    }

    .footer-container .description {
        flex-direction: column;
        align-items: flex-start;
        max-width: 15rem;
    }

    .footer-container .socials {
        max-width: 20rem;
    }
}

@media only screen and (max-width: 680px) {
    .footer-container {
        padding: 6rem 1.5rem;
        grid-template-columns: auto auto;
        grid-template-rows: auto auto;
    }

    .footer-container .links {
        width: 100%;
        grid-column: 1 / -1;
        justify-self: center;
    }

    .footer-container .links ul {
        flex-direction: row;
        justify-content: space-around;
    }
}
