/* Custom styles for Klondyke Horsehead Lodge */

:root {
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
    --cream-50: #fdfbf7;
    --cream-100: #faf5eb;
    --cream-200: #f5edd6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #fdfbf7;
    color: #064e3b;
    overflow-x: hidden;
}

/* Navbar scroll effect */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(4, 120, 87, 0.08);
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Card hover effects */
.rounded-2xl {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rounded-2xl:hover {
    transform: translateY(-4px);
}

/* Floating stat cards */
.absolute.rounded-2xl {
    animation: float 6s ease-in-out infinite;
}

.absolute.rounded-2xl:nth-child(2) {
    animation-delay: -2s;
}

.absolute.rounded-2xl:nth-child(3) {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(2deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

.absolute.rounded-2xl:nth-child(2) {
    animation-name: float2;
}

@keyframes float2 {
    0%, 100% {
        transform: translateY(0px) rotate(-1deg);
    }
    50% {
        transform: translateY(-8px) rotate(-1deg);
    }
}

.absolute.rounded-2xl:nth-child(3) {
    animation-name: float3;
}

@keyframes float3 {
    0%, 100% {
        transform: translateY(0px) rotate(1deg);
    }
    50% {
        transform: translateY(-6px) rotate(1deg);
    }
}

/* Button focus styles */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

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

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

::-webkit-scrollbar-thumb {
    background: #059669;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Gallery hover */
.rounded-2xl.overflow-hidden img {
    transition: transform 0.5s ease;
}

.rounded-2xl.overflow-hidden:hover img {
    transform: scale(1.05);
}

/* Form transitions */
input, select, textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Date input styling */
input[type="date"] {
    color-scheme: light;
}
