/* Custom styles for Christensen Automotive */

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

/* Scroll reveal base - content is visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Animation applied only when JS adds the class */
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fefdfb;
}
::-webkit-scrollbar-thumb {
    background: #d94f6a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b8324d;
}

/* Selection color */
::selection {
    background: #fce7eb;
    color: #671a2c;
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid #d94f6a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Remove default button styles for anchor buttons */
a[href^="tel"] {
    text-decoration: none;
}

/* Image object fit safety */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent layout shift on hero image */
#hero img {
    will-change: transform;
}
