/* ── Navbar ──────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 36px;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #E5E7EB;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.nav-shell {
  width: min(1380px, calc(100% - 2rem));
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

/* ── Brand ── */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand__logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-brand__text strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: #17385d;
  letter-spacing: -0.01em;
}

.nav-brand__text span {
  font-size: 0.78rem;
  color: #087fff;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ── Desktop menu ── */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.65rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  border: none;
  background: none;
  cursor: poInter;
  font-family: inherit;
  border-radius: 0.5rem;
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
}

.nav-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.nav-link:hover,
.nav-link.is-active {
  color: #087fff;
  background: rgba(72, 127, 194, 0.06);
}

.nav-link.is-active {
  font-weight: 600;
}

/* ── Dropdown ── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown.is-open .nav-dropdown__btn svg {
  transform: rotate(180deg);
}

.nav-dropdown__panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 200px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 0.75rem;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.1);
  padding: 0.4rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  poInter-events: none;
  transition: opacity 0.18s, transform 0.18s;
  z-index: 200;
}

.nav-dropdown.is-open .nav-dropdown__panel {
  opacity: 1;
  poInter-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown__panel a {
  display: block;
  padding: 0.6rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown__panel a:hover {
  background: rgba(72, 127, 194, 0.06);
  color: #087fff;
}

/* ── Actions ── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.4rem;
  background: #087fff;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.18s, transform 0.18s;
  white-space: nowrap;
}

.nav-cta:hover {
  background: #087fff;
  color: #fff;
  transform: translateY(-1px);
}

/* ── Hamburger ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0.5rem;
  background: none;
  border: 1px solid #E5E7EB;
  border-radius: 0.5rem;
  cursor: poInter;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: #374151;
  border-radius: 999px;
  transition: transform 0.22s, opacity 0.22s;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile drawer ── */
.nav-mobile {
  border-top: 1px solid #E5E7EB;
  background: #fff;
  padding: 1rem 1.5rem 1.5rem;
}

.nav-mobile[hidden] { display: none; }

.nav-mobile__menu {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.nav-mobile__menu a {
  display: block;
  padding: 0.7rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  border-bottom: 1px solid #F3F4F6;
  transition: color 0.15s;
}

.nav-mobile__menu a:hover { color: #087fff; }
.nav-mobile__menu li:last-child a { border-bottom: none; }

.nav-mobile__cta {
  display: block;
  text-align: center;
  padding: 0.8rem;
  background: #087fff;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.18s;
}

.nav-mobile__cta:hover { background: #087fff; color: #fff; }

/* ── Focus ── */
.navbar a:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid #087fff;
  outline-offset: 2px;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .nav-menu    { display: none; }
  .nav-cta     { display: none; }
  .nav-toggle  { display: flex; }
}

@media (max-width: 480px) {
  .nav-brand__text { display: none; }
  .nav-shell { height: 60px; }
}

/* Mobile section divider */
.nav-mobile__divider {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9CA3AF;
  padding: 1rem 0.5rem 0.35rem;
  list-style: none;
}

/* Active state for dropdown trigger buttons */
.nav-dropdown__btn.is-active {
  color: #087fff;
  font-weight: 600;
}

/* Active link in mobile drawer */
.nav-mobile__menu a.is-active {
  color: #087fff;
  font-weight: 600;
}
