/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250, 250, 250, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}

.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 20px rgba(0, 0, 0, .04);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.header-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
}

.header-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -.02em;
}

.header-logo-text span {
  color: var(--teal);
}

.radix-nav-menu {
  display: flex;
}

.radix-nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.radix-nav-item {
  position: relative;
}

.radix-nav-trigger {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  background: none;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color .2s;
  font-family: 'Inter', sans-serif;
}

.radix-nav-trigger:hover,
.radix-nav-trigger[aria-expanded="true"] {
  color: var(--text-primary);
}

.radix-nav-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  min-width: 200px;
  z-index: 1000;
}

.radix-nav-content[data-state="open"] {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-link-item {
  display: block;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.nav-link-item:hover {
  background: var(--bg-blue);
}

.nav-link-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.nav-link-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.btn-job-opening {
  background: var(--text-primary);
  color: #fff;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-job-opening:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  padding: 8px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(250, 250, 250, .98);
  backdrop-filter: blur(20px);
  padding: 24px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 4px;
}

.mobile-menu a, .mobile-nav-link {
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 12px;
  transition: all .2s;
  display: block;
}

.mobile-menu a:hover, .mobile-nav-link:hover {
  background: rgba(0, 0, 0, .04);
  color: var(--text-primary);
}

/* Mobile Dropdown / Accordion */
.mobile-dropdown {
  width: 100%;
}

.mobile-dropdown-trigger {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border-radius: 12px;
  transition: all .2s;
  font-family: 'Inter', sans-serif;
}

.mobile-dropdown-trigger:hover {
  background: rgba(0, 0, 0, .04);
  color: var(--text-primary);
}

.mobile-dropdown-trigger i {
  width: 18px;
  height: 18px;
  transition: transform 0.3s;
}

.mobile-dropdown-trigger.active {
  color: var(--text-primary);
  background: rgba(0, 0, 0, .02);
}

.mobile-dropdown-trigger.active i {
  transform: rotate(180deg);
}

.mobile-dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding-left: 12px;
}

.mobile-dropdown-content.open {
  max-height: 200px;
  margin-top: 4px;
  margin-bottom: 8px;
}

.mobile-dropdown-content a {
  font-size: 15px;
  padding: 10px 16px;
  color: var(--text-secondary);
}

.mobile-menu-footer {
  margin-top: 20px;
  padding: 0 16px;
}

.w-full {
  width: 100%;
}

/* TABLET & MOBILE (Burger menu should trigger for both tablet and mobile) */
@media(max-width: 1024px) {
  .header {
    padding: 0 20px;
  }

  .radix-nav-menu,
  .header-actions .btn-ghost {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }
}
