/* Custom styles for Ariel Scherzer Realtor website */

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

/* Hero content animation - only for below-fold, hero is always visible */
.hero-content {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-image-wrapper {
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 1; }
    to { opacity: 1; }
}

/* Scroll reveal - progressive enhancement, only below fold */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(253, 252, 250, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(45, 45, 45, 0.06);
}

.nav-transparent {
    background: transparent !important;
}

/* Mobile menu transitions */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #D4C4B0;
}

/* Selection color */
::selection {
    background: #FFE8DD;
    color: #2D2D2D;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        transition: none;
    }
    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
    .hero-content,
    .hero-image-wrapper {
        animation: none;
    }
}

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

/* Select dropdown styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234A4A4A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Image aspect ratio fallbacks */
img {
    max-width: 100%;
    height: auto;
}
