/* Custom styles for The Liquor Shed */

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

/* Navbar scroll state */
nav.scrolled {
    background-color: rgba(254, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

nav.scrolled .nav-logo-text {
    color: #1A1A1A;
}

nav.scrolled .nav-link {
    color: #2D2D2D;
}

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

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

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

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

/* Hero image grid */
.hero-image-grid {
    position: relative;
    padding: 16px;
}

.floating-card {
    animation: float 4s ease-in-out infinite;
}

.accent-img {
    animation: float 4s 1s ease-in-out infinite;
}

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

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

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(107, 15, 26, 0.15);
}

/* About images */
.about-img-main {
    transition: transform 0.6s ease;
}

.about-img-main:hover {
    transform: scale(1.01);
}

.about-stats {
    animation: slideUp 0.8s 0.4s ease forwards;
    opacity: 0;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Mobile menu */
.mobile-nav-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-nav-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-nav-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-nav-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-nav-link:nth-child(4) { transition-delay: 0.2s; }

/* Menu button animation */
.menu-line {
    transition: all 0.3s ease;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #6B0F1A;
}

/* Selection color */
::selection {
    background-color: rgba(107, 15, 26, 0.15);
    color: #1A1A1A;
}

/* Focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #6B0F1A;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-image-grid {
        padding: 12px;
    }

    .floating-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 16px;
        animation: none;
    }

    .accent-img {
        position: relative;
        top: auto;
        right: auto;
        width: 100px;
        height: 100px;
        animation: none;
    }

    .about-stats {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 16px;
    }
}
