/* Custom styles for Talkeetna Chuck Wagon */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: #3d3d3d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #E86A5B;
}

/* Selection color */
::selection {
    background: #E86A5B;
    color: white;
}

/* Navbar glass effect on scroll */
.nav-scrolled {
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(61, 61, 61, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Reveal animations - progressive enhancement with prefers-reduced-motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .reveal-hidden {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Fallback for no-JS: all content visible */
.no-js .reveal-hidden {
    opacity: 1;
    transform: translateY(0);
}

/* Hero parallax-like subtle effect */
#hero {
    background-attachment: fixed;
}

@media (max-width: 768px) {
    #hero {
        background-attachment: scroll;
    }
}

/* Card hover effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Coral glow on focus */
a:focus-visible, button:focus-visible {
    outline: 2px solid #E86A5B;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Image lazy load fallback */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent layout shift */
.aspect-\[4\/5\] { aspect-ratio: 4/5; }
.aspect-\[4\/3\] { aspect-ratio: 4/3; }
.aspect-square { aspect-ratio: 1 / 1; }

/* Ensure readability on all backgrounds */
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }

/* Print styles */
@media print {
    nav, .reveal-hidden, #gallery {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
