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



export const metadata: Metadata = {
  title: 'The Life Is Green | Sustainable Living & Eco-Friendly Products',
  description: 'Discover sustainable living with The Life Is Green. Explore eco-friendly products, join community initiatives, and grow a greener future.',
  keywords: ["sustainable living, eco-friendly, green products, environmental, community garden, natural, organic, climate action, zero waste"],
  openGraph: {
    "title": "The Life Is Green | Sustainable Living & Eco-Friendly Products",
    "description": "Discover sustainable living with The Life Is Green. Explore eco-friendly products, join community initiatives, and grow a greener future.",
    "url": "https://www.thelifeisgreen.com",
    "siteName": "The Life Is Green",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/minimal-tropical-plant-composition_23-2148955714.jpg",
        "alt": "Person watering plants"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "The Life Is Green | Sustainable Living & Eco-Friendly Products",
    "description": "Discover sustainable living with The Life Is Green. Explore eco-friendly products, join community initiatives, and grow a greener future.",
    "images": [
      "http://img.b2bpic.net/free-photo/minimal-tropical-plant-composition_23-2148955714.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const interTight = Inter_Tight({
  variable: "--font-inter-tight",
  subsets: ["latin"],
  weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"],
});

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