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

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

const halant = Halant({
  variable: "--font-halant",  subsets: ["latin"],
  weight: ["300", "400", "500", "600", "700"],
});

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

export const metadata: Metadata = {
  title: "AI Agency - Transform Your Business with Intelligent Solutions",  description: "We architect intelligent AI systems that solve real problems for enterprise leaders. Explore our services, case studies, and drive qualified leads.",  keywords: "AI agency, artificial intelligence, machine learning, AI solutions, enterprise AI, data science, AI strategy, AI transformation, custom AI development",  metadataBase: new URL("https://www.aiagency.com"),
  alternates: {
    canonical: "https://www.aiagency.com"},
  openGraph: {
    title: "AI Agency - Transform Your Business with Intelligent Solutions",    description: "We architect intelligent AI systems that solve real problems for enterprise leaders. Explore our services, case studies, and drive qualified leads.",    url: "https://www.aiagency.com",    siteName: "AI Agency",    images: [{
      url: "http://img.b2bpic.net/free-photo/blurred-night-lights_23-2148139262.jpg",      alt: "AI Agency Hero Image"}],
    type: "website"},
  twitter: {
    card: "summary_large_image",    title: "AI Agency - Transform Your Business with Intelligent Solutions",    description: "We architect intelligent AI systems that solve real problems for enterprise leaders. Explore our services, case studies, and drive qualified leads.",    images: ["http://img.b2bpic.net/free-photo/blurred-night-lights_23-2148139262.jpg"],
  },
  robots: {
    index: true,
    follow: true,
  },
};

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