/* imported fonts */
@font-face {
    font-family: Bryant;
    src: url("../fonts/Bryant/BryantWebRegular.woff");
}

@font-face{
    font-family: Tungsten;
    src: url("../fonts/tungsten/Tungsten-Semibold.woff");
}

/* footer container styles */
section.aaa-footer,
footer.aaa-footer{
    background-color: #f3f4f4;
    margin: 1.25rem 0 0 0;
}

.aaa-footer__container{
    padding-top: 1.5rem;
}

/* primary links */
.aaa-footer__primary-link-container{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-gap: 2.5rem;
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 2.5rem;
}

.aaa-footer__primary-link-header{
    font-size: 2rem;
    font-family: Tungsten;
    white-space: nowrap;
    margin: 0;
    text-transform: uppercase;
}


.section .aaa-footer__container .aaa-footer__link-primary,
.section .aaa-footer__container .aaa-footer__link-primary:active,
.section .aaa-footer__container .aaa-footer__link-primary:hover{
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1.125rem;
    font-family: Bryant;
    color: #0e0e0e;
    cursor: pointer;
    letter-spacing: normal;
    line-height: 1.2;
}

/* mobile title container hidden */
.aaa-footer__primary-link-container-mobile{
    display: none;
    visibility: hidden;
}

/* secondary links  */
.aaa-footer__secondary-link-container{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-gap: 2.5rem;
    margin-bottom: 2rem;
}

.aaa-footer__secondary-link-wrapper{
    display: flex;
    flex-direction: column;
}

.aaa-footer__secondary-link-header{
    font-size: 1.375rem;
    font-family: Tungsten;
    color: #222;
    line-height: normal;
    font-style: normal;
    margin: 0 2.5rem 1rem 0;
}

.aaa-footer__link,
.aaa-footer__link:active,
.aaa-footer__link:hover{
    font-size: 1.125rem;
    font-family: Bryant;
    color: #0e0e0e;
    cursor: pointer;
    letter-spacing: normal;
    line-height: 1.2;
    margin: 0 2.5rem 1rem 0;
}

.aaa-footer__non-member-social-container{
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 2.5rem;
}

.aaa-footer__non-member-wrapper{
    display: inline-flex;
    flex-direction: row;
    align-items: center;
}

.aaa-footer__non-member-text{
    font-size: 1.125rem;
    font-family: "Tungsten";
    margin: 0;
    color: #222;
}

.section .aaa-footer__container .aaa-footer__non-member-join-button{
    font-family: Bryant;
    color: #fff;
    border: none;
    border-radius: .375rem;
    background-color: #222;
    font-size: .875rem;
    margin-left: 1rem;
    padding: .75rem 1.5rem;
}
.aaa-footer__non-member-join-button:hover{ color: #fff !important; }

.aaa-footer__social-download-wrapper{
    display: inline-flex;
    align-items: center;
}

.aaa-footer__social-wrapper{}
.aaa-footer__social-link{
    margin-right: .75rem;
}

.aaa-footer__download-app-wrapper{
    display: inline-flex;
}

.aaa-footer__download-apple-wrapper{
    margin-right: .75rem;
}

.aaa-footer__download-apple{
    /* height: 2rem;
    width: 6rem; */
    max-width: 100%;
}

.aaa-footer__download-google-wrapper{}
.aaa-footer__download-google{
    /* height: 2rem;
    width: 6rem; */
    max-width: 100%;
}

.aaa-footer__line-break{
    height: .063rem;
    width: 100%;
    background-color: #d0d1d1;
}

.aaa-footer__copyright-wrapper{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: end;
    margin-top: 1.5rem;
}

.aaa-footer__copyright-text{
    font-size: 0.875rem;
    font-family: Bryant;
    background-color: #f3f4f4;
    color: #222;
}


.aaa-footer__policy-terms-wrapper{
    display: inline-flex;
    flex-direction: row;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
    width: 100%;
}

.section .aaa-footer__policy-terms-link,
.section .aaa-footer__policy-terms-link:active,
.section .aaa-footer__policy-terms-link:hover{
    font-size: 0.875rem;
    font-family: "BryantWebMedium", Helvetica, Arial, sans-serif;
    color: #222;
    cursor: pointer;
    margin-right: 1rem;
}

.aaa-footer__policy-terms-link:last-of-type{
    margin-right: 0;
}

.aaa-footer__residential-info-wrapper{
    padding-bottom: 1.5rem;
}

.aaa-footer__residential-info-text{
    font-size: .875rem;
    font-family: Bryant;
    background-color: #f3f4f4;
    color: #222;
}

/* MEDIUM MOBILE STYLES */
@media screen and (max-width: 991px){
    /* hide desktop version */
    .aaa-footer__primary-link-container{
        display: none;
        visibility: hidden;
    }

    /* show mobile version */
    .aaa-footer__primary-link-container-mobile{
        display: flex;
        flex-direction: column;
        visibility: visible;
    }

    .aaa-footer__primary-link-header-mobile{
        font-size: 1.375rem;
        font-family: Tungsten;
        color: #222;
        line-height: normal;
        font-style: normal;
        margin: 0 0rem 1rem 0;
    }

    .aaa-footer__link-primary-mobile,
    .aaa-footer__link-primary-mobile:active,
    .aaa-footer__link-primary-mobile:hover{
        display: block;
        margin-top: 1rem;
        margin-bottom: 0;
        font-size: 1.125rem;
        font-family: Bryant;
        color: #0e0e0e;
        cursor: pointer;
        letter-spacing: normal;
        line-height: 1.2;
        margin: 0 0 1rem 0;
    }
    
    .aaa-footer__secondary-link-container{
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 2rem 0;
    }

    .aaa-footer__non-member-social-container{
        display: flex;
        flex-direction: column;
    }

    .aaa-footer__non-member-wrapper{
        align-self: flex-start;
        margin: 0 0 2rem 0;
    }

    .aaa-footer__non-member-text{ margin: 0 .5rem 0 0; }

    .aaa-footer__social-download-wrapper{
        display: flex;
        flex-direction: column;
    }

    .aaa-footer__social-wrapper{ margin: 0 0 1.5rem 0; }

    .aaa-footer__copyright-wrapper{
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: end;
        margin-bottom: 0.5rem;
    }
}

/* SMALL MOBILE STYLES */
@media screen and (max-width: 576px) {
    .aaa-footer__primary-link-container{
        display: none;
        visibility: hidden;
    }
    
    .aaa-footer__primary-link-container-mobile{
        display: block;
        visibility: visible;
        margin-bottom: 2rem;
    }

    .aaa-footer__primary-link-header-mobile{
        font-size: 1.375rem;
    }

    .aaa-footer__link-primary-mobile{
        margin-top: 1rem;
        display: block;
    }

    .aaa-footer__secondary-link-container{
       display: block;
       margin-left: 1rem;
    }

    .aaa-footer__secondary-link-wrapper{
        display: block;
        margin-bottom: 2rem;
    }

    .aaa-footer__secondary-link-header{
        margin-bottom: 0;
    }

    .aaa-footer__link{
        display: block;
        margin-top: 1rem;
        margin-bottom: 0;
    }

    .aaa-footer__non-member-wrapper{
        margin: 0 0 2rem 1.125rem;
    }
    .aaa-footer__line-break{
        margin-left: 1.5rem;
        margin-right: 1.5rem;
        width: auto;
    }

    .aaa-footer__copyright-policy-container{
        display: flex;
        flex-direction: column-reverse;
        margin-top: 1.5rem;
        margin-left: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .aaa-footer__copyright-wrapper{
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: start;
        margin: 0;
    }

    .aaa-footer__policy-terms-wrapper{
        display: block
    }

    .aaa-footer__policy-terms-link{
        display: block;
        font-family: "BryantWebMedium", "Helvetica Neue", Helvetica, Arial, sans-serif;
        margin-top: 1.5rem;
        color: #222;
    }

    .aaa-footer__policy-terms-link:first-of-type{
        margin-top: 0;
    }

    .aaa-footer__residential-info-wrapper{
        margin-left: 1.5rem;
        margin-right: 1.5rem;
    }
}
