/* Custom styles for Middle Bear Campground */

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

/* Base font settings */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F5;
}
::-webkit-scrollbar-thumb {
    background: #a11637;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #841635;
}

/* Selection color */
::selection {
    background: #fce7eb;
    color: #6e1531;
}

/* Navbar styles */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #a11637;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(253, 248, 245, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(161, 22, 55, 0.08);
}

.navbar-scrolled .nav-link {
    color: #4b5563;
}

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

.mobile-link {
    position: relative;
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
                    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Stagger children */
    .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; }
}

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

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

/* Button hover lift */
button, a {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Image hover container */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* Thin decorative lines */
.divider-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(161, 22, 55, 0.15), transparent);
}

/* Card hover effects */
.rounded-2xl {
    transition: box-shadow 0.4s ease;
}

/* Form transitions */
input, select, textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Mobile menu transitions */
#mobileMenu {
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                pointer-events 0.4s ease;
}

/* Prevent FOUC on page load */
body {
    opacity: 1;
}

/* Print styles */
@media print {
    nav, #contactForm, button {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
