/* Custom styles for Top of the Hill Cabins */

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

/* Hide scrollbar on mobile menu open */
body.menu-open {
    overflow: hidden;
}

/* Navbar scroll state */
.navbar-scrolled #navbar {
    background: rgba(10, 25, 41, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.navbar-scrolled .nav-logo-text {
    color: #ffffff;
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
    .reveal:nth-child(5) { transition-delay: 0.4s; }
    .reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* Ensure content is visible without JS */
:not(.reveal) {
    opacity: 1;
    transform: none;
}

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

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

::-webkit-scrollbar-track {
    background: #f0f4f8;
}

::-webkit-scrollbar-thumb {
    background: #9fb3c8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #627d98;
}

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

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
}

/* Subtle gradient text effect */
.text-gradient-mint {
    background: linear-gradient(135deg, #6dd89d 0%, #3ec487 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover lift effect for cards */
.group:hover .group-hover\:-translate-y-1 {
    transform: translateY(-4px);
}

/* Ensure all interactive elements have proper touch targets on mobile */
@media (max-width: 768px) {
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Print styles */
@media print {
    nav, #hero, .reveal, footer {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
