/* ============================================
   Liquor House — Custom Styles
   ============================================ */

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

/* Custom selection color */
::selection {
    background-color: #C8A961;
    color: #102a43;
}

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

/* Navbar scrolled state */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(16, 42, 67, 0.08);
}

.nav-scrolled .nav-logo-text {
    color: #102a43;
}

.nav-scrolled .nav-link {
    color: #334e68;
}

.nav-scrolled .nav-link:hover {
    color: #102a43;
    background-color: rgba(255, 255, 255, 0.8);
}

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

#mobile-menu.hidden {
    animation: slideUp 0.25s ease forwards;
}

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

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

/* Mobile link hover */
.mobile-link {
    transition: all 0.3s ease;
}

/* Fade-in animation for sections */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered fade-in delays */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* Image hover zoom container */
img {
    max-width: 100%;
    height: auto;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C8A961;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Subtle gradient overlay for hero */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(200, 169, 97, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Card hover lift */
.group:hover .group-hover\:-translate-y-1 {
    transform: translateY(-4px);
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #C8A961 0%, #f6e09e 50%, #C8A961 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle border animation */
.border-gold-hover:hover {
    border-color: #C8A961 !important;
    box-shadow: 0 0 0 3px rgba(200, 169, 97, 0.15);
}

/* Smooth image loading */
img {
    transition: opacity 0.4s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Prevent layout shift on images */
.rounded-\[2\.5rem\] {
    border-radius: 2.5rem;
}

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

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

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

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

/* Touch-friendly tap targets on mobile */
@media (max-width: 767px) {
    .mobile-link {
        padding: 14px 16px;
        min-height: 48px;
    }
}

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