/* Custom styles for Prosperity Tax Service */

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

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Scroll reveal animations - progressive enhancement */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Navbar transition states */
.nav-light .nav-text-color { color: #1B4332; }
.nav-light .nav-subtext-color { color: #4d8a56; }
.nav-light .nav-link-color { color: #2c5636; }

.nav-dark .nav-text-color { color: #ffffff; }
.nav-dark .nav-subtext-color { color: #95D1B8; }
.nav-dark .nav-link-color { color: #d4e8d8; }

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F5F5F0;
}
::-webkit-scrollbar-thumb {
    background: #b8d4bc;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8fbc93;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #1B4332;
    outline-offset: 2px;
}

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

/* Hero image subtle parallax on scroll */
@media (prefers-reduced-motion: no-preference) {
    .hero-image {
        will-change: transform;
    }
}
