/* ============================================================
   NAVBAR: floating flat bar (ANVIQ Design System v1)
   ============================================================ */

/* outer nav is now just a transparent holder */
.nav{
  background:transparent;
  border-bottom:0;
  box-shadow:none;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}
.nav.scrolled{ box-shadow:none; }

/* page starts at the very top: hero background runs behind the floating navbar */
.page{ padding-top:0; }

/* pages without a hero (Privacy, Terms, Support): keep the content below the floating navbar */
.page > section.section:first-child{ padding-top:170px; }
@media (max-width:768px){
  .page > section.section:first-child{ padding-top:140px; }
}

/* the floating bar — DS: flat white surface, 1px hairline, radius-lg, no blur/shadow */
.nav .nav-inner{
  height:64px;
  margin-top:12px;
  padding:0 10px 0 24px;
  border-radius:var(--radius-lg);
  background:#fff;
  border:var(--border-w) solid var(--border-color);
  box-shadow:none;
  transition:border-color var(--motion-fast);
}
.nav.scrolled .nav-inner{ border-color:var(--border-strong); }

/* links — DS sidebar-nav style: transparent, hover tint, active = primary */
.nav .nav-links{ gap:4px; margin-right:14px; }
.nav .nav-link{
  padding:8px 14px;
  border-radius:var(--radius-sm);
  font-size:.875rem;
  font-weight:600;
  color:var(--text-primary);
  background:transparent;
  border:0;
  transition:background-color var(--motion-fast), color var(--motion-fast);
}
.nav .nav-link:hover{ background:var(--color-action-primary-soft); color:var(--color-action-primary-text); }
.nav .nav-link.active{ color:#fff; background:var(--color-action-primary); box-shadow:none; }
.nav .nav-link.active::after{ display:none; }

/* dropdown — DS menu */
.nav .nav-dropdown-menu{
  top:calc(100% + 18px);
  border-radius:var(--radius-md);
  background:#fff;
  border:var(--border-w) solid var(--border-color);
  box-shadow:none;
  padding:8px;
}

/* CTA — DS primary button */
.nav-cta-pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 16px;
  border-radius:var(--radius-btn);
  background:var(--color-action-primary);
  color:var(--color-action-primary-contrast);
  font-weight:700; font-size:.875rem;
  text-decoration:none; white-space:nowrap;
  box-shadow:none;
  transition:filter var(--motion-fast);
}
.nav-cta-arrow{ display:inline; width:auto; height:auto; background:none; color:inherit; font-size:1rem; transition:transform var(--motion-base); }
.nav-cta-pill:hover{ filter:brightness(.92); }
.nav-cta-pill:active{ filter:brightness(.82); }
.nav-cta-pill:hover .nav-cta-arrow{ transform:translateX(3px); }

/* medium screens: not enough room for the CTA */
@media (max-width:1100px){
  .nav-cta-pill{ display:none; }
  .nav .nav-link{ padding:8px 13px; font-size:.9rem; }
}

@media (max-width:768px){
  .nav .nav-inner{
    height:58px;
    margin-top:10px;
    padding:0 8px 0 18px;
  }
  .nav .nav-hamburger{ border-radius:var(--radius-sm); }
  .mobile-nav{ top:0; padding-top:88px; }
}
