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



export const metadata: Metadata = {
  title: 'Pax - Fly Smarter, Share the Journey',
  description: 'Pax is a flightsharing app connecting travelers to reduce costs and environmental impact by filling empty seats on private flights. Better for your wallet, better for the planet.',
  keywords: ["flightsharing, private flights, shared travel, sustainable aviation, cost-effective travel, jet sharing, carbon footprint reduction, private jet monetization"],
  openGraph: {
    "title": "Pax - Fly Smarter, Share the Journey",
    "description": "Connect with travelers heading your way and split the cost of private flights. Better for your wallet, better for the planet.",
    "url": "https://www.paxapp.com",
    "siteName": "Pax",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/woman-feeling-tense-scared-about-airplane-takeoff-being-frightened-about-flying-abroad-travelling-with-international-airways-go-holiday-adventure-commercial-flight_482257-49464.jpg",
        "alt": "Modern private jet flying above clouds"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Pax - Fly Smarter, Share the Journey",
    "description": "Connect with travelers heading your way and split the cost of private flights. Better for your wallet, better for the planet.",
    "images": [
      "http://img.b2bpic.net/free-photo/woman-feeling-tense-scared-about-airplane-takeoff-being-frightened-about-flying-abroad-travelling-with-international-airways-go-holiday-adventure-commercial-flight_482257-49464.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const montserrat = Montserrat({
  variable: "--font-montserrat",
  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={`${montserrat.variable} ${inter.variable} antialiased`}>
          <Tag />
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
