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";



export const metadata: Metadata = {
  title: 'KendiJoy - Premium African Event Planning & Catering',
  description: 'KendiJoy offers unforgettable, luxurious, and culturally elegant event planning and catering services in Kenya. We handle every detail, so you can celebrate.',
  keywords: ["event planning, catering, luxury events, African theme, Kenya, wedding planner, corporate events, party organizer, premium services"],
  openGraph: {
    "title": "KendiJoy - Premium African Event Planning & Catering",
    "description": "KendiJoy offers unforgettable, luxurious, and culturally elegant event planning and catering services in Kenya. We handle every detail, so you can celebrate.",
    "url": "https://www.kendijoy.co.ke",
    "siteName": "KendiJoy",
    "images": [
      {
        "url": "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ELazFsYiafkYVopFrBaT7pxrBL/uploaded-1779968328044-rauycfax.png",
        "alt": "Luxurious event table setting"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "KendiJoy - Premium African Event Planning & Catering",
    "description": "KendiJoy offers unforgettable, luxurious, and culturally elegant event planning and catering services in Kenya. We handle every detail, so you can celebrate.",
    "images": [
      "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ELazFsYiafkYVopFrBaT7pxrBL/uploaded-1779968328044-rauycfax.png"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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={`${inter.variable} antialiased`}>
          <Tag />
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
