/* Custom Styles for Ramer Family Health Center */

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #FDF2F5;
}
::-webkit-scrollbar-thumb {
    background: #800020;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #580017;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

/* Scroll Reveal Logic */
.scroll-trigger {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Initial state handled by JS for progressive enhancement, 
   but defaults here ensure visibility if JS fails */
.scroll-trigger:not(.is-visible) {
    opacity: 1; /* Ensure visible by default */
    transform: translateY(0);
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

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

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .animate-fade-in-up {
        animation: none;
    }
    .scroll-trigger {
        transition: none;
    }
}
