/* Custom CSS para o site S1 Academia */

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
}

h1, h2, h3 {
    font-weight: 900;
}

/* Animações */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Transições suaves */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Botão Flutuante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
}

.whatsapp-float a {
    position: relative;
    z-index: 2;
}

/* Efeito de pulso para o indicador de notificação */
@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.whatsapp-float .notification-pulse {
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Efeitos do botão flutuante WhatsApp */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

@keyframes shake {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

.whatsapp-float-btn {
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7);
    position: relative;
}

.whatsapp-float-btn::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 3px solid #25D366;
    opacity: 0;
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.whatsapp-float-btn::after {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 2px solid #25D366;
    opacity: 0;
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite 0.5s;
}

.whatsapp-float-btn:hover {
    animation: float 1s ease-in-out infinite, shake 0.5s ease-in-out;
    box-shadow: 0 15px 50px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1);
    transform: scale(1.1);
}

.whatsapp-float-btn:hover::before,
.whatsapp-float-btn:hover::after {
    animation-duration: 1s;
}

/* Melhorias de Responsividade Mobile-First */

/* Ajustes gerais para mobile */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Títulos menores em mobile */
    h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }
    
    /* Botões com tamanho mínimo para touch (44x44px) */
    button, a[role="button"] {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem 1rem;
    }
    
    /* Espaçamentos reduzidos */
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* Ajustes para tablets */
@media (min-width: 641px) and (max-width: 1024px) {
    section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* Imagens responsivas */
img {
    max-width: 100%;
    height: auto;
}

/* Grids responsivos */
@media (max-width: 640px) {
    .grid {
        grid-template-columns: 1fr !important;
    }
}

/* Textos ajustados para mobile */
@media (max-width: 640px) {
    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .text-xl {
        font-size: 1rem !important;
    }
    
    .text-2xl {
        font-size: 1.25rem !important;
    }
    
    .text-3xl {
        font-size: 1.5rem !important;
    }
    
    .text-4xl {
        font-size: 2rem !important;
    }
}

/* Hero Section mobile */
@media (max-width: 640px) {
    .hero-section {
        min-height: 70vh !important;
    }
}

/* Cards e containers */
@media (max-width: 640px) {
    .rounded-xl, .rounded-2xl {
        border-radius: 0.75rem;
    }
    
    .p-8, .p-12 {
        padding: 1.5rem !important;
    }
}

/* Responsividade do botão flutuante */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
    }
    
    .whatsapp-float-btn {
        padding: 0.75rem !important;
    }
    
    .whatsapp-float-btn span {
        display: none;
    }
}

/* Melhorias de acessibilidade touch */
@media (hover: none) and (pointer: coarse) {
    button:hover, a:hover {
        opacity: 0.9;
    }
}

/* Prevenir zoom em inputs no iOS */
@media screen and (max-width: 640px) {
    input, select, textarea {
        font-size: 16px;
    }
}

/* Hero Slideshow - Transição de fade */
.hero-slide {
    transition: opacity 1s ease-in-out;
    will-change: opacity;
}

.hero-slide.opacity-0 {
    opacity: 0 !important;
    pointer-events: none;
}

.hero-slide.opacity-100 {
    opacity: 1 !important;
    pointer-events: auto;
}
