"use client";

import Image from "next/image";
import Link from "next/link";
import { FaArrowRight } from "react-icons/fa6";
import {
  LuZap,
  LuShieldAlert,
  LuSlice,
  LuEye,
  LuClock
} from "react-icons/lu";
import Breadcrumb from "@/components/Common/Breadcrumb";

export default function FASDStartersControllersDetail() {

  const quickSpecs = [
    { label: "Starting Method", val: "Fully Automatic Star Delta" },
    { label: "Phase Support", val: "3-Phase Pump Sets" },
    { label: "Transition Type", val: "Automatic Timer-Based" },
    { label: "Integrated Safety", val: "SPPR Suite (Controllers)" }
  ];

  const starterVariants = [
    { model: "MK1 FASD", hardware: "Built with MK1 contactors, MK1 relay, and GT200 timer assembly" },
    { model: "MU FASD", hardware: "Configured with MU contactors, MU relay, and ST100 timer integration" },
    { model: "MB FASD", hardware: "Engineered using MU contactors, MN relay protection, and ST100 timer" },
    { model: "ML FASD", hardware: "Assembled with high-capacity ML contactors, ML relay, and ST100 timer" }
  ];

  const controllerVariants = [
    { model: "MU-G15", hardware: "Assembled with MK1 contactors, MK1 relay, and SDz5 combined unit" },
    { model: "MU-G20 / G20H", hardware: "Built with MU contactors, MU relay, and SDz5 combined unit" },
    { model: "MU-G30", hardware: "Configured with ML contactors, MN relay, and SDz5 combined unit" },
    { model: "MU-G50", hardware: "Engineered with ML contactors, MN relay, and SDz5 combined unit" },
    { model: "MU-G75", hardware: "Equipped with ML contactors, MN relay, and SDz5 combined unit" }
  ];

  const systemFeatures = [
    { title: "Automatic Timer Transition", detail: "Utilizes integrated GT200, ST100, or SDz5 modules to execute the critical changeover from star to delta windings completely automatically." },
    { title: "Single-Phasing Prevention", detail: "Safeguards long-term motor life by instantly isolating the circuit when a line drop is detected." },
    { title: "Phase-Reversal Protection", detail: "Blocks pump ignition if incoming phase sequencing is reversed, preventing backward rotation damage." },
    { title: "Phase-Unbalance Protection", detail: "Continuously tracks line equilibrium to shield motor windings against unbalanced voltage strain." },
    { title: "Variable Time-Delay Tuning", detail: "Permits manual time adjustments on the relay unit for managed, delayed pump set initialization." },
    { title: "Dual Analog Dashboard", detail: "Houses a diagnostic display panel for simultaneous monitoring of real-time voltage and current metrics." },
    { title: "Auto-ON Automation Logic", detail: "Features intelligent automated power recovery logic to safely reactivate pump operations when power normalizes." },
    { title: "Visual System Signaling", detail: "Provides clear status indicators on the front panel marking Supply ON/OFF and Pump ON/OFF states." }
  ];

  return (
    <>
      <Breadcrumb pageName="FASD Starters & Controllers" description="FASD Starters & Controllers" />
      <div className="min-h-screen bg-white text-slate-800 py-16 lg:py-24 xl:py-28 selection:bg-cyan-100 selection:text-cyan-950">
        <div className="container mx-auto px-4 sm:px-6 lg:px-8 xl:px-12 max-w-[1600px]">

          {/* ─── HERO & SYSTEM OVERVIEW ────────────────────────────── */}
          <div className="grid grid-cols-1 lg:grid-cols-12 gap-12 xl:gap-16 items-center mb-24 lg:mb-32">

            {/* Left Column: Context Narrative */}
            <div className="space-y-6 lg:col-span-7 order-2 lg:order-1">
              <span className="inline-flex items-center gap-1.5 rounded-full bg-slate-50 px-4 py-1.5 text-xs font-bold tracking-wider text-slate-600 uppercase border border-slate-200/60">
                L&amp;T Electrical &amp; Automation
              </span>

              <h1 className="text-3xl md:text-4xl lg:text-5xl xl:text-6xl font-black tracking-tight text-slate-900 leading-tight uppercase">
                Fully Automatic <br />
                Star Delta Solutions
                <span className="text-cyan-500 font-extrabold text-lg md:text-xl lg:text-2xl xl:text-3xl block mt-2 normal-case tracking-wide">
                  FASD Starters &amp; Advanced Controller Kits
                </span>
              </h1>

              <p className="text-slate-600 text-sm md:text-base xl:text-lg leading-relaxed font-medium max-w-4xl">
                Star Delta starting is an effective and standard approach for initializing 3-phase pump-sets. In the Fully Automatic Star-Delta (FASD) system architecture, the structural changeover from initial star winding topology to running delta winding configurations is fully handled via automated timer units. L&amp;T Electrical &amp; Automation (E&amp;A) delivers two distinct tiers under the FASD line: standard basic Starters for fundamental contactor-relay protection, and premium Controllers that embed full line telemetry along with advanced safety logic.
              </p>

              {/* Quick Metrics Reference Array */}
              <div className="grid grid-cols-2 md:grid-cols-4 gap-4 bg-slate-50/50 border border-slate-200/60 p-4 rounded-2xl shadow-xs">
                {quickSpecs.map((spec, idx) => (
                  <div key={idx} className="bg-white border border-slate-150 p-3 rounded-xl text-center shadow-xs">
                    <span className="text-[10px] text-slate-400 font-black uppercase tracking-widest block mb-1">{spec.label}</span>
                    <span className="text-xs font-black text-slate-900">{spec.val}</span>
                  </div>
                ))}
              </div>
            </div>

            {/* Right Column: Visual Frame */}
            <div className="lg:col-span-5 order-1 lg:order-2 flex justify-center lg:justify-end">
              <div className="relative w-full max-w-[500px] aspect-[4/3] rounded-3xl bg-slate-50 p-6 sm:p-10 border border-slate-200/60 shadow-xs flex items-center justify-center group/hero hover:border-cyan-500 transition-all duration-300">
                <div className="relative w-full h-full min-h-[300px] xl:min-h-[340px]">
                  <Image
                    src="/images/products/l&amp;t-switchgear/starters-and-submersible-controllers/mbfasd.jpg"
                    alt="L&amp;T Fully Automatic Star Delta Submersible Pump Starter casing detailing heavy rugged frame enclosure"
                    fill
                    priority
                    className="object-contain filter drop-shadow-[0_12px_32px_rgba(0,0,0,0.04)] group-hover/hero:scale-102 transition-transform duration-500"
                    sizes="(max-width: 1024px) 100vw, 500px"
                  />
                </div>
              </div>
            </div>
          </div>

          {/* ─── SECTION 1: SYSTEM VARIANT SELECTION ───────────────── */}
          <div className="mb-24 lg:mb-32 grid grid-cols-1 lg:grid-cols-2 gap-8">

            {/* FASD Starters Variant Card */}
            <div className="bg-slate-50/50 border border-slate-200/60 rounded-3xl p-6 md:p-8 shadow-xs flex flex-col justify-between hover:border-cyan-500/20 transition-all duration-300">
              <div>
                <div className="flex items-center gap-3 mb-4">
                  <div className="p-2.5 bg-white border border-slate-200 text-cyan-500 rounded-xl shadow-xs">
                    <LuZap className="w-5 h-5" />
                  </div>
                  <h2 className="text-lg font-black text-slate-900 uppercase tracking-wide">FASD Starters</h2>
                </div>
                <p className="text-xs md:text-sm text-slate-500 font-medium leading-relaxed mb-6">
                  Basic electrical starter assemblies containing contactor and thermal overload relay pairings. Developed for reliable ON/OFF motor activations and essential overcurrent safety tasks.
                </p>
                <div className="space-y-2.5">
                  <span className="text-[10px] text-slate-400 font-black uppercase tracking-widest block">Model Configurations</span>
                  {starterVariants.map((starter, idx) => (
                    <div key={idx} className="bg-white border border-slate-150 rounded-xl p-3 flex justify-between items-center text-xs shadow-xs">
                      <strong className="text-slate-900 font-black">{starter.model}</strong>
                      <span className="text-slate-500 font-bold text-right text-[11px] max-w-[70%]">{starter.hardware}</span>
                    </div>
                  ))}
                </div>
              </div>
            </div>

            {/* FASD Controllers Variant Card */}
            <div className="bg-slate-50/50 border border-slate-200/60 rounded-3xl p-6 md:p-8 shadow-xs flex flex-col justify-between hover:border-cyan-500/20 transition-all duration-300">
              <div>
                <div className="flex items-center gap-3 mb-4">
                  <div className="p-2.5 bg-white border border-slate-200 text-cyan-500 rounded-xl shadow-xs">
                    <LuSlice className="w-5 h-5" />
                  </div>
                  <h2 className="text-lg font-black text-slate-900 uppercase tracking-wide">FASD Controllers</h2>
                </div>
                <p className="text-xs md:text-sm text-slate-500 font-medium leading-relaxed mb-6">
                  Premium multi-tiered control blocks. Integrates starter mechanics alongside automated logic loops, real-time dashboards, line tracking indicators, and built-in SPPR relays.
                </p>
                <div className="space-y-2.5">
                  <span className="text-[10px] text-slate-400 font-black uppercase tracking-widest block">Model Configurations (SDz5 Includes SPPR + Timer)</span>
                  {controllerVariants.map((ctrl, idx) => (
                    <div key={idx} className="bg-white border border-slate-150 rounded-xl p-3 flex justify-between items-center text-xs shadow-xs">
                      <strong className="text-slate-900 font-black">{ctrl.model}</strong>
                      <span className="text-slate-500 font-bold text-right text-[11px] max-w-[65%]">{ctrl.hardware}</span>
                    </div>
                  ))}
                </div>
              </div>
            </div>

          </div>

          {/* ─── SECTION 2: INTELLIGENT SAFEGUARD MATRIX ──────────── */}
          <div className="mb-24 lg:mb-32 bg-slate-900 text-white rounded-3xl p-8 md:p-12 xl:p-16 relative overflow-hidden shadow-xl border border-slate-950">
            <div className="absolute top-0 right-0 p-8 opacity-[0.03] pointer-events-none text-white">
              <LuClock className="w-56 h-56" />
            </div>

            <div className="max-w-2xl mb-12">
              <div className="flex items-center gap-2.5 text-cyan-400 mb-2">
                <LuShieldAlert className="w-4 h-4" />
                <span className="text-xs font-bold uppercase tracking-widest">Engineering Protection Stack</span>
              </div>
              <h3 className="text-2xl font-black uppercase tracking-wide">Advanced Control &amp; Monitoring Features</h3>
              <p className="text-slate-400 text-xs md:text-sm mt-2 leading-relaxed font-medium">
                The built-in Single Phasing Protection Relay (SPPR) and diagnostic instrumentation inside L&amp;T Controllers actively secure operations against critical electrical failures:
              </p>
            </div>

            <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 relative z-10">
              {systemFeatures.map((feat, idx) => (
                <div key={idx} className="bg-slate-800/40 border border-slate-700/30 rounded-xl p-5 flex flex-col justify-between space-y-3 hover:border-cyan-500/30 transition-colors duration-200">
                  <div className="space-y-1.5">
                    <span className="text-cyan-400 font-bold text-xs uppercase tracking-wide block">
                      {feat.title}
                    </span>
                    <p className="text-[11px] md:text-xs text-slate-300 leading-normal font-medium">
                      {feat.detail}
                    </p>
                  </div>
                </div>
              ))}
            </div>
          </div>

          {/* ─── GLOBAL PROCUREMENT CALL TO ACTION ─────────────────── */}

          <div className="flex justify-center">
            <Link href="/contact"
              className="inline-flex items-center gap-2 bg-cyan-500 hover:bg-cyan-600 text-white text-xs xl:text-sm font-bold px-10 py-4 rounded-full transition-all duration-200 active:scale-95 shadow-md shadow-cyan-500/10 w-full sm:w-auto justify-center uppercase tracking-wider"
            >
              Send Enquiry
              <FaArrowRight className="w-3.5 h-3.5" />
            </Link>
          </div>
        </div>
      </div>
    </>
  );
}