/* Custom styles for Rodney Morales Real Estate website */

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

/* Hide scrollbar for mobile menu */
body.menu-open {
    overflow: hidden;
}

/* Navigation scroll state */
#navbar.scrolled {
    background: rgba(250, 248, 245, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(107, 29, 26, 0.08);
}

#navbar.scrolled .nav-text-color {
    color: #3a0a0a;
}

#navbar.scrolled .nav-text-color-light {
    color: #6b6560;
}

#navbar.scrolled .nav-link {
    color: #6b6560;
}

#navbar.scrolled .nav-menu-btn span {
    background: #3a0a0a;
}

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

.mobile-menu-link {
    transition: color 0.3s ease;
}

.mobile-menu-link:hover {
    color: #b83030;
}

/* Hero animations */
.hero-headline {
    opacity: 1;
    transform: translateY(0);
}

.hero-subtitle {
    opacity: 1;
    transform: translateY(0);
}

.hero-description {
    opacity: 1;
    transform: translateY(0);
}

.hero-cta {
    opacity: 1;
    transform: translateY(0);
}

.hero-stats {
    opacity: 1;
    transform: translateY(0);
}

.hero-float-card {
    animation: floatCard 4s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Scroll reveal animations */
.reveal-bottom {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal-bottom,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .hero-float-card {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9a2222;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #b83030 !important;
    box-shadow: 0 0 0 3px rgba(184, 48, 48, 0.1);
}

/* Service card hover */
.group:hover .group-hover\:bg-burgundy-700 {
    background-color: #b83030;
}

.group:hover .group-hover\:text-white {
    color: #ffffff;
}

/* Image lazy load placeholder */
img {
    background-color: #f5d5cf;
}

/* Print styles */
@media print {
    #navbar,
    #contactForm,
    iframe {
        display: none;
    }
}
