/* Custom styles for Ted's Smokehouse BBQ */

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(5, 46, 22, 0.08);
}

.nav-scrolled .nav-logo-text {
    color: #052e16 !important;
}

.nav-scrolled .nav-link {
    color: #166534 !important;
}

.nav-logo-text {
    color: #052e16;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes smokeWaft {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.08;
    }
    50% {
        transform: translateY(-40px) translateX(20px) scale(1.1);
        opacity: 0.15;
    }
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

.animate-slide-up-delay {
    animation: slideUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-slide-up-delay-2 {
    animation: slideUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.smoke-waft {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(254, 253, 248, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.smoke-1 {
    top: 20%;
    left: 10%;
    animation: smokeWaft 6s ease-in-out infinite;
}

.smoke-2 {
    top: 40%;
    right: 15%;
    width: 150px;
    height: 150px;
    animation: smokeWaft 8s ease-in-out infinite 1s;
}

.smoke-3 {
    bottom: 30%;
    left: 30%;
    width: 180px;
    height: 180px;
    animation: smokeWaft 7s ease-in-out infinite 2s;
}

/* Scroll reveal */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal:not(.revealed) {
    opacity: 1;
    transform: translateY(20px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Menu cards */
.menu-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Gallery items */
.gallery-item {
    cursor: pointer;
}

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

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

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

.mobile-menu-link {
    display: block;
    padding: 8px 0;
}

/* Utility */
.text-shadow {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #14532d;
}

/* Selection */
::selection {
    background: #166534;
    color: #fefdf8;
}
