/* Custom styles for Right at Home - Premium Lodging */

:root {
    --gold-400: #f0d878;
    --gold-500: #c9a84c;
    --gold-600: #a88a3a;
    --mint-300: #b8f0e0;
    --mint-400: #7edbbf;
    --mint-500: #4fc9a8;
    --midnight-950: #040d1a;
    --midnight-900: #0a1628;
    --midnight-800: #0f1f36;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--midnight-950);
}
::-webkit-scrollbar-thumb {
    background: var(--gold-500/30);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-500/50);
}

/* Selection color */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: var(--gold-400);
}

/* Hero animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#hero-badge {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

#hero-headline {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

#hero-subtitle {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

#hero-cta {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

#hero-stats {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1s;
}

#hero-scroll {
    animation: fadeIn 1s ease forwards;
    animation-delay: 1.5s;
}

/* Room card hover effects */
.room-card {
    position: relative;
}

.room-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: border-color 0.5s ease;
    pointer-events: none;
}

.room-card:hover::after {
    border-color: rgba(201, 168, 76, 0.2);
}

/* Amenity card hover */
.amenity-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

/* Navbar scroll behavior */
#navbar.scrolled {
    background: rgba(4, 13, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .menu-line {
    background: rgba(255, 255, 255, 0.8);
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.open .mobile-nav-link {
    animation: fadeInUp 0.5s ease forwards;
}

#mobile-menu.open .mobile-nav-link:nth-child(1) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-nav-link:nth-child(2) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-nav-link:nth-child(3) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-nav-link:nth-child(4) { animation-delay: 0.25s; }

/* Mobile menu button active state */
#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Gold shimmer effect on hover for CTA buttons */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--gold-500);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Subtle gold line decoration */
.gold-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}

/* Image lazy loading fallback */
img {
    loading: lazy;
}
