/* ===================================
   Bar-B-Que King — Custom Styles
   =================================== */

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

/* Custom selection color */
::selection {
    background-color: #065f46;
    color: #fefdf8;
}

/* Navbar transition */
.nav-logo-text {
    transition: color 0.4s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
    opacity: 0.4;
}

.nav-link:hover::after {
    width: 100%;
    opacity: 1;
}

/* Mobile menu animations */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

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

/* Hero animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-eyebrow {
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-headline {
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-sub {
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-ctas {
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.hero-scroll {
    animation: fadeInUp 0.8s ease 1.2s forwards;
}

/* Scroll-triggered animation states */
.is-visible {
    animation: fadeInUp 0.7s ease forwards;
}

/* Menu card hover effect */
.menu-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.menu-card:hover {
    transform: translateY(-4px);
}

/* Gallery hover */
.gallery-item {
    cursor: pointer;
    transition: transform 0.4s ease, opacity 0.5s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

/* Visit cards */
.visit-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.visit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(6, 95, 70, 0.08);
}

/* Feature items */
.feature-item {
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
}

/* Button active states */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@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;
    }
}

/* Map container fix */
.map-container {
    min-height: 450px;
}

/* Form styles */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

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

::-webkit-scrollbar-track {
    background: #fefdf8;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Print styles */
@media print {
    nav, #contact, .gallery-item, .hero-scroll {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
