/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

/* CSS Variables for Brand Colors */
:root {
    --primary-blue: #003366;
    --secondary-blue: #00509E;
    --light-blue: #E6F0FA;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-gray: #F8F9FA;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Navbar */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--secondary-blue); }

.btn {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover { background-color: var(--secondary-blue); color: var(--white); }


/* Hero Section & Calculator */
.hero {
    background: linear-gradient(rgba(0, 51, 102, 0.9), rgba(0, 80, 158, 0.8)), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    color: var(--white);
    padding: 80px 20px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text { text-align: left; }
.hero-text h1 { font-size: 48px; margin-bottom: 20px; line-height: 1.2; }
.hero-text p { font-size: 18px; margin-bottom: 30px; }

/* Calculator UI */
.hero-calculator {
    background: var(--white);
    color: var(--text-dark);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    text-align: left;
}

.hero-calculator h3 {
    color: var(--primary-blue);
    margin-bottom: 25px;
    text-align: center;
    font-size: 24px;
}

.calc-group { margin-bottom: 25px; }
.calc-group label {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 10px;
}
.calc-group span { color: var(--secondary-blue); font-weight: 700; }

input[type=range] {
    width: 100%;
    accent-color: var(--primary-blue);
    cursor: pointer;
    height: 6px;
}

.calc-results {
    background: var(--light-blue);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.result-item:last-child { margin-bottom: 0; }
.result-item h4 { color: var(--primary-blue); font-size: 20px; }

.calc-note { font-size: 12px; color: var(--text-light); text-align: center; margin-bottom: 20px; }
.btn-full { display: block; width: 100%; text-align: center; }

/* Mobile Responsive Update */
@media (max-width: 900px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text { text-align: center; }
    .hero-text h1 { font-size: 36px; }
}

/* Sections */
.section { padding: 80px 20px; }
.container { max-width: 1200px; margin: auto; }
.section-title { text-align: center; font-size: 36px; color: var(--primary-blue); margin-bottom: 40px; }

/* Services Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    border-bottom: 4px solid var(--primary-blue);
    transition: transform 0.3s;
}

.card:hover { transform: translateY(-10px); }
.card h3 { color: var(--primary-blue); margin: 15px 0; }

/* Contact Page */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.contact-info p { margin-bottom: 15px; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.contact-form { display: flex; flex-direction: column; gap: 15px; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; font-family: inherit;
}
.map-container { margin-top: 40px; width: 100%; height: 400px; }
.map-container iframe { width: 100%; height: 100%; border: none; border-radius: 8px; }

/* Footer */
footer {
    background-color: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); }



/* --- Mobile Menu & Responsive Design --- */

/* Hide hamburger menu on desktop */
.menu-toggle {
    display: none;
    font-size: 28px;
    color: var(--primary-blue);
    cursor: pointer;
}

@media (max-width: 768px) {
    /* Show hamburger menu */
    .menu-toggle {
        display: block;
    }

    /* Hide the "Get Funded" button in the header on mobile to save space */
    .desktop-btn {
        display: none;
    }

    /* Style the mobile menu overlay */
    .nav-links {
        position: absolute;
        top: 70px; /* Right below the header */
        left: -100%; /* Hidden off-screen by default */
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        text-align: center;
        gap: 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        transition: left 0.3s ease-in-out; /* Smooth sliding animation */
    }

    /* When the .active class is added via JS, slide the menu in */
    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 20px;
        border-bottom: 1px solid #eee;
        font-size: 18px;
    }

    .nav-links a:hover {
        background-color: var(--light-blue);
    }

    /* Adjust Hero Section for Mobile */
    .hero {
        padding: 60px 20px;
    }
    .hero-content { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }
    .hero-text { text-align: center; }
    .hero-text h1 { font-size: 32px; }
    
    /* Adjust Contact Page for Mobile */
    .contact-wrapper { grid-template-columns: 1fr; }
}