/* Custom styles for Department of Behav Health */

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

/* Scroll reveal base - progressive enhancement, visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar transition */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(30, 58, 95, 0.08);
}

#navbar.scrolled .nav-link {
    color: #1e3a5f;
}

#navbar.scrolled .text-navy-500 {
    color: #1e3a5f;
}

/* Service card hover */
.service-card {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8faed9;
}

/* Selection color */
::selection {
    background: #d4a574;
    color: #1e3a5f;
}

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

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

/* Hero gradient animation */
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

#hero .absolute .blur-3xl:nth-child(1) {
    animation: float 8s ease-in-out infinite;
}

#hero .absolute .blur-3xl:nth-child(2) {
    animation: float 10s ease-in-out infinite reverse;
}

#hero .absolute .blur-2xl {
    animation: float 6s ease-in-out infinite;
}

/* Button ripple */
button, a {
    position: relative;
    overflow: hidden;
}
