/* Custom styles for 19 Davison St. Guest House */

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

/* Nav transition states */
nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-blur-xl;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 4px 20px rgba(0, 0, 0, 0.04);
}

nav.scrolled .nav-link {
    color: rgba(28, 45, 58, 0.7) !important;
}

nav.scrolled .font-display {
    color: #1C2D3A !important;
}

/* Stat card animation */
.stat-card {
    animation: floatIn 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.stat-card:nth-child(1) { animation-delay: 0.3s; }
.stat-card:nth-child(2) { animation-delay: 0.5s; }
.stat-card:nth-child(3) { animation-delay: 0.7s; }

@keyframes floatIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Intersection observer animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    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; }

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile link hover */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(28, 45, 58, 0.05);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-link:hover {
    color: #7B2D3B;
    padding-left: 0.5rem;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #5e1a26;
}

/* Selection color */
::selection {
    background: #7B2D3B;
    color: #FDF6F5;
}
