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



export const metadata: Metadata = {
  title: 'En Cardy - Elevate Your Business with Strategic Solutions',
  description: 'En Cardy provides bespoke strategic consulting, business intelligence, and digital transformation services to empower your enterprise for sustainable growth.',
  keywords: ["En Cardy, business solutions, strategic consulting, digital transformation, business intelligence, cybersecurity, financial optimization"],
  openGraph: {
    "title": "En Cardy - Elevate Your Business with Strategic Solutions",
    "description": "En Cardy provides bespoke strategic consulting, business intelligence, and digital transformation services to empower your enterprise for sustainable growth.",
    "url": "https://www.encardy.com",
    "siteName": "En Cardy",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/happy-businessman-shaking-hands-with-colleague_1139-199.jpg",
        "alt": "Professional business meeting"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "En Cardy - Elevate Your Business with Strategic Solutions",
    "description": "En Cardy provides bespoke strategic consulting, business intelligence, and digital transformation services to empower your enterprise for sustainable growth.",
    "images": [
      "http://img.b2bpic.net/free-photo/happy-businessman-shaking-hands-with-colleague_1139-199.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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