/* Custom styles for Paintrock Island Campground */

/* Ensure smooth rendering */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Hero parallax effect on scroll */
#hero {
    will-change: transform;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 3px solid #f9d0d9;
    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: 2px;
    background-color: #c22d4a;
    transition: width 0.2s ease;
}

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

/* Card hover effects */
.reveal {
    will-change: opacity, transform;
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

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

/* Reduce motion for accessibility */
@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;
    }
    
    .animate-bounce {
        animation: none !important;
    }
}

/* Print styles */
@media print {
    nav, #hero, .reveal, .animate-bounce {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
