/* Custom styles for Chesterfield Hotel */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #2dd4bf;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5eead4;
}

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

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger children */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Room card hover */
.room-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Mobile menu */
.mobile-nav-link {
    transition: opacity 0.3s ease;
}

/* Button focus states */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #2dd4bf;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Input focus */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}

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

/* Mobile menu transitions */
#mobile-menu {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu.closed {
    transform: translateX(100%);
}

/* Body scroll lock */
body.menu-open {
    overflow: hidden;
}

/* Light navbar text */
body.nav-light .nav-logo-text {
    color: #ffffff;
}
body.nav-light .nav-link {
    color: rgba(255, 255, 255, 0.75);
}
body.nav-light .nav-link:hover {
    color: #5eead4;
}

/* Dark navbar text (default) */
body:not(.nav-light) .nav-logo-text {
    color: #0f172a;
}
body:not(.nav-light) .nav-link {
    color: #334155;
}
body:not(.nav-light) .nav-link:hover {
    color: #0d9488;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 3rem;
    }
    
    #hero h1 span {
        display: block;
    }
}

/* Print styles */
@media print {
    header, #mobile-menu, .reveal {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
