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



export const metadata: Metadata = {
  title: 'Luna Automotive | Engineering Meets Cinema',
  description: 'Experience premium vehicles through cutting-edge 3D cinematics and immersive storytelling for the ultimate dealership journey.',
  keywords: ["Luna Automotive, luxury cars, electric vehicles, 3D animated website, premium dealership, German engineering, futuristic cars"],
  openGraph: {
    "title": "Luna Automotive | Engineering Meets Cinema",
    "description": "Experience premium vehicles through cutting-edge 3D cinematics and immersive storytelling for the ultimate dealership journey.",
    "url": "https://www.lunaautomotive.com",
    "siteName": "Luna Automotive GmbH",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/view-3d-car-model_23-2151138966.jpg",
        "alt": "Futuristic luxury car"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Luna Automotive | Engineering Meets Cinema",
    "description": "Experience premium vehicles through cutting-edge 3D cinematics and immersive storytelling for the ultimate dealership journey.",
    "images": [
      "http://img.b2bpic.net/free-photo/view-3d-car-model_23-2151138966.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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