In
お酒は、ほろ酔いのうちが最高だと言われる。
It's said that alcohol is the best while tipsy.
there is a だ placed before the end of a sentence. I was under the impression that だ can only be placed at the end of the sentence (excluding sentence ending particles), or else it must take its な form. Is this not the case?