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 { getVisualEditScript } from "@/utils/visual-edit-script";
import { Open_Sans } from "next/font/google";



export const metadata: Metadata = {
  title: 'elevai8 - AI Receptionist & Missed Call Solutions for Small Businesses',
  description: 'Elevate your business with elevai8\'s AI receptionist and missed call recovery solutions. Seamlessly book appointments, sync CRM, and never miss a lead again for dentists, chiropractors, real estate, and solar companies.',
  keywords: ["AI receptionist, missed call AI, AI solutions, small business AI, automated booking, CRM integration, dental AI, chiropractic AI, real estate AI, solar company AI, elevate AI"],
  openGraph: {
    "title": "elevai8 - AI Receptionist & Missed Call Solutions",
    "description": "Elevate your business with AI-powered solutions to capture every lead and streamline appointments.",
    "url": "https://elevai8.com.au",
    "siteName": "elevai8",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/calendar-agenda-event-meeting-reminder-schedule-graphic-concept_53876-125181.jpg",
        "alt": "AI Dashboard"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "elevai8 - AI Receptionist & Missed Call Solutions",
    "description": "Elevate your business with AI-powered solutions to capture every lead and streamline appointments.",
    "images": [
      "http://img.b2bpic.net/free-photo/calendar-agenda-event-meeting-reminder-schedule-graphic-concept_53876-125181.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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={`${openSans.variable} antialiased`}>
          
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
