/* ============================================
   Misty Mountain RV Park — Custom Styles
   ============================================ */

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

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

/* --- Selection color --- */
::selection {
    background: rgba(161, 23, 51, 0.4);
    color: #fce7eb;
}

/* --- Smooth focus outlines --- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #f6a3b4;
    outline-offset: 3px;
    border-radius: 4px;
}

/* --- Navbar scroll state --- */
#navbar.scrolled {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(252, 231, 235, 0.06);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* --- Hero text shadow for readability --- */
#hero h1,
#hero p {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* --- Image lazy-load placeholder --- */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* --- Custom focus for mobile menu --- */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #f6a3b4;
    transition: width 0.3s ease;
}

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

/* --- Card image overflow fix --- */
.card-lift img {
    transform: translateZ(0);
}

/* --- 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;
    }
    .hero-bg {
        animation: none;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* --- Tablet --- */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 3rem;
    }

    #about,
    #amenities,
    #sites,
    #location {
        padding: 4rem 1.25rem;
    }

    .card-lift:hover {
        transform: none;
    }
}

/* --- Small phones --- */
@media (max-width: 360px) {
    .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #hero h1 {
        font-size: 2.25rem;
    }
}

/* --- Print --- */
@media print {
    body {
        background: white;
        color: black;
    }
    #navbar,
    #hero,
    .reveal {
        display: none;
    }
}
