import type { Metadata } from "next";
import { Halant } from "next/font/google";
import { Barlow_Condensed, Inter, Space_Mono } 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: "CARLSTRA AERO LTD",  description: "Built to deliver. Trusted to comply."};

const barlowCondensed = Barlow_Condensed({
  variable: "--font-barlow-condensed",  subsets: ["latin"],
  weight: ["700"],
});

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

const spaceMono = Space_Mono({\n  variable: "--font-space-mono",\n  subsets: ["latin"],\n  weight: ["400", "700"],\n});

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