import type { Metadata } from "next";
import { Halant } from "next/font/google";
import { Inter } from "next/font/google";
import { Public_Sans } from "next/font/google";
import "./globals.css";
import { ServiceWrapper } from "@/components/ServiceWrapper";
import Tag from "@/tag/Tag";
import { getVisualEditScript } from "@/utils/visual-edit-script";

const halant = Halant({
  variable: "--font-halant",
  subsets: ["latin"],
  weight: ["300", "400", "500", "600", "700"],
});

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

const publicSans = Public_Sans({
  variable: "--font-public-sans",
  subsets: ["latin"],
});

export const metadata: Metadata = {
  title: "RAYMS Entertainment Studios | Film Production Asaba",
  description: "Premium film production, music videos, and commercial services. Professional cinematography and post-production in Asaba, Delta State.",
  keywords: "film production Asaba, music video production, commercial advertising, video editing, professional cinematography, entertainment studios",
  metadataBase: new URL("https://raymsent.com"),
  alternates: {
    canonical: "https://raymsent.com",
  },
  openGraph: {
    title: "RAYMS Entertainment Studios - Professional Film Production",
    description: "Transform your creative vision into stunning visual narratives with premium film production services.",
    url: "https://raymsent.com",
    siteName: "RAYMS Entertainment Studios",
    type: "website",
    images: [
      {
        url: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3BBPgNchmgCzLY6pwTFusRCw4G6/a-cinematic-film-production-scene-with-p-1773959704944-352b3534.png",
        alt: "RAYMS Entertainment Studios - Professional Film Production",
      },
    ],
  },
  twitter: {
    card: "summary_large_image",
    title: "RAYMS Entertainment Studios",
    description: "Premium film production, music videos & commercials in Asaba, Nigeria",
    images: [
      "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3BBPgNchmgCzLY6pwTFusRCw4G6/a-cinematic-film-production-scene-with-p-1773959704944-352b3534.png",
    ],
  },
  robots: {
    index: true,
    follow: true,
  },
};

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