/* ===== Custom Styles for Joe's Country Store ===== */

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

body {
    overflow-x: hidden;
}

/* ===== Navbar ===== */
#navbar {
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-blur-xl;
    box-shadow: 0 1px 20px rgba(123, 45, 142, 0.08);
}

.nav-link {
    position: relative;
}

/* ===== Hero Stat Cards ===== */
.stat-card {
    animation: float 6s ease-in-out infinite;
}

.stat-card.card-1 { animation-delay: 0s; }
.stat-card.card-2 { animation-delay: -1.5s; }
.stat-card.card-3 { animation-delay: -3s; }
.stat-card.card-4 { animation-delay: -4.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* ===== Menu Cards ===== */
.menu-card {
    position: relative;
    overflow: hidden;
}

.menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7B2D8E, #fbbf24);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-card:hover::before {
    opacity: 1;
}

/* ===== Vibe Cards ===== */
.vibe-card {
    cursor: pointer;
}

.vibe-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    pointer-events: none;
}

.vibe-card:hover::after {
    border-color: rgba(251, 191, 36, 0.5);
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
    transition: transform 0.3s ease, background 0.3s ease;
}

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

/* ===== Info Cards ===== */
.info-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .stat-card {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

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

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .stat-card {
        animation: none !important;
    }
}
