Titlesync
window.addEventListener("load", function() {
const serviceTitles = {
"Full Groom": "Full Groom",
"Wash & Blow Dry": "Wash & Blow Dry",
"Nail & Paw Care": "Nail & Paw Care",
"Puppy Spa": "Puppy Spa"
};
const params = new URLSearchParams(window.location.search);
const service = params.get("service") || "Full Groom";
const titleText = serviceTitles[service] || service || "Full Groom";
const titleElement = document.getElementById("dynamicTitle");
if (titleElement) {
titleElement.textContent = titleText;
titleElement.style.color = "white";
titleElement.style.textAlign = "center";
titleElement.style.margin = "20px 0";
titleElement.style.fontWeight = "bold";
titleElement.style.fontSize = "1.5em"; // Typical h2 size equivalent
}
});