<?php
/* =====================================================
   PAGE META DATA
   ===================================================== */
$title = "Sponsor a Child – Wipe Tears Africa (WTA)";
$tagline = "Bringing hope & a future to the African children in Uganda";
$description = "Wipe Tears Africa (WTA) is a nonprofit organization founded in 2010, dedicated to restoring hope and transforming the lives of vulnerable children and families in Uganda.";
$keywords = "Wipe Tears Africa, WTA, Education, Health, Girl Child Empowerment, Skills Development, Counselling & Guidance";
$featured_image = "https://www.wipetearsafrica.org/assets/images/wipe-tears-africa-11.jpg";

/* =====================================================
   FORM PROCESSING
   ===================================================== */
$success = false;

if ($_SERVER["REQUEST_METHOD"] === "POST") {

    $full_name = trim($_POST['full_name'] ?? '');
    $email     = trim($_POST['email'] ?? '');
    $phone     = trim($_POST['phone'] ?? '');
    $interest  = trim($_POST['interest'] ?? '');
    $message   = trim($_POST['message'] ?? '');

    if ($full_name && $email && $phone && $interest) {

        /* OPTIONAL: SEND EMAIL */
        $to = "info@wipetearsafrica.org"; // change if needed
        $subject = "New Join Our Mission Submission";

        $headers  = "From: Wipe Tears Africa <noreply@wipetearsafrica.org>\r\n";
        $headers .= "Reply-To: $email\r\n";
        $headers .= "Content-Type: text/plain; charset=UTF-8\r\n";

        $email_body = "
New Join Our Mission submission

Full Name: $full_name
Email: $email
Phone: $phone
Interest: $interest

Message:
$message
";

        @mail($to, $subject, $email_body, $headers);

        $success = true;
    }
}

include "includes/header.php";
include "includes/menu.php";
?>

<!-- =====================================================
     PAGE HERO
     ===================================================== -->
<section class="header-services"
    style="background:
    linear-gradient(to bottom, rgba(46,178,23,0.75), rgba(46,178,23,0.95)),
    url('assets/images/mission.jpg') center/cover no-repeat;">

    <div class="container">
        <div class="row align-items-center">
            <div class="col text-center" data-aos="fade-up">
                <h1>Join Our Mission Today</h1>

                <nav aria-label="breadcrumb">
                    <ol class="breadcrumb justify-content-center">
                        <li class="breadcrumb-item"><a href="./">Home</a></li>
                        <li class="breadcrumb-item active" aria-current="page">
                            Join us and be part of the change
                        </li>
                    </ol>
                </nav>
            </div>
        </div>
    </div>
</section>

<!-- =====================================================
     JOIN OUR MISSION CONTENT
     ===================================================== -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Join Our Mission - Wipe Tears Africa</title>

<style>
    body {
        margin: 0;
        font-family: "Segoe UI", Arial, sans-serif;
        background: linear-gradient(#FEEBE7,#440E03);
        color: #333;
    }

    .mission-section {
        max-width: 1100px;
        margin: 40px auto;
        background: #ffffff;
        border-radius: 16px;
        padding: 40px 30px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }

    .mission-header {
        text-align: center;
        margin-bottom: 30px;
    }

    .mission-header h1 {
        font-size: 2.5rem;
        color: #0b6b4f;
        margin-bottom: 10px;
    }

    .mission-header p {
        font-size: 1.1rem;
        color: #555;
        line-height: 1.6;
        max-width: 800px;
        margin: auto;
    }

    .mission-points {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        margin: 35px 0;
    }

    .point {
        background: #f0faf7;
        padding: 20px;
        border-radius: 12px;
        border-left: 5px solid #0b6b4f;
    }

    .point h3 {
        margin: 0 0 8px;
        color: #0b6b4f;
        font-size: 1.1rem;
    }

    .point p {
        margin: 0;
        font-size: 0.95rem;
        line-height: 1.5;
        color: #444;
    }

    .get-involved {
        margin-top: 40px;
    }

    .get-involved h2 {
        text-align: center;
        color: #0b6b4f;
        margin-bottom: 25px;
        font-size: 2rem;
    }

    .involve-cards {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }

    .card {
        background:#ffffff;
        border-radius: 12px;
        padding: 25px;
        text-align: center;
        box-shadow: 0 8px 20px rgba(0,0,0,0.07);
        transition: transform 0.3s ease;
    }

    .card:hover {
        transform: translateY(-6px);
    }

    .card h3 {
        color: #0b6b4f;
        margin-bottom: 10px;
    }

    .card p {
        font-size: 0.95rem;
        color: #555;
        line-height: 1.5;
    }

    .cta {
        margin-top: 40px;
        text-align: center;
    }

    .cta p {
        font-size: 1.1rem;
        margin-bottom: 20px;
        color: #444;
    }

    .cta a {
        display: inline-block;
        padding: 14px 30px;
        background: linear-gradient(135deg, #0b6b4f, #14a07d);
        color: #ffffff;
        text-decoration: none;
        font-weight: bold;
        border-radius: 30px;
        transition: background 0.3s ease, transform 0.3s ease;
    }

    .cta a:hover {
        background: linear-gradient(135deg, #095c43, #118a6a);
        transform: scale(1.05);
    }

    @media (max-width: 600px) {
        .mission-header h1 {
            font-size: 2rem;
        }
    }
</style>
</head>

<body>

<section class="mission-section">

    <div class="mission-header">
        <h1>Join Our Mission</h1>
        <p>
            Every child deserves a future filled with hope, dignity, and opportunity.
            At <strong>Wipe Tears Africa</strong>, we believe that lasting change happens
            when compassionate people come together to serve the most vulnerable.
        </p>
	<p><em><b>By joining our mission, you become part of a movement that:
        </b></em></p>
    </div>

    <div class="mission-points">
        <div class="point">
            <h3>📚 Education</h3>
            <p>Expands access to quality education for vulnerable children.</p>
        </div>
        <div class="point">
            <h3>🏥 Health & Nutrition</h3>
            <p>Improves health and nutrition for children in need.</p>
        </div>
        <div class="point">
            <h3>💼 Economic Empowerment</h3>
            <p>Empowers families through skills training and economic support.</p>
        </div>
        <div class="point">
            <h3>🤝 Child Protection</h3>
            <p>Protects children from neglect, abuse, and exploitation.</p>
        </div>
    </div>

    <div class="get-involved">
        <h2>How You Can Get Involved</h2>

        <div class="involve-cards">
            <div class="card">
                <h3>Volunteer</h3>
                <p>Share your time, skills, and passion to directly impact lives.</p>
            </div>

            <div class="card">
                <h3>Partner With Us</h3>
                <p>Collaborate with us to create sustainable community solutions.</p>
            </div>

            <div class="card">
                <h3>Donate</h3>
                <p>Your support—big or small—helps transform lives.</p>
            </div>

            <div class="card">
                <h3>Advocate</h3>
                <p>Be a voice for vulnerable children and inspire others to act.</p>
            </div>
        </div>
    </div>

    <div class="cta">
        <p>
            👉 Together, we can wipe tears, restore hope, and build a brighter future for Africa’s children.
        </p>
       
    </div>

</section>


<!-- Interest Form -->
<div class="interest-form">
    <h2>Get Involved With Us</h2>
    <p>
        If you are interested in volunteering, partnering, donating, or supporting our mission,
        please fill in your details below and we will get in touch with you.
    </p>

    <form action="" method="post">

        <div class="form-group">
            <input type="text" name="fullname" placeholder="Full Name" required>
        </div>

        <div class="form-group">
            <input type="email" name="email" placeholder="Email Address" required>
        </div>

        <div class="form-group">
            <input type="tel" name="phone" placeholder="Phone Number (Optional)">
        </div>

        <div class="form-group">
            <select name="interest" required>
                <option value="">-- I am interested in --</option>
                <option value="Volunteer">Volunteering</option>
                <option value="Partner">Partnering</option>
                <option value="Donate">Donating</option>
                <option value="Advocate">Advocacy</option>
                <option value="Other">Other Support</option>
            </select>
        </div>

        <div class="form-group">
            <textarea name="message" rows="4" placeholder="Message (Optional)"></textarea>
        </div>

        <button type="submit">Submit Interest</button>
    </form>
</div>


<style>
.interest-form {
    margin-top: 60px;
    padding: 40px 25px;
    background: #f0faf7;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.interest-form h2 {
    text-align: center;
    color: #0b6b4f;
    margin-bottom: 10px;
}

.interest-form p {
    text-align: right;
    color: #555;
    margin-bottom: 30px;
    font-size: 1rem;
}

.interest-form form {
    max-width: 600px;
    margin: auto;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0b6b4f;
}

.interest-form button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #0b6b4f, #14a07d);
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.interest-form button:hover {
    transform: scale(1.03);
}

</style>

</body>
</html>
<?php include "includes/footer.php"; ?>
