Phase transitions of a two-dimensional periodic hydrophilic hydrophobic chain