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";



export const metadata: Metadata = {
  title: 'Silicon HiTech Engineering - Precision Industrial Solutions',
  description: 'Leading engineering firm providing trusted precision solutions for complex industrial projects. Expertise in manufacturing, infrastructure, and technical consulting.',
  keywords: ["engineering, industrial, manufacturing, infrastructure, technology, precision, automation, consulting, project management, hi-tech"],
  openGraph: {
    "title": "Silicon HiTech Engineering - Precision Industrial Solutions",
    "description": "Leading engineering firm providing trusted precision solutions for complex industrial projects. Expertise in manufacturing, infrastructure, and technical consulting.",
    "url": "https://www.siliconhitech.com",
    "siteName": "Silicon HiTech Engineering",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/side-view-woman-working-beer-factory_23-2150573906.jpg",
        "alt": "Modern factory floor with robotic arms"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Silicon HiTech Engineering - Precision Industrial Solutions",
    "description": "Leading engineering firm providing trusted precision solutions for complex industrial projects. Expertise in manufacturing, infrastructure, and technical consulting.",
    "images": [
      "http://img.b2bpic.net/free-photo/side-view-woman-working-beer-factory_23-2150573906.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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