/* Custom styles for Reliable Car Sales Inc. */

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

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(26, 39, 68, 0.08);
}

/* Car card hover effect */
.car-card {
    will-change: transform;
}

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

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

/* Subtle gradient for hero overlay */
.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(15, 24, 41, 0.92) 0%,
        rgba(26, 39, 68, 0.80) 50%,
        rgba(26, 39, 68, 0.65) 100%
    );
}

/* Gold accent line */
.gold-accent {
    position: relative;
}

.gold-accent::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #d4a84b, #f3c74c);
    border-radius: 2px;
}

/* Form input focus states */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.15);
}

/* Testimonial card hover */
section#reviews .bg-white\/5 {
    backdrop-filter: blur(8px);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .car-card,
    button,
    a {
        transition: none;
    }
    
    .car-card:hover {
        transform: none;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #b3c0df;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8d9fcf;
}

/* Selection color */
::selection {
    background: rgba(212, 168, 75, 0.3);
    color: #1a2744;
}
