/* ============================================
   LAVISH LOUNGE — Custom Styles
   ============================================ */

/* ---- Base & Typography ---- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: rgba(13, 79, 79, 0.15);
    color: #0d4f4f;
}

/* ---- Navbar ---- */
#navbar {
    background: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(250, 252, 251, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(13, 79, 79, 0.08), 0 4px 24px rgba(13, 79, 79, 0.06);
}

#navbar.scrolled .nav-text {
    color: #0f172a;
}

#navbar.scrolled .nav-subtext {
    color: #1e6068;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: #c9a84c;
    transition: width 0.3s ease, left 0.3s ease;
}

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

/* ---- Mobile Menu ---- */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

/* ---- Hero Headline Accent ---- */
h1 span.italic {
    font-style: italic;
    position: relative;
}

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

/* ---- Scroll Reveal (Progressive Enhancement) ---- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #89c4c9;
}

/* ---- Selection ---- */
::selection {
    background: rgba(201, 168, 76, 0.2);
    color: #0d4f4f;
}

/* ---- Form Focus States ---- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ---- Smooth Image Loading ---- */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* ---- Button Ripple Effect (subtle) ---- */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* ---- Responsive Adjustments ---- */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    @supports (font-size: clamp(2rem, 5vw, 3rem)) {
        #hero h1 {
            font-size: clamp(2rem, 5vw, 3rem);
        }
    }
}

@media (max-width: 640px) {
    .floating-card {
        position: relative;
        margin-top: 1rem;
    }
}
