/* ============================================================
   NAV
============================================================ */
@media (max-width: 426px){
  #main-nav {
    top: 0px;
  }
}
@media (min-width: 426px and max-width: 1023px){
  #main-nav {
    top: 0px;
  }
}

@media (min-width: 1024px){
  #main-nav {
    top: 33px; 
  }
}

#main-nav {
  position: sticky;
  z-index: 200;
  background: var(--white);
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 var(--px);
  justify-content: space-between;
  transition: box-shadow 0.3s;
}
#main-nav.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

/* Logo image */
.nav-logo img {
  height: 28px; width: auto;
  display: block;
}

/* Nav links */
.nav-links {
  display: flex; gap: clamp(1rem, 2.2vw, 1.75rem);
}

ul.nav-links {
  margin-top: 15px!important;
}
.nav-links a {
  color: var(--ink); font-size: 13.5px;
  font-weight: 400; position: relative;
  padding-bottom: 4px;
  transition: color var(--ease);
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--blue);
  transition: width var(--ease);
}
.nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--blue); }
.nav-links a.active::after { width: 100%; }

/* Profile dropdown trigger */
.nav-profile {
  display: flex; align-items: center; gap: 4px;
}
.nav-chevron { font-size: 11px; color: var(--muted); }

/* Profile dropdown */
.nav-dropdown-wrap {
  position: relative;
}
.nav-dropdown {
  display: none;
  position: absolute; top: calc(100% + 12px); right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  min-width: 160px; padding: 6px 0; z-index: 300;
}
.nav-dropdown a {
  display: block; padding: 9px 16px;
  font-size: 13px; color: var(--ink);
  transition: background var(--ease), color var(--ease);
}
.nav-dropdown a::after { display: none; }
.nav-dropdown a:hover { background: var(--blue-bg-soft); color: var(--blue); }
.nav-dropdown-wrap:hover .nav-dropdown { display: block; }

/* CTA button */
.nav-cta-btn {
  background: var(--blue); color: #fff;
  border: none; padding: 9px 20px;
  font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.8px; text-transform: uppercase;
  border-radius: var(--r);
  transition: background var(--ease), transform 0.15s;
  white-space: nowrap; display: inline-block;
}
.nav-cta-btn:hover { background: var(--blue-dark); transform: translateY(-1px); color: #fff; }

/* Hamburger */
.nav-hamburger {
  display: none; background: none; border: none;
  color: var(--ink); font-size: 22px;
  align-items: center; justify-content: center;
}
.mobile-menu {
  display: none; position: absolute;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem var(--px);
  flex-direction: column; gap: 1rem; z-index: 199;
  box-shadow: 0 8px 20px rgba(0,0,0,0.07);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--ink); font-size: 15px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}
.mobile-menu a:last-of-type { border-bottom: none; }
