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: 'Lombard Landscaping by Morris LDC - Transform Your Outdoors',
  description: 'Premier landscaping services in Lombard. Design, installation, and maintenance for beautiful residential and commercial outdoor spaces.',
  keywords: ["landscaping, Lombard, garden design, outdoor living, patio installation, lawn care, tree planting, irrigation, landscape architect"],
  openGraph: {
    "title": "Lombard Landscaping by Morris LDC - Transform Your Outdoors",
    "description": "Premier landscaping services in Lombard. Design, installation, and maintenance for beautiful residential and commercial outdoor spaces.",
    "url": "https://www.lombardlandscaping.com",
    "siteName": "Lombard Landscaping by Morris LDC",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/beautiful-modern-plants-deco_23-2149198591.jpg",
        "alt": "Lush green landscaped garden"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Lombard Landscaping by Morris LDC - Transform Your Outdoors",
    "description": "Premier landscaping services in Lombard. Design, installation, and maintenance for beautiful residential and commercial outdoor spaces.",
    "images": [
      "http://img.b2bpic.net/free-photo/beautiful-modern-plants-deco_23-2149198591.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>
  );
}
