There seem to be a lot of posts asking about the plot, so here's a summary of the key points and I can add to it if anything significant is missing (I'll avoid character names as there are so many of them it will be confusing):
A lawyer - our hero - works on a case with a pretty young lawyer, and starts to develop feelings. His wife figures this out and so pretends to be pregnant - and then pretends to have a miscarriage - and his interests are refocused and their marriage is saved.
The wife later discovers a colleague (their jolly neighbour) is stealing money from the football club. She confronts him but they are good friends so she allows him time to pay it off. He knows he cannot afford to, so starts to frame her by fixing the books and telling the coach that he thinks she did it, and that she intends to frame the coach. The coach thus hires a PI to look into the wife, to protect himself and perhaps find evidence of theft.
The PI had been raised by a man with whom she became estranged after she discovered (as a young adult) he was not really her father. While investigating the wife for the coach, she figures out who her biological father really was and realises the hero is actually her half brother. She also uncovers the fake pregnancy through bank records, and so to protect her new-found brother she discloses her findings to the hero rather than the coach, both to protect him and because her "father's" lies have made her sensitive to this sort of family secret.
The hero confronts his wife, who assumes it was her colleague - the jolly neighbour - who dug up the dirt in an attempt to destroy her. She doesn't take time to explain and instead rushes off to confront the jolly neighbour, who smashes her head in with a hammer, buries her in the woods and then fakes a text from her phone to the hero saying she needs some time. He calls the children "kids" rather than "boys" which later tips the hero off that it wasn't really her.
He also tried to stage her suicide and parks her car by the airport (which we're led to think may have been used to transport the body, as the detective notes the boot is so very clean, but a car user reports you couldn't fit an adult body in that boot so this seems improbable; the detective never asked for forensics so that's speculation, and maybe the body was on the back seat as that's where an earring was found, but that's a conspicuous way to move a body).
Meanwhile the PI - who does a separate line in blackmail - identifies that a local baker's daughter is a sex worker for wealthy businessmen. Rather than blackmail the wealthy businessmen, she blackmails the baker, who tells the daughter about all of this, and the daughter then warns her clients. One of these clients is a fraudster currently running a scam on the church and who can't therefore afford to be exposed so he hires a local corrupt cop to find the blackmailer and stop her. The corrupt cop's interrogation of the baker goes too far and he kills her, alas.
The corrupt cop is highly stressed as he's estranged from his wife and his daughter has a long term mystery illness, for which he needs money to consult medical specialists. However, the daughter's friend - the hero's son - discovers that she is actually being poisoned by the mum who craves attention. This is largely irrelevant aside from justifying some action scenes in which the corrupt cop has become ever more angry and violent.
The man who raised the PI had murdered his wife (the PI's mother) years ago when she attempted to leave him with her child, and he hid her body in the walls of their house. He's inexplicably careful to never refer to his daughter's gender in conversation and uses a gender neutral name for her (such that one generally assumes he means his son). When his daughter's real father wants to demolish the house as part of a redevelopment scheme he realises his wife's body will be revealed and so hires the lawyer to oppose the scheme. This is unsuccessful, he is arrested and ends up in prison. He tries to kill himself and ends up in a low security hospital. The PI visits - possibly either to make amends or kill him, it's not clear.
Meanwhile, the hero's eldest son goes to a bonfire party and hijinks ensure: a boy called Dante tries to cop off with the son's sort-of girlfriend, but she plays a prank on him in which he ends up naked and unconscious by a lake. She also spikes the hero's best friend with PCP, who then goes off on a bad trip and ends up inexplicably decapitating an alpaca in the town centre. He uses a spade, and it's not clear if this was the spade used by the jolly neighbour to bury the mother or if this entire thing is unrelated.
There is a human bite mark on the alpaca's leg with a very unique teeth pattern, but it never really transpires who did this (the son's PCP friend doesn't appear to have this teeth pattern and the detective investigating the case doesn't look into it, she's much more obsessed with her case relating to the baker as she was a dear friend).
The sort-of-girlfriend's younger sister had naked photographs of her leaked online, so is very sad about that. The girl being poisoned by the mother leaked these online but blamed the son's best friend, which is why the sort-of-girlfriend spiked his spliff. None of this is important.
A mysterious figure in the woods which led to people panicking (and Dante getting knocked out) was just the groundsman collecting wood, with a small axe. He has perfect recall but aside from providing one registration plate number this is never used in the plot. He was also caught fiddling with a security camera by Dante - who has a hard drive of videos of the hero's wife - but none of that is important.
Ultimately the PI tells the hero who hired her, that leads him to the jolly neighbour, who leads him to the corpse in the hope of framing him for the murder himself. Instead, the hero blasts lead into the neighbour's tummy and kills him. The detective discovers this and - presumably due to her grave hatred of the corrupt cop, who killed her best friend the baker - immediately proposes to frame the corrupt cop for this killing too. This seems a poor decision - as even rudimentary forensic analysis would reveal the neighbour died after the cop was arrested - but six months later it seems all is in order (albeit the corrupt cop has not been sentenced yet).