/* ===== Custom Styles for SkyCrest Management ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FFFBF7;
}
::-webkit-scrollbar-thumb {
    background: #f9c3cc;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #eb6f8b;
}

/* Selection color */
::selection {
    background: #f9c3cc;
    color: #7B2D3B;
}

/* Mobile menu transitions */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
#mobileMenu.open {
    max-height: 400px;
}

/* Navbar scroll effect */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(123, 45, 59, 0.08);
}

/* Service card hover - already handled by Tailwind group */

/* Testimonial card hover */
.bg-cream-50:hover {
    box-shadow: 0 20px 40px rgba(123, 45, 59, 0.1);
    transition: box-shadow 0.3s ease;
}

/* Neighborhood card hover - already handled by Tailwind group */

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    border-color: #7B2D3B !important;
    box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.1) !important;
}

/* Custom select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237B2D3B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

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

#successMessage.show {
    animation: fadeInUp 0.5s ease forwards;
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
