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 { getVisualEditScript } from "@/utils/visual-edit-script";
import { Figtree } from "next/font/google";



export const metadata: Metadata = {
  title: 'Linus Heating & Air | Your Comfort, Our Priority',
  description: 'Linus Heating and Air Conditioning provides dependable, high-quality HVAC services including installation, repair, and maintenance for heating and cooling systems. Get a free quote today!',
  keywords: ["HVAC, heating, air conditioning, AC repair, furnace repair, heating maintenance, cooling maintenance, air quality, smart thermostats, Linus Heating & Air"],
  openGraph: {
    "title": "Linus Heating & Air | Your Comfort, Our Priority",
    "description": "Linus Heating and Air Conditioning provides dependable, high-quality HVAC services including installation, repair, and maintenance for heating and cooling systems. Get a free quote today!",
    "url": "https://www.linushvac.com",
    "siteName": "Linus Heating & Air",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/cozy-lively-home-interior-design_23-2151119029.jpg",
        "alt": "Modern home with HVAC system"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Linus Heating & Air | Your Comfort, Our Priority",
    "description": "Linus Heating and Air Conditioning provides dependable, high-quality HVAC services including installation, repair, and maintenance for heating and cooling systems. Get a free quote today!",
    "images": [
      "http://img.b2bpic.net/free-photo/cozy-lively-home-interior-design_23-2151119029.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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