/* Custom styles for Lake Placid Pub & Brewery Company */

:root {
    --brand-50: #f2fcf5;
    --brand-100: #e1f7e7;
    --brand-200: #c3ebd1;
    --brand-300: #94d9b0;
    --brand-400: #5ebe8a;
    --brand-500: #38a16b;
    --brand-600: #247a50;
    --brand-700: #1c6140;
    --brand-800: #184f34;
    --brand-900: #133f2a;
    --brand-950: #0a2318;
    --cream-50: #fefdf8;
    --cream-100: #fdf9ed;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(10, 35, 24, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

.nav-scrolled a:not(.bg-brand-500) {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

#mobile-menu.open {
    max-height: 400px;
}

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

::-webkit-scrollbar-track {
    background: var(--cream-50);
}

::-webkit-scrollbar-thumb {
    background: var(--brand-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-400);
}

/* Selection color */
::selection {
    background: var(--brand-200);
    color: var(--brand-950);
}

/* Image lazy load fade */
img[loading="lazy"] {
    transition: opacity 0.5s ease;
}

img[loading="lazy"]:not(.loaded) {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--brand-400);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Button hover effects */
a.bg-brand-500:hover {
    background-color: var(--brand-400) !important;
}

/* Smooth image rendering */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Print styles */
@media print {
    nav, #hero, .reveal {
        display: none !important;
    }
    body {
        color: #000 !important;
        background: #fff !important;
    }
}
