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



export const metadata: Metadata = {
  title: 'EcoCycle Kenya | Waste Management & Recycling Services',
  description: 'Efficient waste collection, recycling, and sustainable solutions for homes and businesses in Kenya. Pay conveniently with M-Pesa.',
  keywords: ["Kenya, waste management, recycling, M-Pesa, eco-friendly, sustainable, waste collection, environmental solutions, Nairobi, circular economy"],
  openGraph: {
    "title": "EcoCycle Kenya | Waste Management & Recycling",
    "description": "Efficient waste collection, recycling, and sustainable solutions for homes and businesses in Kenya. Pay conveniently with M-Pesa.",
    "url": "https://www.ecocyclekenya.com",
    "siteName": "EcoCycle Kenya",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/couple-collects-garbage-garbage-bags-park_1157-27406.jpg",
        "alt": "EcoCycle Kenya waste management"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "EcoCycle Kenya | Waste Management & Recycling",
    "description": "Efficient waste collection, recycling, and sustainable solutions for homes and businesses in Kenya. Pay conveniently with M-Pesa.",
    "images": [
      "http://img.b2bpic.net/free-photo/couple-collects-garbage-garbage-bags-park_1157-27406.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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