/* Custom styles for The Key Lime Cottage */

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

/* Navigation scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(4, 11, 22, 0.08);
}

.nav-scrolled .nav-text-color {
    color: #040B16 !important;
}

.nav-scrolled .nav-sub-text {
    color: #0d9488 !important;
}

.nav-scrolled .nav-link {
    color: rgba(4, 11, 22, 0.7) !important;
}

.nav-scrolled .mobile-nav-link {
    color: rgba(4, 11, 22, 0.8) !important;
}

/* Hero nav state */
.hero-nav .nav-text-color {
    color: #ffffff !important;
}

.hero-nav .nav-sub-text {
    color: #5eead4 !important;
}

.hero-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

.hero-nav .mobile-nav-link {
    color: rgba(4, 11, 22, 0.8) !important;
}

/* Scroll reveal animations - progressive enhancement */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
    }
    
    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
    }
    
    .reveal-up.visible,
    .reveal-left.visible,
    .reveal-right.visible {
        opacity: 1;
        transform: none;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

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

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

/* Gallery hover effects */
.rounded-xl overflow-hidden img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}
