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

export const metadata: Metadata = {
  title: "HMG Construction Management - Premium Renovation & Construction Services",
  description: "Premium construction management company specializing in luxury renovations with 100% on-time delivery, complete transparency, and expert project management. Transform your space with HMG.",
  keywords: "construction management, renovation, luxury renovations, construction services, project management, energy efficient renovation, premium construction",
  robots: {
    index: true,
    follow: true,
  },
  openGraph: {
    title: "HMG Construction Management - Building Excellence",
    description: "Premium construction management delivering luxury renovations with transparency and precision",
    type: "website",
    siteName: "HMG Construction Management",
    images: [
      {
        url: "http://img.b2bpic.net/free-photo/interior-modern-office_23-2147668767.jpg",
        alt: "HMG Construction Management - Premium Renovation Services",
      },
    ],
  },
  twitter: {
    card: "summary_large_image",
    title: "HMG Construction Management",
    description: "Premium renovations delivered with complete transparency and precision",
    images: ["http://img.b2bpic.net/free-photo/interior-modern-office_23-2147668767.jpg"],
  },
};

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