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



export const metadata: Metadata = {
  title: 'Fit Factory Wellness | Transform Your Fitness',
  description: 'Fit Factory Wellness offers expert training, dynamic group classes, and personalized wellness programs for all fitness levels. Start your free trial today!',
  keywords: ["fitness, wellness, gym, personal training, group classes, health, workout, nutrition, community, membership, local gym, fitness center"],
  openGraph: {
    "title": "Fit Factory Wellness | Transform Your Fitness",
    "description": "Fit Factory Wellness offers expert training, dynamic group classes, and personalized wellness programs for all fitness levels. Start your free trial today!",
    "url": "https://www.fitfactorywellness.com",
    "siteName": "Fit Factory Wellness",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/serene-spa-interior_23-2151945692.jpg",
        "alt": "Group of diverse people in a dynamic fitness class"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Fit Factory Wellness | Transform Your Fitness",
    "description": "Fit Factory Wellness offers expert training, dynamic group classes, and personalized wellness programs for all fitness levels. Start your free trial today!",
    "images": [
      "http://img.b2bpic.net/free-photo/serene-spa-interior_23-2151945692.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const inter = Inter({
  variable: "--font-inter",
  subsets: ["latin"],
});
const openSans = Open_Sans({
  variable: "--font-open-sans",
  subsets: ["latin"],
});

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