/* ============================================================ */
/* BIZSOLUTION ECOSYSTEM UNIFIED HEADER CSS                     */
/* Canonical, centralized styles for all 6 projects:           */
/* - bizsolution.dev                                            */
/* - bizsolution.dev/cases/netops-orchestrator                  */
/* - bizsolution.dev/cases/air-gapped-gis                       */
/* - flowengine.bizsolution.dev                                 */
/* - travel.bizsolution.dev                                     */
/* - autoshop.bizsolution.dev                                   */
/* ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* 1. Theme Variables & Fonts */
:root {
  --eco-font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --eco-font-mono: 'JetBrains Mono', monospace;

  /* Light Theme */
  --eco-bg: rgba(255, 255, 255, 0.92);
  --eco-border: #e2e8f0;
  --eco-nav-text: #334155;
  --eco-nav-hover: #0284c7;
  --eco-brand-slug: #0f172a;
  --eco-dropdown-bg: rgba(255, 255, 255, 0.98);
  --eco-dropdown-border: #e2e8f0;
  --eco-dropdown-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
  --eco-item-hover: #f1f5f9;
  --eco-item-title: #0f172a;
  --eco-item-desc: #64748b;
  --eco-ctrl-bg: #f1f5f9;
  --eco-ctrl-border: #e2e8f0;
  --eco-ctrl-active-bg: #ffffff;
  --eco-ctrl-active-text: #0369a1;
}

html.dark, :root.dark {
  /* Dark Theme */
  --eco-bg: rgba(8, 11, 17, 0.92);
  --eco-border: rgba(255, 255, 255, 0.1);
  --eco-nav-text: #cbd5e1;
  --eco-nav-hover: #38bdf8;
  --eco-brand-slug: #f1f5f9;
  --eco-dropdown-bg: rgba(12, 16, 26, 0.98);
  --eco-dropdown-border: rgba(255, 255, 255, 0.1);
  --eco-dropdown-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
  --eco-item-hover: rgba(255, 255, 255, 0.05);
  --eco-item-title: #f1f5f9;
  --eco-item-desc: #94a3b8;
  --eco-ctrl-bg: #1e293b;
  --eco-ctrl-border: #334155;
  --eco-ctrl-active-bg: #0f172a;
  --eco-ctrl-active-text: #38bdf8;
}

/* 2. Global Antialiasing for Header Elements */
header,
.app-header,
.ecosystem-header,
.mobile-drawer {
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
  font-family: var(--eco-font-sans) !important;
}

/* 3. Logo Styles & Switching */
.logo-dark { display: none !important; }
.logo-light { display: block !important; }
html.dark .logo-dark { display: block !important; }
html.dark .logo-light { display: none !important; }

.brand-link, .header-left a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.brand-link:hover, .header-left a:hover {
  transform: scale(1.02);
}

.brand-slash {
  color: #94a3b8 !important;
  font-family: var(--eco-font-mono) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  opacity: 0.6;
}

.brand-slug {
  font-family: var(--eco-font-sans) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: -0.2px !important;
  color: var(--eco-brand-slug) !important;
}

/* 4. Desktop Navigation Links (Canonical 14px / 600 weight) */
.header-nav-link,
.ecosystem-nav-link,
nav.hidden.lg\:flex > a,
.header-nav > a {
  font-family: var(--eco-font-sans) !important;
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 600 !important;
  letter-spacing: normal !important;
  color: var(--eco-nav-text) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  padding: 8px 0 !important;
  transition: color 0.2s ease !important;
  background: transparent !important;
  border: none !important;
}

.header-nav-link:hover,
.ecosystem-nav-link:hover,
nav.hidden.lg\:flex > a:hover,
.header-nav > a:hover {
  color: var(--eco-nav-hover) !important;
}

/* 5. Cases Dropdown Trigger */
.dropdown-trigger,
.nav-dropdown-wrapper > a,
div.relative > a[href*="#cases"] {
  font-family: var(--eco-font-sans) !important;
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 600 !important;
  color: var(--eco-nav-text) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 0 !important;
  transition: color 0.2s ease !important;
}

.dropdown-trigger:hover,
.nav-dropdown-wrapper > a:hover,
div.relative > a[href*="#cases"]:hover {
  color: var(--eco-nav-hover) !important;
}

/* Cases Count Pill Badge */
.cases-badge,
span.font-mono.text-\[10px\] {
  font-family: var(--eco-font-mono) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 18px !important;
  padding: 1px 6px !important;
  border-radius: 4px !important;
}

/* 6. Cases Dropdown Card & Items */
.dropdown-menu-card,
div[x-show="navCasesOpen"] > div {
  background: var(--eco-dropdown-bg) !important;
  border: 1px solid var(--eco-dropdown-border) !important;
  box-shadow: var(--eco-dropdown-shadow) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-radius: 16px !important;
}

.dropdown-item,
div[x-show="navCasesOpen"] a.group {
  border-radius: 12px !important;
  transition: background 0.15s ease !important;
}
.dropdown-item:hover,
div[x-show="navCasesOpen"] a.group:hover {
  background: var(--eco-item-hover) !important;
}

.dropdown-item .item-title,
div[x-show="navCasesOpen"] .font-bold.text-xs {
  font-family: var(--eco-font-sans) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 16px !important;
  color: var(--eco-item-title) !important;
}

.dropdown-item .item-desc,
div[x-show="navCasesOpen"] .text-\[11px\] {
  font-family: var(--eco-font-sans) !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 15px !important;
  color: var(--eco-item-desc) !important;
}

/* 7. Action Controls: Language Pill, Theme Button, Telegram, CTA */
.lang-switcher,
header div.flex.items-center.p-1 {
  font-family: var(--eco-font-mono) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  background: var(--eco-ctrl-bg) !important;
  border: 1px solid var(--eco-ctrl-border) !important;
  border-radius: 12px !important;
}

.lang-btn.active,
header div.flex.items-center.p-1 button.bg-white,
header div.flex.items-center.p-1 button.dark\:bg-slate-900 {
  background: var(--eco-ctrl-active-bg) !important;
  color: var(--eco-ctrl-active-text) !important;
  border-radius: 8px !important;
}

.theme-toggle-btn,
header button[aria-label="Toggle theme"] {
  background: var(--eco-ctrl-bg) !important;
  border: 1px solid var(--eco-ctrl-border) !important;
  border-radius: 12px !important;
  transition: all 0.2s ease !important;
}

.cta-header-btn,
header a[href*="contact"],
header a[href*="modal"] {
  font-family: var(--eco-font-sans) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 16px !important;
  border-radius: 12px !important;
}

/* ============================================================ */
/* 8. BIZSOLUTION ECOSYSTEM UNIFIED FOOTER                     */
/* Canonical 5-Column Grid, Pure CSS, Light & Dark Theme       */
/* ============================================================ */

.ecosystem-footer {
  border-top: 1px solid var(--eco-border) !important;
  background-color: #ffffff !important;
  color: #64748b !important;
  padding-top: 64px !important;
  padding-bottom: 80px !important;
  position: relative !important;
  z-index: 10 !important;
  transition: background-color 0.25s ease, border-color 0.25s ease !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  font-family: var(--eco-font-sans) !important;
}

html.dark .ecosystem-footer,
:root.dark .ecosystem-footer {
  background-color: #07090e !important;
  border-top-color: rgba(255, 255, 255, 0.1) !important;
  color: #94a3b8 !important;
}

.ecosystem-footer-container {
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 0 16px !important;
}

@media (min-width: 640px) {
  .ecosystem-footer-container {
    padding: 0 24px !important;
  }
}
@media (min-width: 1024px) {
  .ecosystem-footer-container {
    padding: 0 32px !important;
  }
}

.ecosystem-footer-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 32px !important;
}

@media (min-width: 640px) {
  .ecosystem-footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (min-width: 768px) {
  .ecosystem-footer-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (min-width: 1024px) {
  .ecosystem-footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr 1.1fr !important;
    gap: 24px !important;
  }
}

.ecosystem-footer-col {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.ecosystem-footer-title {
  font-family: var(--eco-font-mono) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #0f172a !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

html.dark .ecosystem-footer-title {
  color: #f8fafc !important;
}

.ecosystem-footer-links {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.ecosystem-footer-links a {
  font-family: var(--eco-font-sans) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 16px !important;
  color: #475569 !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

html.dark .ecosystem-footer-links a {
  color: #94a3b8 !important;
}

.ecosystem-footer-links a:hover {
  color: #0284c7 !important;
}

html.dark .ecosystem-footer-links a:hover {
  color: #38bdf8 !important;
}

.ecosystem-footer-desc {
  font-size: 12px !important;
  line-height: 1.6 !important;
  color: #64748b !important;
  margin: 0 !important;
}

html.dark .ecosystem-footer-desc {
  color: #94a3b8 !important;
}

.ecosystem-footer-pulse {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-family: var(--eco-font-mono) !important;
  font-size: 11px !important;
  color: #059669 !important;
}

html.dark .ecosystem-footer-pulse {
  color: #34d399 !important;
}

.ecosystem-footer-bottom {
  margin-top: 48px !important;
  padding-top: 24px !important;
  border-top: 1px solid var(--eco-border) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  font-size: 12px !important;
  color: #64748b !important;
}

@media (min-width: 768px) {
  .ecosystem-footer-bottom {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
}

html.dark .ecosystem-footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.1) !important;
  color: #94a3b8 !important;
}

.ecosystem-badge-nda {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 2px 8px !important;
  border-radius: 9999px !important;
  background: rgba(16, 185, 129, 0.1) !important;
  color: #059669 !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  font-family: var(--eco-font-mono) !important;
}

html.dark .ecosystem-badge-nda {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
  border-color: rgba(52, 211, 153, 0.3) !important;
}

/* 9. ECOSYSTEM TAGS & BADGES                                   */
.badge-module {
  display: inline-block !important;
  font-family: var(--eco-font-mono) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  background: rgba(2, 132, 199, 0.1) !important;
  color: #0284c7 !important;
  border: 1px solid rgba(2, 132, 199, 0.25) !important;
  line-height: 1 !important;
}

html.dark .badge-module {
  background: rgba(56, 189, 248, 0.15) !important;
  color: #38bdf8 !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
}

.cases-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--eco-font-mono) !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  padding: 1px 5px !important;
  border-radius: 4px !important;
  background: rgba(16, 185, 129, 0.1) !important;
  color: #059669 !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
  line-height: 1.2 !important;
}

html.dark .cases-badge {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
  border-color: rgba(52, 211, 153, 0.3) !important;
}

.tag-amber {
  display: inline-flex !important;
  align-items: center !important;
  padding: 1px 4px !important;
  border-radius: 4px !important;
  font-family: var(--eco-font-mono) !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  background: #fef3c7 !important;
  color: #b45309 !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

html.dark .tag-amber {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #fbbf24 !important;
  border-color: rgba(251, 191, 36, 0.3) !important;
}

.tag-emerald {
  display: inline-flex !important;
  align-items: center !important;
  padding: 1px 4px !important;
  border-radius: 4px !important;
  font-family: var(--eco-font-mono) !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  background: #d1fae5 !important;
  color: #047857 !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

html.dark .tag-emerald {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
  border-color: rgba(52, 211, 153, 0.3) !important;
}

.tag-slate {
  display: inline-flex !important;
  align-items: center !important;
  padding: 1px 4px !important;
  border-radius: 4px !important;
  font-family: var(--eco-font-mono) !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid rgba(148, 163, 184, 0.3) !important;
}

html.dark .tag-slate {
  background: rgba(148, 163, 184, 0.15) !important;
  color: #cbd5e1 !important;
  border-color: rgba(203, 213, 225, 0.25) !important;
}

.tag-indigo {
  display: inline-flex !important;
  align-items: center !important;
  padding: 1px 4px !important;
  border-radius: 4px !important;
  font-family: var(--eco-font-mono) !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  background: #e0e7ff !important;
  color: #4338ca !important;
  border: 1px solid rgba(99, 102, 241, 0.3) !important;
}

html.dark .tag-indigo {
  background: rgba(99, 102, 241, 0.15) !important;
  color: #818cf8 !important;
  border-color: rgba(129, 140, 248, 0.3) !important;
}

/* ============================================================ */
/* CALLOUT & CONTRAST FIXES ACROSS ALL ECOSYSTEM TEMPLATES      */
/* ============================================================ */
.callout-box-emerald {
  background-color: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  color: #065f46 !important;
  border-radius: 16px !important;
  padding: 20px !important;
}
.callout-box-emerald .callout-title {
  color: #065f46 !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  margin-bottom: 8px !important;
}
html.dark .callout-box-emerald {
  background-color: #081a14 !important;
  border-color: rgba(52, 211, 153, 0.3) !important;
  color: #e2e8f0 !important;
}
html.dark .callout-box-emerald .callout-title {
  color: #34d399 !important;
}

.callout-box-sky {
  background-color: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
  color: #0369a1 !important;
  border-radius: 16px !important;
  padding: 20px !important;
}
.callout-box-sky .callout-title {
  color: #0369a1 !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  margin-bottom: 8px !important;
}
html.dark .callout-box-sky {
  background-color: #0a1829 !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
  color: #e2e8f0 !important;
}
html.dark .callout-box-sky .callout-title {
  color: #38bdf8 !important;
}

.callout-box-slate {
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #1e293b !important;
  border-radius: 12px !important;
  padding: 16px !important;
}
html.dark .callout-box-slate {
  background-color: #0c101a !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e2e8f0 !important;
}

/* Global catch-all fallback for dark opacity backgrounds */
html.dark [class*="dark:bg-emerald-950"] {
  background-color: #081a14 !important;
}
html.dark [class*="dark:bg-sky-950"] {
  background-color: #0a1829 !important;
}
html.dark [class*="dark:bg-amber-950"] {
  background-color: #241405 !important;
}
html.dark [class*="dark:bg-indigo-950"] {
  background-color: #12142e !important;
}
html.dark [class*="dark:bg-slate-800"] {
  background-color: #0f1523 !important;
}
html.dark [class*="dark:border-emerald-800"],
html.dark [class*="dark:border-emerald-700"] {
  border-color: rgba(52, 211, 153, 0.3) !important;
}
html.dark [class*="dark:border-sky-800"],
html.dark [class*="dark:border-sky-700"] {
  border-color: rgba(56, 189, 248, 0.3) !important;
}
html.dark [class*="dark:border-amber-800"],
html.dark [class*="dark:border-amber-700"] {
  border-color: rgba(251, 191, 36, 0.3) !important;
}


