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



export const metadata: Metadata = {
  title: 'WE SERVE | Premium Car Care in Pune',
  description: 'WE SERVE offers 5-star car repair, maintenance, denting, painting, and live service updates in Pashan, Pune. Transparent, tech-forward car care for your vehicle.',
  keywords: ["car repair Pune, auto body shop Pashan, car service Pune, maintenance, denting, painting, car care, Pune, Baner, Aundh, Hinjewadi"],
  openGraph: {
    "title": "WE SERVE | Premium Car Care in Pune",
    "description": "WE SERVE offers 5-star car repair, maintenance, denting, painting, and live service updates in Pashan, Pune. Transparent, tech-forward car care for your vehicle.",
    "url": "https://weserve.life",
    "siteName": "WE SERVE",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/modern-automobile-mechanic-composition_23-2147881371.jpg",
        "alt": "WE SERVE car service center banner"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "WE SERVE | Premium Car Care in Pune",
    "description": "WE SERVE offers 5-star car repair, maintenance, denting, painting, and live service updates in Pashan, Pune. Transparent, tech-forward car care for your vehicle.",
    "images": [
      "http://img.b2bpic.net/free-photo/modern-automobile-mechanic-composition_23-2147881371.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const instrumentSerif = Instrument_Serif({
  variable: "--font-instrument-serif",
  subsets: ["latin"],
  weight: ["400"],
  style: ["italic"]
});
const barlow = Barlow({
  variable: "--font-barlow",
  subsets: ["latin"],
  weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"]
});

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