/* Custom styles for Glen Rose Hose & Supply */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5f5;
}
::-webkit-scrollbar-thumb {
    background: #d4d4d4;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a3a3a3;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 24px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(12px);
}

.navbar-scrolled .font-display,
.navbar-scrolled .text-charcoal-900 {
    color: #1a1a1a !important;
}

.navbar-scrolled .text-neutral-500,
.navbar-scrolled .text-charcoal-500 {
    color: #525252 !important;
}

/* Selection color */
::selection {
    background: #ff6b35;
    color: #ffffff;
}

/* Focus visible styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #ff6b35;
    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;
    }
}

/* Fade-in animations for scroll reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Ensure all text is readable on any background */
/* Hero: dark bg (charcoal-900) + light text (white/neutral-300) — already set */
/* White sections: dark text (charcoal-800/900) — already set */
/* Dark sections: light text (white/neutral-300/400) — already set */
