/* Custom styles beyond Tailwind */

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

/* Floating animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

@keyframes float-delayed-2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 4.5s ease-in-out infinite 0.5s;
}

.animate-float-delayed-2 {
    animation: float-delayed-2 5s ease-in-out infinite 1s;
}

/* Service card stagger animation */
.service-card {
    opacity: 0;
    transform: translateY(30px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible:nth-child(1) { transition-delay: 0.1s; }
.service-card.visible:nth-child(2) { transition-delay: 0.2s; }
.service-card.visible:nth-child(3) { transition-delay: 0.3s; }

/* Testimonial card animation */
#testimonials .bg-white {
    opacity: 0;
    transform: translateY(30px);
}

#testimonials .bg-white.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

#testimonials .bg-white.visible:nth-child(1) { transition-delay: 0.1s; }
#testimonials .bg-white.visible:nth-child(2) { transition-delay: 0.2s; }
#testimonials .bg-white.visible:nth-child(3) { transition-delay: 0.3s; }

/* Neighborhood card animation */
#neighborhoods a {
    opacity: 0;
    transform: translateY(20px);
}

#neighborhoods a.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#neighborhoods a.visible:nth-child(1) { transition-delay: 0.05s; }
#neighborhoods a.visible:nth-child(2) { transition-delay: 0.1s; }
#neighborhoods a.visible:nth-child(3) { transition-delay: 0.15s; }
#neighborhoods a.visible:nth-child(4) { transition-delay: 0.2s; }

/* About section animation */
#about .space-y-6 > * {
    opacity: 0;
    transform: translateX(20px);
}

#about .space-y-6 > *.visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

#about .space-y-6 > *.visible:nth-child(1) { transition-delay: 0.1s; }
#about .space-y-6 > *.visible:nth-child(2) { transition-delay: 0.15s; }
#about .space-y-6 > *.visible:nth-child(3) { transition-delay: 0.2s; }
#about .space-y-6 > *.visible:nth-child(4) { transition-delay: 0.25s; }
#about .space-y-6 > *.visible:nth-child(5) { transition-delay: 0.3s; }
#about .space-y-6 > *.visible:nth-child(6) { transition-delay: 0.35s; }

/* Hero elements animation */
#hero > div > div > div:first-child > * {
    opacity: 0;
    transform: translateY(20px);
}

#hero > div > div > div:first-child > *:visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

#hero > div > div > div:first-child > *:visible:nth-child(1) { transition-delay: 0.1s; }
#hero > div > div > div:first-child > *:visible:nth-child(2) { transition-delay: 0.2s; }
#hero > div > div > div:first-child > *:visible:nth-child(3) { transition-delay: 0.3s; }
#hero > div > div > div:first-child > *:visible:nth-child(4) { transition-delay: 0.4s; }

/* Hero right side */
#hero > div > div > div:last-child {
    opacity: 0;
    transform: translateX(30px);
}

#hero > div > div > div:last-child.visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.7s ease, transform 0.7s ease 0.2s;
}

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

nav.scrolled .font-serif {
    color: #7B2D3B !important;
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Selection color */
::selection {
    background: #f9c4cc;
    color: #5a1d28;
}

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

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

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

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

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
    border-radius: 4px;
}
