/* Custom Styles for Darlington Beer Distributor */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #040B16;
    color: #ffffff;
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: #0A1628;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #2A9D73;
}

/* Navbar Styles */
#navbar {
    background: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(4, 11, 22, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile Menu */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #4BBF90;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.mobile-link:hover::after {
    width: 100%;
}

/* Hero Image Grid */
@media (min-width: 1024px) {
    .grid-cols-2 > div:first-child {
        display: grid;
        gap: 1rem;
    }
}

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

/* Button Animations */
button, a {
    transition: all 0.2s ease;
}

/* Focus Styles */
input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(75, 191, 144, 0.2);
}

/* Animation Keyframes */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* 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;
    }
}

/* Print Styles */
@media print {
    #navbar,
    #mobileMenu {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .bg-midnight-900,
    .bg-midnight-800,
    .bg-midnight-700 {
        background: white !important;
        color: black !important;
    }
}

/* High Contrast Mode */
@media (forced-colors: active) {
    .bg-midnight-900 {
        background: Canvas !important;
    }
    
    .text-mint-400 {
        color: CanvasText !important;
    }
}

/* Accessibility: Focus Visible */
*:focus-visible {
    outline: 2px solid #4BBF90;
    outline-offset: 2px;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

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