/* Custom Styles for Barrett & Baum Real Estate */

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

body {
    background-color: #F9F9F7;
    color: #1A3C28;
    font-family: 'Manrope', sans-serif;
}

/* Typography */
h1, h2, h3, h4, .font-serif {
    font-family: 'Cormorant Garamond', serif;
}

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

.reveal-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.reveal-up:nth-child(1) {
    animation-delay: 0.1s;
}

.reveal-up:nth-child(2) {
    animation-delay: 0.3s;
}

.reveal-up:nth-child(3) {
    animation-delay: 0.5s;
}

.reveal-up:nth-child(4) {
    animation-delay: 0.7s;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #1A3C28;
}

/* Focus Styles for Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #1A3C28;
    outline-offset: 2px;
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu.closed {
    transform: translateX(100%);
}

/* Image Placeholder Fallback */
img {
    min-height: 200px;
    background: linear-gradient(135deg, #E5E5E0 0%, #D4D4CF 100%);
}

/* Loading State for Form */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print Styles */
@media print {
    nav, #mobile-menu-btn, button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}
