/* Custom styles for Ronald G McCoy OD website */

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

/* Reveal animation - progressive enhancement via JS */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation text colors - light on transparent, dark on solid */
.nav-text-color {
    color: #1e293b;
}

.nav-text-color-subtle {
    color: #64748b;
}

/* Hero nav - light text on dark background */
.nav-scrolled .nav-text-color {
    color: #f8fafc;
}

.nav-scrolled .nav-text-color-subtle {
    color: #cbd5e1;
}

.nav-scrolled .nav-link {
    color: #e2e8f0;
}

.nav-scrolled .nav-link:hover {
    color: #5eead4;
}

.nav-scrolled #mobile-menu-btn {
    color: #f8fafc;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .animate-bounce {
        animation: none;
    }
    
    .animate-pulse {
        animation: none;
    }
}

/* Mobile menu styles */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 400px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print styles */
@media print {
    nav, .animate-bounce, #mobile-menu-btn {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-gradient-to-br {
        background: #1e293b !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
