/* Custom styles for Stephanie Russel Real Estate */

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

/* Navbar background transition */
nav.scrolled {
    background: rgba(250, 248, 244, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(35, 87, 25, 0.08);
}

nav.scrolled .nav-text-color {
    color: #173810;
}

nav.scrolled .nav-link {
    color: #4b5563;
}

nav.scrolled .nav-link:hover {
    color: #235719;
}

nav.scrolled .mobile-link {
    color: #374151;
}

/* Hero stat cards */
.stat-card {
    animation: floatIn 0.8s ease-out both;
}

.card-1 { animation-delay: 0.2s; }
.card-2 { animation-delay: 0.4s; }
.card-3 { animation-delay: 0.6s; }
.card-4 { animation-delay: 0.8s; }

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

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

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

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

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

/* Remove default focus outline for keyboard users */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid #235719;
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f0e8;
}
::-webkit-scrollbar-thumb {
    background: #c5dfb8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #99c887;
}
