/* ========================================
   White Lake Lodges — Custom Styles
   ======================================== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #0d9488;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0f766e;
}

/* Selection color */
::selection {
    background: #0d9488;
    color: #fff;
}

/* ========================================
   Hero Animations
   ======================================== */
.hero-eyebrow {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.8s ease forwards 0.3s;
}

.hero-title {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.8s ease forwards 0.5s;
}

/* Floating card animations */
.floating-card {
    opacity: 0;
    animation: floatIn 0.6s ease forwards;
}
.floating-card:nth-child(1) { animation-delay: 1s; }
.floating-card:nth-child(2) { animation-delay: 1.2s; }
.floating-card:nth-child(3) { animation-delay: 1.4s; }

/* Keyframes */
@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ========================================
   Scroll Reveal Animations
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ========================================
   Navbar
   ======================================== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

#navbar.scrolled .group span,
#navbar.scrolled .font-serif {
    color: #0f172a;
}

#navbar.scrolled nav a {
    color: #475569;
}

#navbar.scrolled nav a:hover {
    color: #0d9488;
}

/* ========================================
   Mobile Menu
   ======================================== */
#menu-btn.active #line1 {
    transform: rotate(45deg) translate(4px, 4px);
}
#menu-btn.active #line2 {
    opacity: 0;
}
#menu-btn.active #line3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

#mobile-menu.open {
    transform: translateX(0);
}

/* ========================================
   Accordion (if needed)
   ======================================== */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-content.open {
    max-height: 500px;
}

/* ========================================
   Button hover effects
   ======================================== */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ========================================
   Responsive adjustments
   ======================================== */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }
}

/* ========================================
   Print styles
   ======================================== */
@media print {
    #navbar, #mobile-menu, .floating-card {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
