To invert the header into the "primary" colour style simply set/remove the following classes on the following elements:
body: add the class
.navbar-inverseclass so the menu elements contract is altered to suite a dark background. If you're "primary" colour isn't dark you might not need this.
3 alter the button styling for your search and mobile toggle buttons in the header so they stand out. For example adding the class