/* Floating contact menu, adapted from home.lanihome */
.fixed__contact {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 100000;
}

.fixed__contact .navigation {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fixed__contact .menuToggle {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .3);
    cursor: pointer;
}

.fixed__contact .menuToggle::before {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    background: url("../images/phone-ring.svg") center no-repeat;
    background-size: cover;
    animation: ring 1.5s linear infinite;
    transition: 1s;
}

.fixed__contact .menuToggle.active::before {
    transform: rotate(225deg);
}

.fixed__contact .menu {
    position: absolute;
    bottom: 8px;
    width: 30px;
    height: 30px;
    background-color: #fff;
    border-radius: 70px;
    z-index: -1;
    transition: transform .3s, width .3s, height .3s, bottom .3s;
    transition-delay: .6s, .3s, .3s, .3s;
    transition-timing-function: cubic-bezier(.075, .82, .165, 1);
}

.fixed__contact .menu::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    left: 88%;
    bottom: 38px;
    margin: auto;
    background-color: #fff;
    border-radius: 2px;
    opacity: 0;
    transform: rotate(45deg);
    transition: .3s;
}

.fixed__contact .menuToggle.active ~ .menu {
    width: 70px;
    height: 220px;
    bottom: -20px;
    z-index: 1;
    transform: translateX(-80px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, .3);
    transition-delay: 0s, .2s, .2s;
}

.fixed__contact .menuToggle.active ~ .menu::before {
    opacity: 1;
    transition-delay: .5s;
}

.fixed__contact .menu ul {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.fixed__contact .menu ul li {
    height: 30px;
    cursor: pointer;
    visibility: hidden;
    opacity: 0;
    transition: .25s;
    transition-delay: calc(0s + var(--i));
}

.fixed__contact .menuToggle.active ~ .menu ul li {
    opacity: 1;
    visibility: visible;
    transition-delay: calc(.3s + var(--i));
}

.fixed__contact .menu ul li a {
    display: block;
    height: 100%;
}

.fixed__contact .menu ul li a img {
    height: 30px;
    width: 30px;
    display: block;
}

.coccoc-alo-ph-circle {
    position: absolute;
    top: -25px;
    left: -25px;
    width: 100px;
    height: 100px;
    background-color: transparent;
    border: 2px solid #0068ff;
    border-radius: 100%;
    opacity: .1;
    animation: coccoc-alo-circle-anim 1.2s infinite ease-in-out;
    transition: all .5s;
}

.coccoc-alo-ph-circle-fill {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 80px;
    height: 80px;
    background-color: rgba(0, 104, 255, .6);
    border: 2px solid transparent;
    border-radius: 100%;
    opacity: .1;
    animation: coccoc-alo-circle-fill-anim 2.3s infinite ease-in-out;
    transition: all .5s;
}

@keyframes coccoc-alo-circle-anim {
    0% {
        transform: rotate(0) scale(.5) skew(1deg);
        opacity: .1;
    }

    30% {
        transform: rotate(0) scale(.7) skew(1deg);
        opacity: .5;
    }

    100% {
        transform: rotate(0) scale(1) skew(1deg);
        opacity: .1;
    }
}

@keyframes coccoc-alo-circle-fill-anim {
    0% {
        transform: rotate(0) scale(.7) skew(1deg);
        opacity: .2;
    }

    50% {
        transform: rotate(0) scale(1);
        opacity: .2;
    }

    100% {
        transform: rotate(0) scale(.7);
        opacity: .2;
    }
}

@keyframes ring {
    0%,
    100% {
        transform: rotate(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: rotate(-12deg);
    }

    20%,
    40%,
    60%,
    80% {
        transform: rotate(12deg);
    }
}

@media (max-width: 768px) {
    .fixed__contact {
        right: 15px;
        bottom: 80px;
    }

    .fixed__contact .menuToggle {
        width: 40px;
        height: 40px;
    }

    .fixed__contact .menuToggle.active ~ .menu {
        width: 210px;
        height: 50px;
        right: -10px;
        bottom: unset;
        transform: translate(0, -60px);
    }

    .fixed__contact .menu {
        right: 5px;
        bottom: unset;
        transition: transform .8s, width .3s, height .3s, right .3s;
    }

    .fixed__contact .menu::before {
        right: 22px;
        left: unset;
        bottom: -6px;
    }

    .fixed__contact .menu ul {
        flex-direction: row;
    }

    .coccoc-alo-ph-circle {
        top: -20px;
        left: -20px;
        width: 80px;
        height: 80px;
    }

    .coccoc-alo-ph-circle-fill {
        top: -10px;
        left: -10px;
        width: 60px;
        height: 60px;
    }
}
