import type { Metadata } from "next";
import { Container } from "../components/layout/Container";
import { textCopy } from "./_data/quote-data";
import heroImg from "./_assets/get-a-quote-hero-banner.png";
import Heading from "../components/ui/Heading";
import Image from "next/image";
import { QuoteForm } from "./_components/quoteForm";

export const metadata: Metadata = {
  title: "Get a Quote - Basmati Pakistan",
  description:
    "Get a Quote Get a Quote Please fill out the form below to receive a quotation for your rice export needs.",
  alternates: {
    canonical: "https://basmatipakistan.com/get-a-quote/",
  },
  openGraph: {
    title: "Get a Quote - Basmati Pakistan",
    description:
      "Get a Quote Get a Quote Please fill out the form below to receive a quotation for your rice export needs.",
    url: "https://basmatipakistan.com/get-a-quote/",
    type: "website",
  },
  twitter: {
    card: "summary_large_image",
    title: "Get a Quote - Basmati Pakistan",
    description:
      "Get a Quote Get a Quote Please fill out the form below to receive a quotation for your rice export needs.",
  },
};

export default function QuotePage() {
  return (
    <>
      <section className="relative h-[65vh] w-full">
        <Image
          src={heroImg}
          alt="Get a Quote Hero"
          fill
          placeholder="blur"
          className="absolute top-0 left-0 w-full h-full object-cover object-center"
          priority
          fetchPriority="high"
          loading="eager"
        />
        <div className="relative bg-black/60 w-full h-full flex items-center">
          <Container>
            <Heading as="h1" variant="title" className="text-white">
              {textCopy.heroTitle}
            </Heading>
          </Container>
        </div>
        <div className="absolute z-10 bottom-0 w-full bg-white h-24 [clip-path:polygon(100%_100%,100%_0,0_100%)]"></div>
      </section>
      <section className="mt-32">
        <Container>
          <div className="flex flex-col items-center gap-3">
            <Heading
              as="h2"
              variant="section"
              className="text-primary text-center"
            >
              {textCopy.introHeadline}
            </Heading>
            <p className="text-center text-gray-500">
              {textCopy.introDescription}
            </p>
          </div>
          <QuoteForm />
        </Container>
      </section>
    </>
  );
}
