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



export const metadata: Metadata = {
  title: 'Metro Carpentry Group | Expert Carpentry & Construction Melbourne',
  description: 'Metro Carpentry Group provides premium residential and commercial carpentry in Melbourne. Delivering exceptional craftsmanship for renovations, decks, and custom timber work. Get a free quote today!',
  keywords: ["carpentry Melbourne, construction Melbourne, residential carpentry, commercial carpentry, decking, renovations, home extension, structural framing, custom timber work, Brunswick Victoria, trusted carpenter"],
  openGraph: {
    "title": "Metro Carpentry Group | Expert Carpentry & Construction Melbourne",
    "description": "Metro Carpentry Group provides premium residential and commercial carpentry in Melbourne. Delivering exceptional craftsmanship for renovations, decks, and custom timber work. Get a free quote today!",
    "url": "https://www.metrocargroup.com.au",
    "siteName": "Metro Carpentry Group",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/construction-worker-with-hammer-building-roof-house_23-2148748848.jpg",
        "alt": "Modern carpentry project with timber frames"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Metro Carpentry Group | Expert Carpentry & Construction Melbourne",
    "description": "Metro Carpentry Group provides premium residential and commercial carpentry in Melbourne. Delivering exceptional craftsmanship for renovations, decks, and custom timber work. Get a free quote today!",
    "images": [
      "http://img.b2bpic.net/free-photo/construction-worker-with-hammer-building-roof-house_23-2148748848.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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