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



export const metadata: Metadata = {
  title: 'AI Voice Agents for Business Growth | World-Class AI Agency',
  description: 'Revolutionize your customer interactions and scale your business with intelligent AI Voice Agents. Automate calls, qualify leads, and book appointments 24/7. Designed for Silicon Valley SaaS standards.',
  keywords: ["AI voice agent, AI agency, conversational AI, lead qualification, appointment setter, customer support AI, business automation, SaaS AI, Silicon Valley AI, voice AI solutions"],
  openGraph: {
    "title": "AI Voice Agents for Business Growth | World-Class AI Agency",
    "description": "Revolutionize your customer interactions and scale your business with intelligent AI Voice Agents. Automate calls, qualify leads, and book appointments 24/7. Designed for Silicon Valley SaaS standards.",
    "url": "https://www.aivoiceagency.com",
    "siteName": "AI Voice Agency",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/cosmic-background-with-blue-laser-lights_181624-15764.jpg",
        "alt": "Glowing AI Orb with animated voice waveform"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "AI Voice Agents for Business Growth | World-Class AI Agency",
    "description": "Revolutionize your customer interactions and scale your business with intelligent AI Voice Agents. Automate calls, qualify leads, and book appointments 24/7. Designed for Silicon Valley SaaS standards.",
    "images": [
      "http://img.b2bpic.net/free-photo/cosmic-background-with-blue-laser-lights_181624-15764.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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>
  );
}
