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: 'Malocchio: Ancient Protection for Modern Life',
  description: 'Discover exquisite Malocchio amulets and protective charms. Embrace ancient tradition and ward off negativity with our handcrafted collection.',
  keywords: ["Malocchio, evil eye, protective charms, amulets, spiritual jewelry, ancient traditions, talismans, protection, cultural heritage"],
  openGraph: {
    "title": "Malocchio: Ancient Protection for Modern Life",
    "description": "Discover exquisite Malocchio amulets and protective charms. Embrace ancient tradition and ward off negativity with our handcrafted collection.",
    "url": "https://www.malocchio.com",
    "siteName": "Malocchio",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/inca-mayan-design-sculpted-stones_23-2151628399.jpg",
        "alt": "Malocchio protective amulet"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Malocchio: Ancient Protection for Modern Life",
    "description": "Discover exquisite Malocchio amulets and protective charms. Embrace ancient tradition and ward off negativity with our handcrafted collection.",
    "images": [
      "http://img.b2bpic.net/free-photo/inca-mayan-design-sculpted-stones_23-2151628399.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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