/* Custom Styles for Slingin Spirits */

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A1628;
}
::-webkit-scrollbar-thumb {
    background: #C9A84C;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #D4AF5A;
}

/* Selection Color */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #fff;
}

/* Base Typography */
body {
    font-family: 'Montserrat', sans-serif;
}

h1, h2, h3, h4, .font-serif {
    font-family: 'Cormorant Garamond', serif;
}

/* Navbar Transition */
#navbar.scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

#navbar.scrolled .font-serif {
    color: #fff !important;
}

/* Mobile Menu Animation */
#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

#mobile-menu.closed {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Hamburger Animation */
#menu-toggle.active #bar1 {
    transform: rotate(45deg) translate(5px, 5px);
}
#menu-toggle.active #bar2 {
    opacity: 0;
}
#menu-toggle.active #bar3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Mobile Links */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

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

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

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    img {
        transition: none;
    }
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Gold Gradient Text Utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #D4AF5A 0%, #C9A84C 50%, #B8943F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Image Hover Zoom */
img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Button Focus Styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Card Hover Lift */
.group:hover {
    transform: translateY(-4px);
}

.group {
    transition: transform 0.4s ease;
}

/* Loading State for Images */
img {
    background: linear-gradient(135deg, #0F1F36 0%, #162A44 100%);
}

/* Decorative Line Animation */
@keyframes expandWidth {
    from { width: 0; }
    to { width: 3rem; }
}

.gold-line {
    animation: expandWidth 0.6s ease forwards;
}

/* Pulse Animation for CTA */
@keyframes subtlePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.3); }
    50% { box-shadow: 0 0 20px 5px rgba(201, 168, 76, 0.15); }
}

.cta-pulse {
    animation: subtlePulse 3s ease-in-out infinite;
}

/* Parallax-like effect for hero */
@supports (background-attachment: fixed) {
    #hero .absolute > img {
        background-attachment: fixed;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }
    
    #hero h1 {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    nav, #menu-toggle, .cta-pulse {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .bg-navy-900, .bg-navy-800, .bg-navy-700 {
        background: white !important;
    }
    
    .text-white, .text-white\/50, .text-white\/40, .text-white\/70, .text-white\/80, .text-white\/60 {
        color: black !important;
    }
    
    .text-gold-500, .text-gold-400 {
        color: #333 !important;
    }
}
