/* Custom styles for Three Rivers Medical Center */

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

/* Ensure all text is readable */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 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,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
    border-radius: 4px;
}

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

/* Button hover effects */
a[href^="tel:"],
button[type="submit"] {
    position: relative;
    overflow: hidden;
}

/* Service card hover glow */
.group:hover .rounded-xl {
    box-shadow: 0 0 20px rgba(13, 148, 136, 0.3);
}

/* 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 {
    nav,
    #mobile-menu-btn,
    button[type="submit"] {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}

/* Scroll reveal animations - below the fold only */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
}

/* Stagger children */
.reveal[data-reveal] .stagger-1 { transition-delay: 0.1s; }
.reveal[data-reveal] .stagger-2 { transition-delay: 0.2s; }
.reveal[data-reveal] .stagger-3 { transition-delay: 0.3s; }
.reveal[data-reveal] .stagger-4 { transition-delay: 0.4s; }
.reveal[data-reveal] .stagger-5 { transition-delay: 0.5s; }
.reveal[data-reveal] .stagger-6 { transition-delay: 0.6s; }
