<?php
$site_name = "WashHouse Launderette Raddolugama";
$contact_email = "washhouse988@gmail.com";
$contact_phone = "0770233310";
$whatsapp_number = "94770233310";
$year = date('Y');
$site_url = "https://wash-house.lka.ovh";
$description = "WashHouse Launderette Raddolugama offers professional laundry, dry cleaning, and ironing services with free pickup and delivery inside Raddolugama. Quick, clean, and affordable.";
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XZS8ZC8NPW"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-XZS8ZC8NPW');
</script>
    <!-- Basic SEO -->
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?= htmlspecialchars($site_name) ?> | Laundry & Dry Cleaning Services</title>
    <meta name="description" content="<?= htmlspecialchars($description) ?>">
    <meta name="keywords" content="laundry, dry cleaning, Raddolugama, washing, ironing, pickup delivery, WashHouse, Launderette">
    <meta name="author" content="Randalu Web Solutions">

    <!-- Open Graph -->
    <meta property="og:title" content="<?= htmlspecialchars($site_name) ?>">
    <meta property="og:description" content="<?= htmlspecialchars($description) ?>">
    <meta property="og:type" content="business.business">
    <meta property="og:url" content="<?= $site_url ?>">
    <meta property="og:image" content="<?= $site_url ?>/img/header.png">
    <meta property="business:contact_data:locality" content="Raddolugama">
    <meta property="business:contact_data:country_name" content="Sri Lanka">

    <!-- Schema.org LocalBusiness -->
    <script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "DryCleaningOrLaundry",
      "name": "<?= $site_name ?>",
      "image": "<?= $site_url ?>/img/header.png",
      "@id": "<?= $site_url ?>",
      "url": "<?= $site_url ?>",
      "telephone": "+94<?= substr($contact_phone, 1) ?>",
      "address": {
        "@type": "PostalAddress",
        "streetAddress": "NHS Raddolugama",
        "addressLocality": "Raddolugama",
        "addressCountry": "Sri Lanka"
      },
      "geo": {
        "@type": "GeoCoordinates",
        "latitude": 7.1416361,
        "longitude": 79.9017773
      },
      "openingHours": "Mo-Su 08:00-20:00",
      "sameAs": [
        "https://www.facebook.com/WashHouseLaunderette"
      ]
    }
    </script>

    <!-- Bootstrap -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css" rel="stylesheet">
    <!-- AOS Animations -->
    <link href="https://cdn.jsdelivr.net/npm/aos@2.3.4/dist/aos.css" rel="stylesheet">
    <!-- Google Font -->
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap" rel="stylesheet">

    <style>
        body {
            font-family: 'Poppins', sans-serif;
            background-color: #F8FAFB;
            overflow-x: hidden;
        }
        .navbar {
            background: linear-gradient(90deg, #00AEEF, #00D1A0);
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }
        .navbar-brand, .nav-link {
            color: #fff !important;
            font-weight: 600;
        }
        .hero {
            background: linear-gradient(135deg, #00AEEF, #00D1A0);
            color: white;
            text-align: center;
            padding: 130px 20px;
            position: relative;
            overflow: hidden;
        }
        .hero h1 { font-size: 3rem; font-weight: 700; animation: fadeInDown 1s ease-in-out; }
        .hero p { font-size: 1.2rem; opacity: 0.9; animation: fadeInUp 1.2s ease-in-out; }
        @keyframes fadeInDown { from {opacity:0; transform:translateY(-50px);} to {opacity:1; transform:translateY(0);} }
        @keyframes fadeInUp { from {opacity:0; transform:translateY(50px);} to {opacity:1; transform:translateY(0);} }

        .services { padding: 80px 0; }
        .service-card {
            background: white;
            border-radius: 15px;
            padding: 40px 20px;
            text-align: center;
            transition: all 0.4s ease;
            box-shadow: 0 10px 20px rgba(0,0,0,0.05);
            position: relative;
        }
        .service-card:hover { transform: translateY(-10px) scale(1.03); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
        .service-card i { font-size: 3rem; color: #00AEEF; margin-bottom: 20px; }
        .section-title { text-align: center; margin-bottom: 60px; }
        .section-title h2 { font-weight: 700; color: #1A1A1A; }
        .section-title p { color: #555; }

        .pickup-map { background: white; padding: 80px 0; border-top: 1px solid #eee; }
        .pickup-delivery-info {
            background: #E6FAF7;
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 5px 10px rgba(0,0,0,0.05);
        }
        footer {
            background: #00AEEF;
            color: white;
            text-align: center;
            padding: 30px 0;
        }
        footer a { color: #fff; text-decoration: underline; }

        .whatsapp-float {
            position: fixed;
            bottom: 25px;
            right: 25px;
            background: #25D366;
            color: white;
            border-radius: 50%;
            font-size: 26px;
            padding: 15px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.2);
            z-index: 999;
            transition: transform 0.3s ease;
        }
        .whatsapp-float:hover { transform: scale(1.1); }

        /* ✅ Floating Pickup Button */
        .pickup-float {
            position: fixed;
            top: 50%;
            right: 0;
            transform: translateY(-50%);
            background: #00AEEF;
            color: white;
            font-size: 20px;
            border-radius: 30px 0 0 30px;
            padding: 14px 18px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
            z-index: 998;
            display: flex;
            align-items: center;
            transition: all 0.3s ease;
            text-decoration: none;
        }
        .pickup-float i {
            font-size: 22px;
            margin-right: 8px;
        }
        .pickup-float span {
            opacity: 0;
            width: 0;
            overflow: hidden;
            white-space: nowrap;
            transition: all 0.3s ease;
            font-weight: 600;
        }
        .pickup-float:hover {
            background: #00D1A0;
            padding-right: 25px;
        }
        .pickup-float:hover span {
            opacity: 1;
            width: auto;
            margin-left: 5px;
        }
        /* 🎨 Art by Kids Popup – FINAL */
.art-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.art-popup-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.art-popup-overlay.hide {
    opacity: 0;
    pointer-events: none;
}

.art-popup {
    position: relative;
    max-width: 420px;
    width: 90%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    animation: popupFade 0.4s ease;
}

.art-popup img {
    width: 100%;
    display: block;
}

.art-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
}

@keyframes popupFade {
    from { transform: scale(0.9); }
    to { transform: scale(1); }
}


    </style>
</head>

<body>

<!-- Navbar -->
<nav class="navbar navbar-expand-lg fixed-top">
    <div class="container">
        <a class="navbar-brand" href="#"><?= htmlspecialchars($site_name) ?></a>
        <button class="navbar-toggler bg-light" type="button" data-bs-toggle="collapse" data-bs-target="#navMenu">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navMenu">
            <ul class="navbar-nav ms-auto">
                <li class="nav-item"><a href="#home" class="nav-link">Home</a></li>
                <li class="nav-item"><a href="#services" class="nav-link">Services</a></li>
                <li class="nav-item"><a href="#reviews" class="nav-link">Reviews</a></li>
               <li class="nav-item"><a href="/faq.php" class="nav-link">FAQ</a></li>
                <li class="nav-item"><a href="/pickup/pickup_req.php" class="nav-link">Pickup</a></li>
                <li class="nav-item"><a href="mailto:<?= $contact_email ?>" class="nav-link">Email</a></li>
                <li class="nav-item"><a href="tel:<?= $contact_phone ?>" class="nav-link">Call</a></li>
            </ul>
        </div>
    </div>
</nav>

<!-- ✅ Floating Pickup Button -->
<a href="/pickup/" target="_blank" class="pickup-float" aria-label="Laundry Pickup Request">
    <i class="fas fa-truck"></i> <span>Laundry Pickup Request</span>
</a>

<!-- Hero -->
<section id="home" class="hero position-relative overflow-hidden">
    <div class="container position-relative" style="z-index:2;">
        <h1 data-aos="zoom-in">Welcome to <?= htmlspecialchars($site_name) ?></h1>
        <p data-aos="fade-up">Professional laundry, dry cleaning, and ironing — done right, every time.</p>
    </div>

    <!-- Animated Bubbles -->
    <div class="bubbles">
        <?php for($i=0; $i<25; $i++): ?>
            <div class="bubble" style="--i:<?= rand(10,23) ?>s; --x:<?= rand(0,100) ?>vw; --size:<?= rand(30,70) ?>px;"></div>
        <?php endfor; ?>
    </div>

    <style>
        .hero { background: linear-gradient(135deg, #00AEEF, #00D1A0); color:white; text-align:center; padding:130px 20px; }
        .bubbles { position:absolute; top:0; left:0; width:100%; height:100%; overflow:hidden; pointer-events:none; }
        .bubble {
            position:absolute;
            bottom:-50px;
            width: var(--size);
            height: var(--size);
            background: rgba(255,255,255,0.15);
            border-radius:50%;
            left: var(--x);
            animation: rise var(--i) linear infinite;
        }
        @keyframes rise {
            0% { transform: translateY(0) scale(0.5); opacity:0.3; }
            50% { opacity:0.5; }
            100% { transform: translateY(-120vh) scale(1); opacity:0; }
        }
    </style>
</section>

<!-- Services Section -->
<section id="services" class="services">
    <div class="container">
        <div class="section-title">
            <h2 data-aos="fade-up">Our Services</h2>
            <p data-aos="fade-up" data-aos-delay="100">We make your laundry day effortless with quality and care.</p>
        </div>
        <div class="row">
            <?php
            $services = [
                ['icon' => 'fa-shirt', 'title' => 'Washing', 'desc' => 'Eco-friendly washing with spotless results.'],
                ['icon' => 'fa-wind', 'title' => 'Drying', 'desc' => 'Quick drying to keep your clothes fresh.'],
                ['icon' => 'fa-shirt', 'title' => 'Ironing', 'desc' => 'Perfectly pressed and wrinkle-free clothing.'],
                ['icon' => 'fa-droplet', 'title' => 'Dry Cleaning', 'desc' => 'Gentle treatment for delicate fabrics.'],
                ['icon' => 'fa-sync', 'title' => 'Wash & Fold', 'desc' => 'Hassle-free complete laundry solution.'],
                ['icon' => 'fa-spray-can-sparkles', 'title' => 'Saree Pressing', 'desc' => 'Special care for your traditional wear.'],
            ];
            foreach ($services as $index => $s): ?>
                <div class="col-md-4 mb-4" data-aos="fade-up" data-aos-delay="<?= $index * 100 ?>">
                    <div class="service-card">
                        <i class="fa-solid <?= $s['icon'] ?>"></i>
                        <h4><?= htmlspecialchars($s['title']) ?></h4>
                        <p><?= htmlspecialchars($s['desc']) ?></p>
                    </div>
                </div>
            <?php endforeach; ?>
        </div>
    </div>
</section>


<!-- Google Reviews -->
<section id="reviews" class="py-5" style="background:#F1F9FF;">
    <div class="container text-center">
        <h2 data-aos="fade-up">What Our Customers Say</h2>
        <p data-aos="fade-up" data-aos-delay="100">We value your feedback and strive to provide the best service experience.</p>
        <div data-aos="zoom-in" data-aos-delay="200">
            <script src="https://static.elfsight.com/platform/platform.js" async></script>
            <div class="elfsight-app-15bc5325-2995-4d28-bc35-c4b75671aa30" data-elfsight-app-lazy></div>
        </div>
    </div>
</section>

<!-- Pickup & Location -->
<section class="pickup-map">
    <div class="container">
        <div class="row align-items-center">
            <div class="col-md-6" data-aos="fade-right">
                <div class="pickup-delivery-info">
                    <h3>Pickup & Delivery</h3>
                    <p><strong>Easy Pickup:</strong> Schedule anytime via call or WhatsApp.</p>
                    <p><strong>Timely Delivery:</strong> Fresh laundry, right when you need it.</p>
                    <p><strong>Free Pickup:</strong> Inside Raddolugama neighborhood.</p>
                    <p><strong>Friendly Service:</strong> Always with a smile!</p>
                </div>
            </div>
            <div class="col-md-6" data-aos="fade-left">
                <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3958.864736439799!2d79.90177729999999!3d7.1416361!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3ae2f01737564c81%3A0x8aee6df25173a955!2sWash%20House%20Launderette!5e0!3m2!1sen!2slk!4v1747051733806!5m2!1sen!2slk"
                    width="100%" height="350" style="border:0; border-radius:10px;" allowfullscreen loading="lazy"></iframe>
            </div>
        </div>
    </div>
</section>

<!-- Footer -->
<footer>
    <p>&copy; <?= $year ?> <?= htmlspecialchars($site_name) ?>. All Rights Reserved.</p>
    <p>Designed by <a href="https://www.lka.ovh" target="_blank">Randalu Web Solutions</a></p>
</footer>

<!-- WhatsApp Floating Button -->
<a href="https://wa.me/<?= $whatsapp_number ?>" target="_blank" class="whatsapp-float" aria-label="Chat on WhatsApp">
    <i class="fab fa-whatsapp"></i>
</a>

<!-- Scripts -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/aos@2.3.4/dist/aos.js"></script>
<script>AOS.init({ duration: 1000, once: true });</script>

<!-- 🎨 Art by Kids Popup -->
<div id="artPopup" class="art-popup-overlay" style="display:none;">
    <div class="art-popup">
        <button class="art-popup-close" onclick="closeArtPopup()">×</button>
        <a href="https://washhouse.ovh/artbykids/" target="_blank">
            <img src="/img/washhouse_artbykids_m.png" alt="Wash House Art by Kids">
        </a>
    </div>
</div>

<script>
(function () {
    const popupEndDate = new Date('2026-01-31T23:59:59');
    const now = new Date();
    if (now > popupEndDate) return;

    const popup = document.getElementById('artPopup');
    if (!popup) return;

    if (localStorage.getItem('artPopupClosed') === 'yes') return;

    const showDelay = Math.floor(Math.random() * 2000) + 3000; // 3–5 sec
    const autoCloseDelay = 5000; // 5 sec after showing
    let autoCloseTimer;

    function showPopup() {
        popup.style.display = 'flex';
        requestAnimationFrame(() => popup.classList.add('show'));

        autoCloseTimer = setTimeout(closePopup, autoCloseDelay);
    }

    function closePopup() {
        popup.classList.remove('show');
        popup.classList.add('hide');

        setTimeout(() => {
            popup.style.display = 'none';
            localStorage.setItem('artPopupClosed', 'yes');
        }, 400);
    }

    window.closeArtPopup = function () {
        clearTimeout(autoCloseTimer);
        closePopup();
    };

    window.addEventListener('load', () => {
        setTimeout(showPopup, showDelay);
    });
})();
</script>


</body>
</html>
