/* Custom styles beyond Tailwind */

:root {
    --color-navy-900: #0a1628;
    --color-navy-800: #112240;
    --color-gold-500: #c9a84c;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero animations — above the fold, always visible */
.hero-anim {
    opacity: 1;
    transform: translateY(0);
    animation: heroFadeUp 0.8s ease forwards;
}

.hero-anim:nth-child(1) { animation-delay: 0.1s; }
.hero-anim:nth-child(2) { animation-delay: 0.3s; }
.hero-anim:nth-child(3) { animation-delay: 0.5s; }
.hero-anim:nth-child(4) { animation-delay: 0.7s; }

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal — below the fold only, progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Room card hover */
.room-card {
    transition: transform 0.4s ease;
}

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

/* Navbar transitions */
.nav-text {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
    color: rgba(10, 22, 40, 0.7);
    transition: color 0.3s ease;
}

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

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

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

/* Mobile menu */
#mobile-menu a {
    color: rgba(10, 22, 40, 0.7);
    transition: color 0.3s ease;
}

#mobile-menu a:hover {
    color: #c9a84c;
}

/* Image aspect ratios */
img {
    display: block;
    max-width: 100%;
}

/* Selection color */
::selection {
    background: #c9a84c;
    color: #0a1628;
}
