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: 'Gallery Built Roofing | Premium Architectural Roofing',
  description: 'Gallery Built Roofing offers high-end, design-forward roofing solutions for luxury homes and architectural projects. Experience unparalleled craftsmanship and aesthetic excellence.',
  keywords: ["luxury roofing, architectural roofing, premium roofing contractor, high-end roof, slate roof, metal roof, residential roofing, designer roofs, custom roofing"],
  openGraph: {
    "title": "Gallery Built Roofing | Premium Architectural Roofing",
    "description": "Gallery Built Roofing offers high-end, design-forward roofing solutions for luxury homes and architectural projects. Experience unparalleled craftsmanship and aesthetic excellence.",
    "url": "https://www.gallerybuilt.com",
    "siteName": "Gallery Built Roofing",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/full-shot-man-working-roof_23-2149343660.jpg",
        "alt": "Luxury home with modern roof"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Gallery Built Roofing | Premium Architectural Roofing",
    "description": "Gallery Built Roofing offers high-end, design-forward roofing solutions for luxury homes and architectural projects. Experience unparalleled craftsmanship and aesthetic excellence.",
    "images": [
      "http://img.b2bpic.net/free-photo/full-shot-man-working-roof_23-2149343660.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>
  );
}
