/* ============================================
   O.K Liquor Store — Custom Styles
   Bold Editorial | Burgundy + Blush
   ============================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #b82e2e;
    color: #faf8f5;
}

/* ---- Navbar ---- */
#navbar {
    background: rgba(250, 248, 245, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 20, 18, 0.06);
}

#navbar.scrolled {
    background: rgba(250, 248, 245, 0.95);
    box-shadow: 0 1px 20px rgba(26, 20, 18, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #b82e2e;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ---- Mobile Menu ---- */
.mobile-link {
    position: relative;
}

/* ---- Hero Animations ---- */
.hero-eyebrow {
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-headline {
    animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-subheadline {
    animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-ctas {
    animation: fadeUp 0.8s ease forwards 0.8s;
}

.hero-scroll {
    animation: fadeUp 0.8s ease forwards 1s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.8;
        transform: scaleY(1.2);
    }
}

/* ---- Buttons ---- */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

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

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

/* ---- Mobile Menu States ---- */
.mobile-menu-open #mobileMenu {
    opacity: 1;
    pointer-events: all;
}

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

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

.mobile-menu-open .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Image Hover Enhancement ---- */
.group img {
    will-change: transform;
}

/* ---- Smooth Focus ---- */
input:focus,
textarea:focus {
    outline: none;
}

/* ---- Print ---- */
@media print {
    #navbar, .hero-scroll, .scroll-line {
        display: none;
    }
}
