import { Link } from "@tanstack/react-router";
import { Phone } from "lucide-react";
import { BUSINESS, HERO_IMAGE } from "@/data/site";

export function CtaBand() {
  return (
    <section className="relative isolate overflow-hidden bg-charcoal py-24 sm:py-28">
      <img
        src={HERO_IMAGE}
        alt="Luxury remodeled Arizona kitchen"
        className="absolute inset-0 -z-20 h-full w-full object-cover opacity-35"
      />
      <div className="absolute inset-0 -z-10 bg-charcoal/70" />
      <div className="mx-auto max-w-3xl px-5 text-center sm:px-8">
        <h2 className="font-serif text-3xl font-medium tracking-tight text-charcoal-foreground sm:text-5xl">
          Ready to Reimagine Your Home?
        </h2>
        <p className="mx-auto mt-5 max-w-xl text-base leading-relaxed text-charcoal-foreground/85 sm:text-lg">
          Let&apos;s discuss your remodeling ideas and explore what&apos;s possible for your space.
        </p>
        <div className="mt-9 flex flex-col items-center justify-center gap-4 sm:flex-row">
          <Link
            to="/contact"
            className="inline-flex w-full items-center justify-center rounded-sm bg-bronze px-7 py-3.5 text-xs font-medium tracking-widest text-bronze-foreground uppercase transition-opacity hover:opacity-90 sm:w-auto"
          >
            Request a Free Estimate
          </Link>
          <a
            href={BUSINESS.phoneHref}
            className="inline-flex w-full items-center justify-center gap-2 rounded-sm border border-charcoal-foreground/40 px-7 py-3.5 text-xs font-medium tracking-widest text-charcoal-foreground uppercase transition-colors hover:bg-charcoal-foreground/10 sm:w-auto"
          >
            <Phone className="h-4 w-4 text-bronze" />
            Call {BUSINESS.phoneDisplay}
          </a>
        </div>
      </div>
    </section>
  );
}