/* Custom styles for Plaza Medical Office Building */

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

/* Navbar scroll state */
nav.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(126, 58, 133, 0.08);
}

nav.scrolled .text-plum-700 {
    color: #582760 !important;
}

nav.scrolled a:not(.bg-plum-500):not(.bg-amber-400):not(.bg-white\/10):not(.bg-plum-900) {
    color: #582760 !important;
}

/* Mobile menu */
.mobile-menu-link {
    transition: all 0.2s ease;
}

/* Space cards */
.space-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.space-card:hover {
    transform: translateY(-4px);
}

/* Scroll reveal animations - below the fold only */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .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; }
}

/* Reduced motion - no animations */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .space-card:hover {
        transform: none;
    }
}

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

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

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

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

/* Selection color */
::selection {
    background: #ebd3eb;
    color: #39193f;
}

/* Focus visible styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #7E3A85;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Form select styling */
select {
    appearance: none;
    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='%237E3A85' 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;
}

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, #7E3A85, #d4920b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
