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: 'Salmex Exterior Design | Transform Your Home\'s Exterior',
  description: 'Professional exterior design services for homeowners and developers. Specializing in landscape architecture, hardscaping, and facade enhancements.',
  keywords: ["exterior design, landscape architecture, hardscaping, facade design, outdoor living, home renovation, curb appeal, garden design"],
  openGraph: {
    "title": "Salmex Exterior Design | Transform Your Home's Exterior",
    "description": "Professional exterior design services for homeowners and developers. Specializing in landscape architecture, hardscaping, and facade enhancements.",
    "url": "https://www.salmexteriordesign.com",
    "siteName": "Salmex Exterior Design",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/minimalist-architecture-space_23-2151912549.jpg",
        "alt": "Modern house exterior with beautiful landscaping at sunset"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Salmex Exterior Design | Transform Your Home's Exterior",
    "description": "Professional exterior design services for homeowners and developers. Specializing in landscape architecture, hardscaping, and facade enhancements.",
    "images": [
      "http://img.b2bpic.net/free-photo/minimalist-architecture-space_23-2151912549.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>
  );
}
