/* Custom styles for Nate Lampert Real Estate */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f4ff;
}
::-webkit-scrollbar-thumb {
    background: #4c6ef5;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #312e81;
}

/* Selection color */
::selection {
    background: #d97706;
    color: white;
}

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

/* Map grayscale override for accessibility */
iframe[src*="google.com/maps"] {
    filter: grayscale(30%);
}

/* Prevent content flash on scroll reveal */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal-up.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced motion - ensure content is always visible */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal-up {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Navbar scroll state */
.navbar-scrolled #navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

/* Image loading placeholder */
img {
    background-color: #f0f4ff;
}

/* Ensure all text meets contrast requirements */
.text-navy-900 { color: #0f172a; }
.text-navy-800 { color: #312e81; }
.text-navy-700 { color: #4263eb; }
.text-navy-600 { color: #4c6ef5; }
.text-navy-500 { color: #5c7cfa; }
.text-navy-400 { color: #748ffc; }
.text-navy-300 { color: #91a7ff; }
.text-navy-200 { color: #bac8ff; }
.text-navy-100 { color: #dbe4ff; }
.text-navy-50 { color: #f0f4ff; }

.text-gold-500 { color: #d97706; }
.text-gold-400 { color: #fbbf24; }
.text-gold-300 { color: #fcd34d; }
.text-gold-200 { color: #fde68a; }
.text-gold-100 { color: #fef3c7; }
.text-gold-700 { color: #92400e; }
.text-gold-600 { color: #b45309; }
