/* Custom styles for The Auto Salon */

:root {
    --scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.navbar-scrolled .nav-link {
    color: #063872 !important;
}

.navbar-scrolled .logo-text {
    color: #063872 !important;
}

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

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

/* Button hover effects */
a {
    text-decoration: none;
}

/* Selection color */
::selection {
    background: #9a1f34;
    color: #fce7eb;
}

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

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Subtle gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #9a1f34, #d44461);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7f1c2e;
}

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

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-display {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}

/* Large screen optimization */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}
