/* Custom styles for Zauto Sales LLC */

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

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

/* Only apply animation when JS is active and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Initial state set by JS for below-fold elements */
    .scroll-reveal[data-reveal] {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal[data-reveal].revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(4, 120, 87, 0.08);
}

/* Custom selection color */
::selection {
    background-color: #047857;
    color: #fdfbf7;
}

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

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #fdfbf7 inset !important;
}

/* Subtle gradient on hero text */
.font-serif {
    text-rendering: optimizeLegibility;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}
