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 { getVisualEditScript } from "@/utils/visual-edit-script";



export const metadata: Metadata = {
  title: 'RJ Landscape | Expert Landscaping in Pasadena, TX & Surrounding Areas',
  description: 'RJ Landscape offers professional lawn care, tree services, and garden design in Pasadena, Deer Park, La Porte, and surrounding TX areas. Get a free estimate today!',
  keywords: ["landscaping, lawn care, tree trimming, garden design, Pasadena TX, Deer Park, La Porte, Baytown, Clear Lake, Friendswood"],
  openGraph: {
    "title": "RJ Landscape | Expert Landscaping in Pasadena, TX & Surrounding Areas",
    "description": "RJ Landscape offers professional lawn care, tree services, and garden design in Pasadena, Deer Park, La Porte, and surrounding TX areas. Get a free estimate today!",
    "url": "https://rjlandscape.com",
    "siteName": "RJ Landscape",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/full-shot-smiley-friends-playing-petanque_23-2149530379.jpg",
        "alt": "Lush green lawn with a beautifully landscaped garden"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "RJ Landscape | Expert Landscaping in Pasadena, TX & Surrounding Areas",
    "description": "RJ Landscape offers professional lawn care, tree services, and garden design in Pasadena, Deer Park, La Porte, and surrounding TX areas. Get a free estimate today!",
    "images": [
      "http://img.b2bpic.net/free-photo/full-shot-smiley-friends-playing-petanque_23-2149530379.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`}>
          
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
