/* ═══════════════════════════════════════════
   CIGAR CONNOISSEUR — Custom Styles
   ═══════════════════════════════════════════ */

/* ── Hero Gradient ── */
.hero-gradient {
    background: linear-gradient(
        135deg,
        #1e1e24 0%,
        #2d2d34 25%,
        #3a2520 50%,
        #4a2c22 75%,
        #1e1e24 100%
    );
}

/* ── Hero Orbs Animation ── */
@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -40px) scale(1.05); }
}

@keyframes float-medium {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-25px, 35px) scale(1.08); }
}

@keyframes float-fast {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

.hero-orb {
    will-change: transform;
}

.orb-1 { animation: float-slow 12s ease-in-out infinite; }
.orb-2 { animation: float-medium 15s ease-in-out infinite; }
.orb-3 { animation: float-fast 9s ease-in-out infinite; }

/* ── Hero Content Animation ── */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#hero > .relative.z-10 > * {
    animation: heroFadeUp 0.8s ease-out forwards;
}

#hero > .relative.z-10 > *:nth-child(1) { animation-delay: 0.1s; }
#hero > .relative.z-10 > *:nth-child(2) { animation-delay: 0.25s; }
#hero > .relative.z-10 > *:nth-child(3) { animation-delay: 0.4s; }
#hero > .relative.z-10 > *:nth-child(4) { animation-delay: 0.55s; }

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

    .reveal[data-delay="100"] { transition-delay: 100ms; }
    .reveal[data-delay="200"] { transition-delay: 200ms; }
    .reveal[data-delay="300"] { transition-delay: 300ms; }
}

/* Fallback: always visible if JS disabled or reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ── Gallery Scroll ── */
@keyframes scroll-gallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-scroll {
    display: flex;
    gap: 16px;
    animation: scroll-gallery 35s linear infinite;
    width: max-content;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

/* ── Navbar Scrolled State ── */
.navbar-scrolled {
    background: rgba(19, 19, 23, 0.92) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.navbar-scrolled header nav {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* ── Smooth Card Hover ── */
.card-group {
    will-change: transform, box-shadow;
}

/* ── Mobile Menu Transitions ── */
#mobile-menu {
    pointer-events: none;
}

#mobile-menu.open {
    pointer-events: all;
}

/* ── Selection Color ── */
::selection {
    background: rgba(244, 132, 95, 0.3);
    color: inherit;
}

/* ── Focus Visible ── */
:focus-visible {
    outline: 2px solid #f4845f;
    outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
    background: #1e1e24;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #52525b;
}

/* ── Form Focus States Override (Tailwind) ── */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(244, 132, 95, 0.15);
}

/* ── Responsive Adjustments ── */
@media (max-width: 640px) {
    .hero-gradient {
        background: linear-gradient(
            160deg,
            #131317 0%,
            #1e1e24 40%,
            #2d2018 70%,
            #1e1e24 100%
        );
    }
}
