The needs of a city only generate unhappiness from each of these four sources. Any excess in one source doesn't generate surplus happiness, nor compensate for negative values in the other sources.
So, your capital has 4 unhappiness from needs, and 1 happiness from some other source (social policies, certain beliefs, etc), for a total of -3 happiness.