/* Custom styles for J.C.'s Tax Service */

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

/* Navbar transition */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 20px rgba(8, 15, 24, 0.08);
    backdrop-filter: blur(10px);
}

/* Hero badge animation */
.hero-badge {
    animation: fadeInUp 0.8s ease forwards;
}

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

/* Only apply hidden state when JS is enabled and reduced motion is off */
@media (prefers-reduced-motion: no-preference) {
    .js-enabled .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .js-enabled .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 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;
    padding-bottom: 0;
}

/* Card hover effects */
.group:hover .group-hover\\:bg-mint-200 {
    transition: background-color 0.5s ease;
}

/* Selection color */
::selection {
    background-color: rgba(34, 197, 94, 0.2);
    color: #0e1a28;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f4f8;
}
::-webkit-scrollbar-thumb {
    background: #a8b8cc;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7c94b2;
}
