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



export const metadata: Metadata = {
  title: 'Enriquez Termite & Pest Control | Norwalk Pest Control Experts',
  description: 'Professional termite inspections, termite treatment, rodent control, and pest control services in Norwalk, California. Call Enriquez Termite & Pest Control today.',
  keywords: ["Norwalk Pest Control, Norwalk Termite Inspection, Termite Treatment Norwalk, Pest Control Near Me, Rodent Control Norwalk, Commercial Pest Control Norwalk, termite control Southern California, pest management Los Angeles"],
  openGraph: {
    "title": "Enriquez Termite & Pest Control | Norwalk Pest Control Experts",
    "description": "Professional termite inspections, termite treatment, rodent control, and pest control services in Norwalk, California.",
    "url": "https://www.enriqueztermite.com",
    "siteName": "Enriquez Termite & Pest Control",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/male-doctor-protective-suit_176474-23782.jpg",
        "alt": "Professional pest control technician inspecting a beautiful Southern California home"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Enriquez Termite & Pest Control | Norwalk Pest Control Experts",
    "description": "Professional termite inspections, termite treatment, rodent control, and pest control services in Norwalk, California.",
    "images": [
      "http://img.b2bpic.net/free-photo/male-doctor-protective-suit_176474-23782.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`}>
          <Tag />
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
