/* Robinson Hall — Custom Styles */

/* Base & Typography */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Navbar */
.nav-link {
    position: relative;
    color: #1a2d56;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #d9a024;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #d9a024;
}

.navbar-scrolled .nav-link {
    color: #1a2d56;
}

/* Mobile Menu */
.mobile-link {
    font-family: 'Playfair Display', Georgia, serif;
    transition: color 0.3s ease;
}

/* Room Cards */
.room-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

/* Scroll Reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s 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; }
}

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

/* Selection */
::selection {
    background-color: #d9a024;
    color: #0f1a35;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #1a2d56;
}
