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



export const metadata: Metadata = {
  title: 'Starr Aggregates - Premium Sand & Gravel Supplier TX',
  description: 'Trusted sand and gravel supplier in La Grulla, TX. Delivering premium aggregates, custom blends, and reliable service to contractors across the Rio Grande Valley. Get a quote today!',
  keywords: ["sand, gravel, aggregates, construction materials, Rio Grande Valley, La Grulla TX, bulk materials, contractor supply, custom blends, excavation, site work, civil engineering, heavy construction"],
  openGraph: {
    "title": "Starr Aggregates - Premium Sand & Gravel Supplier TX",
    "description": "Trusted sand and gravel supplier in La Grulla, TX. Delivering premium aggregates, custom blends, and reliable service to contractors across the Rio Grande Valley. Get a quote today!",
    "url": "https://www.starraggregates.com",
    "siteName": "Starr Aggregates",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/tractor-farm-field-sunset-backlight-warm-tones_463209-116.jpg",
        "alt": "Starr Aggregates quarry with heavy machinery"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Starr Aggregates - Premium Sand & Gravel Supplier TX",
    "description": "Trusted sand and gravel supplier in La Grulla, TX. Delivering premium aggregates, custom blends, and reliable service to contractors across the Rio Grande Valley. Get a quote today!",
    "images": [
      "http://img.b2bpic.net/free-photo/tractor-farm-field-sunset-backlight-warm-tones_463209-116.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const dmSans = DM_Sans({
  variable: "--font-dm-sans",
  subsets: ["latin"],
});
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={`${dmSans.variable} ${inter.variable} antialiased`}>
          <Tag />
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
