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



export const metadata: Metadata = {
  title: 'Rick\'s HVAC & Water Heating Repair | Sherman Oaks, CA',
  description: 'Expert HVAC, AC, Heating, and Water Heater repair & installation in Sherman Oaks, CA. Reliable service for homeowners and businesses. Schedule now!',
  keywords: ["HVAC repair Sherman Oaks, AC repair Los Angeles, heating repair, water heater installation, thermostat installation, emergency HVAC, Rick's HVAC"],
  openGraph: {
    "title": "Rick's HVAC & Water Heating Repair | Sherman Oaks, CA",
    "description": "Expert HVAC, AC, Heating, and Water Heater repair & installation in Sherman Oaks, CA. Reliable service for homeowners and businesses.",
    "url": "https://www.rickshvac.com",
    "siteName": "Rick's HVAC & Water Heating Repair",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/specialist-phone-with-home-owner_482257-80143.jpg",
        "alt": "Modern HVAC unit on a rooftop"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Rick's HVAC & Water Heating Repair | Sherman Oaks, CA",
    "description": "Expert HVAC, AC, Heating, and Water Heater repair & installation in Sherman Oaks, CA. Reliable service for homeowners and businesses.",
    "images": [
      "http://img.b2bpic.net/free-photo/specialist-phone-with-home-owner_482257-80143.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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