/* Custom styles for Champion Nursing Care */

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

/* Scroll reveal base - always visible by default (progressive enhancement) */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Scroll reveal animated state - only applied via JS */
.scroll-reveal.revealed {
    opacity: 0;
    transform: translateY(30px);
}

/* Navbar states */
.nav-link-text {
    color: rgba(255, 255, 255, 0.8);
}

.navbar-scrolled .nav-link-text {
    color: rgba(30, 41, 59, 0.7);
}

.navbar-scrolled .navbar-bg {
    opacity: 1;
}

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

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

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

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

/* Selection color */
::selection {
    background-color: #f3b8a0;
    color: #6a1f15;
}

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

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #d94a24;
    outline-offset: 2px;
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Service card hover image effect */
.group:hover .group-hover\:bg-terra-500 {
    background-color: #d94a24;
}

.group:hover .group-hover\:bg-sand-400 {
    background-color: #e4a555;
}

/* Subtle pattern overlay for sections */
.bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(217, 74, 36, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}
