import React, { useState, useEffect } from 'react'; import { Phone, Zap, Facebook, Instagram, Droplet, ChevronDown, ChevronRight, Mail, ArrowLeft, Headphones, Clock, Shield, Star, MapPin, CheckCircle, Menu, X, AlertTriangle } from 'lucide-react'; const services = { 'general-plumbing': { title: 'General Plumbing', desc: 'Comprehensive residential plumbing solutions for every room in your home. We handle everything from leaky faucets and running toilets to complete pipe replacements and water pressure diagnostics. Our Master Plumbers ensure your home\'s water system operates safely and efficiently.', img: 'https://images.unsplash.com/photo-1607472586893-edb57cb31311?auto=format&fit=crop&q=80&w=1000' }, 'macerator-pump-install': { title: 'Macerator Pump Install', desc: 'Expert installation and maintenance of upflush pump systems like Saniflo. Perfect for adding a new bathroom, laundry room, or kitchen in your basement without the need for expensive structural concrete trenching. We handle the complex plumbing so you don\'t have to.', img: 'https://images.unsplash.com/photo-1585704032915-c3400ca199e7?auto=format&fit=crop&q=80&w=1000' }, 'drain-cleaning-cornwall': { title: 'Professional Drain Cleaning', desc: 'Clearing stubborn blockages in kitchen sinks, bathtubs, and main sewer lines quickly and safely. We use advanced augers and hydro-jetting technology to remove grease, hair, and mineral buildup, restoring your pipes to full flowing capacity without damaging them.', img: 'https://images.unsplash.com/photo-1542013936693-884638332954?auto=format&fit=crop&q=80&w=1000' }, 'water-heater-installation-cornwall': { title: 'Water Heater Install', desc: 'Professional installation, repair, and maintenance of traditional tanked and modern tankless water heaters. We optimize your system for maximum energy efficiency and ensure you never run out of hot water during those brutally cold Cornwall winters.', img: 'https://images.unsplash.com/photo-1584622781564-1d987f7333c1?auto=format&fit=crop&q=80&w=1000' }, 'sewer-line-repair-cornwall': { title: 'Sewer Line Repair', desc: 'Repairing main sewer line collapses, tree root intrusions, and severe blockages with minimal disruption to your property. We offer comprehensive camera inspections to pinpoint the exact location of the issue before recommending a trenchless or traditional repair.', img: 'https://images.unsplash.com/photo-1504148455328-c376907d081c?auto=format&fit=crop&q=80&w=1000' }, 'toilet-repair-cornwall': { title: 'Toilet Repair & Install', desc: 'Fast fixing of continuous leaks, phantom flushes, or installation of brand new, high-efficiency smart toilets. We make sure your bathroom fixtures are properly seated, sealed, and functioning to save you money on your water bill and prevent water damage.', img: 'https://images.unsplash.com/photo-1620627747869-7033f679796e?auto=format&fit=crop&q=80&w=1000' }, 'bathroom-kitchen-plumbing': { title: 'Bathroom & Kitchen', desc: 'Professional faucet swaps, modern sink installs, and shower valve repairs. Upgrade the look and feel of your most-used rooms with our precision fixture installation services. We guarantee leak-free connections and flawless aesthetic finishes for your remodels.', img: 'https://images.unsplash.com/photo-1556911220-e15b29be8c8f?auto=format&fit=crop&q=80&w=1000' }, 'water-softener-installation': { title: 'Water Softener', desc: 'Protect your home\'s plumbing infrastructure, appliances, and your skin from hard water damage with advanced water softening and filtration systems. We test your water quality and install the perfect unit to ensure pristine, mineral-free water flows from every tap.', img: 'https://images.unsplash.com/photo-1621905251189-08b45d6a269e?auto=format&fit=crop&q=80&w=1000' } }; const serviceAreas = { 'area-cornwall': { title: 'Plumbing Services in Cornwall', desc: 'Proudly serving the heart of Cornwall with 24/7 emergency response, general repairs, and advanced installations. Our local master plumbers know Cornwall homes inside and out, providing fast, reliable, and upfront services to our community.', img: 'https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&q=80&w=1000' }, 'area-south-glengarry': { title: 'Plumbing in South Glengarry', desc: 'Reliable residential plumbing for South Glengarry. From well-pump maintenance and water heater installations to fast leak repairs, we are your trusted local professionals dedicated to keeping your home\'s plumbing flowing perfectly.', img: 'https://images.unsplash.com/photo-1449844908441-8829872d2607?auto=format&fit=crop&q=80&w=1000' }, 'area-south-stormont': { title: 'Plumbing in South Stormont', desc: 'Expert plumbing solutions for South Stormont residents. We specialize in water softening systems, complete bathroom renovations, and urgent emergency repairs. Count on SABS Plumbing for 5-star service every time.', img: 'https://images.unsplash.com/photo-1513694203232-719a280e022f?auto=format&fit=crop&q=80&w=1000' }, 'area-south-dundas': { title: 'Plumbing in South Dundas', desc: 'Fast, upfront, and guaranteed plumbing services in South Dundas. Whether it is clearing a severely clogged drain or installing a new macerator pump for a basement suite, our certified experts are just a call away.', img: 'https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&q=80&w=1000' } }; const faqs = [ { q: "How quickly can you respond to plumbing emergencies in Cornwall?", a: "We offer 24/7 emergency plumbing services in Cornwall and surrounding areas. In most cases, we aim to respond as quickly as possible to minimize water damage and restore safety to your home." }, { q: "Are you a licensed and insured plumber in Ontario?", a: "Yes. Our plumbing services are fully licensed and insured in Ontario. All work is performed according to provincial plumbing codes and safety standards." }, { q: "What areas do you serve besides Cornwall?", a: "We proudly serve Cornwall, South Glengarry, South Stormont, South Dundas, Long Sault, Lancaster, Ingleside, and surrounding SD&G Counties." }, { q: "Do you provide free plumbing estimates?", a: "Yes. We provide transparent, upfront estimates before starting any work. There are no hidden fees, and we only begin once you approve the quote." }, { q: "What counts as a plumbing emergency?", a: "Common plumbing emergencies include burst pipes, severe water leaks, sewer backups, overflowing toilets, flooding, or no hot water during winter. If you're unsure, call us immediately for guidance." }, { q: "Do you offer same-day plumbing service in Cornwall?", a: "Yes, same-day service is available for many plumbing repairs, depending on scheduling and urgency." }, { q: "How do I know if I need professional drain cleaning?", a: "If you notice slow drains, recurring clogs, bad odors, gurgling sounds, or water backing up, it’s time to schedule professional drain cleaning services." }, { q: "How long does water heater installation take?", a: "Most water heater installations in Cornwall take between 2–4 hours, depending on the type (tank or tankless) and plumbing configuration." }, { q: "Do you install tankless water heaters?", a: "Yes. We install both traditional tank water heaters and energy-efficient tankless water heater systems." }, { q: "What should I do if a pipe bursts?", a: "Immediately shut off your main water valve, turn off electrical power if necessary, and call our emergency plumber in Cornwall right away." }, { q: "Do you offer warranties on plumbing work?", a: "Yes. We stand behind our workmanship and provide warranties on parts and labor depending on the service performed." }, { q: "How can I prevent frozen pipes during Cornwall winters?", a: "To prevent frozen pipes: Insulate exposed pipes, keep cabinets open under sinks, let faucets drip during extreme cold, and maintain indoor heating." }, { q: "What is a macerator or upflush pump system?", a: "A macerator (also called an upflush pump) is a plumbing system that allows you to install a bathroom or toilet below the main sewer line without breaking concrete. It grinds waste into a slurry and pumps it upward into the main drain system." }, { q: "Do you install macerator or upflush toilet systems in Cornwall?", a: "Yes. We install and service macerator and upflush pump systems for basements, in-law suites, and renovation projects throughout Cornwall and surrounding areas." }, { q: "How do I know if my macerator pump needs repair?", a: "Common signs include loud or unusual noises, slow flushing, bad odors, frequent clogging, or the pump running continuously. If you notice these issues, contact a licensed plumber in Cornwall for inspection." } ]; const testimonials = [ { name: "Sarah Jenkins", area: "Cornwall", text: "Fast, reliable, and very clean. They fixed our burst pipe in no time!", rating: 5 }, { name: "Mark T.", area: "South Glengarry", text: "Upfront pricing was a breath of fresh air. No hidden fees. Highly recommend SABS Plumbing.", rating: 5 }, { name: "Emily R.", area: "South Stormont", text: "Installed our new macerator pump flawlessly. Great team of professionals and very polite.", rating: 5 }, { name: "David L.", area: "Cornwall", text: "Called them at 2 AM for an emergency. They were here in 20 mins. Absolute lifesavers!", rating: 5 }, { name: "Jessica M.", area: "South Dundas", text: "Very polite and knowledgeable. Explained the issue with my water heater clearly before fixing it.", rating: 5 }, { name: "Brian C.", area: "Cornwall", text: "Top-notch service from start to finish. They left the workspace cleaner than they found it.", rating: 5 }, { name: "Amanda W.", area: "Cornwall", text: "The only plumbers I trust with my heritage home. Extremely careful, skilled, and fairly priced.", rating: 5 }, { name: "Tom H.", area: "South Glengarry", text: "Excellent drain cleaning service. They got the job done fast and we haven't had an issue since.", rating: 5 } ]; export default function App() { const [currentPage, setCurrentPage] = useState('home'); const [openFaq, setOpenFaq] = useState(null); const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false); const [mobileServicesOpen, setMobileServicesOpen] = useState(false); const [mobileAreasOpen, setMobileAreasOpen] = useState(false); useEffect(() => { const handleHashChange = () => { const hash = window.location.hash.substring(1); if (hash) { setCurrentPage(hash); } }; window.addEventListener('hashchange', handleHashChange); handleHashChange(); // initial load return () => window.removeEventListener('hashchange', handleHashChange); }, []); const navigateTo = (pageId) => { window.location.hash = pageId; setCurrentPage(pageId); setIsMobileMenuOpen(false); window.scrollTo({ top: 0, behavior: 'smooth' }); }; const navigateAndScroll = (page, sectionId) => { setIsMobileMenuOpen(false); if (currentPage !== page) { navigateTo(page); setTimeout(() => { const el = document.getElementById(sectionId); if (el) window.scrollTo({ top: el.offsetTop - 130, behavior: 'smooth' }); }, 100); } else { const el = document.getElementById(sectionId); if (el) window.scrollTo({ top: el.offsetTop - 130, behavior: 'smooth' }); } }; const toggleFaq = (idx) => { setOpenFaq(openFaq === idx ? null : idx); }; return (
{/* HEADER */}
{/* Mobile-Responsive Dark Top Bar */}
(613) 555-0123 info@sabsplumbing.ca 24/7 Emergency Plumbing
{/* Main Navigation Row */}
{/* Logo */}
navigateTo('home')} className="py-4 cursor-pointer flex items-center gap-4">

SABS PLUMBING

Residential Experts
{/* Mobile Hamburger Button */} {/* Desktop Nav Links */}
{/* Mobile Menu Dropdown Panel */}
{/* Mobile Services Accordion */}
{mobileServicesOpen && (
{Object.entries(services).map(([key, service]) => ( ))}
)}
{/* Mobile Service Areas Accordion */}
{mobileAreasOpen && (
{Object.entries(serviceAreas).map(([key, area]) => ( ))}
)}
{/* HOME PAGE */} {currentPage === 'home' && (
{/* HERO SECTION */}
{/* Emergency Badge */}
24/7 Emergency Plumber Available
{/* Main Headline */}

Expert Plumbing
When You Need It
Most.

{/* Subheadline */}

From leaky faucets to complete pipe replacements, our licensed professionals deliver fast, reliable, and guaranteed plumbing solutions.

{/* CTA Buttons */}
navigateTo('contact')} className="bg-[#5a6cfd] hover:bg-blue-600 text-white px-8 py-4 rounded-xl font-bold text-lg text-center transition shadow-lg shadow-blue-600/30 cursor-pointer flex items-center justify-center"> Get a Free Quote
Call (800) 555-FLOW
{/* TRUST BANNER */}

Licensed & Insured

Peace of mind guaranteed. Our team carries full master certifications and insurance.

Upfront Pricing

Know the cost before we start. No hidden fees, surprise hourly additions, or confusing estimates.

5-Star Rated

Trusted by 1,000+ locals across Cornwall and SD&G for unmatched residential service.

Plumbing Experts
About SABS Plumbing

Your Local Master Plumbers in the Heart of Cornwall

At SABS Plumbing, we are more than just service technicians; we are a dedicated team of Master Plumbers committed to serving the residential needs of Cornwall and the greater SD&G area.

With over a decade of experience navigating the unique plumbing challenges of Ontario's homes, we have built a reputation based on surgical precision, unwavering reliability, and absolute transparency in our flat-rate pricing.

10+
Years Exp.
100%
Licensed
Full Range Expertise

Our Core Services

{Object.entries(services).map(([key, s]) => (
navigateTo(key)} className="group bg-white rounded-3xl shadow-sm hover:shadow-[0_20px_40px_rgba(0,0,0,0.08)] p-6 border border-slate-100 cursor-pointer transition-all duration-300 transform hover:-translate-y-1">
{s.title}

{s.title}

{s.desc}

))}
{/* TESTIMONIALS SECTION */}
Customer Reviews

What Our Clients Say

{/* Marquee Wrapper */}
{/* Gradient Fades */}
{/* Scrolling Track */}
{[...testimonials, ...testimonials].map((t, i) => (
{[...Array(t.rating)].map((_, idx) => )}

"{t.text}"

{t.name.charAt(0)}

{t.name}

{t.area}

))}
)} {/* SERVICE AREA PAGES */} {currentPage.startsWith('area-') && serviceAreas[currentPage] && (
Serving {serviceAreas[currentPage].title.replace('Plumbing Services in ', '').replace('Plumbing in ', '')}

{serviceAreas[currentPage].title}

{serviceAreas[currentPage].desc}

Emergency Call
{serviceAreas[currentPage].title}

{serviceAreas[currentPage].title.replace('Plumbing in ', '')} Experts

)} {/* CONTACT PAGE */} {currentPage === 'contact' && (
Get In Touch

Contact SABS Plumbing

We're here to help with any plumbing project or emergency. Reach out to our team of experts today.

{/* Left Side: Contact Information */}

Phone Number

(613) 555-0123

24/7 Emergency Line

Email Address

info@sabsplumbing.ca

We reply within 24hrs

Business Hours

  • Mon - Fri 7:00 AM - 6:00 PM
  • Saturday 8:00 AM - 4:00 PM
  • Sunday Emergency Only
{/* Right Side: Contact Form */}
{ e.preventDefault(); const phoneVal = e.target.phone.value; const digits = phoneVal.replace(/\D/g, ''); if (digits.length !== 10) { alert('Please enter exactly 10 digits for your phone number.'); return; } alert('Message sent! We will contact you shortly.'); }}>

Send us a message

Fill out the form below and we'll get back to you to schedule your service.

)} {/* FAQ PAGE */} {currentPage === 'faq' && (
Help Center

Frequently Asked Questions

{faqs.map((faq, idx) => (
{openFaq === idx && (
{faq.a}
)}
))}
)} {/* PRICING PAGE */} {currentPage === 'pricing' && (
No Surprises

Flat-Rate Pricing

Quality service with zero hourly surprises. We charge by the job, not by the hour, so you always know exactly what you are paying before any work begins.

{/* Tier 1 */}

Diagnostic Visit

Professional troubleshooting & quote

Flat Fee
  • Thorough system inspection
  • Exact problem identification
  • Firm, written quote for repairs
{/* Tier 2 */}
Most Common

Standard Repairs

Leaks, clogs, and fixture swaps

Upfront Quote
  • Price given before work starts
  • Parts and labor included
  • Clean workspace guarantee
  • Full warranty on workmanship
{/* Tier 3 */}

Emergency Service

After-hours, floods, severe leaks

Immediate
  • Rapid response dispatch
  • Stop active water damage
  • Emergency rate applies
Call Now

Why we use Flat-Rate Pricing?

Hourly rates punish you for slow work. With flat-rate pricing, you pay for the solution, not the time it takes. If a repair takes us longer than expected, we absorb the cost, not you. It guarantees our technicians work efficiently and you get the fairest price possible.

)} {/* EMERGENCY PAGE - REDESIGNED */} {currentPage === 'emergency-plumber-cornwall' && (
{/* Dramatic Hero Area */}
Urgent Response Required

Don't Wait.
Stop The Damage Now.

Our master plumbers are on standby 24/7 across Cornwall and SD&G. If water is leaking where it shouldn't be, we need to be there.

Direct Emergency Hotline

613-555-0123

Tap the button above to call immediately. No answering machines, talk to a real dispatcher.

{/* Common Emergencies Section */}

Common Emergencies We Handle

Burst Pipes

A burst pipe can release gallons of water in minutes. Locate your main shutoff valve immediately and call us to replace the damaged section.

Sewer Backups

Raw sewage backing up into your sinks or basement is a severe health hazard. Do not use any water in the house until we clear the main line.

No Hot Water

A completely failed water heater during the dead of winter isn't just uncomfortable, it can be dangerous. We offer emergency swap-outs.

Overflowing Toilets

Turn the valve behind the toilet clockwise to stop the water flow. If plunging doesn't work, we have professional augers to clear severe clogs.

Sump Pump Failure

During heavy rain or snowmelt, a dead sump pump means a flooded basement. We provide rapid replacements to save your lower level.

Not Sure What To Do?

Call For Guidance
)} {/* PRIVACY POLICY PAGE */} {currentPage === 'privacy-policy' && (

Privacy Policy

Last Updated: {new Date().getFullYear()}

Regarding privacy: Client data collected during inquiries or service provision will be used solely for dispatch, billing, collection, and internal quality assurance. We do not sell client data, but we reserve the right to share information with collections agencies or legal counsel in the event of non-payment.

)} {/* TERMS OF SERVICE PAGE */} {currentPage === 'terms-of-service' && (

Terms of Service & Service Policy

Effective Date: February 21, {new Date().getFullYear()}

Welcome to SABS Plumbing. By booking our services, requesting an estimate, or using our website, you agree to the following Terms of Service.

1. Service Agreement

By scheduling plumbing services with SABS Plumbing, the customer agrees to:

  • Provide accurate information about the plumbing issue.
  • Provide safe and reasonable access to the work area.
  • Ensure pets, valuables, and obstructions are secured or removed before service.
  • Comply with payment terms outlined below.

We reserve the right to refuse or discontinue service if working conditions are unsafe, hazardous, or non-compliant with local regulations.

2. Estimates & Pricing

  • All estimates are provided based on visible conditions at the time of inspection.
  • Additional charges may apply if hidden or unforeseen issues are discovered during service.
  • Any additional work will be discussed and approved before proceeding.
  • Pricing is subject to change without notice unless a written quote has been issued.
  • Diagnostic fees may apply and are non-refundable once service has been performed.

3. Payment Terms

Payment is due immediately upon completion of services unless otherwise agreed in writing. We accept:

  • Cash, Debit, Credit Card, E-Transfer

Failure to make payment may result in Late fees, Collection actions, Legal recovery of unpaid balances, and Recovery of legal and administrative costs.

4. Emergency Services

  • Emergency plumbing services are available 24/7. After-hours, weekend, or holiday service calls may include additional fees.
  • Emergency response times are estimates only and may vary based on weather, demand, or traffic conditions.

5. Warranty & Liability

We provide a workmanship warranty on services performed by our company. However:

  • Warranty does not cover misuse, neglect, freezing pipes, improper use of fixtures, or third-party interference.
  • We are not responsible for pre-existing plumbing issues or structural deficiencies.
  • We are not liable for damage caused by concealed or deteriorated pipes discovered during service.
)} {/* SERVICE DETAIL PAGE */} {services[currentPage] && (

{services[currentPage].title}

{services[currentPage].desc}

{services[currentPage].title}
)}
); }