/* ================================================================
   BARS UNITED — GSAP Cinematic Layer
   Animations · Funnel mechanics · Conversion UI
   Applied ON TOP of bars-united.css — no content changes
   ================================================================ */

/* --- Hero: start invisible, GSAP reveals --- */
.bu-hero-bg img,
.bu-hero-dark,
.bu-hero-grain,
.bu-hero h1,
.bu-hero-sub,
.bu-hero-date,
.bu-hero-cities span,
.bu-hero-cta,
.bu-scroll-hint {
    visibility: hidden;
}

/* --- Disable CSS transitions on .bu-reveal — GSAP takes over --- */
.bu-page .bu-reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

/* --- Gold glow pulse (infinite) --- */
.bu-glow-pulse {
    animation: glow-pulse 1.8s ease-in-out infinite;
}
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 15px rgba(242, 201, 76, 0.3); }
    50%      { box-shadow: 0 0 30px rgba(242, 201, 76, 0.7); }
}

/* --- Hero CTA gets the pulse permanently --- */
.bu-hero-cta {
    animation: glow-pulse 1.8s ease-in-out infinite;
}

/* --- Mid-funnel CTA --- */
.bu-mid-cta {
    padding: 40px 24px;
    background: var(--bu-bg);
}

/* --- Scroll progress bar --- */
.bu-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--bu-gold);
    box-shadow: 0 0 8px rgba(242, 201, 76, 0.5);
    z-index: 200;
    transition: width 0.05s linear;
    pointer-events: none;
}

/* --- Desktop floating CTA --- */
.bu-float-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 90;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.4s, transform 0.4s;
}
.bu-float-cta.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.bu-float-cta a {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bu-gold);
    color: var(--bu-black, #000);
    font-family: var(--bu-font-display);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: glow-pulse 1.8s ease-in-out infinite;
}
.bu-float-cta a:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(242, 201, 76, 0.7);
}
.bu-float-cta a svg {
    flex-shrink: 0;
}
/* Hide floating CTA on mobile — sticky bar handles it */
@media (max-width: 767px) {
    .bu-float-cta { display: none; }
}

/* --- Exit intent overlay --- */
.bu-exit-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
}
.bu-exit-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}
.bu-exit-card {
    background: var(--bu-bg-alt, #141414);
    border: 2px solid var(--bu-gold);
    padding: 48px 36px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.bu-exit-overlay.is-visible .bu-exit-card {
    transform: scale(1);
}
.bu-exit-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--bu-white-80, rgba(245,242,234,0.8));
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.bu-exit-close:hover { color: var(--bu-gold); }
.bu-exit-title {
    font-family: var(--bu-font-display);
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--bu-gold);
    margin-bottom: 8px;
}
.bu-exit-sub {
    font-size: 15px;
    color: var(--bu-white-80, rgba(245,242,234,0.8));
}

/* --- Parallax: GSAP moves these, just ensure GPU layer --- */
.bu-hero-bg img {
    will-change: transform;
}

/* --- Reduced motion: disable everything --- */
@media (prefers-reduced-motion: reduce) {
    .bu-glow-pulse,
    .bu-hero-cta { animation: none !important; }
    .bu-progress { display: none; }
    .bu-hero-bg img,
    .bu-hero-dark,
    .bu-hero-grain,
    .bu-hero h1,
    .bu-hero-sub,
    .bu-hero-date,
.bu-hero-cities span,
    .bu-hero-cta,
    .bu-scroll-hint {
        visibility: visible !important;
    }
    .bu-page .bu-reveal { opacity: 1; transform: none; }
}
