/* ===== Custom Styles for Emerson House ===== */

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

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

/* Selection color */
::selection {
    background: #ebd0db;
    color: #4f202e;
}

/* Navbar transition */
.nav-scrolled {
    background: rgba(250, 245, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(142, 61, 87, 0.08);
}

.nav-scrolled .font-serif {
    color: #4f202e !important;
}

.nav-scrolled a.text-plum-700 {
    color: #732d43 !important;
}

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

/* Fade-in animations (progressive enhancement) */
.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

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

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #f5e9ee 0%, #ebd0db 100%);
}

/* Subtle gradient border for cards */
.card-glow:hover {
    box-shadow: 0 0 0 1px rgba(219, 167, 188, 0.3), 0 20px 40px rgba(142, 61, 87, 0.1);
}
