/* Custom styles for Lindsley Cove */

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

/* Hero animations */
.hero-element {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-element:nth-child(1) { animation-delay: 0.2s; }
.hero-element:nth-child(2) { animation-delay: 0.4s; }
.hero-element:nth-child(3) { animation-delay: 0.6s; }
.hero-element:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.reveal.visible {
    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; }

/* Navbar scroll behavior */
#navbar.scrolled {
    background: rgba(10, 29, 46, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

#navbar.scrolled .nav-text {
    color: #fff;
}

#navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

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

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

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

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

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

/* Selection color */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #102a43;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

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

/* Gold gradient accent line */
.gold-accent {
    background: linear-gradient(90deg, #c9a84c, #e9c96d);
    height: 2px;
    width: 60px;
}

/* Subtle pattern overlay */
.pattern-overlay {
    background-image: radial-gradient(circle at 1px 1px, rgba(201, 168, 76, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Room card hover glow */
.group:hover .group-hover\:shadow-xl {
    box-shadow: 0 20px 60px rgba(16, 42, 67, 0.12);
}

/* Button micro-interactions */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* 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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .hero-element {
        opacity: 1;
        transform: none;
    }
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu-btn,
    .animate-bounce {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-navy-950,
    .bg-navy-50 {
        background: #fff !important;
        color: #000 !important;
    }
}
