/* Custom Styles for Brooks Food Market */

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

/* Base Typography */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #F8FAFC;
}
::-webkit-scrollbar-thumb {
    background: #A7F3D0;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6EE7B7;
}

/* Navigation Transition */
nav.scrolled {
    background-color: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(10px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Hero Animations */
.hero-subtitle {
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-title {
    animation: slideUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-desc {
    animation: slideUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-buttons {
    animation: slideUp 0.8s ease-out 0.6s forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu.closed {
    transform: translateX(100%);
}

/* Intersection Observer Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* Image Hover Effects */
img {
    max-width: 100%;
    height: auto;
}

/* Focus States for Accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #A7F3D0;
    outline-offset: 2px;
}

/* Form Focus States */
input:focus,
textarea:focus {
    border-color: #A7F3D0 !important;
}

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

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

.mobile-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: #A7F3D0;
    transition: width 0.3s ease;
}

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

/* Decorative Elements */
.decoration-line {
    width: 60px;
    height: 2px;
    background-color: #A7F3D0;
    margin: 20px 0;
}

/* Print Styles */
@media print {
    nav,
    #contact-form,
    .mobile-menu-btn {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: none;
        color: #000;
    }
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --tw-text-opacity: 1;
    }
    
    .text-charcoal {
        color: #000;
    }
    
    .text-gray-400 {
        color: #333;
    }
}
