/* Custom styles for Moose Lodge at Bison Ranch */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #6B3F6B;
}

/* Selection color */
::selection {
    background: #D4A574;
    color: #251525;
}

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

@keyframes pulse-soft {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Floating animation for decorative elements */
.floating {
    animation: float 6s ease-in-out infinite;
}

/* Soft pulse for accents */
.pulse-soft {
    animation: pulse-soft 4s ease-in-out infinite;
}

/* Reveal animations for scroll sections (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .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; }
}

/* Ensure content is visible without JS */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Navbar transition states */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(107, 63, 107, 0.08);
}

.navbar-scrolled .nav-link {
    color: #482A48 !important;
}

.navbar-scrolled .nav-logo {
    color: #6B3F6B !important;
}

/* Hero image composition */
.hero-image-main {
    box-shadow: 0 25px 60px -12px rgba(107, 63, 107, 0.25);
}

.hero-image-accent {
    box-shadow: 0 10px 30px -8px rgba(107, 63, 107, 0.2);
}

/* Card hover effects */
.lodging-card {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Experience card hover */
.experience-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Gallery image hover */
.gallery-image {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-image:hover {
    transform: scale(1.05);
}

/* Button ripple effect */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:active::after {
    width: 200px;
    height: 200px;
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #6B3F6B, #D4A574);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Decorative line animation */
.divider-line {
    position: relative;
    overflow: hidden;
}

.divider-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4A574, transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
    max-height: 400px;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #D4A574;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #F9F0F9, #F3E0F3);
}

/* Ensure proper text rendering */
body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
