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: 'D&I Landscape | Expert Landscape Design & Services',
  description: 'Transform your outdoor space with D&I Landscape. Offering award-winning landscape design, maintenance, and installation services.',
  keywords: ["landscape design, lawn care, garden services, french drains, yard clean-up, landscaping, outdoor living, hardscape, softscape"],
  openGraph: {
    "title": "D&I Landscape | Expert Landscape Design & Services",
    "description": "Transform your outdoor space with D&I Landscape. Offering award-winning landscape design, maintenance, and installation services.",
    "url": "https://www.dnilandscape.com",
    "siteName": "D&I Landscape",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/photorealistic-sustainable-garden-with-home-grown-plants_23-2151479048.jpg",
        "alt": "Luxurious backyard with pool and landscaping"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "D&I Landscape | Expert Landscape Design & Services",
    "description": "Transform your outdoor space with D&I Landscape. Offering award-winning landscape design, maintenance, and installation services.",
    "images": [
      "http://img.b2bpic.net/free-photo/photorealistic-sustainable-garden-with-home-grown-plants_23-2151479048.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>
  );
}
