/* ============================================
   Reno Tea Lounge — Custom Styles
   ============================================ */

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

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #0d9488;
    transform: translateX(-50%);
    transition: width 0.2s ease;
    border-radius: 1px;
}

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

/* ============================================
   Hero Blobs (animated gradient orbs)
   ============================================ */
.hero-blob {
    animation: blob-float 8s ease-in-out infinite;
    will-change: transform;
}

.blob-1 {
    animation-delay: 0s;
}

.blob-2 {
    animation-delay: -3s;
    animation-duration: 10s;
}

.blob-3 {
    animation-delay: -5s;
    animation-duration: 12s;
}

@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, 10px) scale(1.02); }
}

/* ============================================
   Scroll Reveal Animations
   Progressive enhancement — content is visible
   by default; JS adds the animated state.
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal-content {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal-image {
        opacity: 1;
        transform: none;
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    /* JS adds these classes for the animated state */
    .reveal-content.revealed {
        opacity: 0;
        transform: translateY(24px);
    }

    .reveal-image.revealed {
        opacity: 0;
        transform: translateX(-24px);
    }

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

    .reveal-image.revealed.reveal-active {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fallback: no animation if JS is disabled or reduced motion preferred */
@media (prefers-reduced-motion: reduce) {
    .reveal-content,
    .reveal-image {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobile-menu {
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-link {
    display: block;
}

/* ============================================
   Header shadow on scroll
   ============================================ */
header.scrolled {
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

/* ============================================
   Image reveal animation
   ============================================ */
.reveal-image {
    overflow: hidden;
}

.reveal-image img {
    transition: transform 0.6s ease;
}

.reveal-image:hover img {
    transform: scale(1.02);
}

/* ============================================
   Form styling
   ============================================ */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ============================================
   Responsive tweaks
   ============================================ */
@media (max-width: 640px) {
    .hero-blob {
        display: none;
    }
}
