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 { getVisualEditScript } from "@/utils/visual-edit-script";
import { Archivo } from "next/font/google";



export const metadata: Metadata = {
  title: 'Michaels\' Plumbing | Licensed & Insured St. Augustine Plumbers',
  description: 'Michaels\' Plumbing offers reliable, licensed, and insured plumbing services in St. Augustine, FL. Expert drain cleaning, faucet repair, water heater installation & more.',
  keywords: ["Michaels' Plumbing, plumber St Augustine, licensed plumber, insured plumbing, drain cleaning, faucet installation, sewer repair, shower repair, toilet repair, water heater installation, water heater repair, St. Augustine FL plumbing"],
  openGraph: {
    "title": "Michaels' Plumbing | Licensed & Insured St. Augustine Plumbers",
    "description": "Michaels' Plumbing offers reliable, licensed, and insured plumbing services in St. Augustine, FL. Expert drain cleaning, faucet repair, water heater installation & more.",
    "url": "https://michaelsplumbingstaugustine.com",
    "siteName": "Michaels' Plumbing",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/medium-shot-man-working-as-plumber_23-2150746316.jpg",
        "alt": "Professional plumber fixing a leaky pipe"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Michaels' Plumbing | Licensed & Insured St. Augustine Plumbers",
    "description": "Michaels' Plumbing offers reliable, licensed, and insured plumbing services in St. Augustine, FL. Expert drain cleaning, faucet repair, water heater installation & more.",
    "images": [
      "http://img.b2bpic.net/free-photo/medium-shot-man-working-as-plumber_23-2150746316.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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`}>
          
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
