/* ================================================================
   DESIGN SYSTEM — Pera Moonlight Lounge & Restaurant
   Professional-grade CSS with animations, transitions & utilities
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ----------------------------------------------------------------
   1. Design Tokens (CSS Custom Properties)
   ---------------------------------------------------------------- */
:root {
    --bg-cream: #FDFBF7;
    --bg-champagne: #FAF6EE;
    --bg-sand: #F3ECE1;
    --bg-card: #FFFFFF;

    --text-primary: #2C2421;
    --text-secondary: #4A3F38;
    --text-muted: #6E6259;
    --text-light: #9B8E83;

    --gold-primary: #C59B27;
    --gold-hover: #A8811A;
    --gold-light: #F7F0D8;
    --gold-border: rgba(197, 155, 39, 0.25);
    --gold-glow: rgba(197, 155, 39, 0.12);

    --sea-blue: #0E7490;
    --sea-blue-light: #E0F2FE;
    --lush-green: #15803D;
    --coral: #DC6B4A;

    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-full: 9999px;

    --shadow-xs: 0 1px 3px rgba(44, 36, 33, 0.03);
    --shadow-sm: 0 2px 8px rgba(44, 36, 33, 0.05);
    --shadow-md: 0 6px 20px rgba(44, 36, 33, 0.08);
    --shadow-lg: 0 12px 32px rgba(44, 36, 33, 0.1);
    --shadow-xl: 0 20px 48px rgba(44, 36, 33, 0.14);

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-cream);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
}

.font-heading {
    font-family: var(--font-heading);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ----------------------------------------------------------------
   3. Collapsible Header (Hide on Scroll Down, Show on Scroll Up)
   ---------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(253, 251, 247, 0.97);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid rgba(197, 155, 39, 0.12);
    box-shadow: var(--shadow-xs);
    transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease;
    transform: translateY(0);
}

.site-header.header-hidden {
    transform: translateY(-100%);
    box-shadow: none;
}

.site-header.header-scrolled {
    box-shadow: var(--shadow-sm);
    border-bottom-color: rgba(197, 155, 39, 0.2);
}

/* ----------------------------------------------------------------
   4. Cards & Containers
   ---------------------------------------------------------------- */
.luxury-card {
    background: var(--bg-card);
    border: 1px solid rgba(229, 218, 201, 0.6);
    border-radius: var(--radius-lg);
    transition: all 0.4s var(--ease-out-expo);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}

.luxury-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold-border);
    box-shadow: var(--shadow-md);
}

/* ----------------------------------------------------------------
   5. Badges & Labels
   ---------------------------------------------------------------- */
.gold-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #FAF4E4, #F5E8C9);
    color: #8C6D18;
    border: 1px solid rgba(197, 155, 39, 0.35);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
    line-height: 1.3;
}

.gold-gradient-text {
    background: linear-gradient(135deg, #B8860B 0%, #D4AF37 50%, #996515 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ----------------------------------------------------------------
   6. Buttons
   ---------------------------------------------------------------- */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #C59B27, #B8860B);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.04em;
    box-shadow: 0 3px 12px rgba(197, 155, 39, 0.25);
    transition: all 0.3s var(--ease-out-expo);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #B8860B, #996515);
    box-shadow: 0 5px 18px rgba(197, 155, 39, 0.4);
    transform: translateY(-1px);
}

.btn-outline-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: #8C6D18;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--gold-primary);
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: all 0.3s var(--ease-out-expo);
}

.btn-outline-gold:hover {
    background: var(--gold-primary);
    color: #FFFFFF;
    box-shadow: 0 3px 12px rgba(197, 155, 39, 0.25);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #25D366;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(37, 211, 102, 0.25);
    transition: all 0.3s var(--ease-out-expo);
}

.btn-whatsapp:hover {
    background: #1EBE5D;
    box-shadow: 0 5px 18px rgba(37, 211, 102, 0.4);
    transform: translateY(-1px);
}

/* ----------------------------------------------------------------
   7. Menu Category Tabs
   ---------------------------------------------------------------- */
.menu-tab {
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-champagne);
    border: 1px solid rgba(229, 218, 201, 0.7);
    transition: all 0.25s var(--ease-in-out);
    cursor: pointer;
    white-space: nowrap;
}

.menu-tab:hover {
    color: var(--gold-primary);
    border-color: var(--gold-border);
}

.menu-tab.active {
    background: var(--gold-primary);
    color: #FFFFFF;
    border-color: var(--gold-primary);
    box-shadow: 0 3px 10px rgba(197, 155, 39, 0.2);
}

/* ----------------------------------------------------------------
   8. Hero Slider / Carousel
   ---------------------------------------------------------------- */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    position: relative;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding: 1rem 0;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(197, 155, 39, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background: var(--gold-primary);
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(197, 155, 39, 0.4);
}

.hero-slide .gold-badge {
    background: var(--gold-primary) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

/* ----------------------------------------------------------------
   9. Lightbox Modal
   ---------------------------------------------------------------- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(18, 14, 12, 0.94);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: lightbox-zoom-in 0.35s var(--ease-spring);
}

@keyframes lightbox-zoom-in {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ----------------------------------------------------------------
   10. Scroll-triggered Reveal Animations
   ---------------------------------------------------------------- */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 0.6s var(--ease-out-expo);
}

.fade-in.visible {
    opacity: 1;
}

/* Staggered delay classes */
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.10s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.20s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.30s; }
.stagger-7 { transition-delay: 0.35s; }
.stagger-8 { transition-delay: 0.40s; }

/* ----------------------------------------------------------------
   11. Section Dividers & Decorative Elements
   ---------------------------------------------------------------- */
.section-gold-line {
    width: 3rem;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-primary), transparent);
    border-radius: 2px;
}

.section-gold-line-center {
    width: 4rem;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    border-radius: 2px;
    margin: 0 auto;
}

/* ----------------------------------------------------------------
   12. Blog Article Styles
   ---------------------------------------------------------------- */
.blog-content h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2rem 0 0.75rem;
}

.blog-content h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 1.5rem 0 0.5rem;
}

.blog-content p {
    margin-bottom: 1rem;
    line-height: 1.75;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.blog-content ul, .blog-content ol {
    margin: 0.75rem 0 1.25rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.blog-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ----------------------------------------------------------------
   13. Mobile Action Bar
   ---------------------------------------------------------------- */
.mobile-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(44, 36, 33, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(197, 155, 39, 0.25);
    padding: 0.5rem 0.75rem;
    z-index: 90;
    display: flex;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-action-bar {
        display: none;
    }
}

/* ----------------------------------------------------------------
   14. Custom Scrollbar
   ---------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 7px;
}
::-webkit-scrollbar-track {
    background: var(--bg-cream);
}
::-webkit-scrollbar-thumb {
    background: #D5C8B4;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* ----------------------------------------------------------------
   15. Utility Overrides
   ---------------------------------------------------------------- */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
