/* Custom styles for Exclusive Sales & Rentals */

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

/* Scroll animation base styles (progressive enhancement) */
.scroll-animate {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply animations when JS is enabled and user prefers motion */
.js-enabled.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .js-enabled.scroll-animate.animated {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced motion: keep everything visible */
@media (prefers-reduced-motion: reduce) {
    .scroll-animate,
    .js-enabled.scroll-animate {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(112, 26, 117, 0.1);
}

nav.scrolled .font-heading.font-bold.text-plum-950 {
    color: #701a75;
}

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

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #86198f;
}

/* Selection color */
::selection {
    background: #fbbf24;
    color: #701a75;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

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

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(162, 28, 175, 0.15);
}

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

/* Geometric accent shapes */
.geo-triangle {
    width: 0;
    height: 0;
    border-style: solid;
}

/* Gradient text utility */
.text-gradient-plum {
    background: linear-gradient(135deg, #a21caf 0%, #d946ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pulse dot animation */
@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

.animate-pulse-dot {
    animation: pulse-dot 2s ease-in-out infinite;
}

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

/* Stagger delay utilities */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-700 { transition-delay: 700ms; }
