/* Custom Styles for Laura Miller Estate Sales */

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
    background-color: #2a5632;
    color: #fdfcfa;
}

/* Navbar transitions */
#navbar.scrolled {
    background-color: rgba(15, 29, 16, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

#navbar.scrolled .nav-link,
#navbar.scrolled .font-serif,
#navbar.scrolled .font-sans,
#navbar.scrolled .menu-line {
    color: #fdfcfa;
}

#navbar.scrolled #nav-logo-icon {
    border-color: rgba(253, 252, 250, 0.4);
}

/* Mobile menu animation */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.close {
    opacity: 0;
    pointer-events: none;
}

/* Menu lines animation */
.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    width: 1.5rem;
}

/* Hero animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Scroll reveal */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .animate-fade-in-up {
        animation: none;
        opacity: 1;
    }
    
    .scroll-reveal {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(69, 137, 78, 0.2);
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

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

::-webkit-scrollbar-track {
    background: #1c3822;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #6aaa74;
}

/* Print styles */
@media print {
    nav, #mobile-menu-btn, footer {
        display: none;
    }
    
    body {
        color: #1c3822;
        background: white;
    }
}
