/*================================================
    Footer
================================================*/

footer {
    position: relative;
    box-sizing: border-box;
    background-color: var(--lightgrey);
    color: var(--body);
}

@media only screen and (min-width: 981px) {
    footer {
        margin-top: 200px;
        padding: 200px 10% 3em 10%;
    }
}

@media only screen and (max-width: 980px) {
    footer {
        overflow: hidden;
        padding-bottom: 4rem;
    }

    footer>div.bd_grid {
        padding: 50px 10% 3em 10%;
    }
}

footer .bd_grid>* {
    grid-column: span 12;
}

@media (min-width: 641px) and (max-width: 980px) {
    footer .bd_grid .menu-container {
        grid-column: span 6;
    }
}

@media (min-width: 981px) {
    footer .bd_grid .menu-container {
        grid-column: span 3;
    }
}

footer a {
    color: var(--black);
    text-decoration: none;
    filter: brightness(.9);
    transition: color 0.2s ease,
        filter 0.2s ease,
        background-color 0.2s ease,
        outline-color 0.2s ease,
        border-color 0.2s ease,
        text-decoration 0.2s ease;
    border-radius: 3px;
}

footer a:hover {
    color: var(--primary);
    text-decoration: underline;
    filter: brightness(1);
}

footer a:focus-visible {
    color: var(--primary);
    text-decoration: underline;
    filter: brightness(1);
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    background-color: rgba(var(--primary-rgb, 0, 123, 255), 0.05);
}

footer .logo {
    max-width: 220px;
    width: 100%;
    margin-bottom: 2em;
}

footer address {
    margin: 2em 0;
}

#newsletter {
    box-sizing: border-box;
    background-color: var(--primary);
    color: var(--black, #000);
}

@media only screen and (min-width: 981px) {
    #newsletter {
        position: absolute;
        top: 0;
        left: 0;
        transform: translateY(-50%);
        box-shadow: 0 20px 40px 0 rgba(0, 0, 0, 0.07);
        width: 60%;
        max-width: 680px;
        padding: 60px 0 60px 10%;
        z-index: 999;
    }

    .newsletter::after {
        content: " ";
        position: absolute;
        box-shadow: 40px 0 40px -20px rgba(0, 0, 0, 0.07);
        width: 100%;
        height: 100%;
        top: 0;
        left: 35%;
        z-index: -1;
        background: var(--primary, #fff);
        transform-origin: bottom left;
        -ms-transform: skew(30deg, 0deg);
        -webkit-transform: skew(30deg, 0deg);
        transform: skew(30deg, 0deg);
    }
}

#newsletter strong {
    font-size: 2rem;
}

.cr_form-input {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
    font-family: var(--primary_font);
    max-width: 400px;
    display: block;
    margin: 1em 0;
}

@media only screen and (max-width: 980px) {
    #newsletter {
        width: 100%;
        max-width: 100%;
        padding: 10%;
    }

    footer .bd_grid .menu-container {
        margin-bottom: 2.5rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

footer .menu-container.col-3 strong {
    text-transform: uppercase;
    font-size: 1.2em;
}

footer .menu-container.col-3 ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

#menu-socialmedia {
    text-align: left;
    list-style: none;
    padding-left: 0;
}

#menu-socialmedia li {
    display: inline-block;
    margin-right: .4em;
}

#menu-socialmedia li:last-of-type {
    margin-right: 0;
}

#menu-socialmedia img {
    width: 30px;
    height: auto;
}

@media only screen and (max-width: 479px) {

    footer .et_pb_section .et_pb_row:last-of-type .et_pb_text_inner,
    #menu-socialmedia {
        text-align: center;
    }
}

#menu-socialmedia .icon {
    padding-left: 0;
}

#menu-socialmedia .icon a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    text-align: center;
    border: 1px solid var(--body);
    text-decoration: none;
}

#menu-socialmedia .icon a:hover,
#menu-socialmedia .icon a:focus-visible {
    border-color: var(--primary);
    text-decoration: none;
    background-color: transparent;
}

#menu-socialmedia a::before {
    content: "";
    display: block;
    fill: var(--body);
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


@media (max-width: 640px) {
    footer .bd_grid .menu-container {
        padding-left: 0;
        padding-right: 0;
    }


#copyright {
    text-align: center;
}

.legal .menu {
    list-style: none;
    margin: 1rem auto 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.legal .menu li {
    margin: 0;
}

.legal .menu a {
    font-size: 1rem;
    display: inline-block;
}