/* Camper Cove — Custom Styles */

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FEFAF8;
}
::-webkit-scrollbar-thumb {
    background: #E8CDD2;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #B8A4A7;
}

/* Selection color */
::selection {
    background: #7B2D3B;
    color: #F5E6E8;
}

/* Navigation active state */
.nav-link.active {
    color: #7B2D3B !important;
}

/* Subtle hover underline on nav links */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #7B2D3B;
    transition: width 0.25s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Hero image parallax-like subtle effect */
#hero img {
    will-change: transform;
}

/* Room card hover lift */
.group:hover {
    transform: translateY(-2px);
}

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

/* Input focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.1);
}

/* Mobile menu transitions */
#mobile-menu {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Body scroll lock when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Image loading placeholder */
img {
    background-color: #E8CDD2;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .group:hover img {
        transform: none;
    }
    .group:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    nav, #contact-form, .reveal {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
