﻿.footer__top {
    background-color: var(--color-robins-egg-light);
    /*background-image: url('https://static.viacharacter.org/web/footer-bg.jpg');*/
    background-size: cover;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
}

.footer__top.lazy {
    background-image: none;
    background-color: var(--color-robins-egg-light);
}

.footer-newsletter__wrapper {
    width: var(--content-width);
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 4rem;
    padding-bottom: 4rem;
    justify-items: center;
}

.footer-newsletter__wrapper .tagline__wrapper {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-gap: 1rem;
    font-weight: var(--font-weight-normal);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--color-primary-blue);
    letter-spacing: 0.57px;
    line-height: 2rem;
}

.footer__middle {
    margin: 0;
    padding: 0;
    background-color: var(--color-teal-dark);
    color: var(--color-white);
    display: grid;
    justify-items: center;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.footer__links {
    width: var(--content-width);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.footer__links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer__links ul li {
    display: inline;
}

.footer__links ul li a {
    color: var(--color-white);
    text-transform: uppercase;
    font-weight: var(--font-weight-normal);
    font-size: .8rem;
}

.footer__links ul li a:hover {
    text-decoration: none;
}

.footer__links .links__nav ul,
.footer__links .links__social ul {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
}

.footer__links .links__social ul li svg {
    height: 1rem;
    aspect-ratio: 1;
}

.footer__bottom {
    background-color: var(--color-text);
    color: var(--color-white);
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 1.5rem 0 1.5rem 0;
    font-size: .8rem;
}

.footer__bottom-wrapper,
.footer__affiliate-wrapper {
    margin: 0;
    width: var(--content-width);
    display: flex;
    flex-direction: row;
    padding: 0;
    justify-content: space-between;
}

.footer__bottom-wrapper .links-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.footer__bottom-wrapper .links-column ul li {
    
}

.footer__bottom-wrapper .links-column ul li a {
    color: var(--color-white);
    font-weight: var(--font-weight-normal);
}

.footer__bottom-wrapper .links-column ul li a:hover {
    text-decoration: none;
}

.footer__affiliate-wrapper .contentful__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: .5rem;
}

.footer__affiliate-wrapper .contentful__wrapper img {
    max-height: 1rem;
    max-width: 1rem;
    justify-self: right;
    align-self: center;
}

.footer__affiliate-wrapper .contentful__wrapper a,
.footer__affiliate-wrapper a {
    color: var(--color-white);
}

.footer__affiliate-wrapper .contentful__wrapper a:hover,
.footer__affiliate-wrapper a:hover {
    text-decoration: none;
}

@media only screen and (max-width: 1340px) {
    .footer-newsletter__wrapper, .footer__links, .footer__bottom-wrapper, .footer__affiliate-wrapper {
        width: 100%;
    }

    .footer__bottom {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media only screen and (max-width: 1024px) {
    .footer-newsletter__wrapper {
        grid-template-columns: 1fr;
    }

    .footer-newsletter__wrapper .tagline__wrapper  {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .footer-newsletter__wrapper .newsletter__wrapper {
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

@media only screen and (max-width: 910px) {
    .footer__links {
        flex-direction: column;
        text-align: center;
    }

    .footer__links .links__nav ul {
        flex-direction: column;
        margin-top: 1.5rem;
        gap: .5rem;
    }

    .footer__links .links__social ul {
        margin-top: 1.5rem;
    }

    .footer__bottom-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .footer__bottom-wrapper .links-column ul {
        flex-direction: column;
        gap: 0;
    }

    .footer__affiliate-wrapper {
        flex-direction: column;
        gap: 0;
        text-align: center;
        justify-content: center;
        margin-top: 1rem;
    }

    .footer__affiliate-wrapper .contentful__wrapper {
        display: block;
        margin-top: 1rem;
    }
}