/* ===========================================
   NAVBAR COMPONENT
   =========================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 8px rgba(0,0,0,.08);
  /* z-index: 999; */
}
.navbar__inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 4px;
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 14px;
  flex-shrink: 0;
}
.navbar__logo img { height: 48px; width: auto; }
.navbar__logo-text .brand-name {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
}
.navbar__logo-text .brand-name .teal  { color: var(--teal); }
.navbar__logo-text .brand-name .orange { color: var(--orange); }
.navbar__logo-text .brand-tagline {
  font-size: 10px;
  color: var(--text-light);
  letter-spacing: .5px;
}

/* Nav links */
.navbar__links {
  display: flex;
  align-items: center;
  flex: 1;
  /* overflow: hidden; */
}
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 8px 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: #222;
  white-space: nowrap;
  transition: color var(--t);
}
.nav-link:hover { color: var(--teal); }
.nav-link__arrow {
  font-size: 9px;
  transition: transform var(--t);
}
.nav-item:hover .nav-link__arrow { transform: rotate(180deg); }

/* Dropdown */
.nav-item { position: relative; }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 9999;
  pointer-events: none;
  /* Small bridge so mouse can move between link and dropdown */
  padding-top: 4px;
  margin-top: -4px;
}
/* Pseudo-element bridge prevents gap from closing dropdown */
.nav-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 8px;
  background: transparent;
  display: block;
}
.nav-item:hover > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}
.nav-dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--text-mid);
  white-space: nowrap;
  transition: background .15s, color .15s;
  border-radius: 0;
}
.nav-dropdown a:first-child { border-radius: var(--r-md) var(--r-md) 0 0; padding-top: 12px;}
.nav-dropdown a:last-child  { border-radius: 0 0 var(--r-md) var(--r-md); padding-bottom: 12px;}
.nav-dropdown a:hover { background: var(--teal-light); color: var(--teal);}

/* Right actions */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.navbar__ai-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1.5px solid var(--orange);
  border-radius: var(--r-xl);
  padding: 7px 16px;
  font-size: 13px;
  color: var(--orange);
  font-weight: 600;
  background: transparent;
  transition: all var(--t);
  white-space: nowrap;
}
.navbar__ai-btn:hover { background: var(--orange); color: #fff; }
.navbar__ai-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.navbar__lang {
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  padding: 6px 26px 6px 10px;
  font-size: 13px;
  color: var(--text-mid);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E") no-repeat right 8px center;
  appearance: none;
  cursor: pointer;
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}
.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #222;
  border-radius: 2px;
  transition: all var(--t);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0; bottom: 0;
  background: #fff;
  overflow-y: auto;
  z-index: 999;
  padding: 16px 20px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 500;
  color: #222;
}
.mobile-nav a:hover { color: var(--teal); }

/* Responsive */
@media (max-width: 1180px) {
  .navbar__links  { display: none; }
  .navbar__ai-btn { display: none; }
  .navbar__hamburger { display: flex; }
}