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



export const metadata: Metadata = {
  title: 'Mecanic Classics: Expert Auto Repair & Restoration',
  description: 'Mecanic Classics offers professional auto repair, maintenance, and classic car restoration services. Book your appointment for reliable and expert automotive care.',
  keywords: ["auto repair, car service, mechanic, classic car restoration, vintage car, maintenance, diagnostics, Belgium, Mecanic Classics"],
  openGraph: {
    "title": "Mecanic Classics: Expert Auto Repair & Restoration",
    "description": "Mecanic Classics offers professional auto repair, maintenance, and classic car restoration services. Book your appointment for reliable and expert automotive care.",
    "url": "https://www.mecanicclassics.com",
    "siteName": "Mecanic Classics",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/hands-female-mechanic-servicing-car_1170-1243.jpg",
        "alt": "Mechanic working on a car engine"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Mecanic Classics: Expert Auto Repair & Restoration",
    "description": "Mecanic Classics offers professional auto repair, maintenance, and classic car restoration services. Book your appointment for reliable and expert automotive care.",
    "images": [
      "http://img.b2bpic.net/free-photo/hands-female-mechanic-servicing-car_1170-1243.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const inter = Inter({
  variable: "--font-inter",
  subsets: ["latin"],
});
const openSans = Open_Sans({
  variable: "--font-open-sans",
  subsets: ["latin"],
});

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