/* Custom styles for Robinwood Estates Rental Homes */

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(13, 28, 43, 0.08);
}

.nav-scrolled .nav-link {
    color: #0d1c2b !important;
}

.nav-scrolled .nav-text {
    color: #0d1c2b !important;
}

/* Property card hover */
.property-card {
    transition: transform 0.3s ease;
}

.property-card:hover {
    transform: translateY(-4px);
}

/* Testimonial card hover */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(13, 28, 43, 0.1);
}

/* Mobile menu animation */
.hamburger-line {
    transition: all 0.3s ease;
}

.mobile-menu-open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* Mobile nav links */
.mobile-nav-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(13, 28, 43, 0.06);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s 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; }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7c94b0;
}

/* Select dropdown styling */
select option {
    background: #0d1c2b;
    color: #d4dce8;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
}
