/* ===== Custom Styles for Tricia Hageman Real Estate ===== */

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(253, 252, 248, 0.92) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(45, 79, 39, 0.08);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-scrolled .nav-logo-text {
    color: #1c3319 !important;
}

.nav-scrolled .nav-link {
    color: #2d4f27 !important;
}

/* Mobile menu link hover */
.mobile-link:hover {
    color: #2d4f27;
}

/* Reveal animation (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

    /* Stagger children */
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* Fallback: ensure content is visible even without JS */
.no-js .reveal,
.js-enabled .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8fb582;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #4a7a3f;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection */
::selection {
    background: #dce8d8;
    color: #1c3319;
}
