import { Link } from "react-router-dom";
import { motion } from "motion/react";
import { ArrowRight, ShieldCheck, Cog } from "lucide-react";
import { inspection } from "../data/content";
export default function ServicesInspection() {
  return <div className="bg-slate-50 min-h-screen text-slate-900">
      
      {
    /* Page Header (Background Image + Slate Mask + Rotating Cog) */
  }
      <section
    className="relative pt-32 pb-24 md:pt-40 md:pb-32 bg-cover bg-center text-white border-b border-slate-900"
    style={{ backgroundImage: "url('https://images.unsplash.com/photo-1581092160607-ee22621dd758?auto=format&fit=crop&w=1600&q=80')" }}
  >
        <div className="absolute inset-0 bg-slate-950/80 pointer-events-none" />
        
        {
    /* Decorative Rotating Cog */
  }
        <div className="absolute right-10 bottom-6 w-48 h-48 text-white/5 animate-spin-slow pointer-events-none hidden md:block" aria-hidden="true">
          <Cog className="w-full h-full" />
        </div>

        <div className="max-w-7xl mx-auto px-5 md:px-8 relative z-10">
          <span className="font-mono text-xs font-bold text-orange-400 uppercase tracking-widest bg-orange-500/20 px-3.5 py-1.5 rounded-full border border-orange-500/30">
            {inspection.tag}
          </span>
          <h1 className="font-heading text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-extrabold tracking-tight mt-5 leading-tight">
            {inspection.title}
          </h1>
          <p className="mt-4 max-w-2xl text-slate-300 text-sm sm:text-base md:text-lg leading-relaxed font-light">
            {inspection.lead}
          </p>
        </div>
      </section>

      {
    /* Narrative Section */
  }
      <section className="max-w-4xl mx-auto px-5 md:px-8 py-20 space-y-8 relative">
        <div className="absolute right-0 top-10 w-80 h-80 bg-orange-500/5 rounded-full blur-3xl pointer-events-none" />
        
        <motion.div
    initial={{ opacity: 0, y: 20 }}
    whileInView={{ opacity: 1, y: 0 }}
    viewport={{ once: true }}
    transition={{ duration: 0.6 }}
    className="space-y-6 text-slate-500 font-light text-sm sm:text-base leading-relaxed relative z-10"
  >
          {inspection.body.map((p, idx) => <p key={p} className={idx === 0 ? "text-slate-900 font-bold border-l-4 border-orange-500 pl-4 md:pl-6 text-sm md:text-base leading-relaxed" : ""}>
              {p}
            </p>)}
        </motion.div>
      </section>

      {
    /* Shutdown / Turnaround Highlight */
  }
      <section className="bg-slate-100 border-y border-slate-200 py-16 relative">
        <div className="max-w-4xl mx-auto px-5 md:px-8 relative z-10">
          <motion.div
    initial={{ opacity: 0, scale: 0.98 }}
    whileInView={{ opacity: 1, scale: 1 }}
    viewport={{ once: true }}
    transition={{ duration: 0.5 }}
    className="bg-white p-6 md:p-10 border border-slate-200 border-l-4 border-l-orange-500 rounded-2xl shadow-sm"
  >
            <h2 className="font-heading text-lg md:text-xl text-slate-900 font-bold tracking-tight flex items-center gap-2.5 border-b border-slate-100 pb-4">
              <ShieldCheck className="w-6 h-6 text-orange-500 shrink-0" />
              {inspection.highlight.title}
            </h2>
            <div className="mt-6 space-y-4 text-slate-500 text-xs sm:text-sm font-light leading-relaxed">
              {inspection.highlight.body.map((p, idx) => <p key={idx}>{p}</p>)}
            </div>
          </motion.div>
        </div>
      </section>

      {
    /* Bottom CTA */
  }
      <section className="max-w-4xl mx-auto px-5 md:px-8 py-20 text-center relative z-10">
        <p className="text-slate-500 font-light text-xs sm:text-sm">Need help scoping your next refinery shutdown or turnaround project?</p>
        <Link
    to="/contact"
    className="inline-flex items-center gap-2 mt-6 bg-orange-500 hover:bg-orange-600 text-white font-bold text-xs px-8 py-4 rounded-xl tracking-wider uppercase shadow-md transition-all duration-200 group"
  >
          <span>Talk to Our Planning Team</span>
          <ArrowRight className="w-4 h-4 group-hover:translate-x-1 transition-transform text-white" />
        </Link>
      </section>

    </div>;
}
