/* Custom styles for María Di Zillo Real Estate */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Selection color */
::selection {
    background: #ccfbf1;
    color: #134e4a;
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Apply animations to sections */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children animations */
.stagger-children .animate-on-scroll:nth-child(1) { transition-delay: 0.05s; }
.stagger-children .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .animate-on-scroll:nth-child(3) { transition-delay: 0.15s; }
.stagger-children .animate-on-scroll:nth-child(4) { transition-delay: 0.2s; }
.stagger-children .animate-on-scroll:nth-child(5) { transition-delay: 0.25s; }
.stagger-children .animate-on-scroll:nth-child(6) { transition-delay: 0.3s; }

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Hero image parallax-like effect */
.hero-image {
    transition: transform 0.3s ease;
}

/* Service card hover */
.service-card:hover .service-icon {
    transform: scale(1.05);
}

.service-icon {
    transition: transform 0.3s ease;
}

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

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

/* Neighborhood card overlay */
.neighborhood-card:hover .neighborhood-overlay {
    opacity: 1;
}

.neighborhood-overlay {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* Button focus states */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Input focus states */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

/* Mobile menu animation */
#mobile-menu {
    animation: fadeIn 0.2s ease-out;
}

/* Print styles */
@media print {
    header, footer, #contact-form {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
