/* Custom styles for Upscale Realty & Management Co. */

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

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

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

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

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

/* Scroll reveal animations */
.scroll-animate {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-animate {
        opacity: 0;
        transform: translateY(24px);
    }

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

/* Navbar styles */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(74, 44, 90, 0.08);
}

.nav-scrolled .font-serif,
.nav-scrolled .text-plum-700 {
    color: #4A2C5A !important;
}

.nav-scrolled a:not(.bg-amber-400) {
    color: #4A2C5A !important;
}

.nav-scrolled .mobile-link {
    color: #4A2C5A !important;
}

/* Mobile menu link hover */
#mobile-menu a {
    display: block;
    padding: 8px 0;
}

/* Selection color */
::selection {
    background: #D4A017;
    color: #23122c;
}

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

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

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

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

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

/* Input styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #c46dd6;
    box-shadow: 0 0 0 3px rgba(196, 109, 214, 0.2);
}

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent layout shift on images with aspect-ratio */
img[width][height] {
    display: block;
}
