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



export const metadata: Metadata = {
  title: 'VentureDesk | Connect with Startup Legal & Financial Experts',
  description: 'VentureDesk connects startups and businesses with verified legal, financial, and strategic professionals for company registration, GST, compliance, and growth. Your one-stop solution.',
  keywords: ["startup legal, financial services, business solutions, chartered accountants, lawyers, consultants, compliance, company registration, GST, India"],
  openGraph: {
    "title": "VentureDesk | Connect with Startup Legal & Financial Experts",
    "description": "VentureDesk connects startups and businesses with verified legal, financial, and strategic professionals for company registration, GST, compliance, and growth.",
    "url": "https://www.venturedesk.com",
    "siteName": "VentureDesk",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/diverse-employees-group-discussing-ways-speed-up-order-delivery_482257-89004.jpg",
        "alt": "Abstract network of professionals and startups"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "VentureDesk | Connect with Startup Legal & Financial Experts",
    "description": "VentureDesk connects startups and businesses with verified legal, financial, and strategic professionals for company registration, GST, compliance, and growth.",
    "images": [
      "http://img.b2bpic.net/free-photo/diverse-employees-group-discussing-ways-speed-up-order-delivery_482257-89004.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const playfairDisplay = Playfair_Display({
  variable: "--font-playfair-display",
  subsets: ["latin"],
  weight: ["400", "500", "600", "700", "800", "900"]
});
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={`${playfairDisplay.variable} ${dmSans.variable} antialiased`}>
          <Tag />
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
