/* Custom styles for Holiday Inn Chattanooga - Hamilton Place */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a0e1a;
}
::-webkit-scrollbar-thumb {
    background: #412341;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #562f56;
}

/* Selection color */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

/* Navbar transitions */
#navbar.scrolled {
    background: rgba(26, 14, 26, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(251, 191, 36, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu animations */
#mobile-menu.active {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Menu line animations */
#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-toggle.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Subtle gold shimmer on cards */
.group:hover .bg-amber-400\/10 {
    background: rgba(251, 191, 36, 0.15);
}

/* Image hover effects */
img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

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

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

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

#mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Floating cards animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

/* Only animate if user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    #hero .relative.w-80 {
        animation: float 6s ease-in-out infinite;
    }
    #hero .absolute.-bottom-6 {
        animation: float-slow 5s ease-in-out infinite;
        animation-delay: 1s;
    }
    #hero .absolute.top-12 {
        animation: float-slow 4s ease-in-out infinite;
        animation-delay: 2s;
    }
}

/* Gradient text utility */
.text-gradient-gold {
    background: linear-gradient(135deg, #fbbf24, #fcd34d, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Decorative line animation */
@keyframes grow-line {
    from { width: 0; }
    to { width: 6rem; }
}

/* Form input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #2b172b inset !important;
    -webkit-text-fill-color: #fff !important;
}
