/* Custom styles for Mid-Forest Lodge */

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

/* Text shadow for nav on light backgrounds */
.text-shadow {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Hero animations - above the fold, no hidden state */
.hero-subtitle {
    animation: fadeInDown 0.8s ease-out forwards;
}

.hero-headline {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-desc {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.hero-cta {
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal animations - below the fold only */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1; /* Default visible - JS enhances with animation */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-up {
    transform: translateY(0);
}

.reveal-left {
    transform: translateX(0);
}

.reveal-right {
    transform: translateX(0);
}

/* Animated states - applied by JS */
.reveal-up.animated {
    transform: translateY(30px);
    opacity: 0;
}

.reveal-left.animated {
    transform: translateX(-30px);
    opacity: 0;
}

.reveal-right.animated {
    transform: translateX(30px);
    opacity: 0;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal-up.animated,
    .reveal-left.animated,
    .reveal-right.animated {
        transform: none;
        opacity: 1;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .hero-subtitle,
    .hero-headline,
    .hero-desc,
    .hero-cta {
        animation: none;
        opacity: 1;
    }
}

/* Mobile navigation link styles */
.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.5);
    transition: width 0.3s ease;
}

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

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

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

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

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

::-webkit-scrollbar-thumb {
    background: #134e4a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0f766e;
}

/* Image loading optimization */
img {
    max-width: 100%;
    height: auto;
}
