/* Custom styles for American 1st Real Estate */

/* Smooth scroll offset for fixed navbar */
section[id] {
    scroll-margin-top: 80px;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.25s ease-out;
}

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

/* Navbar scroll shadow */
.navbar-scrolled {
    box-shadow: 0 1px 20px rgba(15, 28, 63, 0.08);
}

/* FAQ transitions */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-content.open {
    max-height: 300px;
}

/* Button hover lift */
button, a {
    transition: all 0.2s ease;
}

/* Selection color */
::selection {
    background-color: #c94428;
    color: #fdfbf7;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #c94428;
}

/* Scroll reveal base state (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #c94428;
    outline-offset: 2px;
}
