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



export const metadata: Metadata = {
  title: 'TX Lawn & Landscaping - Expert Lawn Care & Design',
  description: 'Transform your outdoor space with TX Lawn & Landscaping. We offer professional lawn mowing, bespoke landscape design, and efficient irrigation services across Texas.',
  keywords: ["lawn care, landscaping, lawn mowing, landscape design, irrigation systems, Texas, DFW, outdoor space, garden design"],
  openGraph: {
    "title": "TX Lawn & Landscaping - Your Outdoor Transformation Partner",
    "description": "Get expert lawn care, landscaping, and irrigation services in Texas. Free quotes available!",
    "url": "https://txlawnlandscaping.com",
    "siteName": "TX Lawn & Landscaping",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/portrait-professional-gardener-holding-trimmer-working-yard_342744-541.jpg",
        "alt": "Lush green lawn with a modern house"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "TX Lawn & Landscaping - Expert Lawn Care & Design",
    "description": "Transform your outdoor space with TX Lawn & Landscaping. We offer professional lawn mowing, bespoke landscape design, and efficient irrigation services across Texas.",
    "images": [
      "http://img.b2bpic.net/free-photo/portrait-professional-gardener-holding-trimmer-working-yard_342744-541.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const openSans = Open_Sans({
  variable: "--font-open-sans",
  subsets: ["latin"],
});

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