"""Company content and service catalogue for Sphereflux Limited."""

COMPANY = {
    'name': 'Sphereflux Limited',
    'short_name': 'Sphereflux',
    'tagline': 'Where Momentum Meets Vision',
    'motto': 'Safe. Smart. Sustainable.',
    'motto_line': 'Powering today, automating tomorrow.',
    'location': 'Nairobi, Kenya',
    'phones': ['0718679683', '0753797381'],
    'whatsapp': '254718679683',
    'email': 'spherefluxltd@gmail.com',
    'website': 'www.sphereflux.co.ke',
    'nav_words': ['Innovate', 'Automate', 'Electrify', 'Secure', 'Sustain'],
    'intro': (
        'Sphereflux Limited is a leading provider of Electrical, Automation '
        'and Refrigeration solutions in Nairobi, Kenya and beyond. We deliver '
        'innovative, reliable and cost-effective solutions for residential, '
        'commercial and industrial needs.'
    ),
}

WHY_US = [
    'Experienced & qualified technicians',
    'Quality products & workmanship',
    'Timely delivery',
    'Affordable & reliable services',
    'Customer satisfaction guaranteed',
]

# Industrial Automation is listed first — flagship service.
SERVICES = [
    {
        'slug': 'industrial-automation',
        'title': 'Industrial Automation',
        'featured': True,
        'tagline': 'Engineering Intelligence. Automating Excellence.',
        'short': (
            'We architect the nervous system of modern industry — transforming '
            'operational potential into precision-engineered productivity.'
        ),
        'intro': (
            "At SphereFlux Limited, we don't just install systems — we architect "
            'the nervous system of modern industry. Our industrial automation '
            'solutions transform raw operational potential into precision-engineered '
            'productivity, helping manufacturers, processing plants, and industrial '
            'facilities operate smarter, safer, and more sustainably.'
        ),
        'icon': 'automation',
        'image': 'images/services/automation.jpg',
        'items': [
            'Process control & optimization (DCS / SCADA)',
            'PLC integration (Siemens, Allen-Bradley, Schneider, Mitsubishi)',
            'HMI development',
            'Industrial networking & IIoT connectivity',
            'System migration & legacy modernization',
            'Safety instrumented systems',
        ],
        'capabilities': [
            {
                'title': 'Process Control & Optimization',
                'image': 'images/automation/scada-dcs.png',
                'body': (
                    'We design, deploy, and maintain advanced Distributed Control '
                    'Systems (DCS) and Supervisory Control and Data Acquisition '
                    '(SCADA) architectures that give you total visibility and '
                    'command over your operations. From PID loop tuning to '
                    'multi-variable predictive control, we ensure your processes '
                    'run at peak efficiency with minimal deviation.'
                ),
            },
            {
                'title': 'Programmable Logic Controller (PLC) Integration',
                'image': 'images/automation/plc-programming.png',
                'body': (
                    'Our engineers and technicians specialize in PLC programming '
                    'and integration across all major platforms — including '
                    'Siemens, Allen-Bradley, Schneider Electric, and Mitsubishi. '
                    'Whether you are upgrading legacy relay logic or building a '
                    'greenfield facility, we deliver robust ladder logic, '
                    'structured text, and function block solutions tailored to '
                    'your operational logic.'
                ),
            },
            {
                'title': 'Human-Machine Interface (HMI) Development',
                'image': 'images/automation/hmi-screens.png',
                'body': (
                    'We create intuitive, responsive HMI screens that empower '
                    'your operators with real-time data, alarm management, and '
                    'diagnostic tools. Our interfaces are designed with usability '
                    'and safety in mind — reducing human error and accelerating '
                    'response times.'
                ),
            },
            {
                'title': 'Industrial Networking & IIoT Connectivity',
                'image': 'images/automation/iiot-networking.png',
                'body': (
                    'We build secure, high-availability industrial networks using '
                    'Ethernet/IP, Profinet, Profibus, and Modbus TCP protocols. '
                    'Our IIoT implementations connect edge devices to cloud and '
                    'on-premise platforms, enabling real-time analytics and '
                    'remote monitoring without compromising cybersecurity.'
                ),
            },
            {
                'title': 'System Migration & Legacy Modernization',
                'image': 'images/automation/legacy-migration.png',
                'body': (
                    'Stuck with obsolete PLCs or unsupported SCADA platforms? We '
                    'manage full lifecycle migrations — assessing legacy assets, '
                    'designing modern replacements, and executing seamless '
                    'cutovers that minimize downtime and preserve your '
                    'operational intellectual property.'
                ),
            },
            {
                'title': 'Safety Instrumented Systems',
                'image': 'images/automation/safety-systems.png',
                'body': (
                    'Compliance and safety are non-negotiable. We design and '
                    'validate Safety Instrumented Functions, ensuring your '
                    'emergency shutdown systems protect people, plant, and '
                    'production.'
                ),
            },
        ],
        'vision_title': 'Our Vision: The Next Era of Industrial Automation',
        'vision_intro': (
            'SphereFlux Limited is actively investing in the technologies and '
            'capabilities that will define the future of industry.'
        ),
        'vision_items': [
            {
                'title': 'Digital Twin Technology',
                'image': 'images/automation/digital-twin.png',
                'body': (
                    'We aspire to deliver full-fidelity digital twin environments '
                    'for your physical assets. These virtual replicas will enable '
                    'scenario simulation, operator training, and process '
                    'optimization in a risk-free digital space before any '
                    'physical changes are made on the plant floor.'
                ),
            },
        ],
        'why_title': 'Why SphereFlux?',
        'why_items': [
            (
                'End-to-end ownership: From concept and design to commissioning '
                'and after-sales support, we manage the entire automation lifecycle.'
            ),
            (
                'Platform agnostic: We recommend and implement the right '
                'technology for your needs — not just the brands we prefer.'
            ),
            (
                'Industry versatility: Our expertise spans food & beverage, '
                'water treatment, and discrete manufacturing.'
            ),
            (
                'Future-ready: Every solution we deploy today is architected '
                'with scalability.'
            ),
        ],
        'cta_title': "Let's Automate Your Future",
        'cta_body': (
            'Whether you are looking to optimize a single line or transform an '
            'entire facility, SphereFlux Limited has the expertise, vision, and '
            'commitment to deliver.'
        ),
    },
    {
        'slug': 'electrical-solar',
        'title': 'Electrical & Solar Solutions',
        'short': 'Clean power and dependable wiring for homes, offices and industry.',
        'icon': 'solar',
        'image': 'images/services/electrical-solar.jpg',
        'items': [
            'Solar installation (on-grid & off-grid)',
            'General wiring in residential & commercial',
            'Electrical panel design & installation',
            'Lighting solutions',
        ],
    },
    {
        'slug': 'security-protection',
        'title': 'Security & Protection Systems',
        'short': 'Perimeter, CCTV and access control that keep people and property safe.',
        'icon': 'security',
        'image': 'images/services/security.jpg',
        'items': [
            'Electric fence installation',
            'Razor wire installation',
            'Security CCTV installation',
            'Access control solutions',
        ],
    },
    {
        'slug': 'power-backup',
        'title': 'Power Backup Solutions',
        'short': 'Keep operations running when the grid goes down.',
        'icon': 'power',
        'image': 'images/services/power-backup.jpg',
        'items': [
            'Generator installation',
            'Generator servicing & maintenance',
            'Power backup systems',
        ],
    },
    {
        'slug': 'refrigeration',
        'title': 'Refrigeration Solutions',
        'short': 'Cooling systems that stay efficient and reliable year-round.',
        'icon': 'cooling',
        'image': 'images/services/refrigeration.jpg',
        'items': [
            'AC installation & servicing',
            'Compressor installation & servicing',
            'Cold room repair & maintenance',
        ],
    },
    {
        'slug': 'general-electrical',
        'title': 'General Electrical Works',
        'short': 'Fault finding, maintenance and installs across every building type.',
        'icon': 'wrench',
        'image': 'images/services/general-electrical.jpg',
        'items': [
            'Fault diagnosis & repairs',
            'Preventive maintenance',
            'Electrical installations for homes, offices, shops & industries',
        ],
    },
]


def get_service(slug):
    for service in SERVICES:
        if service['slug'] == slug:
            return service
    return None


def get_featured_service():
    for service in SERVICES:
        if service.get('featured'):
            return service
    return get_service('industrial-automation')
