/* footer */

.footer_bg {
    position: absolute;
    left: 0;
    right: 0;
    height: 650px;
    bottom: 0;
    z-index: -1;
    background-image: url('../img/bg_footer.webp');
    background-size: cover;
    background-position: center;
}

.footer_bg img {
    margin-bottom: 0;
}

.scroll_to_top,
.scroll_to_top:hover,
.toggle_tawk_to,
.toggle_tawk_to:hover {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    display: block;
    text-decoration: none;
}

.toggle_tawk_to,
.toggle_tawk_to:hover {
    display: block;
}

.toggle_tawk_to .btn-circle {
    height: 40px;
    width: 40px;
    background: var(--green);
    border-color: var(--green);
}

/* Back-to-top specialization */
.scroll_to_top.btn-circle-small {
    background: var(--green);
    outline: 3px solid transparent;
    outline-offset: 0px;
    padding: 5px;
    border: none;
    transition: transform 300ms cubic-bezier(0.165, 0.84, 0.44, 1), background 300ms cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: center;
}

.scroll_to_top.btn-circle-small:hover {
    outline-color: var(--light-green);
    transform: scale(1.05);
}


@media (max-width: 767px) {

    .scroll_to_top,
    .scroll_to_top:hover,
    .toggle_tawk_to,
    .toggle_tawk_to:hover {
        right: 15px !important;
    }
}

.footer_bg::before {
    content: " ";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgb(255, 255, 255);
    background: -webkit-gradient(linear,
            left top,
            left bottom,
            from(rgba(255, 255, 255, 1)),
            to(rgba(255, 255, 255, 0.9)));
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 1),
            rgba(255, 255, 255, 0.9) 100%);
}

footer {
    margin-top: 100px;
    margin-bottom: 15px;
    -ms-flex-item-align: end;
    align-self: flex-end;
    width: 100%;
}

footer .wrapper {
    padding-top: 50px;
    padding-bottom: 50px;
    border: 1px solid var(--light-grey);
    border-radius: var(--radius-medium);
    background: var(--white);
    box-shadow: 0 -1px 2px 0 rgba(58, 12, 57, 0.02) inset, 0 0 30px 0 rgba(76, 46, 75, 0.03), 0 8px 20px 0 rgba(104, 27, 102, 0.02), 0 15px 60px 0 rgba(76, 46, 75, 0.04);
}

footer .social_wrapper {
    border-top: 1px solid var(--light-grey);
}

footer ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    justify-content: center;
    gap: 30px;
    padding-left: 0;
    margin-bottom: 0;
    list-style-type: none;
    padding-top: 10px;
    padding-bottom: 10px;
    width: 100%;
    flex-wrap: wrap;
}

footer ul#menu-footer-links {
    padding-bottom: 30px;
}

footer p.small {
    margin-bottom: 0;
    padding-top: 30px;
    padding-bottom: 10px;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--viridian);
    font-size: 0.8rem;
    letter-spacing: 0.6px;
    font-weight: 400;
    text-align: center;
}

footer ul li a {
    color: var(--black);
    text-decoration: none;
    font-weight: 400;
}

footer ul li a svg path {
    transition: fill 250ms ease-in-out;
}

footer .social_wrapper a:hover svg {
    width: 30px;
    height: 30px;
    transition:
        filter 300ms ease-in-out;
    transform-origin: 50% 50%;
    filter: none;
}

footer .social_wrapper a svg path {
    transition: fill 300ms ease-in-out;
    fill: #5EBD91;
}

footer .social_wrapper a:hover svg {
    filter:
        drop-shadow(0px 4px 7px rgba(58, 12, 57, 0.26)) drop-shadow(0px 3px 1.5px rgba(37, 6, 37, 0.30)) drop-shadow(0px -2px 2.5px rgba(255, 255, 255, 0.50));
}

footer .social_wrapper a:hover path {
    fill: #21875E;
}

footer ul li:first-child {
    padding-left: 0px;
}


@media (max-width: 767px) {
    footer {
        margin-left: 15px;
        margin-right: 15px;
    }
}