/* Custom styles for Freedom Home Health and Adult Day Care */

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

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

::-webkit-scrollbar-track {
    background: #1f2024;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #7b7d87;
}

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

/* Service card hover - text color fix for dark hover state */
.service-card h3 {
    color: #1f2024;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: #ffffff;
}

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure form inputs have proper focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Reduce motion for accessibility */
@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;
    }
}

/* Print styles */
@media print {
    header,
    footer,
    #contact-form,
    .cta-button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* Ensure contrast on all text elements */
.text-coral-400 {
    color: #ffb08a;
}

.text-coral-600 {
    color: #f0400a;
}

.bg-coral-500 {
    background-color: #ff5c1e;
}

.bg-coral-600 {
    background-color: #f0400a;
}

/* Ensure all interactive elements are clearly visible */
a:hover,
button:hover {
    cursor: pointer;
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #ff5c1e;
    outline-offset: 2px;
}

/* Ensure image loading doesn't cause layout shift */
img {
    max-width: 100%;
    height: auto;
}
