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: 'Champion Handyman LLC | Trusted Local Home Repair & Improvement',
  description: 'Dependable handyman services in Danville, Alamo, San Ramon, Walnut Creek & East Bay. Quality home repairs, installations, and maintenance you can trust. Get a free estimate!',
  keywords: ["Handyman Danville CA, Handyman Alamo CA, Handyman Near Me, Home Repair Danville, Home Maintenance Danville, Stucco Repair Danville, Door Repair Danville, Fence Repair Danville, Security Camera Installation Danville, Kitchen Faucet Replacement Danville"],
  openGraph: {
    "title": "Champion Handyman LLC | Trusted Local Home Repair & Improvement",
    "description": "Dependable handyman services in Danville, Alamo, San Ramon, Walnut Creek & East Bay. Quality home repairs, installations, and maintenance you can trust. Get a free estimate!",
    "url": "https://www.championhandyman.com",
    "siteName": "Champion Handyman LLC",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/couple-painting-their-new-home-after-moving-together_23-2149086828.jpg",
        "alt": "Professional handyman working in a modern home"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Champion Handyman LLC | Trusted Local Home Repair & Improvement",
    "description": "Dependable handyman services in Danville, Alamo, San Ramon, Walnut Creek & East Bay. Quality home repairs, installations, and maintenance you can trust. Get a free estimate!",
    "images": [
      "http://img.b2bpic.net/free-photo/couple-painting-their-new-home-after-moving-together_23-2149086828.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`}>
          <Tag />
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
