import type { Locale } from "@/i18n/config";
import type { Dictionary } from "@/i18n/get-dictionary";
import { HeroBackground } from "./hero-background";
import { HeroCopy } from "./hero-copy";
import { HeroStats } from "./hero-stats";
import { HeroVisual } from "./hero-visual";

type HeroSectionProps = { locale: Locale; t: Dictionary["home"]["hero"] };

export function HeroSection({ locale, t }: HeroSectionProps) {
  return (
    <section className="relative isolate overflow-hidden pt-[100px] pb-10 lg:min-h-[897px] lg:pt-32 lg:pb-16">
      <HeroBackground />
      <div className="container-site">
        <div className="flex flex-col items-center gap-14 md:flex-row md:items-start md:gap-5 lg:items-center lg:justify-between lg:gap-14 lg:px-20">
          <HeroCopy locale={locale} t={t} />
          {/* Tablet: the desktop card at 75.6% (Figma 744 frame: 242×290 instead of 320×384). Hidden on phones, as in Figma. */}
          <HeroVisual t={t} className="hidden md:block md:max-lg:[zoom:0.75625]" />
        </div>
        <HeroStats stats={t.stats} className="pt-10 lg:px-20 lg:pt-20" />
      </div>
    </section>
  );
}
