/* Footer */

.footer {
    background-color: var(--atoti-footer-bg);
    padding-top: 23px;
    padding-bottom: 27px;
}

.footer .top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 17px;
}

.logo-footer {
    padding-top: 9px;
}

.logo-footer path {
    fill: var(--atoti-menu-text-color);
}

.logo-footer mask path {
    fill: #fff;
}

.footer .top .content-text {
    max-width: 334px;
    display: flex;
    justify-content: space-between;
}

.footer .top .content-text p {
    width: calc(100% - 85px);
    padding-top: 4px;
    font-weight: 500;
    font-size: 14px;
    line-height: 22px;
    color: var(--atoti-btn-hover-color);
}

.footer .divider {
    width: 100%;
    background: var(--atoti-footer-border-3);
}

.footer .center-section {
    margin: 30px 0;
    display: flex;
    justify-content: space-between;
}

.footer .center-section .left,
.footer .center-section .right {
    display: flex;
}

.footer .center-section .right {
    flex-direction: column;
}

.footer .center-section .left {
    gap: 60px;
}

.footer .center-section .left .menu-box h5 {
    margin-bottom: 14px;
    font-size: 16px;
    font-weight: 500;
    color: var(--atoti-menu-text-color);
}

.footer .center-section .left .menu-box .menu {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer .center-section .left .menu-box .menu li a {
    font-weight: 500;
    font-size: 14px;
    line-height: 24px;
    color: var(--atoti-btn-hover-color);
}

.footer .center-section .right .links_title {
    font-weight: 500;
    font-size: 16px;
    color: var(--atoti-menu-text-color);
}

.footer .center-section .right .links,
.footer .center-section .right .links .icons {
    display: flex;
    align-items: center;
}
.footer .back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    margin-top: 9px;
    background: var(--atoti-btn-bg);
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 50%;
    transition: all 0.3s ease-in-out;
}

.footer .back-to-top:hover {
    background-color: var(--white);
    border-color: var(--atoti-menu-text-color);
}

.footer .back-to-top svg path {
    stroke: var(--atoti-btn-color);
}

.footer .back-to-top:hover svg path {
    stroke: var(--atoti-menu-text-color);
}

.footer .menu-item::before {
    display: none;
}

.footer .menu-item:hover {
    text-decoration: underline;
}

.footer .center-section .right .links .icons {
    gap: 9px;
}

.footer .center-section .right .links .icons a {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--atoti-footer-border);
}

.footer .center-section .right .links .icons a:hover {
    background: var(--atoti-btn-bg);
}

.footer .center-section .right .links .icons svg {
    max-width: 18px;
}

.footer .center-section .right .links .icons path {
    fill: var(--atoti-menu-text-color);
}

.footer .center-section .right .links .icons a:hover svg path {
    fill: var(--atoti-btn-color);
}

.footer .center-section .right .links {
    gap: 25px;
    padding-bottom: 93px;
}

.footer .center-section .right .cerf {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto 0 0 auto;
    gap: 10px;
}

.footer .center-section .right .cerf .icon {
    max-width: 50px;
    max-height: 50px;
}

body.dark .footer .center-section .right .cerf .light,
body.light .footer .center-section .right .cerf .dark {
    display: none;
}

.footer .bottom {
    margin-top: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}
.footer .bottom .copywrite {
    font-size: 12px;
    text-align: left;
    color: var(--atoti-btn-hover-color);
}
.footer .bottom .privacy {
    text-align: center;
}

.footer .bottom .privacy a {
    color: var(--atoti-btn-hover-color);
    font-size: 12px;
}
.footer .bottom .privacy a:hover {
    text-decoration: underline;
}
.footer .bottom .credits {
    text-align: right;
}

.footer .bottom .credits a {
    font-size: 12px;
    color: var(--atoti-btn-hover-color);
}

.footer .bottom .credits a:hover {
    text-decoration: underline;
}

@media (min-width: 992px) {
    .footer .center-section .left {
        gap: 34px;
    }

    .menu-box:nth-child(1) {
        width: 23%;
    }

    .menu-box:nth-child(2) {
        width: 21%;
    }

    .menu-box:nth-child(3) {
        width: 17%;
    }

    .menu-box:nth-child(4) {
        width: 10%;
    }

    .menu-box:nth-child(5) {
        width: 16.5%;
    }

    .footer .center-section .right .links {
        flex-direction: column;
        gap: 17px;
    }

    .footer .center-section .right .links_title {
        margin-right: auto;
    }

}

@media (min-width: 1441px) {
    .footer .center-section .left {
        width: 83%;
    }
}

@media (max-width: 1140px) {
    .footer .top {
        flex-direction: column;
    }

    .footer .center-section {
        flex-direction: column;
    }

    .footer .center-section .right {
        flex-direction: row;
    }

    .footer .center-section .right .back-to-top {
        display: none;
    }

    .footer .bottom {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .footer .bottom .copywrite,
    .footer .bottom .privacy,
    .footer .bottom .credits {
        text-align: center;
    }

    .footer .top .content-text p {
        text-align: center;
    }

    .footer .center-section .left {
        justify-content: space-between;
        gap: 0px;
    }
}

@media (max-width: 991px) {
    .footer {
        padding: 31px 0 27px;
    }

    .footer .top {
        margin-bottom: 20px;
    }

    .logo-footer {
        margin-bottom: 11px;
    }


    .footer .center-section .right .links {
        padding: 0;
    }

    .footer .center-section .right .cerf {
        margin: 17px 0 0 auto;
    }

    .footer .bottom {
        gap: 0;
        margin-top: 14px;
    }

    .footer .bottom .copywrite,
    .footer .bottom .privacy,
    .footer .bottom .credits {
        line-height: normal;
    }

    .footer .center-section {
        margin: 22px 0
    }

    .footer .center-section .left .menu-box h5 {
        position: relative;
        display: inline-block;
        margin-bottom: 12px;
        cursor: pointer;
    }

    .footer .center-section .left .menu-box h5:after {
        position: relative;
        content: url('../img/footer-drop.svg');
        right: 0;
        top: -2px;
        margin-left: 17px;
        transform: translateY(-50%);
        transition: 0.3s all;
    }

    .dark .footer .center-section .left .menu-box h5:after {
        filter: brightness(0) invert(1);
    }

    .footer .center-section .left .menu-box.active h5::after {
        transform: translateY(-50%) rotate(180deg);
    }

    .footer .center-section .left {
        justify-content: space-evenly;
    }
    .footer .center-section .left .menu-box {
        display: grid;
        grid-template-rows: 0fr;
        overflow: hidden;
        transition: all 0.3s ease-in-out;
    }

    .footer .center-section .left .menu-box > div {
        display: none;
        padding-bottom: 15px;
    }

    .footer .center-section .left .menu-box ul {
        grid-template-rows: 1fr;
        transition: all 0.3s ease-in-out;
    }

    .footer .center-section .left {
        flex-direction: column;
        gap: 20px;
    }

    .footer .center-section .left .menu-box {
        border-bottom: 1px solid #d4d4d4;
        padding-bottom: 5px;
    }

    .footer .center-section .right .links {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .footer .top {
        align-items: flex-start;
    }

    .footer .top .content-text {
        max-width: 100%;
        width: 100%;
    }

    .footer .top .content-text p {
        max-width: 330px;
        text-align: left;
    }

    .footer .bottom {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .footer .bottom .copywrite {
        grid-column: 1/3;
    }

    footer .bottom .credits {
        text-align: left !important;
        padding-left: 10px;
    }

    .footer .bottom .privacy {
        text-align: right;
        padding-right: 10px;
        position: relative;
    }

    .footer .bottom .privacy::after {
        position: absolute;
        content: '';
        width: 2px;
        height: 15px;
        background: #000;
        right: -1.5px;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .dark .footer .bottom .privacy::after {
        background: #fff;
    }

    .footer .center-section .right {
        margin-top: 18px;
    }
}

@media (max-width: 768px) {

    .footer
    .center-section
    .left
    .menu-box
    .menu-footer-services-container.active
    ul,
    .footer
    .center-section
    .left
    .menu-box
    .menu-footer-learn-more-container.active
    ul,
    .footer
    .center-section
    .left
    .menu-box
    .menu-footer-products-container.active
    ul {
        height: auto;
    }
}

@media (max-width: 360px) {
    .footer .center-section .right {
        flex-direction: column;
    }
    
    .footer .center-section .right .cerf {
        margin: 17px auto 0 0;
    }
}