/* ── Custom Styles for Shaker Medical Building ── */

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

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

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

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

/* Scroll reveal animations (progressive enhancement — hidden by default, revealed via JS) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .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; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #701a75;
}

/* Selection color */
::selection {
    background: #e8d0e8;
    color: #48114c;
}

/* Navbar transition */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(112, 26, 117, 0.08);
}

.nav-scrolled .font-serif,
.nav-scrolled span {
    color: #48114c !important;
}

.nav-scrolled a:not(.px-8):not(.group) {
    color: #701a75 !important;
}

.nav-scrolled a:not(.px-8):not(.group):hover {
    color: #701a75 !important;
}

/* Mobile menu transitions */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Image lazy loading fade */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

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