/* Custom styles for Tom Maldonado Real Estate website */

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

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

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

::-webkit-scrollbar-thumb {
    background: #a8223c;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8a1e34;
}

/* Selection color */
::selection {
    background: #a8223c;
    color: #ffffff;
}

/* Animation for mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    .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;
    }
}

/* Navbar scroll effect */
.nav-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Service card hover effect */
.group:hover .group-hover\\:bg-burgundy-100 {
    background-color: rgb(252 231 235);
}

/* Button hover effects */
button[type="submit"]:hover {
    transform: translateY(-2px);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* Input focus effects */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Testimonial card hover */
.bg-neutral-50:hover {
    background-color: rgb(254 249 250);
}

/* Image hover zoom */
.group img {
    transition: transform 0.5s ease;
}

.group:hover img {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-display {
        font-size: clamp(2rem, 5vw, 3rem);
    }
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    button {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }
}
