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



export const metadata: Metadata = {
  title: 'Bay Contractors & Roofing | Quality Services for Your Home & Business',
  description: 'Bay Contractors & Roofing provides expert roof repair, new installations, and general contracting services in the Bay Area. Get a free estimate today!',
  openGraph: {
    "title": "Bay Contractors & Roofing | Quality Services",
    "description": "Your trusted partner for all residential and commercial roofing and contracting needs.",
    "url": "https://www.baycontractorsroofing.com",
    "siteName": "Bay Contractors & Roofing",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/wide-shot-beautiful-architecture-modern-house_181624-3464.jpg",
        "alt": "Roofer installing new shingles on a residential house"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Bay Contractors & Roofing | Quality Services",
    "description": "Your trusted partner for all residential and commercial roofing and contracting needs.",
    "images": [
      "http://img.b2bpic.net/free-photo/wide-shot-beautiful-architecture-modern-house_181624-3464.jpg"
    ]
  },
};

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

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