/* Custom styles for Indian Point Campground */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: #e86840;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4532e;
}

/* Selection color */
::selection {
    background: #e86840;
    color: white;
}

/* Navbar transition for scroll state */
.nav-scrolled {
    background: rgba(26, 26, 26, 0.97) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    img, .group-hover\:scale-105 {
        transition: none;
    }
    .group:hover .group-hover\:scale-105 {
        transform: none;
    }
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

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

/* Typography refinements */
.font-serif {
    letter-spacing: -0.01em;
}

/* Subtle hover effects for links */
a {
    text-decoration: none;
}

/* Image lazy loading placeholder */
img {
    background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
}

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

/* Card hover effects */
.group {
    overflow: hidden;
}

/* Ensure contrast on all backgrounds */
.bg-charcoal-900 .text-white,
.bg-charcoal-800 .text-white,
.bg-coral-500 .text-white {
    color: white;
}

.bg-charcoal-50 .text-charcoal-900,
.bg-white .text-charcoal-900 {
    color: #1a1a1a;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}

/* Nav mobile menu button animation */
#menu-icon-open,
#menu-icon-close {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Subtle pattern overlay for hero */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(45, 45, 45, 0.7) 100%);
    z-index: 1;
    pointer-events: none;
}

#hero > .w-full.md\:w-1\/2:first-child {
    position: relative;
    z-index: 2;
}
