/* Custom Styles for Beans & Barley Brews */

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

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

::-webkit-scrollbar-track {
    background: #1a0f14;
}

::-webkit-scrollbar-thumb {
    background: #4a2232;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b3047;
}

/* Selection Color */
::selection {
    background: #f59e0b;
    color: #1a0f14;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Reveal Animations */
.reveal-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.reveal-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.reveal-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

/* Staggered Delays */
.reveal-up:nth-child(1) { animation-delay: 0ms; }
.reveal-up:nth-child(2) { animation-delay: 100ms; }
.reveal-up:nth-child(3) { animation-delay: 200ms; }
.reveal-up:nth-child(4) { animation-delay: 300ms; }
.reveal-up:nth-child(5) { animation-delay: 400ms; }
.reveal-up:nth-child(6) { animation-delay: 500ms; }

/* Reduced Motion */
@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 Optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Focus Styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    nav,
    #menu-btn,
    #mobile-menu,
    button {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .bg-plum-800 {
        background-color: #000 !important;
    }
    
    .text-plum-200 {
        color: #fff !important;
    }
}

/* Landscape Mode Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    #home {
        min-height: 100vh;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .group:hover .group-hover\:scale-110 {
        transform: none;
    }
    
    .group:hover .group-hover\:bg-plum-900 {
        background-color: transparent;
    }
}

/* Accessibility: Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #f59e0b;
    color: #1a0f14;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Subtle Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
