import { Link } from "react-router-dom";
import { motion } from "motion/react";
import { ArrowRight, ShieldAlert, BadgeHelp } from "lucide-react";
import { assetIntegrity } from "../data/content";
import SectionHeader from "../components/SectionHeader";
export default function ServicesAssetIntegrity() {
  return <div className="bg-slate-50 min-h-screen text-slate-900">
      
      {
    /* Page Header (Background Image + Slate Mask) */
  }
      <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-1541888946425-d81bb19240f5?auto=format&fit=crop&w=1600&q=80')" }}
  >
        <div className="absolute inset-0 bg-slate-950/80 pointer-events-none" />
        <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">
            {assetIntegrity.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">
            {assetIntegrity.title}
          </h1>
          <p className="mt-4 max-w-2xl text-slate-300 text-sm sm:text-base md:text-lg leading-relaxed font-light">
            {assetIntegrity.lead}
          </p>
        </div>
      </section>

      {
    /* Services List Grid */
  }
      <section className="py-24 max-w-7xl mx-auto px-5 md:px-8">
        <SectionHeader
    tag="Engineering Scope"
    title="Asset Integrity & Mechanical Evaluations"
    description="Providing complete Risk Based Inspection (RBI), Fitness for Service (FFS), and root-cause analysis solutions to protect plant lifespans."
  />

        <div className="grid sm:grid-cols-2 lg:grid-cols-3 gap-6 mt-12">
          {assetIntegrity.services.map((service, idx) => <motion.div
    key={service}
    initial={{ opacity: 0, y: 15 }}
    whileInView={{ opacity: 1, y: 0 }}
    viewport={{ once: true }}
    transition={{ duration: 0.3, delay: idx * 0.02 }}
    className="bg-white border border-slate-100 p-6 rounded-2xl shadow-sm hover:shadow-md hover:border-orange-500/20 transition-all duration-300 flex gap-4 items-start"
  >
              <span className="w-8 h-8 rounded-xl bg-orange-500/10 text-orange-600 flex items-center justify-center font-mono text-xs font-bold shrink-0">
                {String(idx + 1).padStart(2, "0")}
              </span>
              <p className="text-sm font-semibold text-slate-800 leading-normal">
                {service}
              </p>
            </motion.div>)}
        </div>
      </section>

      {
    /* Code Compliance Highlight */
  }
      <section className="bg-slate-100 border-y border-slate-200 py-16">
        <div className="max-w-4xl mx-auto px-5 md:px-8 grid sm:grid-cols-2 gap-8">
          <div className="bg-white border border-slate-200 p-6 rounded-2xl shadow-sm space-y-4">
            <div className="w-10 h-10 bg-orange-500/10 text-orange-600 flex items-center justify-center rounded-xl">
              <ShieldAlert className="w-5 h-5" />
            </div>
            <h3 className="font-heading text-lg font-bold text-slate-900">API 579 / ASME FFS</h3>
            <p className="text-xs text-slate-500 leading-relaxed font-light">
              We perform quantitative engineering analysis of pressurized equipment containing localized wall thinnings, pitting, or cracking to verify safe continued operation limits.
            </p>
          </div>
          <div className="bg-white border border-slate-200 p-6 rounded-2xl shadow-sm space-y-4">
            <div className="w-10 h-10 bg-orange-500/10 text-orange-600 flex items-center justify-center rounded-xl">
              <BadgeHelp className="w-5 h-5" />
            </div>
            <h3 className="font-heading text-lg font-bold text-slate-900">Root-Cause Analysis</h3>
            <p className="text-xs text-slate-500 leading-relaxed font-light">
              When industrial components fail prematurely, our Level III metallurgical consultants execute failure studies and suggest tailored remedies to prevent recurrence.
            </p>
          </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">Ready to draft a Risk Based Inspection (RBI) study for your processing facility?</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>Enquire About Engineering Services</span>
          <ArrowRight className="w-4 h-4 group-hover:translate-x-1 transition-transform text-white" />
        </Link>
      </section>

    </div>;
}
