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



export const metadata: Metadata = {
  title: 'THE RITE TRACK GAS STATION | Premium Fuel & Service',
  description: 'Experience unparalleled convenience and quality at THE RITE TRACK GAS STATION. Premium fuels, spotless facilities, gourmet amenities, and exceptional customer service for every journey.',
  keywords: ["gas station, premium fuel, car wash, EV charging, convenience store, luxury gas, automotive service, THE RITE TRACK"],
  openGraph: {
    "title": "THE RITE TRACK GAS STATION | Premium Fuel & Service",
    "description": "Experience unparalleled convenience and quality at THE RITE TRACK GAS STATION.",
    "url": "https://www.theritetrack.com",
    "siteName": "THE RITE TRACK",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/redheaded-woman-refueling-car-gas-station_23-2148150084.jpg",
        "alt": "THE RITE TRACK Gas Station at night"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "THE RITE TRACK GAS STATION | Premium Fuel & Service",
    "description": "Experience unparalleled convenience and quality at THE RITE TRACK GAS STATION.",
    "images": [
      "http://img.b2bpic.net/free-photo/redheaded-woman-refueling-car-gas-station_23-2148150084.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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