/* Custom styles for Market Street Automotive */

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

/* Hero gradient */
.hero-gradient {
    background: linear-gradient(135deg, #1f2126 0%, #353940 35%, #42464f 60%, #2a2d33 100%);
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(249, 115, 22, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 180, 156, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(249, 115, 22, 0.08) 0%, transparent 50%);
}

/* Subtle pattern overlay */
.hero-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

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

/* Service card hover effect */
.service-card {
    perspective: 1000px;
}

.service-card > div {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover > div {
    transform: translateY(-4px);
}

/* Navbar styles */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Custom selection color */
::selection {
    background: rgba(249, 115, 22, 0.2);
    color: #1f2126;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

/* Input focus animation */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

/* Button press effect */
button:active, a:active {
    transform: scale(0.98);
}

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

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

/* Coral glow on hover for CTA buttons */
.bg-coral-500:hover {
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.35);
}

/* Image loading placeholder */
img {
    background: linear-gradient(90deg, #e3e4e6 25%, #f6f6f7 50%, #e3e4e6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

img[src] {
    animation: none;
    background: none;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Testimonial card hover */
.bg-charcoal-50:hover {
    border-color: rgba(249, 115, 22, 0.3);
    transition: border-color 0.3s ease;
}

/* Counter animation */
.font-display.font-800.text-coral-500 {
    transition: all 0.3s ease;
}

/* Ensure all text meets contrast requirements */
.text-charcoal-500 {
    color: #565a64;
}

.text-charcoal-600 {
    color: #42464f;
}

.text-charcoal-400 {
    color: #767983;
}
