import type { Dictionary } from "@/i18n/get-dictionary";
import { PageHeroBackground } from "@/components/shared/page-hero-background";
import { HeroHeadline } from "@/components/shared/hero-headline";

/** Career page top (Figma "Career", 1440): night photo, two-line headline, intro — centred in 745px. */
export function CareerHeroSection({ t }: { t: Dictionary["career"]["hero"] }) {
  return (
    <section className="relative isolate flex items-center overflow-hidden pt-[100px] pb-10 lg:min-h-[745px] lg:py-32">
      <PageHeroBackground alt={t.imageAlt} className="h-full" />
      <div className="container-site">
        <div className="flex flex-col gap-7 lg:px-20">
          <HeroHeadline start={t.titleStart} highlight={t.titleHighlight} />
          <p className="max-w-lg font-heading text-xs leading-5 text-soft lg:text-lg lg:leading-[29.25px]">{t.description}</p>
        </div>
      </div>
    </section>
  );
}
