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: 'Classy Cars Auto Detailing - Premium Car Care in Aurora, IN',
  description: 'Experience unparalleled mobile auto detailing in Aurora, Indiana with Classy Cars Auto Detailing. Showroom-quality cleaning, paint correction, ceramic coatings, and more. Book your appointment today!',
  keywords: ["auto detailing Aurora Indiana, car cleaning Aurora IN, mobile car wash, paint correction, ceramic coating, interior car detail, exterior car detail, Classy Cars"],
  openGraph: {
    "title": "Classy Cars Auto Detailing - Premium Car Care in Aurora, IN",
    "description": "Experience unparalleled mobile auto detailing in Aurora, Indiana with Classy Cars Auto Detailing. Showroom-quality cleaning, paint correction, ceramic coatings, and more. Book your appointment today!",
    "url": "https://www.classycarsdetailing.com",
    "siteName": "Classy Cars Auto Detailing",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/close-up-car-care-process_23-2149193562.jpg",
        "alt": "A meticulously detailed luxury car"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Classy Cars Auto Detailing - Premium Car Care in Aurora, IN",
    "description": "Experience unparalleled mobile auto detailing in Aurora, Indiana with Classy Cars Auto Detailing. Showroom-quality cleaning, paint correction, ceramic coatings, and more. Book your appointment today!",
    "images": [
      "http://img.b2bpic.net/free-photo/close-up-car-care-process_23-2149193562.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>
  );
}
