SACRAMENTO — A full-fledged housing crisis has gripped California, marked by a severe lack of affordable homes and apartments for middle-class families. The median cost of a home here is now a staggering $500,000, twice the national cost. Homelessness is surging across the state. In Los Angeles, booming with construction and signs of prosperity, some people…