---
title: "Maintenance of Commercial Solar Water Heater Systems"
url: https://service.soletksolar.com/id/maintenance-of-commercial-solar-water-heater-systems/
author: "soletksolar"
date_published: 2026-01-13T06:04:49+00:00
date_modified: 2026-01-13T07:35:55+00:00
language: id
type: post
generator: LemonX AEO 1.4.12
---

# Maintenance of Commercial Solar Water Heater Systems

# Maintenance of Commercial Solar Water Heater Systems

Complete guide to commercial solar water heater maintenance covering inspection schedules, scaling prevention, corrosion control, freeze protection, and drainage procedures to maximize system performance and ROI.

Quick Navigation

## Introduction: The Critical Importance of Commercial Solar Water Heater Maintenance

Commercial solar water heater systems represent significant capital investments that generate ongoing returns through energy cost savings. For businesses relying on these systems to reduce operating expenses and meet sustainability goals, maintaining peak performance is essential to protecting that investment and ensuring uninterrupted revenue generation.

Unlike residential systems with modest hot water demands, [commercial solar water heater systems](https://www.soletksolar.com/solar-hot-water-system/) operate under demanding conditions—high daily usage volumes, extended operating hours, and critical uptime requirements. Regular inspections and proactive maintenance prevent costly breakdowns, extend system lifespan, and maintain the efficiency that justifies the initial investment.

**The Cost of Neglect:**

Neglected maintenance leads to progressive performance degradation. A commercial system operating at 60% efficiency due to scaling, corrosion, or component wear may still produce hot water, but it's consuming backup fuel unnecessarily and failing to deliver expected cost savings. In severe cases, deferred maintenance results in catastrophic failures requiring expensive emergency repairs or complete system replacement.

40%

Efficiency Loss

From neglected maintenance

50%

Lifespan Reduction

Without proper care

$10-25k

Repair Costs

Single freeze event

25-30 yrs

System Lifespan

With excellent maintenance

[Shandong Soletks Solar Technology Co., Ltd.](https://www.soletksolar.com/about-us/), with extensive experience in commercial solar thermal installations, has developed this comprehensive maintenance guide to help facility managers, building operators, and business owners protect their solar water heating investments and maximize long-term returns.

## Commercial Solar Water Heater Application Scenarios

Understanding the diverse applications of commercial solar water heaters helps contextualize maintenance requirements, as different environments present unique challenges and priorities.

### Diverse Commercial Applications

With rising traditional energy costs and increasing environmental concerns, commercial solar water heaters have found applications across numerous sectors:

### Residential Buildings

Apartment complexes, condominiums, student housing, senior living communities, affordable housing projects

### Hospitality & Tourism

Hotels and resorts, B&Bs, tourist attractions, campgrounds, spa and wellness centers

### Healthcare Facilities

Hospitals, nursing homes, outpatient clinics, rehabilitation centers, medical office buildings

### Educational Institutions

Universities, K-12 schools, boarding schools, training facilities, research laboratories

### Industrial & Manufacturing

Food processing, beverage production, textile manufacturing, chemical processing, parts washing

### Agricultural Operations

Dairy farms, greenhouses, aquaculture facilities, food processing, livestock operations

### Commercial & Retail

Fitness centers, restaurants, car washes, laundromats, beauty salons and spas

### Application-Specific Considerations

| Application Type | Primary Challenge | Maintenance Priority | Inspection Frequency |
| --- | --- | --- | --- |
| Hotels | High peak demands | Backup system reliability | Monthly |
| Healthcare | Water quality, Legionella | Temperature control, sanitization | Weekly |
| Food Service | Grease and contamination | Heat exchanger cleaning | Monthly |
| Industrial | Process requirements | Consistent temperature delivery | Weekly |
| Agriculture | Harsh environment | Corrosion protection | Monthly |
| Fitness Centers | Peak usage periods | Storage capacity, rapid recovery | Monthly |

### Energy Optimization Through Proper Design

**Reasonable design and configuration for different applications achieves comprehensive energy utilization and reduces operational costs:**

#### System Sizing Optimization

- Match collector area to actual demand patterns
- Size storage capacity for peak usage periods
- Configure backup heating for reliability without oversizing
- Design for seasonal demand variations

#### Integration Strategies

- Preheat incoming cold water to reduce backup heating load
- Cascade systems for different temperature requirements
- Heat recovery from wastewater where applicable
- Thermal storage to shift solar collection to usage periods

#### Cost Reduction Approaches

- Maximize solar fraction to minimize fuel consumption
- Optimize control strategies for efficiency
- Implement demand management during peak solar production
- Regular maintenance to sustain design performance

For large commercial installations, our [commercial solar hot water systems](https://www.soletksolar.com/solar-hot-water-system/solar-hot-water.html) are engineered specifically for demanding applications with comprehensive maintenance support.

## Essential Maintenance Requirements: Comprehensive Inspection Checklist

Systematic inspections identify potential problems before they cause system failures or performance degradation. The following checklist covers critical components requiring regular attention.

### Critical Inspection Points

1. Collector Shading Analysis

**Frequency:** Quarterly, plus after nearby construction
**Why:** Even partial shading dramatically reduces collector efficiency

2. Collector Surface Cleanliness

**Frequency:** Quarterly to monthly depending on environment
**Impact:** 25-40% efficiency loss from heavy soiling

3. Glass and Seal Inspection

**Frequency:** Semi-annually
**Check:** Vacuum integrity, cracks, seal deterioration

4. Piping System Inspection

**Frequency:** Quarterly
**Focus:** Leaks, corrosion, insulation condition

5. Support Structure Assessment

**Frequency:** Semi-annually
**Check:** Mounting hardware, structural integrity

6. Pressure Relief Valve Testing

**Frequency:** Annually minimum
**Critical:** Safety component preventing tank rupture

7. Circulation Pump Assessment

**Frequency:** Quarterly
**Monitor:** Sound, vibration, temperature, flow

8. Heat Transfer Fluid Analysis

**Frequency:** Annually for closed-loop systems
**Test:** Freeze protection, pH, reserve alkalinity

9. Storage Tank Inspection

**Frequency:** Annually
**Maintain:** Anode rod, sediment flushing, descaling

10. Dampers and Air Vents

**Frequency:** Quarterly
**Verify:** Proper operation, no blockages

### Collector Surface Cleanliness Impact

| Contamination Level | Efficiency Reduction | Annual Energy Loss | Revenue Impact |
| --- | --- | --- | --- |
| Light dust | 3-5% | Minimal | $100-300 |
| Moderate soiling | 10-18% | Moderate | $400-800 |
| Heavy dirt/debris | 25-40% | Significant | $1,000-2,000 |
| Bird droppings | 30-50% (localized) | High | $1,500-3,000 |

### Cleaning Procedure

#### Safe Collector Cleaning Steps

1. Schedule cleaning during cool morning or evening hours
2. Use soft brushes or cloths with mild detergent solution
3. Rinse thoroughly with clean water
4. Inspect tubes/glazing for damage during cleaning
5. Document pre- and post-cleaning temperatures to verify improvement

**Safety Considerations:**

- Use appropriate fall protection for roof access
- Avoid thermal shock by not cleaning hot collectors
- Use non-abrasive materials to prevent surface damage
- Follow manufacturer's cleaning recommendations

For evacuated tube systems, our [heat pipe solar collectors](https://www.soletksolar.com/solar-collector/heat-pipe-solar.html) allow individual tube replacement without system drainage if damage occurs during cleaning.

### Circulation Pump Performance Indicators

| Indicator | Normal Operation | Problem Indication |
| --- | --- | --- |
| Sound | Quiet hum | Grinding, squealing, or knocking |
| Vibration | Minimal | Excessive vibration |
| Temperature | Warm to touch | Very hot (overheating) |
| Flow | Strong, steady | Weak or intermittent |
| Power draw | Within rated range | Significantly high or low |

**Pump Lifespan:**

- Typical service life: 8-12 years
- High-quality pumps: 12-15 years
- Harsh conditions: 5-8 years
- Plan for replacement before failure to avoid emergency situations

For commercial installations requiring large storage capacity, our [solar hot water systems](https://www.soletksolar.com/solar-hot-water-system/) include high-quality storage tanks designed for long service life with minimal maintenance.

## Preventing Scale and Corrosion

Scale accumulation and corrosion represent the two most significant factors affecting the performance and longevity of properly installed commercial solar water heating systems.

### Understanding Scale Formation

**What is Scale?**

Scale consists of mineral deposits—primarily calcium carbonate, calcium sulfate, and magnesium compounds—that precipitate from water when heated. Hard water contains dissolved minerals that remain in solution at low temperatures but form solid deposits when water temperature increases.

#### Scale Formation Process

1. **Mineral dissolution:** Groundwater dissolves minerals from rock formations
2. **Heating:** Solar collectors heat water, reducing mineral solubility
3. **Precipitation:** Minerals form solid crystals on hot surfaces
4. **Accumulation:** Repeated cycles build thick scale layers
5. **Performance degradation:** Scale insulates surfaces, reducing heat transfer

#### Scale Impact on System Performance

| Scale Thickness | Heat Transfer Reduction | Efficiency Loss | Flow Restriction | Damage Risk |
| --- | --- | --- | --- | --- |
| 0.5 mm | 5-8% | Minimal | None | Low |
| 1-2 mm | 12-18% | Moderate | Slight | Moderate |
| 3-5 mm | 25-35% | Significant | Moderate | High |
| >5 mm | 40-60% | Severe | Severe | Very High |

**Economic Impact:**

A commercial system with 3mm scale buildup:

- Loses 25-35% efficiency
- Requires 30-50% more backup fuel
- Increases annual operating costs by $2,000-5,000 (typical 100-room hotel)
- Accelerates component wear and failure
- May require complete system replacement if unchecked

### Scale Prevention Strategies

#### Water Softening

| Type | Mechanism | Effectiveness | Maintenance | Cost |
| --- | --- | --- | --- | --- |
| Ion exchange | Replaces calcium/magnesium with sodium | Excellent | Salt addition, resin replacement | Moderate |
| Reverse osmosis | Membrane filtration | Excellent | Filter replacement | High |
| Electronic/magnetic | Alters mineral crystal structure | Variable | Minimal | Low-Moderate |
| Chemical treatment | Sequestering agents prevent precipitation | Good | Chemical addition | Low-Moderate |

#### Descaling Schedule

- **Soft water areas:** Every 5-7 years
- **Moderate hardness:** Every 3-5 years
- **Hard water areas:** Every 2-3 years
- **Very hard water:** Annually or implement water softening

#### Descaling Solutions

| Solution | Concentration | Contact Time | Effectiveness | Safety |
| --- | --- | --- | --- | --- |
| White vinegar (acetic acid) | 5-10% | 4-8 hours | Moderate | Very safe |
| Citric acid | 5-10% | 4-8 hours | Good | Safe |
| Commercial descaler | Per manufacturer | 2-6 hours | Excellent | Follow SDS |
| Phosphoric acid | 5-15% | 2-4 hours | Excellent | Requires PPE |

#### Descaling Procedure

1. **System preparation:** Isolate solar system from building plumbing
2. **Drainage:** Drain system to appropriate level
3. **Solution introduction:** Add descaling solution to system
4. **Circulation:** Circulate solution through collectors and heat exchangers
5. **Dwell time:** Allow adequate contact time per solution specifications
6. **Drainage:** Completely drain descaling solution
7. **Flushing:** Thoroughly flush system with clean water (multiple rinses)
8. **Neutralization:** Verify all acid removed before returning to service
9. **Refill:** Refill system and purge air
10. **Testing:** Verify proper operation and no leaks

### Understanding and Preventing Corrosion

#### Galvanic Series (Most to Least Noble)

| Metal | Corrosion Tendency | Common Applications |
| --- | --- | --- |
| Graphite | Very low (cathodic) | Gaskets, seals |
| Stainless steel (passive) | Very low | Tanks, fittings, fasteners |
| Bronze/Brass | Low | Valves, fittings |
| Copper | Low | Piping, heat exchangers |
| Aluminum | Moderate | Collector frames, mounting |
| Carbon steel | High | Structural supports |
| Zinc | Very high (anodic) | Galvanizing, sacrificial anodes |
| Magnesium | Extremely high | Sacrificial anodes |

#### Recommended Material Combinations

**For corrosion-resistant systems, use compatible materials:**

- **Piping:** Copper throughout system
- **Fittings:** Bronze or brass (compatible with copper)
- **Valves:** Bronze or brass bodies
- **Heat exchangers:** Copper, stainless steel, or titanium
- **Storage tanks:** Stainless steel or glass-lined steel
- **Mounting hardware:** Stainless steel fasteners
- **Gaskets:** EPDM rubber or silicone (non-metallic)

#### Sacrificial Anode Protection

| Anode Material | Application | Lifespan | Replacement Indicator |
| --- | --- | --- | --- |
| Magnesium | Standard protection | 3-5 years | >75% consumed |
| Aluminum | Hard water areas | 4-6 years | >75% consumed |
| Zinc | Sulfur odor problems | 3-5 years | >75% consumed |
| Powered titanium | Extended protection | 10+ years | Electronic monitoring |

#### Water Chemistry Management

| Parameter | Optimal Range | Corrosion Risk if Outside Range |
| --- | --- | --- |
| pH | 7.0-8.5 | Low pH: acidic corrosion; High pH: alkaline corrosion |
| Total dissolved solids | <500 ppm | high tds increases conductivity and corrosion rate |
| chloride content <250 chlorides accelerate pitting dissolved oxygen <2 enables reactions sulfates promote |

our [commercial solar water heater systems](https:>10 minutes | Inadequate vent sizing | Install larger vents |
| Incomplete drainage | Water remains in collectors | Improper slope, low points | Re-pipe to eliminate traps |
| Vacuum formation | Collectors don't drain | Vent frozen or clogged | Insulate vents, install larger vents |
| Controller malfunction | Pump doesn't stop | Sensor failure, controller defect | Replace faulty component |

### Glycol System Freeze Protection

Closed-loop systems using propylene glycol antifreeze solution provide reliable freeze protection without dependence on drainage.

#### Glycol Concentration Requirements

| Climate Zone | Minimum Temperature | Required Glycol Concentration | Freeze Protection |
| --- | --- | --- | --- |
| Mild (Zone 8-10) | -5°C to 0°C | 20-30% | -12°C to -18°C |
| Moderate (Zone 6-7) | -10°C to -5°C | 30-40% | -18°C to -26°C |
| Cold (Zone 4-5) | -20°C to -10°C | 40-50% | -26°C to -37°C |
| Extreme (Zone 1-3) | Below -30°C | 50-60% | -37°C to -51°C |

**Important:** Always size glycol concentration for lowest expected temperature plus safety margin of at least 10°C.

#### Annual Glycol Testing

| Test | Acceptable | Marginal | Unacceptable |
| --- | --- | --- | --- |
| Freeze protection | Adequate for climate + 10°C margin | Adequate for climate | Insufficient for climate |
| pH | 7.5-9.0 | 7.0-7.5 or 9.0-9.5 | <7.0 or >9.5 |
| Reserve alkalinity | >50% of new fluid | 30-50% of new fluid | <30% of new fluid |
| Appearance | Clear, no particles | Slight discoloration | Dark, cloudy, particles |

#### Glycol Selection

| Characteristic | Propylene Glycol | Ethylene Glycol |
| --- | --- | --- |
| Toxicity | Non-toxic (food grade available) | Toxic (poisonous) |
| Application | Required for potable water systems | Industrial applications only |
| Freeze protection | Excellent | Excellent |
| Heat transfer | Good | Slightly better |
| Cost | Moderate | Lower |
| Corrosion inhibitors | Included | Included |

**Critical:** Always use propylene glycol in systems connected to potable water. Ethylene glycol is toxic and must never be used where contamination of drinking water is possible.

For commercial installations in cold climates, our [solar hot water systems designed for freezing conditions](https://www.soletksolar.com/solar-hot-water-system/solar-hot-water-1.html) incorporate comprehensive freeze protection strategies.

## Drainage Procedures and Precautions

Proper drainage procedures are essential for drainback system operation and for servicing any solar water heating system.

### Drainback System Drainage Considerations

#### Automatic Drainage Requirements

**For drainback systems to provide reliable freeze protection, complete automatic drainage must occur every time the system shuts down.**

#### Drainage Verification Methods

### Visual Confirmation

Observe collectors during drainage cycle. Verify water flows from collectors back to reservoir. Confirm no water remains visible in tubes or pipes.

### Audible Confirmation

Listen for water flow sound during drainage. Hear air entering through vents. Silence indicates drainage complete.

### Sensor Confirmation

Collector temperature drops rapidly when drained (no water thermal mass). Temperature approaches ambient quickly.

### Manual Drainage Procedures

Manual drainage is required for system maintenance, repairs, or winterization.

#### When Manual Drainage Needed

- System winterization (seasonal shutdown)
- Component replacement or repair
- System flushing and cleaning
- Freeze protection if automatic system fails
- Extended shutdown periods

#### Manual Drainage Procedure

**Preparation:**

1. Shut down system: Turn off pumps, controllers, and backup heating
2. Cool down: Allow collectors to cool (drain in morning or evening)
3. Isolate system: Close isolation valves to separate from building plumbing
4. Prepare drainage: Have buckets, hoses, and cleanup materials ready
5. Safety: Wear appropriate PPE, especially if draining glycol solutions

**Drainage Steps:**

1. Open high-point vents: Release air to prevent vacuum formation
2. Open drain valves: Start with lowest points in system
3. Collector drainage: Open collector drain valves
4. Storage tank drainage: Drain storage tank if required
5. Pump drainage: Remove pump drain plugs
6. Heat exchanger drainage: Drain heat exchanger
7. Complete drainage: Verify all components empty

#### Glycol Recovery

**Environmental Responsibility:**

- Never discharge glycol to storm drains or environment
- Collect in appropriate containers
- Recycle or dispose properly per local regulations
- Consider glycol recovery and recycling services

### Winterization for Seasonal Systems

#### Winterization Decision Factors

| Factor | Continue Operation | Winterize |
| --- | --- | --- |
| Freeze protection reliability | Excellent | Questionable |
| Winter hot water demand | Significant | Minimal |
| Maintenance resources | Available | Limited |
| System age/condition | Good | Poor |
| Economic analysis | Favorable | Unfavorable |

#### Complete Winterization Procedure

**Pre-Winter Preparation:**

1. Schedule timing: Winterize before first freeze
2. Notify users: Inform building occupants of shutdown
3. Backup heating: Ensure conventional water heater operational
4. Gather materials: Antifreeze, tools, containers

**Drainage:**

1. Complete drainage: Remove all water from system
2. Blow out lines: Use compressed air to remove residual water
3. Verify empty: Ensure no water remains anywhere in system

**Antifreeze Protection:**

1. Collector headers: Pour small amount of RV antifreeze into collectors
2. Traps: Add antifreeze to any traps or low points
3. Pumps: Add antifreeze to pump housing
4. Heat exchangers: Circulate antifreeze through heat exchanger

**Use RV/Marine Antifreeze:**

- Non-toxic propylene glycol
- Safe for potable water systems
- Biodegradable
- Available at hardware stores

**Never use automotive antifreeze** (toxic ethylene glycol).

#### Spring Startup Procedure

1. **Pre-Startup Inspection:** Check for winter damage, remove covers, verify connections
2. **Flushing:** Thoroughly flush all antifreeze from system with multiple rinses
3. **Refilling:** Close drain valves, fill slowly, purge air, check for leaks
4. **Functional Testing:** Test sensors, verify controller settings, test pumps, monitor performance

## Cost-Benefit Analysis of Maintenance vs. Replacement

Sometimes replacement is more cost-effective than extensive repairs.

### Repair vs. Replace Decision Matrix

| System Age | Condition | Repair Cost | Decision |
| --- | --- | --- | --- |
| <5 years | good any repair (warranty may cover) |
| 5-10 <30% replacement cost>30% replacement cost | Consider replacement |
| 10-15 years | Fair | <50% replacement cost | Repair |
| 10-15 years | Fair | >50% replacement cost | Replace |
| >15 years | Poor | >30% replacement cost | Replace |
| >20 years | Any | Any significant repair | Replace |

### Factors Favoring Replacement vs. Repair

### Factors Favoring Replacement

Multiple component failures, obsolete technology (parts unavailable), poor original design, repeated freeze damage, severe corrosion, new technology advantages, building renovation opportunity

### Factors Favoring Repair

Recent installation (within warranty), isolated component failure, otherwise good condition, high-quality original equipment, adequate original design, modest repair costs, no budget for replacement

### Lifecycle Cost Comparison Example

**15-Year-Old System Requiring Major Repair**

**Repair Option:**

- Repair cost: $5,000
- Expected additional life: 5-8 years
- Annual maintenance: $500
- Operating efficiency: 70% (degraded)
- Total 5-year cost: $5,000 + ($500 × 5) = $7,500
- Energy waste due to reduced efficiency: $1,500
- **Total cost: $9,000**

**Replacement Option:**

- New system cost: $15,000
- Expected life: 20-25 years
- Annual maintenance: $400
- Operating efficiency: 95%
- Total 5-year cost: $15,000 + ($400 × 5) = $17,000
- Energy savings from higher efficiency: $1,500
- **Net 5-year cost: $15,500**
- **But: 15+ additional years of service**

Analysis: While repair appears cheaper short-term, replacement provides better long-term value with modern, efficient equipment and full service life ahead.

### Professional Assessment

For major repair decisions, obtain professional evaluation:

- Comprehensive system inspection
- Detailed cost estimate for repairs
- Assessment of remaining useful life
- Comparison with replacement options
- Recommendation based on lifecycle cost analysis

## Conclusion: Protecting Your Commercial Solar Investment

Commercial solar water heater systems represent significant investments that deliver substantial returns through energy cost savings, environmental benefits, and enhanced property value. Protecting that investment through systematic maintenance ensures optimal performance, extends system lifespan, and maximizes financial returns.

### Key Maintenance Principles

### 1. Prevention Over Reaction

Proactive maintenance prevents costly failures

### 2. Systematic Approach

Follow comprehensive inspection checklists

### 3. Documentation

Maintain detailed maintenance records

### 4. Professional Support

Engage qualified technicians for complex tasks

### 5. Lifecycle Perspective

Consider long-term costs, not just immediate expenses

### Economic Benefits of Proper Maintenance

| Maintenance Level | System Efficiency | Annual Operating Cost | System Lifespan | Lifecycle Cost |
| --- | --- | --- | --- | --- |
| Excellent | 90-95% | Baseline | 25-30 years | Lowest |
| Good | 80-90% | +15% | 20-25 years | Low |
| Fair | 70-80% | +30% | 15-20 years | Moderate |
| Poor | 50-70% | +60% | 10-15 years | High |
| Neglected | 30-50% | +100%+ | 5-10 years | Highest |

### Professional Maintenance Services

**For commercial systems, professional maintenance services offer significant advantages:**

- **Expertise:** Trained technicians identify problems early
- **Equipment:** Specialized tools for testing and service
- **Efficiency:** Faster service with less disruption
- **Warranty:** Service warranties protect against errors
- **Documentation:** Professional reports for records
- **Compliance:** Ensures regulatory compliance

### Your Maintenance Partner

[Shandong Soletks Solar Technology Co., Ltd.](https://www.soletksolar.com/about-us/) supports commercial solar water heater installations with:

- [High-quality commercial systems](https://www.soletksolar.com/solar-hot-water-system/) designed for reliability and easy maintenance
- [Evacuated tube collectors](https://www.soletksolar.com/evacuated-tube-solar/) with individual tube replacement capability
- [Heat pipe technology](https://www.soletksolar.com/solar-collector/heat-pipe-solar.html) for freeze-resistant operation
- [Engineering solutions](https://www.soletksolar.com/evacuated-tube-solar/25-engineering.html) for large commercial installations
- Technical support and maintenance guidance
- Replacement parts availability

### Take Action Today

**Don't wait for system failure to address maintenance needs:**

1. **Assess current condition:** Conduct comprehensive system inspection
2. **Develop maintenance plan:** Create schedule based on system requirements
3. **Address deferred maintenance:** Correct identified problems promptly
4. **Implement preventive program:** Establish regular maintenance routine
5. **Monitor performance:** Track efficiency to detect degradation early

### Protect Your Commercial Solar Investment

Contact us for maintenance guidance, technical support, or replacement parts for your commercial solar water heating system. Our experienced team can help you develop a maintenance program tailored to your specific system and application.

[Get Expert Maintenance Support](https://www.soletksolar.com/contact-us/)

**Invest in maintenance—protect your solar investment and maximize your returns.**

function activateNavByScroll() { let current = ''; sections.forEach(section => { const sectionTop = section.offsetTop; if (window.pageYOffset >= sectionTop - 150) { current = section.getAttribute('id'); } });

tocLinks.forEach(link => { link.classList.remove('active'); if (link.getAttribute('href') === `#${current}`) { link.classList.add('active'); } }); }

window.addEventListener('scroll', activateNavByScroll);

// Smooth Scrolling tocLinks.forEach(link => { link.addEventListener('click', function(e) { e.preventDefault(); const targetId = this.getAttribute('href'); const targetSection = document.querySelector(targetId); if (targetSection) { window.scrollTo({ top: targetSection.offsetTop - 100, behavior: 'smooth' }); } }); });

// Lazy Loading for Images if ('IntersectionObserver' in window) { const imageObserver = new IntersectionObserver((entries, observer) => { entries.forEach(entry => { if (entry.isIntersecting) { const img = entry.target; if (img.dataset.src) { img.src = img.dataset.src; img.removeAttribute('data-src'); } observer.unobserve(img); } }); });

document.querySelectorAll('.commercial-maintenance-section img[data-src]').forEach(img => { imageObserver.observe(img); }); }

// Add reading progress indicator const progressBar = document.createElement('div'); progressBar.style.cssText = 'position: fixed; top: 0; left: 0; width: 0%; height: 4px; background: linear-gradient(90deg, #ea580c, #fb923c); z-index: 9999; transition: width 0.3s ease;'; document.body.appendChild(progressBar);

window.addEventListener('scroll', function() { const windowHeight = window.innerHeight; const documentHeight = document.documentElement.scrollHeight - windowHeight; const scrolled = (window.pageYOffset / documentHeight) * 100; progressBar.style.width = scrolled + '%'; });

// Animate cards on scroll const cards = document.querySelectorAll('.commercial-maintenance-section .info-card, .commercial-maintenance-section .stat-card'); const cardsObserver = new IntersectionObserver((entries) => { entries.forEach(entry => { if (entry.isIntersecting) { entry.target.style.opacity = '0'; entry.target.style.transform = 'translateY(20px)'; setTimeout(() => { entry.target.style.transition = 'all 0.6s ease'; entry.target.style.opacity = '1'; entry.target.style.transform = 'translateY(0)'; }, 100); cardsObserver.unobserve(entry.target); } }); }, { threshold: 0.1 });

cards.forEach(card => cardsObserver.observe(card));

// Highlight tables on hover const tables = document.querySelectorAll('.commercial-maintenance-section .comparison-table'); tables.forEach(table => { const rows = table.querySelectorAll('tbody tr'); rows.forEach(row => { row.addEventListener('mouseenter', function() { this.style.transform = 'scale(1.01)'; this.style.transition = 'transform 0.2s ease'; }); row.addEventListener('mouseleave', function() { this.style.transform = 'scale(1)'; }); }); }); });