/* Custom styles for TherapySpa */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Float animation for hero cards */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 4.5s ease-in-out infinite;
    animation-delay: 1s;
}

/* Scroll reveal — progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal[data-revealed="false"] {
    opacity: 0;
    transform: translateY(24px);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .animate-float,
    .animate-float-delayed {
        animation: none;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F9F5FC;
}

::-webkit-scrollbar-thumb {
    background: #D4B3E0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #BA88C8;
}

/* Selection color */
::selection {
    background: #E8D5EE;
    color: #2A1A3F;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #6B3FA0;
    outline-offset: 2px;
}
