"use client";

import React, { useState } from "react";
import Link from "next/link";
import { ProductData, CorridorDataParsed } from "@/lib/types";
import { RFQModal } from "../RFQModal";
import { 
  ShieldCheck, 
  Award, 
  CheckCircle2, 
  ChevronRight, 
  Thermometer, 
  FileText, 
  Anchor, 
  Building2, 
  HelpCircle, 
  MessageSquare, 
  Download, 
  Flame, 
  Sparkles,
  ArrowRight,
  Microscope,
  Check,
  X,
  ExternalLink
} from "lucide-react";

interface Props {
  product: ProductData;
  corridors: CorridorDataParsed[];
  corridor?: CorridorDataParsed;
}

export function SemiconductorCleanroomTemplate({ product, corridors, corridor }: Props) {
  const [isRfqOpen, setIsRfqOpen] = useState(false);
  const [activeTab, setActiveTab] = useState<"compounds" | "chemical" | "dimensions">("compounds");

  // Horiaki High-Performance FFKM Compound Grades (Global O-Ring Benchmark)
  const compoundGrades = [
    {
      code: "HK-FFKM 327",
      grade: "Ultra-High Temperature & Plasma Etch",
      durometer: "75 Shore A",
      tempC: "-20°C to +327°C",
      tempF: "-4°F to +620°F",
      color: "Black",
      tensile: "17.2 MPa",
      elongation: "170%",
      compSet: "< 14% (70h @ 200°C)",
      cure: "Peroxide / Triazine",
      standards: "Cleanroom Sub-10nm, ASTM D2000, ISO 3601",
    },
    {
      code: "HK-FFKM 300W",
      grade: "Ultra-Pure Cleanroom White (Zero Carbon Black)",
      durometer: "70 Shore A",
      tempC: "-15°C to +300°C",
      tempF: "+5°F to +572°F",
      color: "Cleanroom White",
      tensile: "15.8 MPa",
      elongation: "190%",
      compSet: "< 16% (70h @ 200°C)",
      cure: "Ultra-Pure Peroxide",
      standards: "USP Class VI, FDA 21 CFR 177.2600",
    },
    {
      code: "HK-FFKM 275S",
      grade: "Aggressive Chemical & Superheated Steam",
      durometer: "80 Shore A",
      tempC: "-25°C to +275°C",
      tempF: "-13°F to +527°F",
      color: "Black",
      tensile: "18.5 MPa",
      elongation: "160%",
      compSet: "< 12% (70h @ 200°C)",
      cure: "Advanced Bisphenol / Peroxide",
      standards: "German UBA KTW-BWGL, DVGW W270",
    },
    {
      code: "HK-FFKM 320T",
      grade: "Translucent Pure Elastomer (Optical Chambers)",
      durometer: "75 Shore A",
      tempC: "-10°C to +320°C",
      tempF: "+14°F to +608°F",
      color: "Translucent",
      tensile: "14.5 MPa",
      elongation: "210%",
      compSet: "< 18% (70h @ 200°C)",
      cure: "Platinum / Peroxide Purity",
      standards: "Sub-10nm Fab Cleanroom, ICP-MS < 0.1 ppb",
    },
  ];

  // Chemical & Plasma Gas Compatibility Matrix
  const chemicalMatrix = [
    { media: "CF4 (Carbon Tetrafluoride Plasma)", rating: "Optimal (A+)", erosion: "< 0.02 nm/min", notes: "Zero particulate shedding in dry plasma etch chambers" },
    { media: "NF3 (Nitrogen Trifluoride Plasma)", rating: "Optimal (A+)", erosion: "< 0.03 nm/min", notes: "Resists aggressive radical fluorine chain scission" },
    { media: "Cl2 / BCl3 (Chlorine Metal Etch)", rating: "Superior (A)", erosion: "< 0.04 nm/min", notes: "High dimensional stability in reactive ion etching (RIE)" },
    { media: "O2 / Ozone Plasma Asher", rating: "Optimal (A+)", erosion: "< 0.01 nm/min", notes: "No polymer degradation or cracking under atomic oxygen" },
    { media: "Concentrated Nitric & Sulfuric Acids", rating: "Optimal (A+)", erosion: "No Swell (< 1%)", notes: "Compatible with Piranha etch and SPM cleaning solutions" },
    { media: "Ketones, Esters & Amines (MEK, Acetone)", rating: "Superior (A)", erosion: "No Degradation", notes: "FFKM backbone does not swell in aggressive polar solvents" },
    { media: "High-Pressure Superheated Steam (> 250°C)", rating: "Optimal (A+)", erosion: "< 0.5% Swell", notes: "Continuous seal integrity in sterilization and refining lines" },
  ];

  // Product Specific FAQs (Human Written, Highly Authoritative)
  const productFaqs = [
    {
      q: "What is an FFKM O-ring and how does it differ from standard FKM (Viton®)?",
      a: "FFKM (Perfluoroelastomer) contains fully fluorinated polymer backbones where all hydrogen atoms are replaced by fluorine. This provides universal chemical resistance similar to PTFE (Teflon) while maintaining the elastomeric recovery and sealability of synthetic rubber. Standard FKM contains partially fluorinated chains and degrades above +200°C or in polar solvents, whereas Horiaki FFKM operates continuously up to +327°C with zero swelling.",
    },
    {
      q: "How does Horiaki guarantee cleanroom purity for semiconductor wafer fabrication?",
      a: "Horiaki compounds its cleanroom FFKM grades in ISO Class 5/7 cleanroom environments. Post-moulding, parts undergo ultra-pure deionized (DI) water ultrasonic leaching and vacuum outgassing. Each production lot is verified by Inductively Coupled Plasma Mass Spectrometry (ICP-MS) with extractables < 0.1 ppb and double nitrogen-flushed heat-sealed packaging.",
    },
    {
      q: "Which dimensional sizing standards does Horiaki manufacture?",
      a: "We manufacture all aerospace and industrial AS568 standard sizes (001 through 475), metric ISO 3601-1 sizes, and custom CNC-moulded cross-sections. Parting lines are optically audited via high-magnification Video Measuring Machines (VMM) to guarantee flash < 0.05 mm.",
    },
    {
      q: "What documentation accompanies international export shipments?",
      a: "Every export consignment dispatched from our Chennai Port (INMAA) SEZ facility is accompanied by an EN 10204 3.1 Inspection Certificate, physical rheometer cure curves (ODR/MDR), ASTM D395 compression set test data, certificate of conformity (CoC), and full material batch traceability.",
    },
  ];

  return (
    <div className="bg-slate-50 text-slate-900 min-h-screen">
      
      {/* 1. EXECUTIVE BREADCRUMB STRIP */}
      <div className="bg-white border-b border-slate-200">
        <div className="max-w-7xl mx-auto px-4 py-3 flex items-center gap-2 text-xs font-mono text-slate-500 overflow-x-auto">
          <Link href="/" title="Horiaki India Home" className="hover:text-[#008a47] transition whitespace-nowrap">Home</Link>
          <ChevronRight className="w-3.5 h-3.5 text-slate-400 shrink-0" />
          <Link href="/category/o-rings-high-performance-seals" title="Browse O-Rings & High-Performance Seals" className="hover:text-[#008a47] transition whitespace-nowrap">
            O-Rings &amp; High-Performance Seals
          </Link>
          <ChevronRight className="w-3.5 h-3.5 text-slate-400 shrink-0" />
          <span className="text-slate-900 font-bold whitespace-nowrap">{product.name}</span>
        </div>
      </div>

      {/* 2. WORLD-CLASS B2B HERO SECTION (GLOBAL O-RING BENCHMARK) */}
      <section className="bg-white border-b border-slate-200 py-10 lg:py-14">
        <div className="max-w-7xl mx-auto px-4">
          <div className="grid grid-cols-1 lg:grid-cols-12 gap-8 lg:gap-12 items-center">
            
            {/* Left Content Column (Span 7) */}
            <div className="lg:col-span-7 space-y-5">
              
              <div className="inline-flex items-center gap-2 px-3 py-1 rounded-full bg-sky-50 border border-sky-200 text-xs font-mono text-[#008a47] font-bold">
                <ShieldCheck className="w-4 h-4 text-emerald-600" />
                <span>Semiconductor &amp; Extreme Chemical Sealing • ISO 9001:2015</span>
              </div>

              <h1 className="text-3xl sm:text-4xl lg:text-5xl font-black text-slate-900 tracking-tight leading-tight">
                {product.name}
              </h1>

              <p className="text-base sm:text-lg text-slate-600 leading-relaxed max-w-2xl font-normal">
                High-purity perfluoroelastomer (FFKM) sealing rings engineered for extreme temperatures up to <strong>+327°C</strong> and aggressive plasma RF etch gases. Manufactured with full lot traceability at Horiaki's Chennai MEPZ-SEZ plant.
              </p>

              {/* 4 Quick Spec Badges */}
              <div className="grid grid-cols-2 sm:grid-cols-4 gap-2.5 pt-1 text-xs font-mono">
                <div className="p-3 bg-slate-50 border border-slate-200 rounded-xl">
                  <span className="text-slate-400 block text-[10px] uppercase font-bold">Operating Temp</span>
                  <strong className="text-emerald-700 text-sm font-black">{product.operatingTemp}</strong>
                </div>
                <div className="p-3 bg-slate-50 border border-slate-200 rounded-xl">
                  <span className="text-slate-400 block text-[10px] uppercase font-bold">Hardness Shore</span>
                  <strong className="text-slate-900 text-sm font-black">{product.hardnessShore}</strong>
                </div>
                <div className="p-3 bg-slate-50 border border-slate-200 rounded-xl">
                  <span className="text-slate-400 block text-[10px] uppercase font-bold">Purity Grade</span>
                  <strong className="text-sky-700 text-sm font-black">&lt; 0.1 ppb ICP-MS</strong>
                </div>
                <div className="p-3 bg-slate-50 border border-slate-200 rounded-xl">
                  <span className="text-slate-400 block text-[10px] uppercase font-bold">Standard Spec</span>
                  <strong className="text-slate-900 text-sm font-black">ASTM D2000</strong>
                </div>
              </div>

              {/* Action Buttons */}
              <div className="flex flex-wrap items-center gap-3 pt-3">
                <button
                  onClick={() => setIsRfqOpen(true)}
                  className="px-6 py-3.5 bg-[#008a47] hover:bg-[#00733a] text-white font-extrabold text-xs uppercase tracking-wider rounded-xl shadow-lg transition flex items-center gap-2 group active:scale-95"
                >
                  <span>Request Technical RFQ</span>
                  <ArrowRight className="w-4 h-4 group-hover:translate-x-1 transition" />
                </button>

                <a
                  href={`https://wa.me/919840023478?text=Hello%20Horiaki%20Engineering%20Desk%2C%20we%20would%20like%20to%20request%20technical%20specifications%20for%20${encodeURIComponent(product.name)}.`}
                  target="_blank"
                  rel="noopener noreferrer"
                  title={`WhatsApp Engineering Desk for ${product.name}`}
                  className="px-5 py-3.5 bg-emerald-600 hover:bg-emerald-700 text-white font-bold text-xs uppercase tracking-wider rounded-xl shadow transition flex items-center gap-2"
                >
                  <MessageSquare className="w-4 h-4" />
                  <span>WhatsApp Engineering Desk</span>
                </a>

                <button
                  onClick={() => setIsRfqOpen(true)}
                  className="px-4 py-3.5 border border-slate-300 hover:bg-slate-100 text-slate-700 font-bold text-xs rounded-xl transition flex items-center gap-1.5"
                >
                  <Download className="w-4 h-4 text-slate-500" />
                  <span>Download Material TDS</span>
                </button>
              </div>

              {/* Seaport Dispatch Strip */}
              <div className="pt-2 text-xs font-mono text-slate-500 flex items-center gap-2">
                <Anchor className="w-4 h-4 text-cyan-600" />
                <span>Direct Seaport Export: Chennai Port (INMAA) • FCL &amp; LCL Worldwide</span>
              </div>

            </div>

            {/* Right Product Image Canvas (Span 5 - Crisp White Studio Stage) */}
            <div className="lg:col-span-5">
              <div className="bg-slate-50 border border-slate-200 rounded-3xl p-6 sm:p-8 shadow-sm flex flex-col items-center justify-center relative">
                
                <div className="w-full h-[280px] sm:h-[340px] flex items-center justify-center p-4">
                  {/* eslint-disable-next-line @next/next/no-img-element */}
                  <img
                    src="/banners/banner_ffkm_oring.webp"
                    alt={`${product.name} - Horiaki India`}
                    className="max-h-full max-w-full object-contain filter drop-shadow-md hover:scale-105 transition-transform duration-300"
                    onError={(e) => {
                      (e.target as HTMLImageElement).src = "/uploaded_files/7e2867736b769c.jpg";
                    }}
                  />
                </div>

                <div className="w-full pt-4 border-t border-slate-200/80 flex items-center justify-between text-xs font-mono text-slate-600">
                  <span className="flex items-center gap-1 text-emerald-700 font-bold">
                    <CheckCircle2 className="w-3.5 h-3.5 text-emerald-600" />
                    <span>100% Uncut Virgin Polymer</span>
                  </span>
                  <span className="text-slate-500">Flash &lt; 0.05 mm</span>
                </div>

              </div>
            </div>

          </div>
        </div>
      </section>

      {/* 3. TECHNICAL TABS & SPECIFICATIONS MATRIX (THE GLOBAL O-RING AUDIT BENCHMARK) */}
      <section className="max-w-7xl mx-auto px-4 py-12">
        <div className="space-y-6">
          
          <div className="flex flex-col sm:flex-row sm:items-center justify-between gap-4 border-b border-slate-200 pb-3">
            <div>
              <h2 className="text-2xl font-black text-slate-900 tracking-tight">
                Technical Data Sheet &amp; Material Compounds
              </h2>
              <p className="text-xs text-slate-500 mt-0.5">
                Physical elastomer characteristics, chemical resistance profiles, and dimensional tolerances.
              </p>
            </div>

            {/* Tab Controls */}
            <div className="flex items-center gap-1 bg-slate-200/70 p-1 rounded-xl text-xs font-bold">
              <button
                onClick={() => setActiveTab("compounds")}
                className={`px-3.5 py-2 rounded-lg transition ${
                  activeTab === "compounds"
                    ? "bg-white text-slate-900 shadow-sm"
                    : "text-slate-600 hover:text-slate-900"
                }`}
              >
                Compound Grades
              </button>
              <button
                onClick={() => setActiveTab("chemical")}
                className={`px-3.5 py-2 rounded-lg transition ${
                  activeTab === "chemical"
                    ? "bg-white text-slate-900 shadow-sm"
                    : "text-slate-600 hover:text-slate-900"
                }`}
              >
                Chemical &amp; Plasma Matrix
              </button>
              <button
                onClick={() => setActiveTab("dimensions")}
                className={`px-3.5 py-2 rounded-lg transition ${
                  activeTab === "dimensions"
                    ? "bg-white text-slate-900 shadow-sm"
                    : "text-slate-600 hover:text-slate-900"
                }`}
              >
                AS568 &amp; ISO 3601 Sizing
              </button>
            </div>
          </div>

          {/* TAB 1: COMPOUND GRADES TABLE (GLOBAL O-RING BENCHMARK) */}
          {activeTab === "compounds" && (
            <div className="bg-white rounded-2xl border border-slate-200 shadow-sm overflow-hidden">
              <div className="p-4 bg-slate-50 border-b border-slate-200 flex items-center justify-between">
                <span className="font-bold text-xs uppercase tracking-wider text-slate-700 font-mono">
                  Standard Horiaki FFKM Production Formulations
                </span>
                <span className="text-xs text-[#008a47] font-bold">ASTM D2000 M-Callouts</span>
              </div>

              <div className="overflow-x-auto">
                <table className="w-full text-left text-xs">
                  <thead className="bg-slate-100 text-slate-700 uppercase font-bold tracking-wider font-mono">
                    <tr>
                      <th className="px-4 py-3">Compound Code</th>
                      <th className="px-4 py-3">Grade Description</th>
                      <th className="px-4 py-3">Durometer</th>
                      <th className="px-4 py-3">Temp Range (°C)</th>
                      <th className="px-4 py-3">Tensile Strength</th>
                      <th className="px-4 py-3">Compression Set</th>
                      <th className="px-4 py-3">Color</th>
                      <th className="px-4 py-3 text-right">Action</th>
                    </tr>
                  </thead>
                  <tbody className="divide-y divide-slate-100 text-slate-700">
                    {compoundGrades.map((c) => (
                      <tr key={c.code} className="hover:bg-slate-50 transition">
                        <td className="px-4 py-3.5 font-mono font-bold text-[#008a47]">
                          {c.code}
                        </td>
                        <td className="px-4 py-3.5 font-medium text-slate-900">
                          {c.grade}
                        </td>
                        <td className="px-4 py-3.5 font-mono font-semibold">
                          {c.durometer}
                        </td>
                        <td className="px-4 py-3.5 font-mono font-bold text-emerald-700">
                          {c.tempC}
                        </td>
                        <td className="px-4 py-3.5 font-mono">
                          {c.tensile}
                        </td>
                        <td className="px-4 py-3.5 font-mono text-slate-600">
                          {c.compSet}
                        </td>
                        <td className="px-4 py-3.5">
                          <span className="px-2 py-0.5 rounded text-[11px] font-semibold bg-slate-100 border border-slate-200 text-slate-700">
                            {c.color}
                          </span>
                        </td>
                        <td className="px-4 py-3.5 text-right">
                          <button
                            onClick={() => setIsRfqOpen(true)}
                            className="px-2.5 py-1 bg-slate-900 hover:bg-[#008a47] text-white text-[11px] font-bold rounded-lg transition"
                          >
                            RFQ
                          </button>
                        </td>
                      </tr>
                    ))}
                  </tbody>
                </table>
              </div>
            </div>
          )}

          {/* TAB 2: CHEMICAL & PLASMA COMPATIBILITY MATRIX */}
          {activeTab === "chemical" && (
            <div className="bg-white rounded-2xl border border-slate-200 shadow-sm overflow-hidden">
              <div className="p-4 bg-slate-50 border-b border-slate-200 flex items-center justify-between">
                <span className="font-bold text-xs uppercase tracking-wider text-slate-700 font-mono">
                  Chemical Media &amp; Reactive Plasma Chamber Compatibility
                </span>
                <span className="text-xs text-emerald-700 font-bold">Dry Etch &amp; Wet Chemistry</span>
              </div>

              <div className="overflow-x-auto">
                <table className="w-full text-left text-xs">
                  <thead className="bg-slate-100 text-slate-700 uppercase font-bold tracking-wider font-mono">
                    <tr>
                      <th className="px-4 py-3">Chemical / Plasma Chemistry</th>
                      <th className="px-4 py-3">Resistance Rating</th>
                      <th className="px-4 py-3">Erosion Rate / Swell</th>
                      <th className="px-4 py-3">Technical Application Notes</th>
                    </tr>
                  </thead>
                  <tbody className="divide-y divide-slate-100 text-slate-700">
                    {chemicalMatrix.map((item, idx) => (
                      <tr key={idx} className="hover:bg-slate-50 transition">
                        <td className="px-4 py-3.5 font-bold text-slate-900">
                          {item.media}
                        </td>
                        <td className="px-4 py-3.5">
                          <span className="px-2.5 py-0.5 rounded-full bg-emerald-50 text-emerald-800 border border-emerald-200 font-mono font-bold text-[11px]">
                            {item.rating}
                          </span>
                        </td>
                        <td className="px-4 py-3.5 font-mono text-cyan-800 font-semibold">
                          {item.erosion}
                        </td>
                        <td className="px-4 py-3.5 text-slate-600 text-xs">
                          {item.notes}
                        </td>
                      </tr>
                    ))}
                  </tbody>
                </table>
              </div>
            </div>
          )}

          {/* TAB 3: AS568 & ISO 3601 SIZING */}
          {activeTab === "dimensions" && (
            <div className="bg-white rounded-2xl border border-slate-200 p-6 shadow-sm space-y-4">
              <div className="flex items-center justify-between border-b border-slate-100 pb-3">
                <h3 className="font-bold text-slate-900 text-sm">Standard Sizing Tooling &amp; Micro-Miniature Capability</h3>
                <span className="text-xs font-mono text-slate-500">ISO 3601-1 Grade A Tolerances</span>
              </div>
              <div className="grid grid-cols-1 md:grid-cols-3 gap-4 text-xs">
                <div className="p-4 bg-slate-50 border border-slate-200 rounded-xl space-y-2">
                  <h4 className="font-bold text-slate-900 text-sm">AS568 Standard Aerospace Series</h4>
                  <p className="text-slate-600 leading-relaxed">
                    Complete tooling in stock for dash sizes 001 through 475 across standard cross sections: 0.070&quot;, 0.103&quot;, 0.139&quot;, 0.210&quot;, and 0.275&quot;.
                  </p>
                </div>
                <div className="p-4 bg-slate-50 border border-slate-200 rounded-xl space-y-2">
                  <h4 className="font-bold text-slate-900 text-sm">ISO 3601 Metric Standard</h4>
                  <p className="text-slate-600 leading-relaxed">
                    Precision metric inner diameters from 0.8 mm up to 1,200 mm with tight cross-section tolerances (± 0.05 mm) for cleanroom vacuum flanges.
                  </p>
                </div>
                <div className="p-4 bg-slate-50 border border-slate-200 rounded-xl space-y-2">
                  <h4 className="font-bold text-slate-900 text-sm">Custom CNC Moulded Profiles</h4>
                  <p className="text-slate-600 leading-relaxed">
                    In-house rapid 7-day CNC toolmaking for bespoke slit valve door seals, bonded gate seals, trapezoidal quartz window gaskets, and spliced rings.
                  </p>
                </div>
              </div>
            </div>
          )}

        </div>
      </section>

      {/* 4. APPLICATIONS & INDUSTRIAL ENVIRONMENTS */}
      <section className="bg-white border-y border-slate-200 py-12">
        <div className="max-w-7xl mx-auto px-4">
          <div className="max-w-2xl mb-8">
            <h2 className="text-2xl font-black text-slate-900 tracking-tight">
              Approved Industrial Applications
            </h2>
            <p className="text-xs text-slate-500 mt-1">
              Where critical seal failure leads to thousands of dollars in unplanned downtime.
            </p>
          </div>

          <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 text-xs">
            <div className="p-5 rounded-2xl bg-slate-50 border border-slate-200 space-y-2">
              <div className="w-8 h-8 rounded-lg bg-sky-100 text-[#008a47] flex items-center justify-center font-bold">
                01
              </div>
              <h3 className="font-bold text-slate-900 text-sm">Semiconductor Wafer Fabs</h3>
              <p className="text-slate-600 leading-relaxed">
                Plasma etch chambers, chemical vapor deposition (CVD), physical vapor deposition (PVD), and atomic layer deposition (ALD) vacuum tools.
              </p>
            </div>

            <div className="p-5 rounded-2xl bg-slate-50 border border-slate-200 space-y-2">
              <div className="w-8 h-8 rounded-lg bg-sky-100 text-[#008a47] flex items-center justify-center font-bold">
                02
              </div>
              <h3 className="font-bold text-slate-900 text-sm">Aerospace &amp; Defense</h3>
              <p className="text-slate-600 leading-relaxed">
                Rocket propulsion fuel valves, satellite reaction control systems, and turbine high-temperature hydraulic manifolds.
              </p>
            </div>

            <div className="p-5 rounded-2xl bg-slate-50 border border-slate-200 space-y-2">
              <div className="w-8 h-8 rounded-lg bg-sky-100 text-[#008a47] flex items-center justify-center font-bold">
                03
              </div>
              <h3 className="font-bold text-slate-900 text-sm">Petrochemical Refining</h3>
              <p className="text-slate-600 leading-relaxed">
                Downhole measurement-while-drilling (MWD) tools, sour crude gas wellheads (H2S), and amine gas sweetening recovery units.
              </p>
            </div>

            <div className="p-5 rounded-2xl bg-slate-50 border border-slate-200 space-y-2">
              <div className="w-8 h-8 rounded-lg bg-sky-100 text-[#008a47] flex items-center justify-center font-bold">
                04
              </div>
              <h3 className="font-bold text-slate-900 text-sm">Pharma &amp; Pure Steam</h3>
              <p className="text-slate-600 leading-relaxed">
                Active pharmaceutical ingredient (API) reactor vessels, clean-in-place (CIP) and steam-in-place (SIP) sanitary lines.
              </p>
            </div>
          </div>
        </div>
      </section>

      {/* 5. PRODUCT SPECIFIC FAQS (HUMAN WRITTEN, HIGH E-E-A-T) */}
      <section className="max-w-5xl mx-auto px-4 py-12 space-y-6">
        <div>
          <div className="inline-flex items-center gap-1.5 text-xs font-bold text-[#008a47] uppercase font-mono tracking-wider mb-1">
            <HelpCircle className="w-4 h-4" />
            <span>Procurement &amp; Engineering FAQs</span>
          </div>
          <h2 className="text-2xl font-black text-slate-900 tracking-tight">
            Frequently Asked Technical Questions: FFKM O-Rings
          </h2>
        </div>

        <div className="space-y-3">
          {productFaqs.map((faq, idx) => (
            <div key={idx} className="bg-white rounded-2xl border border-slate-200 p-5 shadow-sm space-y-2">
              <h3 className="text-sm font-bold text-slate-900 flex items-start gap-2">
                <span className="text-[#008a47] font-mono">Q{idx + 1}.</span>
                <span>{faq.q}</span>
              </h3>
              <p className="text-xs text-slate-600 leading-relaxed pl-6">
                {faq.a}
              </p>
            </div>
          ))}
        </div>
      </section>

      {/* 6. CALL TO ACTION STRIP */}
      <section className="bg-[#111827] text-white py-12 border-t border-slate-800">
        <div className="max-w-7xl mx-auto px-4 flex flex-col md:flex-row items-center justify-between gap-6 text-center md:text-left">
          <div className="space-y-2">
            <h3 className="text-2xl font-black text-white">
              Ready to Order Custom or Standard FFKM O-Rings?
            </h3>
            <p className="text-xs text-slate-300 max-w-xl">
              Submit your required AS568 dash size, custom drawing (CAD/STEP), operating media, and estimated quantity for a guaranteed 24-hour technical quotation.
            </p>
          </div>

          <div className="flex flex-wrap items-center gap-3">
            <button
              onClick={() => setIsRfqOpen(true)}
              className="px-6 py-3.5 bg-[#008a47] hover:bg-[#00733a] text-white font-black text-xs uppercase tracking-wider rounded-xl shadow transition"
            >
              Request International RFQ
            </button>
            <a
              href="https://wa.me/919840023478?text=Hello%20Horiaki%20Export%20Desk%2C%20we%20need%20pricing%20for%20FFKM%20O-Rings."
              target="_blank"
              rel="noopener noreferrer"
              title="Chat with Horiaki Technical Export Desk on WhatsApp"
              className="px-5 py-3.5 bg-emerald-600 hover:bg-emerald-700 text-white font-bold text-xs uppercase tracking-wider rounded-xl transition flex items-center gap-1.5"
            >
              <MessageSquare className="w-4 h-4" />
              <span>WhatsApp Live</span>
            </a>
          </div>
        </div>
      </section>

      {/* RFQ Modal */}
      <RFQModal isOpen={isRfqOpen} onClose={() => setIsRfqOpen(false)} defaultProduct={product.name} />

    </div>
  );
}
