import { getTranslations } from "next-intl/server";
import { Link } from "@/i18n/navigation";
import { Texture } from "@/components/Texture";

export async function Hero() {
  const t = await getTranslations("hero");

  return (
    <section className="relative flex min-h-[52vh] max-h-[560px] items-center overflow-hidden border-b border-brass/20 bg-espresso">
      {/* TODO: replace this layered gradient with a real full-bleed photograph (wood-fired oven / plated dish) once supplied */}
      <div
        className="absolute inset-0"
        style={{
          backgroundImage: [
            "radial-gradient(ellipse 70% 60% at 20% 105%, rgba(193,114,64,0.55), transparent 65%)",
            "radial-gradient(ellipse 50% 45% at 85% -10%, rgba(112,122,68,0.2), transparent 60%)",
            "linear-gradient(180deg, #2a160d 0%, #3a2013 55%, #1c110a 100%)",
          ].join(", "),
        }}
      />
      <Texture variant="dark" />

      <div className="relative z-10 mx-auto w-full max-w-6xl px-6 py-16">
        <p className="eyebrow text-brass">{t("eyebrow")}</p>
        <h1 className="mt-6 max-w-3xl font-serif text-[clamp(2.75rem,7vw,6rem)] italic leading-[0.98] text-ivory">
          {t("title")}
        </h1>
        <p className="mt-6 max-w-md text-lg text-ivory-dim">{t("subtitle")}</p>
        <div className="mt-10 flex flex-wrap gap-4">
          <Link
            href="/reserve"
            className="eyebrow rounded-full bg-tomato px-7 py-3.5 text-ivory shadow-[0_8px_30px_-10px_rgba(193,69,42,0.6)] transition hover:-translate-y-0.5 hover:bg-tomato-dark"
          >
            {t("cta_reserve")}
          </Link>
          <Link
            href="/menu"
            className="eyebrow rounded-full border border-ivory/25 px-7 py-3.5 text-ivory transition hover:-translate-y-0.5 hover:border-ivory/60 hover:bg-ivory/5"
          >
            {t("cta_menu")}
          </Link>
        </div>
      </div>
    </section>
  );
}
