/* Custom styles for JP Rippinger Landscaping */

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

/* Scroll animation base */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grid items */
.scroll-animate:nth-child(1) { transition-delay: 0.05s; }
.scroll-animate:nth-child(2) { transition-delay: 0.1s; }
.scroll-animate:nth-child(3) { transition-delay: 0.15s; }
.scroll-animate:nth-child(4) { transition-delay: 0.2s; }
.scroll-animate:nth-child(5) { transition-delay: 0.25s; }
.scroll-animate:nth-child(6) { transition-delay: 0.3s; }

/* Header scroll state */
#site-header.scrolled {
    background: rgba(250, 250, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom selection color */
::selection {
    background: #059669;
    color: white;
}

/* Subtle gradient for hero */
@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .scroll-animate { opacity: 1; transform: none; transition: none; }
    .animate-bounce { animation: none; }
    img { transition: none; }
}
