/* Custom styles for Orion Mental Health Center */

/* Smooth scroll offset for fixed navbar */
section[id] {
    scroll-margin-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #FAFAF5;
}
::-webkit-scrollbar-thumb {
    background: #588042;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #416331;
}

/* Selection color */
::selection {
    background: #588042;
    color: #FAFAF5;
}

/* Fade-in animations for scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
    visibility: visible;
}
#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/* Navbar transitions */
#navbar {
    transition: background-color 0.4s ease, color 0.4s ease, backdrop-filter 0.4s ease;
}

/* Service card hover effect */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* Input focus animation */
input:focus, textarea:focus {
    border-bottom-color: #588042;
}

/* Subtle line decoration */
.hero-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}
