/* ============================================
   Cohiba Lounge — Custom Styles
   Classic & Elegant · Plum + Amber Palette
   ============================================ */

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: #D4A017;
    color: #220a1e;
}

/* ---------- Navbar ---------- */
.nav-text {
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-text {
    color: #1a1a1a;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #D4A017;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

#navbar {
    background-color: transparent;
    border-bottom: 1px solid transparent;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom-color: rgba(74, 25, 66, 0.08);
    box-shadow: 0 1px 20px rgba(74, 25, 66, 0.06);
}

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

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

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

#mobileMenu.open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.closed .mobile-nav-link {
    opacity: 0;
    transform: translateY(16px);
}

#mobileMenu.closed .mobile-nav-link:nth-child(1) { transition-delay: 0s; }
#mobileMenu.closed .mobile-nav-link:nth-child(2) { transition-delay: 0.05s; }
#mobileMenu.closed .mobile-nav-link:nth-child(3) { transition-delay: 0.1s; }
#mobileMenu.closed .mobile-nav-link:nth-child(4) { transition-delay: 0.15s; }
#mobileMenu.closed .mobile-nav-link:nth-child(5) { transition-delay: 0.2s; }

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

/* Hamburger Animation */
#menuToggle.active .menu-line:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
}

#menuToggle.active .menu-line:nth-child(2) {
    opacity: 0;
    width: 0;
}

#menuToggle.active .menu-line:nth-child(3) {
    top: 10px;
    width: 5px;
    transform: rotate(-45deg);
}

/* ---------- Floating Cards ---------- */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    animation-delay: -1.5s;
}

.floating-card:nth-child(3) {
    animation-delay: -3s;
}

.floating-card:nth-child(4) {
    animation-delay: -4.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* ---------- Scroll Reveal ---------- */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(32px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered reveal delays */
.scroll-reveal:nth-child(1) { transition-delay: 0s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.5s; }

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

/* ---------- Buttons ---------- */
button, [type="submit"] {
    cursor: pointer;
}

input:focus, textarea:focus, select:focus {
    outline: none;
}

/* ---------- Form ---------- */
input::placeholder, textarea::placeholder {
    color: #c4b5cd;
}

/* ---------- Image Hover ---------- */
img {
    display: block;
    max-width: 100%;
}

/* ---------- Utility ---------- */
@media (max-width: 767px) {
    .font-serif {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #be94bc;
}

/* ---------- Print ---------- */
@media print {
    #navbar, #mobileMenu { display: none !important; }
    body { background: white !important; }
}
