/* Custom styles for U.S. Renal Care */

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

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

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

::-webkit-scrollbar-thumb {
    background: #2d552d;
    border-radius: 5px;
}

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

/* Animation for scroll reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure content is visible by default for accessibility */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Hover effects for cards */
.group:hover .group-hover\:bg-forest-600 {
    background-color: #2d552d;
}

.group:hover .group-hover\:text-green-300 {
    color: #86efac;
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #2d552d;
    outline-offset: 2px;
}

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

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

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

/* Hero section gradient overlay fix */
.bg-gradient-to-br {
    background: linear-gradient(135deg, #0a140a 0%, #162a16 50%, #1c351c 100%);
}

/* Ensure proper spacing for fixed header */
section {
    scroll-margin-top: 80px;
}
