The premise that cold water sits at the bottom and warm water at the top is actually correct for most of the ocean. Here’s why:
Sunlight penetrates only the upper ~200 m (euphotic zone), warming the surface layer.
A sharp temperature gradient (thermocline) separates warm surface water from cold deep water.
Below the thermocline, temperatures hover near 0–4°C. This water originates from polar regions where surface water cools, becomes dense, and sinks, driving global thermohaline circulation.
In polar regions, surface water can be colder than deeper water. Hydrothermal vents locally heat deep water.
Overall, the ocean’s vertical temperature structure is a fundamental feature of Earth’s climate system.