/* Custom styles for Barb's Bookkeeping & Tax Service */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #5aad6a;
}

/* Selection color */
::selection {
    background: #b9dfc0;
    color: #1d4527;
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Staggered animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

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

/* Navbar scroll state */
nav.scrolled {
    box-shadow: 0 4px 20px rgba(45, 110, 60, 0.1);
}

/* Card hover lift effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(45, 110, 60, 0.15);
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #2d6e3c, #5aad6a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pulse animation for CTA */
@keyframes pulse-soft {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(45, 110, 60, 0.3);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(45, 110, 60, 0);
    }
}

.pulse-soft {
    animation: pulse-soft 2s infinite;
}

/* Mobile menu transition */
#mobileMenu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobileMenu.open {
    max-height: 300px;
    opacity: 1;
}

/* Image lazy load placeholder */
img {
    background: linear-gradient(90deg, #f0f7f0 25%, #dcefe2 50%, #f0f7f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

img[src] {
    animation: none;
    background: none;
}
