/* ── Custom Styles for Gaslite Lounge ── */

/* Clip paths for asymmetric backgrounds */
.clip-diagonal {
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

.clip-diagonal-reverse {
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

/* ── Navbar ── */
.nav-link {
    position: relative;
}

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

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

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

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.open .mobile-link {
    animation: fadeUp 0.4s ease forwards;
    opacity: 0;
}

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

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

/* ── Hero Animations ── */
.hero-tag {
    animation: heroIn 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-title {
    animation: heroIn 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero-subtitle {
    animation: heroIn 0.8s ease forwards;
    animation-delay: 0.6s;
}

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

.hero-stats {
    animation: heroIn 0.8s ease forwards;
    animation-delay: 1s;
}

.hero-img-main {
    animation: heroImgIn 1s ease forwards;
    animation-delay: 0.5s;
}

.hero-img-accent {
    animation: heroImgIn 1s ease forwards;
    animation-delay: 0.8s;
}

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

@keyframes heroImgIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ── Scroll Reveal ── */
.reveal {
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* ── Specialty Cards ── */
.specialty-card {
    transition: transform 0.4s ease;
}

.specialty-card:hover {
    transform: translateY(-4px);
}

/* ── Gallery Images ── */
.gallery-img {
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.gallery-img:hover img {
    filter: brightness(1.05);
}

/* ── Back to Top ── */
.back-to-top {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.back-to-top.hide {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
}

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

/* ── Selection ── */
::selection {
    background: rgba(13, 148, 136, 0.2);
    color: inherit;
}

/* ── Focus Styles ── */
:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ── Responsive Adjustments ── */
@media (max-width: 767px) {
    .clip-diagonal {
        clip-path: none;
        opacity: 0.5;
    }

    .clip-diagonal-reverse {
        clip-path: none;
        opacity: 0.5;
    }
}
