/* Custom styles for Washington Court Apartments */

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

/* Custom clip for hero background */
.clip-hero-bg {
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

/* Navigation transitions */
.nav-logo-text {
    transition: color 0.3s ease;
}

.nav-logo-sub {
    transition: color 0.3s ease;
}

/* Mobile menu animations */
.mobile-nav-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

.mobile-menu.open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.open .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        display: block;
    }
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    border-color: #D14939 !important;
    box-shadow: 0 0 0 3px rgba(209, 73, 57, 0.15) !important;
}

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

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

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

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

/* Selection color */
::selection {
    background-color: #F5B5AB;
    color: #7A2B23;
}

/* Image loading placeholder */
img {
    background-color: #F3EBD3;
}

/* Navbar scrolled state */
nav.scrolled {
    background-color: rgba(250, 248, 245, 0.97) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

nav.scrolled .nav-logo-text {
    color: #2C2C2C;
}

nav.scrolled .nav-logo-sub {
    color: #A67C42;
}

nav.scrolled .nav-link {
    color: #2C2C2C;
}

/* Decorative divider animation */
@keyframes drawLine {
    from { width: 0; }
    to { width: 48px; }
}

/* Hover effects for cards */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Subtle pattern overlay for dark sections */
section[style*="background-color: #2C2C2C"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(ellipse at 20% 50%, rgba(209, 73, 57, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

#neighborhood {
    position: relative;
}

#neighborhood::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(ellipse at 20% 50%, rgba(224, 101, 85, 0.08) 0%, transparent 60%);
    pointer-events: none;
}
