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



export const metadata: Metadata = {
  title: 'Webuild Innovations | Expert Website Design & Development',
  description: 'Transform your business with custom website design, responsive development, and e-commerce solutions from Webuild Innovations. Get a stunning, high-performing website today.',
  keywords: ["website design, web development, custom websites, e-commerce, responsive design, digital agency, web solutions, business websites, professional websites"],
  openGraph: {
    "title": "Webuild Innovations | Expert Website Design & Development",
    "description": "Transform your business with custom website design, responsive development, and e-commerce solutions from Webuild Innovations. Get a stunning, high-performing website today.",
    "url": "https://www.webuildinnovations.com",
    "siteName": "Webuild Innovations",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/urban-apartment-with-minimalist-home-office-wooden-furniture_482257-120933.jpg",
        "alt": "Modern website development dashboard"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Webuild Innovations | Expert Website Design & Development",
    "description": "Transform your business with custom website design, responsive development, and e-commerce solutions from Webuild Innovations. Get a stunning, high-performing website today.",
    "images": [
      "http://img.b2bpic.net/free-photo/urban-apartment-with-minimalist-home-office-wooden-furniture_482257-120933.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const poppins = Poppins({
  variable: "--font-poppins",
  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={`${poppins.variable} antialiased`}>
          <Tag />
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
