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



export const metadata: Metadata = {
  title: 'LA Roofing Co. | Expert Roof Repair & Replacement in Los Angeles',
  description: 'Los Angeles\' trusted roofing contractor for residential and commercial properties. Specializing in expert repairs, replacements, and preventative maintenance with free inspections.',
  keywords: ["Los Angeles roofing, roof repair LA, roof replacement Los Angeles, LA roofing contractor, commercial roofing LA, residential roofing Los Angeles, free roof inspection, trusted roofers LA"],
  openGraph: {
    "title": "LA Roofing Co. | Expert Roof Repair & Replacement in Los Angeles",
    "description": "Los Angeles' trusted roofing contractor for residential and commercial properties. Specializing in expert repairs, replacements, and preventative maintenance with free inspections.",
    "url": "https://www.laroofingco.com",
    "siteName": "LA Roofing Co.",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/long-shot-men-working-together-roof_23-2149343674.jpg",
        "alt": "Modern home with a newly installed roof in Los Angeles"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "LA Roofing Co. | Expert Roof Repair & Replacement in Los Angeles",
    "description": "Los Angeles' trusted roofing contractor for residential and commercial properties. Specializing in expert repairs, replacements, and preventative maintenance with free inspections.",
    "images": [
      "http://img.b2bpic.net/free-photo/long-shot-men-working-together-roof_23-2149343674.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const roboto = Roboto({
  variable: "--font-roboto",
  subsets: ["latin"],
  weight: ["100", "300", "400", "500", "700", "900"],
});

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