/* Custom styles for Shade Tree Garage */

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

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

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@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: #1A1A1A;
}
::-webkit-scrollbar-thumb {
    background: #E8603A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #FF8A52;
}

/* Selection color */
::selection {
    background: #E8603A;
    color: white;
}

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

/* Hero text gradient accent */
.hero-accent {
    background: linear-gradient(135deg, #E8603A 0%, #FF8A52 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover effect */
.vehicle-card:hover .vehicle-card-img {
    transform: scale(1.05);
}

/* Button focus rings */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #E8603A;
    outline-offset: 2px;
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(232, 96, 58, 0.15);
}

/* Subtle pattern overlay for hero */
.hero-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 40px 40px;
}

/* Coral gradient for CTA */
.coral-gradient {
    background: linear-gradient(135deg, #D14A28 0%, #E8603A 50%, #FF8A52 100%);
}

/* Floating animation for accent card */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.floating-card {
    animation: float 4s ease-in-out infinite;
}

/* Pulse dot */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.pulse-dot {
    animation: pulse-dot 2s ease-in-out infinite;
}
