/* Custom styles for Miracle Home Care */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5f0;
}
::-webkit-scrollbar-thumb {
    background: #c4c4c4;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9a9a9a;
}

/* Selection color */
::selection {
    background: #e8735a;
    color: white;
}

/* Mobile menu animations */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Reduced motion support */
@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, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #e8735a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Service card hover effects */
.group:hover .group-hover\\:bg-coral-500 {
    background-color: #e8735a;
}

/* Form focus states */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(232, 115, 90, 0.15);
}

/* Image lazy load fade */
img[loading="lazy"] {
    opacity: 1;
    transition: opacity 0.3s ease;
}
