/* Custom styles for Walk Through the Storm Counseling */

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

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

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

::-webkit-scrollbar-thumb {
    background: #93b896;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6a9a6e;
}

/* Animation utilities */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* For users who prefer reduced motion, ensure content is always visible */
@media (prefers-reduced-motion: reduce) {
    .reveal-hidden {
        opacity: 1;
        transform: none;
    }
}

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

/* Card hover effects */
.group:hover .group-hover\\:bg-forest-200 {
    background-color: #bcd3be;
}

/* Subtle pulse for CTA buttons */
@keyframes pulse-subtle {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(45, 90, 61, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(45, 90, 61, 0);
    }
}

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

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

/* Navbar shadow on scroll */
nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Image hover zoom effect */
img {
    transition: transform 0.3s ease;
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    border-color: #4a7d4f !important;
    box-shadow: 0 0 0 3px rgba(74, 125, 79, 0.1) !important;
}

/* Ensure proper spacing for anchor links */
section[id] {
    scroll-margin-top: 80px;
}
