next time when it acts up pop the hood and see if the compressor is coming on as i've seen quite a few compressors with a bad shaft seal what happens is it works fine when cold but after it heats up on a hot day the oil leaking from the shaft prevent the clutch from engaging only way to find out is to put dye in it or pull the clutch cover..