/* Custom styles for Ez Ride Auto Sales */

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

/* Custom font imports are in HTML */

/* Animation for scroll reveals */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom color tokens */
:root {
    --color-navy: #0f1c3f;
    --color-navy-light: #1a2d5a;
    --color-gold: #d4af37;
    --color-gold-light: #e5c158;
    --color-slate-50: #f8fafc;
    --color-slate-100: #f1f5f9;
    --color-slate-200: #e2e8f0;
    --color-slate-300: #cbd5e1;
    --color-slate-400: #94a3b8;
    --color-slate-600: #475569;
    --color-slate-800: #1e293b;
}

/* Navy background class */
.bg-navy {
    background-color: var(--color-navy);
}

/* Gold background class */
.bg-gold {
    background-color: var(--color-gold);
}

/* Playfair Display font */
.font-playfair {
    font-family: 'Playfair Display', serif;
}

/* Intersection observer for scroll animations */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Button hover effects */
button:hover, a:hover {
    transform: translateY(-1px);
}

button:active, a:active {
    transform: translateY(0);
}

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Card hover effects */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* Gradient text effect */
.text-gradient-gold {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Shadow utilities */
.shadow-gold {
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

/* Form focus states */
input:focus, textarea:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* Smooth image loading */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Navbar scroll effect */
header.scrolled {
    background-color: rgba(15, 28, 63, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
