/* Custom styles for Invested Car Sales */

html {
    scroll-behavior: smooth;
}

/* Ensure above-the-fold content is always visible */
body {
    opacity: 1;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f4f8;
}
::-webkit-scrollbar-thumb {
    background: #9fb3c8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #627d98;
}

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

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(24px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal.hidden-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* Button hover effects */
a {
    transition: color 0.2s ease;
}

/* Card hover lift */
.bg-white.rounded-xl {
    transition: box-shadow 0.3s ease;
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.2s ease-out;
}

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

/* Gold accent underline for headings */
section > div > span {
    display: inline-block;
}

/* Ensure map section doesn't have awkward borders */
section[style*="background"] iframe {
    border-radius: 0;
}
