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: 'ZConsulting - Your Marketing Agency in Morocco',
  description: 'ZConsulting is a leading marketing agency in Morocco, offering expert SEO, social media, and content marketing services to help businesses grow.',
  keywords: ["marketing agency Morocco, digital marketing, SEO, social media, content marketing, business growth, ZConsulting"],
  openGraph: {
    "title": "ZConsulting - Drive Your Growth",
    "description": "Expert marketing strategies tailored for your business in Morocco.",
    "url": "https://www.zconsulting.ma",
    "siteName": "ZConsulting",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/colleagues-smiling-speaking-discussing-drawings-new-ideas-office_176420-1686.jpg",
        "alt": "ZConsulting Marketing Agency Dashboard"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "ZConsulting - Drive Your Growth",
    "description": "Expert marketing strategies tailored for your business in Morocco.",
    "images": [
      "http://img.b2bpic.net/free-photo/colleagues-smiling-speaking-discussing-drawings-new-ideas-office_176420-1686.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>
  );
}
