/* ============================================
   Time Out Lounge — Custom Styles
   Teal + Slate Grey | Clean Minimalist
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(13, 148, 136, 0.2);
    color: #0f766e;
}

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

::-webkit-scrollbar-track {
    background: #f8fafc;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

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

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

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

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

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

.hero-subhead {
    animation: heroFadeUp 0.8s ease forwards 0.6s;
}

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

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

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

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(8px);
        opacity: 0.5;
    }
}

/* --- Reveal Animations (Below Fold Only) --- */
.reveal {
    /* Default state: visible for accessibility */
    opacity: 1;
}

.reveal.fade-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Progressive enhancement: add animation state via JS */
.reveal.animate-out.fade-up {
    opacity: 0;
    transform: translateY(24px);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .reveal.animate-out.fade-up {
        opacity: 1;
        transform: translateY(0);
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .scroll-indicator {
        animation: none;
    }
    
    .hero-eyebrow,
    .hero-headline,
    .hero-subhead,
    .hero-ctas {
        animation: none;
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Feature Items --- */
.feature-item {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-item.animate-out {
    opacity: 0;
    transform: translateX(-16px);
}

/* --- Visit Items --- */
.visit-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.visit-item.animate-out {
    opacity: 0;
    transform: translateY(12px);
}

/* --- Product Card Hover --- */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* --- Button Focus States --- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
    border-radius: 2px;
}

/* --- Mobile Menu --- */
#mobile-menu {
    backdrop-filter: blur(8px);
}

/* --- Thin Lines / Dividers --- */
.divider-line {
    height: 1px;
    background: linear-gradient(to right, transparent, #e2e8f0, transparent);
}

/* --- Image Aspect Ratios --- */
.aspect-\[4\/5\] {
    aspect-ratio: 4 / 5;
}

.aspect-\[4\/3\] {
    aspect-ratio: 4 / 3;
}

/* --- Subtle Hover Lift --- */
.reveal:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}
