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