/* Custom styles for Ponderosa Campground */

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

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

::-webkit-scrollbar-track {
    background: #050D1A;
}

::-webkit-scrollbar-thumb {
    background: rgba(46, 196, 160, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(46, 196, 160, 0.5);
}

/* Selection color */
::selection {
    background: rgba(46, 196, 160, 0.3);
    color: #7FEAD0;
}

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

/* Reveal animations - progressive enhancement, works without JS */
.reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        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: none;
    }
    
    /* Staggered delays */
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(2, 6, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Image hover effects */
.group img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Button hover lift */
a[href="tel:+18006346108"],
button {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Card hover */
.group {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* Map filter override for light mode in iframe */
iframe[title*="Google Maps"] {
    filter: invert(90%) hue-rotate(180deg) brightness(0.9) contrast(1.1);
}

/* Typography refinements */
h1, h2, h3 {
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

/* Prevent layout shift on images */
img {
    content-visibility: auto;
}

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

/* Mobile menu link hover */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #4FD8B8;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* Asymmetric hero sidebar cards */
.group > div:first-child {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Subtle pattern overlay on dark sections */
section.bg-midnight-900::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}
