/* ========================================
   Deep Ellum Alcohol Distillery
   Custom Styles
   ======================================== */

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

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: rgba(200, 150, 62, 0.3);
    color: #F5E6C0;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #060608;
}
::-webkit-scrollbar-thumb {
    background: #2A2A35;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C8963E;
}

/* Scroll indicator animation */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.7); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* Process cards */
.process-card {
    position: relative;
}

.process-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #C8963E, #E8C97E);
    transition: width 0.5s ease;
}

.process-card:hover::after {
    width: 100%;
}

/* Spirit cards */
.spirit-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.spirit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(200, 150, 62, 0.08);
}

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

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

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

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

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 24px;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(6, 6, 8, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(42, 42, 53, 0.5);
}

.nav-scrolled #navbar {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238888A0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .scroll-line {
        animation: none;
    }
    .spirit-card:hover {
        transform: none;
    }
    .process-card::after {
        transition: none;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    #hero h1 {
        font-size: 3.5rem;
    }
}

/* Small mobile */
@media (max-width: 360px) {
    #hero h1 {
        font-size: 2.25rem;
    }
    .font-display.text-5xl {
        font-size: 2rem;
    }
}
