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



export const metadata: Metadata = {
  title: 'USA HVAC Services - Your Comfort Experts',
  description: 'Expert heating, ventilation, and air conditioning services across the USA. Reliable installation, repair, and maintenance for residential and commercial clients.',
  openGraph: {
    "title": "USA HVAC Services - Your Comfort Experts",
    "description": "Expert heating, ventilation, and air conditioning services across the USA. Reliable installation, repair, and maintenance for residential and commercial clients.",
    "url": "https://www.usahvac.com",
    "siteName": "USA HVAC Services",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/close-up-ventilation-system_23-2149388950.jpg",
        "alt": "HVAC technician fixing air conditioner"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "USA HVAC Services - Your Comfort Experts",
    "description": "Expert heating, ventilation, and air conditioning services across the USA. Reliable installation, repair, and maintenance for residential and commercial clients.",
    "images": [
      "http://img.b2bpic.net/free-photo/close-up-ventilation-system_23-2149388950.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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