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";



export const metadata: Metadata = {
  title: 'Greenscape | Landscapes that Captivate and Inspire',
  description: 'Greenscape specializes in luxury landscape design, crafting stunning outdoor spaces for discerning homeowners and property developers. Explore our portfolio of bespoke gardens and find inspiration.',
  openGraph: {
    "title": "Greenscape | Landscapes that Captivate and Inspire",
    "description": "Greenscape specializes in luxury landscape design, crafting stunning outdoor spaces for discerning homeowners and property developers. Explore our portfolio of bespoke gardens and find inspiration.",
    "url": "https://www.greenscape.com",
    "siteName": "Greenscape",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/empty-restaurant-terrace_1127-2167.jpg",
        "alt": "Luxury modern garden with pool"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Greenscape | Landscapes that Captivate and Inspire",
    "description": "Greenscape specializes in luxury landscape design, crafting stunning outdoor spaces for discerning homeowners and property developers. Explore our portfolio of bespoke gardens and find inspiration.",
    "images": [
      "http://img.b2bpic.net/free-photo/empty-restaurant-terrace_1127-2167.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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={`${inter.variable} antialiased`}>
          <Tag />
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
