/* Custom styles for KingEra Auto Repair */

:root {
    --color-charcoal-900: #0f1115;
    --color-charcoal-800: #1a1d23;
    --color-charcoal-700: #252830;
    --color-charcoal-600: #333740;
    --color-coral-500: #FF6B4A;
    --color-coral-600: #E85A3A;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Scroll reveal animations — progressive enhancement only */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

::-webkit-scrollbar-track {
    background: var(--color-charcoal-900);
}

::-webkit-scrollbar-thumb {
    background: var(--color-charcoal-600);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-coral-500);
}

/* Select styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

/* Selection color */
::selection {
    background-color: var(--color-coral-500);
    color: #fff;
}

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid var(--color-coral-500);
    outline-offset: 2px;
}

/* Navbar scroll state */
nav.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Hero decorative pattern */
.hero-pattern {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 74, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 74, 0.05) 0%, transparent 40%);
}
