/* Custom styles for Sarah Park Real Estate */

:root {
    --emerald-950: #052e16;
    --emerald-900: #14532d;
    --emerald-800: #166534;
    --emerald-700: #15803d;
    --cream-50: #fdfbf7;
    --cream-100: #faf5eb;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Mobile menu animation */
#mobile-menu-btn.active #menu-line-1 {
    transform: translateY(8px) rotate(45deg);
}

#mobile-menu-btn.active #menu-line-2 {
    opacity: 0;
}

#mobile-menu-btn.active #menu-line-3 {
    transform: translateY(-8px) rotate(-45deg);
}

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* Header scroll effect */
#main-header.scrolled {
    box-shadow: 0 1px 20px rgba(5, 46, 22, 0.08);
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #14532d;
}

/* Selection color */
::selection {
    background: #166534;
    color: #fdfbf7;
}
