/* Custom styles for Davis Landscaping */

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

/* Scroll reveal base — content is visible by default (progressive enhancement) */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply animation when JS is active and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.is-animated {
        opacity: 0;
        transform: translateY(24px);
    }
    .scroll-reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Selection color */
::selection {
    background: #9dc08a;
    color: #1f341a;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5ed;
}
::-webkit-scrollbar-thumb {
    background: #c6dbb8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9dc08a;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .scroll-reveal {
        transition: none;
    }
    img:hover, .group:hover div {
        transition: none;
    }
}
