import type { Metadata } from "next";
import { Halant } from "next/font/google";
import { Inter } from "next/font/google";
import "./globals.css";
import "@/lib/gsap-setup";
import { ServiceWrapper } from "@/components/ServiceWrapper";
import Tag from "@/tag/Tag";
import { getVisualEditScript } from "@/utils/visual-edit-script";



export const metadata: Metadata = {
  title: 'QuickFix Boiler Repair Services | Same-Day Boiler Repair Birmingham',
  description: 'Gas Safe registered boiler repair in Birmingham. Same-day call-outs, £0 diagnosis fee, honest fixed-price quotes. Call Farooq today — 60+ five-star reviews.',
  keywords: ["boiler repair Birmingham, Gas Safe engineer Birmingham, same-day boiler repair, emergency boiler repair Birmingham, boiler breakdown Birmingham"],
  openGraph: {
    "title": "QuickFix Boiler Repair Services",
    "description": "Gas Safe registered boiler repair in Birmingham.",
    "siteName": "QuickFix"
  },
};

const inter = Inter({
  variable: "--font-inter",
  subsets: ["latin"],
  weight: ["400", "700"],
});

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en" suppressHydrationWarning>
      <ServiceWrapper>
        <body className={`${inter.variable} antialiased`}>
          <Tag />
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
