/* ==========================================================================
   PARTYBUS GLOBAL S.A. - PERFECT DESIGN SYSTEM & LAYOUT FIX 2026
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700;800&display=swap');

:root {
  --bg-main: #080808;
  --bg-card: #121212;
  --bg-subtle: #1a1a1a;
  --border-graphite: #232323;
  --border-gold: rgba(243, 198, 73, 0.25);

  --gold-premium: #F3C649;
  --gold-bright: #FFE066;
  --gold-pure: #FFD700;
  --gold-deep: #D49E2A;

  --text-warm-white: #F8F7F4;
  --text-light-grey: #B6B6B6;
  --text-muted: #888888;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --shadow-gold: 0 4px 25px rgba(243, 198, 73, 0.25);
  --shadow-gold-hover: 0 8px 35px rgba(255, 215, 0, 0.4);
  --radius-card: 20px;
  --radius-btn: 50px;

  --header-offset: 113px; /* 38px top-bar + 75px navbar */

  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 1. RESET BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0; padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
}

body {
  background-color: var(--bg-main) !important;
  color: var(--text-warm-white) !important;
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  padding-top: var(--header-offset) !important; /* CRITICAL FIX: Prevents fixed navbar from overlapping page content */
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--gold-premium); border-radius: 4px; }

/* 2. TYPOGRAPHY & HEADINGS */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-warm-white);
  line-height: 1.25;
}

p, span, label, div {
  font-family: var(--font-body);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.text-gold {
  color: var(--gold-premium) !important;
}

.title-xl {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.title-lg {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 700;
}

.title-md {
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  font-weight: 700;
}

/* 3. LAYOUT & CONTAINERS */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 4rem 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* 4. BADGES & PILLS */
.subtitle-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(243, 198, 73, 0.12);
  color: var(--gold-premium);
  border: 1px solid var(--gold-premium);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.35rem 1rem;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.party-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 215, 0, 0.15);
  color: var(--gold-pure);
  border: 1px solid var(--gold-pure);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  text-transform: uppercase;
}

.live-gps-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(52, 199, 89, 0.15);
  color: #34c759;
  border: 1px solid #34c759;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
}

/* 5. BUTTON SYSTEM */
.btn-gold {
  background: var(--gold-premium) !important;
  color: #080808 !important;
  font-family: var(--font-heading);
  font-weight: 700 !important;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-btn);
  border: none !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-size: 0.92rem;
  transition: var(--transition);
  box-shadow: var(--shadow-gold);
}

.btn-gold * {
  color: #080808 !important;
}

.btn-gold:hover {
  background: var(--gold-bright) !important;
  box-shadow: var(--shadow-gold-hover) !important;
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: transparent !important;
  color: var(--gold-premium) !important;
  font-family: var(--font-heading);
  font-weight: 700 !important;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-btn);
  border: 1px solid var(--gold-premium) !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-size: 0.92rem;
  transition: var(--transition);
}

.btn-outline-gold:hover {
  background: var(--gold-premium) !important;
  color: #080808 !important;
}

.btn-outline-gold:hover * {
  color: #080808 !important;
}

.btn-sm {
  padding: 0.55rem 1.3rem !important;
  font-size: 0.82rem !important;
}

/* 6. CARDS SYSTEM */
.card-glass {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-gold) !important;
  border-radius: var(--radius-card) !important;
  padding: 1.8rem;
  transition: var(--transition);
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-glass:hover {
  border-color: var(--gold-pure) !important;
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.25) !important;
  transform: translateY(-3px);
}

/* 7. UNIFIED SITE HEADER & NAVBAR */
.site-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  transition: transform 0.3s ease, background 0.3s ease;
}

.top-bar {
  width: 100%;
  height: 38px;
  background: #080808;
  border-bottom: 1px solid var(--border-gold);
  transition: height 0.3s ease, opacity 0.3s ease;
}

.site-header.scrolled .top-bar {
  height: 0;
  opacity: 0;
  overflow: hidden;
  border-bottom: none;
}

.top-bar-container {
  max-width: 1240px; height: 100%;
  margin: 0 auto; padding: 0 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem;
}

.top-bar-info {
  display: flex; gap: 1.5rem; align-items: center; color: var(--text-light-grey);
}

.top-bar-actions {
  display: flex; gap: 0.8rem; align-items: center;
}

.btn-topbar-link {
  color: var(--text-warm-white);
  font-size: 0.78rem; font-weight: 600;
}

.btn-topbar-gold {
  background: var(--gold-premium);
  color: #080808 !important;
  font-weight: 700; font-size: 0.78rem;
  padding: 0.25rem 0.85rem; border-radius: 20px;
}

.navbar {
  width: 100%;
  height: 75px;
  background: rgba(8, 8, 8, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-graphite);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled .navbar {
  background: rgba(8, 8, 8, 0.98);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.9);
}

.nav-brand {
  display: flex; align-items: center; gap: 0.8rem; text-decoration: none;
}

.nav-menu {
  display: flex; gap: 1.8rem; list-style: none; align-items: center;
}

.nav-link {
  color: var(--text-warm-white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--gold-premium);
}

.nav-actions {
  display: flex; align-items: center; gap: 1rem;
}

/* 8. HERO BANNER */
.hero-banner-box {
  position: relative;
  width: 100%;
  min-height: 480px;
  display: flex; align-items: center;
  background-size: cover; background-position: center;
  border-bottom: 1px solid var(--border-graphite);
  overflow: hidden;
}

.hero-banner-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(8,8,8,0.85) 0%, rgba(8,8,8,0.7) 60%, #080808 100%);
}

.hero-banner-content {
  position: relative; z-index: 10;
  max-width: 800px;
  padding: 3.5rem 1.5rem;
}

.hero-desc {
  font-size: 1.15rem; color: var(--text-light-grey);
  margin: 1.2rem 0 2rem 0; max-width: 680px;
}

.hero-buttons {
  display: flex; gap: 1.2rem; flex-wrap: wrap;
}

/* 9. FORM CONTROLS */
.form-control, input[type="text"], input[type="email"], input[type="date"], input[type="number"], select, textarea {
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: #080808 !important;
  border: 1px solid var(--border-graphite) !important;
  border-radius: 12px;
  color: var(--text-warm-white) !important;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-control:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--gold-premium) !important;
  box-shadow: 0 0 15px rgba(243, 198, 73, 0.2) !important;
}

/* 10. REVEAL VISIBILITY (100% VISIBLE) */
.reveal-on-scroll {
  opacity: 1 !important;
  transform: none !important;
}

/* 11. FOOTER */
.footer {
  background: #050505;
  border-top: 1px solid var(--border-graphite);
  padding: 4rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 992px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-col h4 {
  color: var(--gold-premium);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--text-light-grey);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--gold-premium);
}

.footer-bottom {
  border-top: 1px solid var(--border-graphite);
  padding-top: 2rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.85rem; color: var(--text-muted);
}

/* 12. FLOATING WHATSAPP & CHATBOT */
.whatsapp-float {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 60px; height: 60px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  cursor: pointer;
}

.whatsapp-badge {
  position: absolute;
  top: -2px; right: -2px;
  background: #ff3b30; color: #fff;
  font-size: 0.7rem; font-weight: 700;
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.chat-modal {
  position: fixed;
  bottom: 6rem; right: 2rem;
  width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--gold-premium);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: none;
  flex-direction: column;
}

.chat-header {
  background: #080808;
  padding: 1rem;
  border-bottom: 1px solid var(--border-graphite);
  display: flex; justify-content: space-between; align-items: center;
}

.chat-header-info {
  display: flex; align-items: center; gap: 0.8rem;
}

.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold-premium); color: #080808;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

.chat-title {
  font-weight: 700; color: #fff; font-size: 0.95rem;
}

.chat-status {
  font-size: 0.75rem; color: #34c759;
}

.chat-close {
  background: transparent; border: none; color: #aaa; cursor: pointer; font-size: 1.2rem;
}

.chat-messages {
  padding: 1rem; height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 0.8rem;
}

.msg {
  padding: 0.8rem 1rem; border-radius: 14px; font-size: 0.88rem; max-width: 85%;
}

.msg-bot {
  background: #080808; border: 1px solid var(--border-graphite); color: var(--text-warm-white); align-self: flex-start;
}

.chat-input-area {
  display: flex; padding: 0.8rem; background: #080808; border-top: 1px solid var(--border-graphite);
}

.chat-input {
  flex: 1; background: transparent !important; border: none !important; color: #fff !important; font-size: 0.88rem; outline: none;
}

.chat-send-btn {
  background: var(--gold-premium); border: none; color: #080808; width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
}

/* ==========================================================================
   100% FULL-WIDTH HEADER & NAV SYSTEM (100% VISIBLE ON ALL DEVICES)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100% !important;
  z-index: 10000;
  background: rgba(8, 8, 8, 0.96) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 166, 74, 0.25);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.top-bar {
  width: 100% !important;
  background: #000000 !important;
  border-bottom: 1px solid var(--border-graphite);
  padding: 0.4rem 0;
  font-size: 0.82rem;
}

.top-bar-content {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 3% !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--text-light-grey);
}

.navbar {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0.7rem 3% !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 1rem !important;
}

.nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-menu {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1.4rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 1 !important;
}

.nav-menu li {
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.nav-link {
  color: #ffffff !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: var(--transition) !important;
  white-space: nowrap !important;
}

.nav-link:hover {
  color: var(--gold-premium) !important;
}

.nav-actions {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  flex-shrink: 0 !important;
}

.mobile-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  background: var(--gold-premium) !important;
  color: #080808 !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: 30px !important;
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  cursor: pointer !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(243, 198, 73, 0.35) !important;
  transition: var(--transition) !important;
}

.mobile-toggle * {
  color: #080808 !important;
}

.mobile-toggle:hover {
  background: var(--gold-bright) !important;
  transform: translateY(-2px);
}

@media (max-width: 1080px) {
  .top-bar { display: none !important; }
  body { padding-top: 75px !important; }
  .mobile-toggle { display: inline-flex !important; }
  .nav-menu {
    position: fixed !important;
    top: 75px !important;
    left: -100% !important;
    width: 100% !important;
    height: calc(100vh - 75px) !important;
    background: rgba(10, 10, 10, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    padding: 2.5rem 1.8rem !important;
    gap: 1.2rem !important;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 999999 !important;
    border-top: 1px solid var(--border-gold) !important;
    overflow-y: auto !important;
  }
  .nav-menu.active {
    left: 0 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .nav-menu li {
    width: 100% !important;
  }
  .nav-menu .nav-link {
    display: block !important;
    width: 100% !important;
    padding: 0.9rem 1rem !important;
    font-size: 1.1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
  }
}

/* ═══════════ COMPREHENSIVE RESPONSIVE DESIGN SYSTEM ═══════════ */
@media (max-width: 768px) {
  .title-xl {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
  }
  .title-lg {
    font-size: 1.5rem !important;
  }
  .title-md {
    font-size: 1.25rem !important;
  }
  .hero-banner-box {
    min-height: auto !important;
    padding: 2rem 0 !important;
  }
  .hero-banner-content {
    width: 95% !important;
    padding: 2rem 0.5rem !important;
  }
  .hero-desc {
    font-size: 0.98rem !important;
    margin: 0.8rem 0 1.5rem 0 !important;
  }
  .hero-buttons {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.8rem !important;
  }
  .hero-buttons .btn-gold,
  .hero-buttons .btn-outline-gold {
    width: 100% !important;
    justify-content: center !important;
  }
  .grid-2, .grid-3, .grid-4, .events-grid-layout {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.2rem !important;
  }
  .card-glass {
    padding: 1.2rem !important;
  }
  
  /* Modals Responsive */
  div[id$="-modal"] > div {
    max-width: 95% !important;
    padding: 1.2rem !important;
    margin: 0 auto !important;
    max-height: 90vh !important;
  }
  div[id$="-modal"] form > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  div[id="flyer-viewer-modal"] > div > div {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
  }

  /* Tables Touch Scroll */
  table {
    display: block !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem !important;
  }
  .btn-gold, .btn-outline-gold {
    padding: 0.75rem 1.2rem !important;
    font-size: 0.85rem !important;
  }
  .nav-brand img {
    height: 42px !important;
  }
}
