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



export const metadata: Metadata = {
  title: 'AVANT Logistics | European Transportation Solutions',
  description: 'Leading European transportation company offering reliable freight services across France, Belgium, Germany, Netherlands, Switzerland, and Italy. Get a quote today!',
  openGraph: {
    "title": "AVANT Logistics | European Transportation Solutions",
    "description": "Leading European transportation company offering reliable freight services across France, Belgium, Germany, Netherlands, Switzerland, and Italy. Get a quote today!",
    "url": "https://www.avantlogistics.com",
    "siteName": "AVANT Logistics",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/supply-chain-representation-still-life_23-2150172446.jpg",
        "alt": "Modern semi-truck on European highway"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "AVANT Logistics | European Transportation Solutions",
    "description": "Leading European transportation company offering reliable freight services across France, Belgium, Germany, Netherlands, Switzerland, and Italy. Get a quote today!",
    "images": [
      "http://img.b2bpic.net/free-photo/supply-chain-representation-still-life_23-2150172446.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const raleway = Raleway({
  variable: "--font-raleway",
  subsets: ["latin"],
});

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