.c-site-footer {
    position: relative;
    color: white;
    font-size: .875em;
    margin-top: 4rem;
    padding-top: 1rem;
    background: theme('colors.primary.500');

    @screen lg {
        margin-top: 8rem;
    }

    // Normal Quickaccess elevated spacing
    &.c-site-footer--elevated {
        margin-bottom: 4rem;
    }

    // Live Quickaccess elevated only mobile spacing
    &.c-site-footer--elevated-mobile {
        margin-bottom: 6.25rem;

        @screen md {
            margin-bottom: 0;
        }
    }
}

.c-footer__decoration {
    margin: 4rem auto -4rem;

    @screen lg {
        margin: 8rem auto -8rem;
    }
}

.c-site-footer__container {
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem 0;

    @screen lg {
        padding: 2rem 0;
    }
}

.c-site-footer__grid {
    display: flex;
    flex-direction: column;
    align-items: center;

    @screen md {
        flex-direction: row;
        align-items: unset;
    }
}

.c-site-footer__column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 1rem;
    text-align: center;

    @screen md {
        align-items: unset;
        text-align: unset;
        width: 33.33333333%;
    }
}

.c-site-footer__logo {
    display: block;
    margin-right: 0;

    @screen sm {
        margin-right: 1rem;
    }
}

.c-site-footer__contact {
    margin-top: 1rem;

    .c-site-footer__link + .c-site-footer__link {
        margin-top: .5rem;
    }
}

.c-site-footer__communication {
    display: flex;
    flex-direction: column;
    margin-top: 1rem;

    .c-site-footer__link + .c-site-footer__link {
        margin-top: .5rem;
    }
}

.c-site-footer__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2rem -.5rem 0;
    max-width: 100%;
    width: 400px;

    .c-button__wrapper {
        width: 50%;
        padding: 0 .5rem;
        margin: 0 0 1rem;
    }

    .c-button {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.25em;
        font-weight: normal;
        padding: .5rem 1rem;
        width: 100%;
        height: 100%;
        border-color: white;
        line-break: auto;
    }

    @screen sm {
        justify-content: unset;
    }
}

.c-site-footer__social-wrapper {
    margin-top: 1rem;
}

.c-site-footer__social {
    display: flex;
    padding: 0;
}

.c-site-footer__social-element {
    margin: 0 .75rem;

    &:first-child {
        margin-left: 0;
    }

    &:last-child {
        margin-right: 0;
    }
}

.c-site-footer__social-icon {
    height: 2rem;
    width: 2rem;
    transition: $transition-time ease-in-out;
    fill: white;
}

.c-site-footer__heading {
    font-size: 1.375rem;
    color: white;
    margin-top: 2rem;
    font-weight: bold;
}

.c-site-footer__link {
    color: white;
    text-decoration: none;
    transition: $transition-time ease-in-out;

    &:hover,
    &:focus {
        color: theme('colors.primary.800');

        .c-site-footer__social-icon {
            transform: scale(1.2);
        }
    }
}

.c-site-footer__bottom-wrapper {
    margin-top: 1rem;
    border-top: 1px solid theme('colors.primary.400');

    @screen md {
        margin: 0;
    }
}


.c-site-footer__bottom {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    max-width: 72rem;
    margin: 0 auto;
    padding: 1rem;

    @screen md {
        flex-direction: row;
    }
}

.c-site-footer__partner-logos {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    max-width: 72rem;
    margin-top: 2rem;
    margin: 2rem auto 0;
    padding: 0 1rem;

    a,
    img {
        padding-top: .5rem;
        display: block;
    }

    @screen xs {
        flex-direction: row;

        a,
        img {
            padding: .25rem;
        }
    }

    @screen md {
        margin-top: 0;
    }
}

// Divided Footer Overrides
.c-site-footer--divided  {
    .c-site-footer__grid-wrapper {
        display: flex;
        margin-top: 2rem;
        flex-direction: column;

        @screen md {
            flex-direction: row;
        }
    }

    .c-site-footer__contact-wrapper {
        display: flex;
        flex-direction: column;
        margin-top: 2rem;

        @screen md {
            flex-direction: row;
            margin-top: 3rem;
        }
    }

    .c-site-footer__contact {
        margin-top: 0;
        text-align: left;
    }

    .c-site-footer__contact + .c-site-footer__contact {
        margin-top: 1rem;

        @screen md {
            margin-top: 0;
            margin-left: 4rem;
        }
    }

    .c-site-footer__grid {
        flex-direction: column;
        width: 100%;
        padding: 2rem 0;

        @screen md {
            width: 50%;
        }
    }

    .c-site-footer__grid--right {
        margin-top: 1rem;

        @screen md {
            border-left: 1px solid rgba(255,255,255,.2);
            margin-top: 0;
            padding-left: 2rem;
        }
    }

    .c-site-footer__column {
        width: 100%;
        align-items: start;
    }

    .c-site-footer__button-column {
        display: flex;
        align-items: start;

        @screen md {
            // stylelint-disable-next-line
            align-items: center !important;
        }
    }

    .c-site-footer__buttons {
        justify-content: left;

        @screen sm {
            justify-content: left;
        }

        @screen md {
            justify-content: center;
            width: 100%;
        }
    }

    .c-button__wrapper {
        @screen md {
            width: auto;
            min-width: 10rem;
        }
    }

    .c-site-footer__heading {
        text-align: left;
        margin-top: 3rem;
    }

    .c-site-footer__social-wrapper {
        margin-top: 0;

        @screen md {
            margin-top: 1rem;
        }
    }
}
