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: 'Conejo Services HVAC, Plumbing & Electrical | Beverly Hills Home Services',
  description: '47 years of trusted HVAC, plumbing, and electrical services in Beverly Hills & Conejo Valley. 24/7 emergency care, family-owned & expert technicians.',
  keywords: ["hvac, plumbing, electrical, conejo valley, beverly hills, home services, air conditioning, heating, emergency service, licensed electrician, trusted plumber"],
  openGraph: {
    "title": "Conejo Services HVAC, Plumbing & Electrical",
    "description": "47 years of trusted HVAC, plumbing, and electrical services in Beverly Hills & Conejo Valley. 24/7 emergency care, family-owned & expert technicians.",
    "url": "https://www.conejoservices.com",
    "siteName": "Conejo Services",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/electrical-technician-looking-focused-while-working-switchboard-with-fuses_169016-23922.jpg",
        "alt": "HVAC technician working in a modern home"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Conejo Services HVAC, Plumbing & Electrical",
    "description": "47 years of trusted HVAC, plumbing, and electrical services in Beverly Hills & Conejo Valley. 24/7 emergency care, family-owned & expert technicians.",
    "images": [
      "http://img.b2bpic.net/free-photo/electrical-technician-looking-focused-while-working-switchboard-with-fuses_169016-23922.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>
  );
}
