/* ==========================================
   Gran Centenario Social & Lounge
   Premium Dark Luxury Styles
   ========================================== */

/* --- CSS Custom Properties --- */
:root {
    --color-charcoal-900: #0d0d0d;
    --color-charcoal-800: #1a1a1a;
    --color-charcoal-700: #2a2a2a;
    --color-coral-400: #f4845f;
    --color-coral-500: #e8734a;
    --color-gold-300: #e8c9a0;
    --color-gold-400: #c8956c;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Reset & Typography --- */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--color-charcoal-900);
}

::selection {
    background: rgba(200, 149, 108, 0.3);
    color: #fff;
}

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

::-webkit-scrollbar-track {
    background: var(--color-charcoal-900);
}

::-webkit-scrollbar-thumb {
    background: var(--color-charcoal-600);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-400);
}

/* --- Navigation --- */
#navbar {
    background: transparent;
    transition: background 0.5s var(--transition-smooth), backdrop-filter 0.5s var(--transition-smooth);
}

#navbar.scrolled {
    background: rgba(13, 13, 13, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 149, 108, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--color-gold-400);
    transition: all 0.3s var(--transition-smooth);
    transform: translateX(-50%);
}

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

/* --- Mobile Menu --- */
.mobile-link {
    font-size: 1.75rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s var(--transition-smooth), transform 0.4s var(--transition-smooth);
}

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

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

/* --- Menu Button Animation --- */
#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

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

#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.25rem;
}

/* --- Hero Animations --- */
.hero-anim {
    transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}

.hero-anim.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.hero-anim:nth-child(1) { transition-delay: 0.1s; }
.hero-anim:nth-child(2) { transition-delay: 0.3s; }
.hero-anim:nth-child(3) { transition-delay: 0.5s; }
.hero-anim:nth-child(4) { transition-delay: 0.7s; }

/* --- Reveal Animations --- */
.reveal {
    transition: opacity 0.9s var(--transition-smooth), transform 0.9s var(--transition-smooth);
}

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

/* --- Product Card Hover --- */
.group:hover img {
    filter: brightness(1.05);
}

/* --- Button Effects --- */
button, a {
    cursor: pointer;
}

/* --- Input Autofill --- */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #1a1a1a inset !important;
    -webkit-text-fill-color: #fff !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* --- Focus Visible --- */
:focus-visible {
    outline: 2px solid var(--color-gold-400);
    outline-offset: 2px;
}

/* --- Responsive Tweaks --- */
@media (max-width: 640px) {
    .font-display {
        line-height: 1.1;
    }
}

@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;
    }
    
    .reveal, .hero-anim {
        opacity: 1;
        transform: none;
    }
}
