/* =============================================================================
   NAVBAR.CSS — Fixed Top Navigation Bar
   ============================================================================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Logo ── */
.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-logo-text {
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: #7C3AED;
  font-family: 'Inter', system-ui, sans-serif;
  text-transform: uppercase;
}

/* ── Links ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.04);
}

.nav-links .has-dropdown {
  position: relative;
}

.nav-links .has-dropdown::after {
  content: '▾';
  margin-left: 4px;
  font-size: 0.7rem;
  opacity: 0.6;
}

/* ── Actions ── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-actions .btn {
  padding: 10px 22px;
  font-size: 0.85rem;
}

/* ── Mobile Toggle ── */
.mobile-toggle {
  display: none;
  background: none;
  color: var(--text-primary);
  font-size: 1.5rem;
}

/* ── Services Dropdown ── */
.nav-services-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.services-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(124, 58, 237, 0.15), 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.12);
  padding: 10px;
  min-width: 270px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 200;
  pointer-events: none;
}

.nav-services-wrapper.open .services-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.services-dropdown-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #aaa;
  padding: 4px 12px 8px;
  text-transform: uppercase;
}

.services-dropdown-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.services-dropdown-card:hover {
  background: rgba(124, 58, 237, 0.06);
}

.services-card-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(15, 211, 172, 0.1));
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.services-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.services-card-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.4;
}

/* ── Products Mega Dropdown ── */
.products-mega-dropdown {
  min-width: 720px;
  display: flex;
  flex-direction: row;
  gap: 0;
  padding: 12px;
}

.mega-col {
  flex: 1;
  min-width: 0;
}

.mega-divider {
  width: 1px;
  background: var(--border);
  margin: 8px 6px;
  flex-shrink: 0;
}
