/* ============================================
   1 West 60th Street — Custom Styles
   Premium Dark Luxury Theme
   ============================================ */

/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #050810;
}

::selection {
    background-color: rgba(212, 168, 75, 0.3);
    color: #f5f5f5;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0a0f1a;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4a84b;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    transition: background-color 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(5, 8, 16, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 168, 75, 0.1);
}

/* ============================================
   Hero Section
   ============================================ */
#hero {
    position: relative;
}

/* Scroll dot animation */
@keyframes scrollDot {
    0% { top: 0; opacity: 1; }
    50% { top: 60%; opacity: 0.5; }
    100% { top: 100%; opacity: 0; }
}

.scroll-dot {
    animation: scrollDot 1.8s ease-in-out infinite;
}

/* ============================================
   Room Cards
   ============================================ */
.room-card {
    position: relative;
    overflow: hidden;
}

.room-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 8, 16, 0.9) 0%, transparent 50%);
    pointer-events: none;
    border-radius: inherit;
}

/* ============================================
   Feature Cards
   ============================================ */
.feature-card {
    transition: border-color 0.5s ease, transform 0.5s ease, box-shadow 0.5s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* ============================================
   Scroll Reveal Animations
   (Progressive enhancement — content is visible by default)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .room-reveal,
    .experience-reveal,
    .location-content,
    .location-map,
    .testimonial-reveal,
    .contact-info,
    .contact-form {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    [data-reveal] {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
}

/* When JS is active, add the hidden state then reveal */
.js-enabled [data-reveal],
.js-enabled .room-reveal,
.js-enabled .experience-reveal,
.js-enabled .location-content,
.js-enabled .location-map,
.js-enabled .testimonial-reveal,
.js-enabled .contact-info,
.js-enabled .contact-form {
    opacity: 0;
    transform: translateY(30px);
}

.js-enabled .room-reveal,
.js-enabled .experience-reveal,
.js-enabled .location-content,
.js-enabled .location-map,
.js-enabled .testimonial-reveal,
.js-enabled .contact-info,
.js-enabled .contact-form,
.js-enabled [data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.js-enabled .reveal-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Staggered delays for room cards */
.js-enabled .room-card:nth-child(1) { transition-delay: 0.1s; }
.js-enabled .room-card:nth-child(2) { transition-delay: 0.2s; }
.js-enabled .room-card:nth-child(3) { transition-delay: 0.3s; }

/* Staggered delays for feature cards */
.js-enabled .feature-card:nth-child(1) { transition-delay: 0.1s; }
.js-enabled .feature-card:nth-child(2) { transition-delay: 0.2s; }
.js-enabled .feature-card:nth-child(3) { transition-delay: 0.3s; }
.js-enabled .feature-card:nth-child(4) { transition-delay: 0.4s; }

/* Staggered delays for image showcase */
.js-enabled .overflow-hidden:nth-child(1) { transition-delay: 0.05s; }
.js-enabled .overflow-hidden:nth-child(2) { transition-delay: 0.15s; }
.js-enabled .overflow-hidden:nth-child(3) { transition-delay: 0.25s; }
.js-enabled .overflow-hidden:nth-child(4) { transition-delay: 0.35s; }

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }

/* ============================================
   Map filter override (dark theme)
   ============================================ */
iframe[src*="google.com/maps"] {
    filter: invert(90%) hue-rotate(180deg) brightness(0.9) contrast(1.1);
}

/* ============================================
   Focus states for accessibility
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d4a84b;
    outline-offset: 2px;
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }
}
