/* Custom styles for The Beacon Townhouse Inn */

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

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

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

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

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

/* Navbar transition */
#navbar.scrolled {
    background: rgba(15, 43, 76, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* Custom selection color */
::selection {
    background: rgba(200, 164, 94, 0.3);
    color: #0f2b4c;
}

/* Form focus styles */
input:focus, textarea:focus {
    border-color: #c8a45e !important;
    box-shadow: 0 0 0 3px rgba(200, 164, 94, 0.15) !important;
}

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

/* Subtle gradient on hero overlay */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(200, 164, 94, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

#hero > .relative {
    position: relative;
    z-index: 2;
}

/* Gold shimmer on buttons */
.bg-gold {
    background: linear-gradient(135deg, #c8a45e 0%, #d4b46e 50%, #c8a45e 100%);
}

.bg-gold:hover {
    background: linear-gradient(135deg, #d4b46e 0%, #e0c07a 50%, #d4b46e 100%);
}

/* Card hover lift */
.group:hover {
    transform: translateY(-2px);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #faf8f4;
}

::-webkit-scrollbar-thumb {
    background: #c8a45e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b8944e;
}
