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";
import { Archivo } from "next/font/google";



export const metadata: Metadata = {
  title: 'Wiley\'s Services | Handyman & Home Repair',
  description: 'Trusted home repairs and improvements by Wiley\'s Services. Bathroom remodels, plumbing, electrical, and more. Fast, friendly, and reliable.',
  openGraph: {
    "title": "Wiley's Services | Handyman & Home Repair",
    "description": "Trusted home repairs and improvements by Wiley's Services. Fast, friendly, and reliable.",
    "siteName": "Wiley's Services",
    "type": "website"
  },
};

const archivo = Archivo({
  variable: "--font-archivo",
  subsets: ["latin"],
});

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