import type { Metadata } from "next";
import { Halant } from "next/font/google";
import { Inter } from "next/font/google";
import { Manrope } 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 manrope = Manrope({
  variable: "--font-manrope",
  subsets: ["latin"],
});

export const metadata: Metadata = {
  title: "Sri Mani Bala Interiors - Premium Interior Design in Thanjavur",
  description: "Transform your home with luxury interior designs, modular kitchens, TV units, and premium woodwork. 45+ years of craftsmanship in Thanjavur.",
  keywords: "interior designers Thanjavur, modular kitchen Thanjavur, TV unit design, wooden interior work, premium interiors, interior design services",
  metadataBase: new URL("https://srimanibalainteriors.com"),
  alternates: {
    canonical: "https://srimanibalainteriors.com",
  },
  openGraph: {
    title: "Sri Mani Bala Interiors - Luxury Interior Design",
    description: "Premium interior design and craftsmanship in Thanjavur. Modular kitchens, TV units, wardrobes, and custom wooden interiors.",
    url: "https://srimanibalainteriors.com",
    siteName: "Sri Mani Bala Interiors & Traders",
    type: "website",
    images: [
      {
        url: "http://img.b2bpic.net/free-photo/luxury-bedroom-illuminated-by-modern-electric-lamp-generated-by-ai_188544-28185.jpg",
        alt: "Sri Mani Bala Interiors - Premium Interior Design",
      },
    ],
  },
  twitter: {
    card: "summary_large_image",
    title: "Sri Mani Bala Interiors - Luxury Interiors Crafted With Precision",
    description: "Transform your home with premium interior designs and expert craftsmanship in Thanjavur.",
    images: ["http://img.b2bpic.net/free-photo/luxury-bedroom-illuminated-by-modern-electric-lamp-generated-by-ai_188544-28185.jpg"],
  },
  robots: {
    index: true,
    follow: true,
  },
};

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