/* Emerald Hollow Campground — Custom Styles */

/* Base resets & typography */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background: rgba(212, 154, 58, 0.3);
    color: #f0f4f8;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 1px solid rgba(212, 154, 58, 0.5);
    outline-offset: 2px;
}

/* Smooth image loading */
img {
    image-rendering: auto;
    loading: lazy;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    img {
        transition: none !important;
    }
}

/* Print styles */
@media print {
    nav, .mobile-menu, #contactForm, .reveal {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    a {
        color: black !important;
    }
}

/* Thin line animation on scroll */
.thin-line {
    position: relative;
    overflow: hidden;
}

.thin-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 154, 58, 0.6), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

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

/* Navbar scroll state */
.nav-glass.scrolled {
    background: rgba(10, 26, 46, 0.98);
    box-shadow: 0 1px 0 rgba(212, 154, 58, 0.1);
}

/* Form input autofill override */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #102a43 inset !important;
    -webkit-text-fill-color: #f0f4f8 !important;
    caret-color: #d49a3a;
}

/* Custom checkbox/radio if needed */
input[type="checkbox"],
input[type="radio"] {
    accent-color: #d49a3a;
}

/* Progress bar for scroll indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #d49a3a, #e2af4d);
    z-index: 100;
    transition: width 0.1s linear;
}

/* Loading state for form */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Active nav link */
.nav-link.active {
    color: #d49a3a !important;
}

/* Image placeholder fallback */
img[data-src] {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img[data-src].loaded {
    opacity: 1;
}

/* Accessibility: skip to content */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: #d49a3a;
    color: #102a43;
    padding: 0.5rem 1rem;
    z-index: 200;
    font-size: 0.875rem;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* Staggered animation delays for grid items */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }
