/* 
  QUALOO GLOBAL DESIGN SYSTEM (V2.0)
  Production-Ready Core Stylesheet
  Standardizing F&B, Hospitality, Retail, Residential, and Network verticals.
*/

:root {
  /* --- 1. CORE TOKENS --- */
  --nav-h: 64px;
  --section-pad: 96px 5%;
  --inner-max: 1200px;
  --gap-md: 24px;
  --gap-lg: 32px;
  --gap-v: 48px;
  
  /* --- 2. BASE THEME (LIGHT) --- */
  --bg: #F6F7FB;
  --bg2: #F0F2F8;
  --text: #14132E;
  --text2: #4B5563;
  --card: #FFFFFF;
  --nav-bg: #14132E;
  --border: rgba(11,11,15,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  
  /* --- 3. VERTICAL ACCENTS --- */
  --accent-fnb: #7C3AED;      /* F&B Purple */
  --accent-hotels: #F59E0B;   /* Hospitality Amber */
  --accent-prop: #059669;     /* Property Emerald */
  --accent-retail: #10B981;   /* Retail Mint */
  --accent-home: #0EA5E9;     /* Residential Sky Blue */
  
  /* Active Default (Residential Blue) */
  --accent: var(--accent-home);
  --accent-light: rgba(14, 165, 233, 0.1);
  --green: #10B981;
  --red: #EF4444;

  /* --- 4. RADIUS --- */
  --r-sm: 6px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
}

/* --- DARK MODE OVERRIDES --- */
[data-theme="dark"] {
  --bg: #0E0F14;
  --bg2: #111318;
  --text: #F0F1F5;
  --text2: #9CA3AF;
  --card: #161820;
  --nav-bg: #07080C;
  --border: rgba(255,255,255,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.45);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.55);
  
  /* Vibrancy Shifts for Dark Mode */
  --accent-fnb: #A78BFA;
  --accent-hotels: #FBB824;
  --accent-prop: #34D399;
  --accent-retail: #34D399;
  --accent-home: #38BDF8;
}

/* --- 5. BASE RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body { 
  font-family: 'DM Sans', -apple-system, sans-serif; 
  background: var(--bg); color: var(--text);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
  transition: background 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
}

/* --- 6. TYPOGRAPHY --- */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; color: var(--text); }
.stitle { font-size: clamp(32px, 4vw, 56px); text-wrap: balance; }
.sdesc { font-size: 17px; color: var(--text2); max-width: 580px; line-height: 1.7; margin-top: 16px; text-wrap: pretty; }
.label { 
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; 
  letter-spacing: 0.1em; color: var(--accent); margin-bottom: 12px; 
}
.mono-stat { font-family: 'DM Mono', monospace; font-size: clamp(36px, 4.5vw, 56px); font-weight: 700; line-height: 1.0; }

/* --- 7. GLOBAL NAVIGATION --- */
.nav-global {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h); display: flex; align-items: center;
  padding: 0 5%; background: rgba(20, 19, 46, 0.85);
  backdrop-filter: blur(20px); border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}
[data-theme="light"] .nav-global { background: rgba(255, 255, 255, 0.95); }

.nav-inner { 
  max-width: var(--inner-max); margin: 0 auto; width: 100%; 
  display: flex; align-items: center; justify-content: space-between; 
}

.nav-brand img { height: 32px; display: block; }

.nav-tabs { 
  display: flex; align-items: center; gap: 4px; 
  background: rgba(255, 255, 255, 0.05); border-radius: 100px; padding: 4px;
}
[data-theme="light"] .nav-tabs { background: rgba(0, 0, 0, 0.05); }

.nav-tab {
  padding: 8px 18px; border-radius: 100px;
  font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.6);
  text-decoration: none; cursor: pointer; border: none; background: none; transition: all 0.2s;
}
[data-theme="light"] .nav-tab { color: var(--text2); }
.nav-tab:hover { color: #fff; }
[data-theme="light"] .nav-tab:hover { color: var(--text); }
.nav-tab.active { background: var(--accent); color: #fff; }

/* --- NAVIGATION PILLS (Venue Specific) --- */
:root {
  --pill-bg: rgba(24, 24, 27, 1);
  --pill-border: rgba(39, 39, 42, 1);
}
[data-theme="dark"] {
  --pill-bg: #1e293b;
  --pill-border: #334155;
}

.topbar-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--pill-bg);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--pill-border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.topbar-pill {
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s;
  white-space: nowrap;
}

.topbar-pill:hover:not(.active) {
  background: rgba(255,255,255,0.1);
}

.topbar-pill.active {
  background: var(--brand, #2563eb);
  color: white;
}

/* --- 8. MASTER FOOTER --- */
.footer-master { 
  background: var(--nav-bg); color: var(--text2); 
  padding: 80px 5% 40px; border-top: 1px solid var(--border); 
}
.footer-grid { 
  display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 40px; 
  max-width: var(--inner-max); margin: 0 auto 60px; 
}
.footer-brand p { font-size: 14px; margin-top: 16px; max-width: 280px; color: var(--text2); line-height: 1.6; }
.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: #fff; margin-bottom: 24px; }
.footer-col a { display: block; color: var(--text2); text-decoration: none; font-size: 14px; margin-bottom: 12px; transition: color 0.15s; }
.footer-col a:hover { color: #fff; }

.footer-bottom { 
  display: flex; justify-content: space-between; align-items: center; 
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 13px; 
  max-width: var(--inner-max); margin: 0 auto;
}
.footer-status { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text2); }
.footer-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

/* --- 9. CORE COMPONENTS --- */

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: white;
  padding: 13px 28px; border-radius: 12px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12); border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }

/* Card Architecture */
.card-master {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-master:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Pricing Logic */
.p-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.p-card-feat { 
  background: linear-gradient(135deg, #14132E, #1e1d3a); border-color: rgba(255,255,255,0.08); 
  position: relative; overflow: hidden; color: white;
}
.p-card-feat::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.05), transparent 60%);
}

/* Animations */
.fade-in { 
  opacity: 0; transform: translateY(24px); 
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), 
              transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); 
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive adjustments */
@media (max-width: 900px) {
  .nav-tabs { display: none; }
  .p-grid { grid-template-columns: 1fr; }
}
