/* Custom styles for Fyzical Therapy & Balance Center */

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: rgba(13, 148, 136, 0.15);
    color: #0f766e;
}

/* Service card hover effect */
.service-card {
    transition: border-color 0.5s ease, background-color 0.5s ease;
}

.service-card:hover {
    background-color: #f8fffe;
}

/* Navbar scroll state */
nav.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #f1f5f9;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

/* Mobile menu transitions */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.4s ease;
}

img[data-src] {
    opacity: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* Subtle line animations */
@keyframes line-expand {
    from { width: 0; }
    to { width: 3rem; }
}

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

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
