Which of the following is a complex sentence?

A.
I went swimming because it was hot.

B.
Because it was hot.

C.
I went swimming and it was hot.

D.
And it was hot.