/* ============================================
   Portage Lake Rental Cabin — Custom Styles
   ============================================ */

/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf9f6;
}
::-webkit-scrollbar-thumb {
    background: #2d8566;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1a5240;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(250, 249, 246, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(26, 82, 64, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: #2d8566;
    transition: width 0.3s ease;
}

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

/* Mobile Menu */
#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
#mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
#mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

.mobile-link {
    position: relative;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-subtitle {
    animation: slideUp 0.8s ease forwards 0.2s;
}
.hero-title {
    animation: slideUp 0.8s ease forwards 0.4s;
}
.hero-desc {
    animation: slideUp 0.8s ease forwards 0.6s;
}
.hero-cta-primary {
    animation: slideUp 0.8s ease forwards 0.8s;
}
.hero-cta-secondary {
    animation: slideUp 0.8s ease forwards 0.9s;
}
.hero-stats {
    animation: slideUp 0.8s ease forwards 1s;
}
.hero-image-wrapper {
    animation: fadeIn 1s ease forwards 0.5s;
    opacity: 0;
}
.hero-accent-card {
    animation: floatUp 0.8s ease forwards 1.2s;
    opacity: 0;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ============================================
   Section Animations (Scroll-triggered)
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* About section animations */
.about-label { transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s; opacity: 0; transform: translateY(20px); }
.about-title { transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s; opacity: 0; transform: translateY(20px); }
.about-divider { transition: width 0.6s ease 0.3s; width: 0; }
.about-text { transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s; opacity: 0; transform: translateY(20px); }
.about-feature { transition: opacity 0.5s ease, transform 0.5s ease; opacity: 0; transform: translateX(-10px); }
.about-img-1 { transition: opacity 0.7s ease, transform 0.7s ease; opacity: 0; transform: scale(0.97); }
.about-img-2 { transition: opacity 0.7s ease 0.1s, transform 0.7s ease 0.1s; opacity: 0; transform: scale(0.97); }
.about-img-3 { transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s; opacity: 0; transform: scale(0.97); }

.about-animate.visible .about-label { opacity: 1; transform: translateY(0); }
.about-animate.visible .about-title { opacity: 1; transform: translateY(0); }
.about-animate.visible .about-divider { width: 4rem; }
.about-animate.visible .about-text { opacity: 1; transform: translateY(0); }
.about-animate.visible .about-feature { opacity: 1; transform: translateX(0); }
.about-animate.visible .about-img-1 { opacity: 1; transform: scale(1); }
.about-animate.visible .about-img-2 { opacity: 1; transform: scale(1); }
.about-animate.visible .about-img-3 { opacity: 1; transform: scale(1); }

.about-animate.visible .about-feature:nth-child(1) { transition-delay: 0.5s; }
.about-animate.visible .about-feature:nth-child(2) { transition-delay: 0.6s; }
.about-animate.visible .about-feature:nth-child(3) { transition-delay: 0.7s; }

/* Amenities animations */
.amenities-label { transition: opacity 0.6s ease, transform 0.6s ease; opacity: 0; transform: translateY(20px); }
.amenities-title { transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s; opacity: 0; transform: translateY(20px); }
.amenities-divider { transition: width 0.6s ease 0.2s; width: 0; }
.amenities-desc { transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s; opacity: 0; transform: translateY(20px); }
.amenity-card { transition: opacity 0.5s ease, transform 0.5s ease; opacity: 0; transform: translateY(30px); }

.amenities-animate.visible .amenities-label { opacity: 1; transform: translateY(0); }
.amenities-animate.visible .amenities-title { opacity: 1; transform: translateY(0); }
.amenities-animate.visible .amenities-divider { width: 4rem; }
.amenities-animate.visible .amenities-desc { opacity: 1; transform: translateY(0); }
.amenities-animate.visible .amenity-card { opacity: 1; transform: translateY(0); }

.amenities-animate.visible .amenity-card:nth-child(1) { transition-delay: 0.1s; }
.amenities-animate.visible .amenity-card:nth-child(2) { transition-delay: 0.2s; }
.amenities-animate.visible .amenity-card:nth-child(3) { transition-delay: 0.3s; }
.amenities-animate.visible .amenity-card:nth-child(4) { transition-delay: 0.4s; }
.amenities-animate.visible .amenity-card:nth-child(5) { transition-delay: 0.5s; }
.amenities-animate.visible .amenity-card:nth-child(6) { transition-delay: 0.6s; }

/* Location animations */
.location-label { transition: opacity 0.6s ease, transform 0.6s ease; opacity: 0; transform: translateY(20px); }
.location-title { transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s; opacity: 0; transform: translateY(20px); }
.location-divider { transition: width 0.6s ease 0.2s; width: 0; }
.location-item { transition: opacity 0.5s ease, transform 0.5s ease; opacity: 0; transform: translateX(-10px); }

.location-animate.visible .location-label { opacity: 1; transform: translateY(0); }
.location-animate.visible .location-title { opacity: 1; transform: translateY(0); }
.location-animate.visible .location-divider { width: 4rem; }
.location-animate.visible .location-item { opacity: 1; transform: translateX(0); }

.location-animate.visible .location-item:nth-child(1) { transition-delay: 0.3s; }
.location-animate.visible .location-item:nth-child(2) { transition-delay: 0.4s; }
.location-animate.visible .location-item:nth-child(3) { transition-delay: 0.5s; }

/* Contact animations */
.contact-label { transition: opacity 0.6s ease, transform 0.6s ease; opacity: 0; transform: translateY(20px); }
.contact-title { transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s; opacity: 0; transform: translateY(20px); }
.contact-form-wrapper { transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s; opacity: 0; transform: translateY(20px); }

.contact-animate.visible .contact-label { opacity: 1; transform: translateY(0); }
.contact-animate.visible .contact-title { opacity: 1; transform: translateY(0); }
.contact-animate.visible .contact-form-wrapper { opacity: 1; transform: translateY(0); }

/* ============================================
   Contact Form
   ============================================ */
.contact-input:focus {
    border-color: #2d8566;
    box-shadow: 0 0 0 3px rgba(45, 133, 102, 0.1);
}

.contact-input::placeholder {
    color: #a0a8a0;
}

.contact-submit {
    position: relative;
    overflow: hidden;
}

.contact-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.contact-submit:hover::before {
    left: 100%;
}

/* ============================================
   Utility & Extras
   ============================================ */
@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;
    }
}

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

/* Selection color */
::selection {
    background-color: #1a5240;
    color: #faf9f6;
}
