/* Custom styles for Dammann Oaks Campground */

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

/* Selection color */
::selection {
    background: #4d7d44;
    color: #faf9f6;
}

/* Prevent flash of unstyled content */
html {
    opacity: 1;
}

/* Ensure images don't cause layout shift */
img {
    max-width: 100%;
    height: auto;
}

/* Navbar transition */
#navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#navbar.scrolled {
    background: rgba(250, 249, 246, 0.95);
    box-shadow: 0 1px 20px rgba(47, 78, 42, 0.08);
}

/* Active nav link */
.nav-link.active {
    color: #4d7d44;
}

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

/* Smooth image loading */
img {
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

/* Button hover effects */
a[href^="tel:"] {
    text-decoration: none;
}

/* Counter animation */
.counter {
    display: inline-block;
}

/* Mobile menu animation */
.menu-line {
    transform-origin: center;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: translateY(-4px) rotate(-45deg);
}

/* Print styles */
@media print {
    #navbar,
    .reveal {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
