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: 'Collective Combat Club - Train. Defend. Perform.',
  description: 'Master Judo, build discipline, and become part of our family at Collective Combat Club. Offering classes for all ages and skill levels.',
  keywords: ["judo, martial arts, self-defense, combat sports, kids judo, adult judo, judo school, martial arts training, discipline, confidence, fitness"],
  openGraph: {
    "title": "Collective Combat Club - Train. Defend. Perform.",
    "description": "Master Judo, build discipline, and become part of our family at Collective Combat Club. Offering classes for all ages and skill levels.",
    "url": "https://www.collectivecombatclub.com",
    "siteName": "Collective Combat Club",
    "images": [
      {
        "url": "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3EvgPZQdSHDUgkLkeI2RfS4mLIN/uploaded-1781064451008-uo73co83.jpg",
        "alt": "Kids training judo"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Collective Combat Club - Train. Defend. Perform.",
    "description": "Master Judo, build discipline, and become part of our family at Collective Combat Club. Offering classes for all ages and skill levels.",
    "images": [
      "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3EvgPZQdSHDUgkLkeI2RfS4mLIN/uploaded-1781064451008-uo73co83.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>
  );
}
