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



export const metadata: Metadata = {
  title: 'Simpson Metal Roofing | Premier Roof Installation & Repair',
  description: 'Simpson Metal Roofing provides top-quality metal roof installation, repairs, and maintenance services in Springwood, NSW. Durable, aesthetic, and expert craftsmanship.',
  keywords: ["metal roofing, roofing contractor, roof installation, roof repair, Springwood, NSW, corrugated iron, standing seam, Colorbond"],
  openGraph: {
    "title": "Simpson Metal Roofing | Premier Roof Installation & Repair",
    "description": "Simpson Metal Roofing provides top-quality metal roof installation, repairs, and maintenance services in Springwood, NSW. Durable, aesthetic, and expert craftsmanship.",
    "url": "https://www.simpsonmetalroofing.com.au",
    "siteName": "Simpson Metal Roofing",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/photo-metal-texture-pattern_58702-11972.jpg",
        "alt": "Modern metal roof on a residential home"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Simpson Metal Roofing | Premier Roof Installation & Repair",
    "description": "Simpson Metal Roofing provides top-quality metal roof installation, repairs, and maintenance services in Springwood, NSW. Durable, aesthetic, and expert craftsmanship.",
    "images": [
      "http://img.b2bpic.net/free-photo/photo-metal-texture-pattern_58702-11972.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const dmSans = DM_Sans({
  variable: "--font-dm-sans",
  subsets: ["latin"]
});
const inter = Inter({
  variable: "--font-inter",
  subsets: ["latin"]
});

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