/* Custom styles for Optimal Spine Chiropractic */

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

body {
    font-family: 'Inter', sans-serif;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

/* Navigation scroll effect */
.nav-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

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

::-webkit-scrollbar-thumb {
    background: #7c3aed;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6d28d9;
}

/* Hero animations - only for below-fold content */
@media (prefers-reduced-motion: no-preference) {
    .fade-in-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .fade-in-up.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service card hover effects */
.group:hover .group-hover\:rotate-6 {
    transform: rotate(6deg);
}

/* Button focus styles */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Mobile menu transition */
#mobileMenu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobileMenu.open {
    max-height: 400px;
    opacity: 1;
}

/* Back to top button */
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Print styles */
@media print {
    .nav-fixed,
    .back-to-top {
        display: none;
    }
}
