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



export const metadata: Metadata = {
  title: 'MeliuSafe | AI Structural Health Monitoring Platform',
  description: 'MeliuSafe by Meliusense Technologies offers AI-powered structural health monitoring for aging infrastructure. Get real-time data, predictive insights, and prevent failures.',
  keywords: ["AI monitoring, structural health, infrastructure safety, machine learning, deeptech sensors, Meliusense, MeliuSafe, real-time alerts, predictive maintenance, civil engineering, smart cities, municipal infrastructure, real estate development, risk management"],
  openGraph: {
    "title": "MeliuSafe | AI Structural Health Monitoring Platform",
    "description": "MeliuSafe by Meliusense Technologies offers AI-powered structural health monitoring for aging infrastructure. Get real-time data, predictive insights, and prevent failures.",
    "url": "https://www.meliusafe.com",
    "siteName": "MeliuSafe",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/healthcare-experts-discuss-recovery-strategies-treatment-center_482257-95008.jpg",
        "alt": "MeliuSafe AI-powered structural health monitoring dashboard"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "MeliuSafe | AI Structural Health Monitoring Platform",
    "description": "MeliuSafe by Meliusense Technologies offers AI-powered structural health monitoring for aging infrastructure. Get real-time data, predictive insights, and prevent failures.",
    "images": [
      "http://img.b2bpic.net/free-photo/healthcare-experts-discuss-recovery-strategies-treatment-center_482257-95008.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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