/* Custom styles for NM 24K Real Estate Group */

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

/* Focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #a8608e !important;
    box-shadow: 0 0 0 3px rgba(168, 96, 142, 0.15);
}

/* Scroll reveal base - content visible by default */
.scroll-reveal {
    opacity: 1;
    transform: none;
}

/* Scroll reveal animation - only applied when JS is active */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.animated {
        animation: fadeInUp 0.7s ease forwards;
    }
    .scroll-reveal[data-delay="1"] { animation-delay: 0.1s; }
    .scroll-reveal[data-delay="2"] { animation-delay: 0.2s; }
    .scroll-reveal[data-delay="3"] { animation-delay: 0.3s; }
    .scroll-reveal[data-delay="4"] { animation-delay: 0.4s; }
    .scroll-reveal[data-delay="5"] { animation-delay: 0.5s; }
    .scroll-reveal[data-delay="6"] { animation-delay: 0.6s; }
}

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

/* Navbar scroll state */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(43, 17, 32, 0.08);
}

.navbar-scrolled .font-serif,
.navbar-scrolled a:not([style*="amber"]) {
    color: #4f2740 !important;
}

.navbar-scrolled .text-plum-600,
.navbar-scrolled .text-plum-400 {
    color: #733158 !important;
}

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

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

/* Card hover effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5f7;
}
::-webkit-scrollbar-thumb {
    background: #dbb7c8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a8608e;
}

/* Selection color */
::selection {
    background-color: rgba(168, 96, 142, 0.2);
    color: #4f2740;
}

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