/* Custom styles for Brooks Excavating */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f4f7f5;
}
::-webkit-scrollbar-thumb {
    background: #9bbfaa;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #76a188;
}

/* Selection color */
::selection {
    background: #c5d7cc;
    color: #1f352b;
}

/* Scroll reveal base state - ALWAYS VISIBLE by default */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply hidden state when JS is enabled and motion is preferred */
@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);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(31, 53, 43, 0.08);
}

/* Hover card lift effect */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Ensure all images have smooth rendering */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

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

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

/* Button hover ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Ensure contrast on all text */
.text-brand-600 {
    color: #3e6650;
}
.text-brand-500 {
    color: #558268;
}
.text-brand-700 {
    color: #315140;
}
.text-brand-800 {
    color: #274134;
}
.text-brand-900 {
    color: #1f352b;
}
