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



export const metadata: Metadata = {
  title: 'Lush Landscapes | Expert Garden Design & Lawn Care',
  description: 'Transform your outdoor space with Lush Landscapes. We offer professional garden design, lawn care, tree services, and complete landscape transformations. Get a free quote today!',
  keywords: ["landscaping, garden design, lawn care, tree trimming, outdoor living, hardscaping, landscape architecture, backyard design, professional landscapers, outdoor transformation"],
  openGraph: {
    "title": "Lush Landscapes | Expert Garden Design & Lawn Care",
    "description": "Transform your outdoor space with Lush Landscapes. We offer professional garden design, lawn care, tree services, and complete landscape transformations. Get a free quote today!",
    "url": "https://www.lushlandscapes.com",
    "siteName": "Lush Landscapes",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/grass-surface-with-colored-necklace-frame_23-2147628348.jpg",
        "alt": "Beautiful lush garden with a pathway and flowers"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Lush Landscapes | Expert Garden Design & Lawn Care",
    "description": "Transform your outdoor space with Lush Landscapes. We offer professional garden design, lawn care, tree services, and complete landscape transformations. Get a free quote today!",
    "images": [
      "http://img.b2bpic.net/free-photo/grass-surface-with-colored-necklace-frame_23-2147628348.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const inter = Inter({
  variable: "--font-inter",
  subsets: ["latin"],
});
const openSans = Open_Sans({
  variable: "--font-open-sans",
  subsets: ["latin"],
});

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