/* Custom styles for American Inn & Travel Inn */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #c4952e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4a843;
}

/* Selection */
::selection {
    background: #c4952e;
    color: #0a1628;
}

/* Room cards - progressive enhancement for scroll reveal */
.room-card {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .room-card.reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .room-card.reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Section reveals - below fold only */
    section .reveal {
        opacity: 1;
        transform: translateY(0);
    }
    
    @media (prefers-reduced-motion: no-preference) {
        section .reveal {
            opacity: 0;
            transform: translateY(40px);
            transition: opacity 0.9s ease, transform 0.9s ease;
        }
        section .reveal.visible {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

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

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(196, 149, 46, 0.1);
}

/* Hero text gradient for gold text */
.text-gold-gradient {
    background: linear-gradient(135deg, #d4a843 0%, #c4952e 50%, #a87a20 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle pattern for dark sections */
.pattern-overlay {
    background-image: radial-gradient(circle at 1px 1px, rgba(196, 149, 46, 0.05) 1px, transparent 0);
    background-size: 40px 40px;
}

/* Input focus styles */
input:focus, textarea:focus {
    box-shadow: 0 0 0 1px rgba(196, 149, 46, 0.3);
}

/* Button hover lift */
button:hover, a:hover {
    transform: translateY(-1px);
}

button:active, a:active {
    transform: translateY(0);
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #0f2240 0%, #153058 100%);
}

/* Print styles */
@media print {
    #navbar, #mobile-menu {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
