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: 'Phoenix Landscaping & Lawn Services | Expert Lawn Care',
  description: 'Transform your outdoor space with Phoenix Landscaping & Lawn Services. We offer professional lawn mowing, mulching, sod installation, and comprehensive landscaping in Jacksonville, FL and surrounding areas. Get a free quote!',
  keywords: ["landscaping, lawn care, lawn mowing, sod installation, mulching, yard work, planting, tree trimming, fall clean up, spring clean up, rock installation, leaf removal, gardening, Jacksonville FL, 32277"],
  openGraph: {
    "title": "Phoenix Landscaping & Lawn Services | Expert Lawn Care",
    "description": "Transform your outdoor space with Phoenix Landscaping & Lawn Services. We offer professional lawn mowing, mulching, sod installation, and comprehensive landscaping in Jacksonville, FL.",
    "url": "https://www.phoenixlandscaping.com",
    "siteName": "Phoenix Landscaping & Lawn Services, LLC",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/full-shot-young-woman-surrounded-by-plants_23-2150522450.jpg",
        "alt": "Lush green lawn"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Phoenix Landscaping & Lawn Services | Expert Lawn Care",
    "description": "Transform your outdoor space with Phoenix Landscaping & Lawn Services. We offer professional lawn mowing, mulching, sod installation, and comprehensive landscaping in Jacksonville, FL.",
    "images": [
      "http://img.b2bpic.net/free-photo/full-shot-young-woman-surrounded-by-plants_23-2150522450.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>
  );
}
