/* Custom styles for Rob's Stump Grinding */

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

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

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

::-webkit-scrollbar-thumb {
    background: #c4a496;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #966656;
}

/* Selection color */
::selection {
    background: #c4a496;
    color: #3d231c;
}

/* Animation for scroll reveals */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure all text has proper contrast */
.text-sand-950,
.text-sand-900,
.text-sand-800 {
    color: #3a261a;
}

.text-sand-700,
.text-sand-600 {
    color: #6b4932;
}

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

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