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



export const metadata: Metadata = {
  title: 'LINGsCARS | UK\'s Favourite Car Leasing Deals',
  description: 'Discover unbeatable car leasing deals in the UK with LINGsCARS. Transparent pricing, customer-first service, and a fun approach to finding your dream car. Get a quote today!',
  keywords: ["car leasing UK, cheap car lease, personal car leasing, business car leasing, electric vehicle lease, special offers car, LINGsCARS"],
  openGraph: {
    "title": "LINGsCARS | UK's Favourite Car Leasing Deals",
    "description": "Discover unbeatable car leasing deals in the UK with LINGsCARS. Transparent pricing, customer-first service, and a fun approach to finding your dream car. Get a quote today!",
    "url": "https://www.lingscars.com",
    "siteName": "LINGsCARS",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/empty-dark-room-modern-futuristic-sci-fi-background-3d-illustration_35913-2368.jpg",
        "alt": "LINGsCARS Hero Image"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "LINGsCARS | UK's Favourite Car Leasing Deals",
    "description": "Discover unbeatable car leasing deals in the UK with LINGsCARS. Transparent pricing, customer-first service, and a fun approach to finding your dream car. Get a quote today!",
    "images": [
      "http://img.b2bpic.net/free-photo/empty-dark-room-modern-futuristic-sci-fi-background-3d-illustration_35913-2368.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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