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



export const metadata: Metadata = {
  title: 'Alhamed Marketing | Luxury Digital Marketing Agency',
  description: 'Alhamed Marketing: Your premier partner for strategic digital marketing, branding, and business growth across Yemen and the Gulf region. Book a free consultation.',
  openGraph: {
    "title": "Alhamed Marketing | Luxury Digital Marketing Agency",
    "description": "Alhamed Marketing: Your premier partner for strategic digital marketing, branding, and business growth across Yemen and the Gulf region. Book a free consultation.",
    "url": "https://www.alhamedmarketing.com",
    "siteName": "Alhamed Marketing",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/medium-shot-people-travel-agency_52683-136436.jpg",
        "alt": "Alhamed Marketing - Business growth dashboard"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Alhamed Marketing | Luxury Digital Marketing Agency",
    "description": "Alhamed Marketing: Your premier partner for strategic digital marketing, branding, and business growth across Yemen and the Gulf region. Book a free consultation.",
    "images": [
      "http://img.b2bpic.net/free-photo/medium-shot-people-travel-agency_52683-136436.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const montserrat = Montserrat({
  variable: "--font-montserrat",
  subsets: ["latin"],
});
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={`${montserrat.variable} ${inter.variable} antialiased`}>
          <Tag />
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
