/* Williams Creek Campground — Custom Styles */

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth focus states for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #4fc19a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: rgba(79, 193, 154, 0.25);
    color: #0a1628;
}

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

::-webkit-scrollbar-track {
    background: #0a1628;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #4fc19a;
}

/* Image lazy-loading fade */
img[loading="lazy"] {
    transition: opacity 0.3s ease;
}

img[loading="lazy"]:not([src]) {
    opacity: 0;
}

/* Print styles */
@media print {
    header, footer, .btn-primary, .btn-outline {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a[href^="tel:"]::after,
    a[href^="#"]::after {
        content: none;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card-hover {
        border: 1px solid currentColor;
    }
    
    .nav-link::after {
        background: currentColor;
    }
}

/* Landscape on mobile — prevent overly tall layouts */
@media screen and (max-height: 500px) and (orientation: landscape) {
    #hero {
        min-height: auto;
        padding: 6rem 0;
    }
}
