/* 
* BACK TO TOP CSS - Hauzi Landing Page
* Estilos específicos para o botão de voltar ao topo
*/

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--taupe);
    color: var(--branco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top svg {
    transition: transform 0.3s ease;
    fill: currentColor;
    stroke-width: 1;
    stroke: currentColor;
}

.back-to-top:hover {
    background-color: var(--branco);
    color: var(--preto);
    box-shadow: 0 6px 20px rgba(111, 104, 90, 0.4);
    transform: translateY(-5px);
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

.back-to-top:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.5s ease;
}

.back-to-top:hover:before {
    transform: scale(1.3);
    opacity: 0;
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* Efeito de onda circular quando clicado */
.back-to-top:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.back-to-top.clicked:after {
    animation: ripple 600ms ease-out;
}

/* Efeito de pulsação */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.1) translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
}

.back-to-top.pulse {
    animation: pulse 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Media Queries */
@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
    
    .back-to-top svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 576px) {
    .back-to-top {
        width: 40px;
        height: 40px;
    }
} 