/* CSS Variables - MuniTerra Brand Colors */
:root {
    --forest-green: #2d5016;
    --forest-dark: #1a3009;
    --earth-brown: #8B4513;
    --sky-blue: #4A90A4;
    --leaf-green: #61CE70;
    --safety-orange: #E67E22;
    --white: #ffffff;
    --off-white: #F8FAF5;
    --light-gray: #e9ecef;
    --cream: #FFFEF7;
    --text-dark: #2C3E2D;
    --text-light: #5D6D5E;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
    line-height: 1.3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    text-decoration: none;
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-muni {
    color: var(--forest-green);
}

.logo-terra {
    color: var(--earth-brown);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--forest-green);
    border-bottom-color: var(--leaf-green);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--forest-green);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--forest-dark) 100%);
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2361CE70' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
}

.hero-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 35px;
    position: relative;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Open Sans', Arial, sans-serif;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--leaf-green);
    color: var(--forest-dark);
}

.btn-primary:hover {
    background: #52bf61;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

.btn-outline {
    background: transparent;
    color: var(--forest-green);
    border: 2px solid var(--forest-green);
}

.btn-outline:hover {
    background: var(--forest-green);
    color: var(--white);
}

/* Mission Section */
.mission-section {
    padding: 80px 20px;
    background: var(--white);
}

.mission-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: start;
}

.mission-text h2 {
    font-size: 2.5rem;
    color: var(--forest-green);
    margin-bottom: 20px;
}

.mission-text .lead {
    font-size: 1.3rem;
    color: var(--forest-green);
    font-weight: 600;
    margin-bottom: 20px;
    font-style: italic;
}

.mission-text p {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.mission-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background: var(--off-white);
    padding: 25px;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border-left: 4px solid var(--leaf-green);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateX(10px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--forest-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
    color: var(--leaf-green);
}

.stat-card h3 {
    font-size: 1.1rem;
    color: var(--forest-green);
    margin-bottom: 5px;
    font-family: 'Open Sans', Arial, sans-serif;
}

.stat-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* Problem Section */
.problem-section {
    padding: 80px 20px;
    background: var(--off-white);
}

.problem-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--forest-green);
    margin-bottom: 50px;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.problem-card {
    background: var(--white);
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-top: 4px solid var(--safety-orange);
}

.problem-card h3 {
    color: var(--earth-brown);
    margin-bottom: 15px;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 1.2rem;
}

.problem-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Solution Section */
.solution-section {
    padding: 80px 20px;
    background: var(--white);
}

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

.solution-image {
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--forest-dark) 100%);
    border-radius: 10px;
    padding: 60px;
    text-align: center;
}

.solution-image svg {
    width: 150px;
    height: 150px;
    color: var(--leaf-green);
}

.solution-text h2 {
    font-size: 2rem;
    color: var(--forest-green);
    margin-bottom: 20px;
}

.solution-text p {
    color: var(--text-dark);
    margin-bottom: 25px;
}

.solution-benefits {
    list-style: none;
    margin-bottom: 30px;
}

.solution-benefits li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-dark);
}

.solution-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--leaf-green);
    font-weight: bold;
}

/* CTA Section */
.cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--forest-dark) 100%);
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--forest-dark) 100%);
    padding: 150px 20px 80px;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.page-header p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Content Section */
.content-section {
    padding: 80px 20px;
    background: var(--white);
}

.content-section h2 {
    color: var(--forest-green);
    font-size: 2rem;
    margin-bottom: 20px;
}

.content-section p {
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.8;
}

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

.content-image {
    background: var(--off-white);
    border-radius: 10px;
    padding: 50px;
    text-align: center;
}

.content-image svg {
    width: 180px;
    height: 140px;
    color: var(--forest-green);
}

/* Features Section */
.features-section {
    padding: 80px 20px;
    background: var(--off-white);
}

.features-section h2 {
    text-align: center;
    color: var(--forest-green);
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-item {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid var(--leaf-green);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.feature-item h3 {
    color: var(--forest-green);
    margin-bottom: 12px;
    font-family: 'Open Sans', Arial, sans-serif;
}

.feature-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Contact Form */
.contact-section {
    padding: 80px 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h2 {
    color: var(--forest-green);
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-dark);
    margin-bottom: 30px;
}

.contact-details {
    background: var(--off-white);
    padding: 30px;
    border-radius: 10px;
}

.contact-details h3 {
    color: var(--forest-green);
    margin-bottom: 15px;
    font-family: 'Open Sans', Arial, sans-serif;
}

.contact-details p {
    color: var(--text-light);
    margin-bottom: 10px;
}

.contact-form {
    background: var(--off-white);
    padding: 40px;
    border-radius: 10px;
}

.contact-form h2 {
    color: var(--forest-green);
    margin-bottom: 25px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--light-gray);
    border-radius: 5px;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--leaf-green);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Partner Cards */
.partner-section {
    padding: 80px 20px;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.partner-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.partner-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--forest-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.partner-icon svg {
    width: 36px;
    height: 36px;
    color: var(--leaf-green);
}

.partner-card h3 {
    color: var(--forest-green);
    margin-bottom: 15px;
}

.partner-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Fire Risk Stats */
.risk-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.risk-stat {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.risk-stat .number {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--safety-orange);
    display: block;
    margin-bottom: 10px;
}

.risk-stat .label {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: var(--forest-dark);
    color: var(--white);
    padding: 60px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo-muni,
.footer-brand .logo-terra {
    font-size: 1.5rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    margin-top: 15px;
    font-size: 0.95rem;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--leaf-green);
    font-family: 'Open Sans', Arial, sans-serif;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--leaf-green);
}

.footer-contact p {
    color: rgba(255,255,255,0.7);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .mission-content,
    .content-grid,
    .contact-grid,
    .solution-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }
}
