:root {
    /* Teal/Blue-Green Color Scheme (inspired by VolunteerPEI) */
    --primary-color: #086058;
    --primary-dark: #0f766e;
    --primary-light: #14b8a6;
    --secondary-color: #06b6d4;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --error-color: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-medium);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Language Switcher */
.lang-switch {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-link {
    text-decoration: none;
    color: var(--text-light);
    transition: var(--transition);
}

.lang-link:hover {
    color: var(--primary-color);
}

.lang-link.active {
    color: var(--primary-color);
    font-weight: 700;
}

.lang-sep {
    color: var(--border-color);
}

/* Hero Section - With Background Image */
.hero {
    background-color: #f9fafb;
    /* Background image removed for LCP optimization - now using <img> tag */
    color: var(--text-dark);
    padding: 100px 20px 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-brand {
    font-size: 5rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -0.01em;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Card System */
.card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.card-text {
    color: var(--text-medium);
    line-height: 1.7;
}

/* Section Headers */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 40px;
}

/* How It Works Section */
.how-it-works {
    margin-bottom: 60px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    padding: 20px;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.step-card:hover .step-icon {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(13, 148, 136, 0.15);
    color: var(--primary-dark);
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.step-card p {
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.6;
}

/* Story/About Section */
.story-section {
    margin-bottom: 60px;
}

.story-section .card {
    max-width: 900px;
    margin: 0 auto;
    border-left: 5px solid var(--primary-color); /* Option 2: Accent Border */
    position: relative;
    overflow: hidden;
}

/* Option 1: Subtle Background Icon */
.story-section .card::after {
    content: '\f0c0'; /* FontAwesome 'users' */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 8rem;
    color: var(--primary-color);
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.story-section h2 {
    color: var(--text-dark);
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.story-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.story-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.story-section a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-color);
}

/* Map Section */
.map-section {
    margin-bottom: 60px;
    padding: 50px 0;
    background: var(--bg-light);
}

.map-intro {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-medium);
    text-align: center;
}

.map-container {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    max-width: 900px;
    margin: 0 auto;
}

#canada-map {
    max-width: 100%;
    margin: 0 auto;
}

#canada-map svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
    transition: opacity 0.3s ease;
}

/* Mobile Map Overlay */
.map-container {
    position: relative; /* Ensure overlay positioning context */
}

.mobile-map-overlay {
    display: none; /* Hidden by default on desktop */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.overlay-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.overlay-content h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.overlay-content select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    color: var(--text-dark);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .mobile-map-overlay {
        display: block;
    }
    
    #canada-map {
        opacity: 0.3; /* Fade map to background */
        pointer-events: none; /* Disable map interaction */
    }
}

/* Map - Vibrant Color Design */
.canada-outline path {
    stroke: #ffffff;
    stroke-width: 1;
    /* Base default just in case */
    fill: #e0e0e0; 
}

/* West */
#BC { fill: #80cbc4; } /* Soft Teal */
#AB { fill: #a5d6a7; } /* Sage Green */

/* Prairies */
#SK { fill: #fff59d; } /* Muted Gold */
#MB { fill: #ffcc80; } /* Soft Orange/Peach */

/* Central */
#ON { fill: #ce93d8; } /* Lavender */
#QC { fill: #f48fb1; } /* Soft Rose */

/* Atlantic */
#NB { fill: #90caf9; } /* Soft Blue */
#NS { fill: #81d4fa; } /* Sky Blue */
#PE { fill: #80deea; } /* Pale Cyan */
#NL { fill: #b39ddb; } /* Soft Indigo */

/* North */
#YT { fill: #e6ee9c; } /* Pale Lime */
#NT { fill: #b2dfdb; } /* Teal 100 */
#NU { fill: #b2ebf2; } /* Cyan 100 */



/* City Pins - Simple Circles */
.city-pin circle {
    transition: all 0.2s ease;
}

.pin-label {
    transition: opacity 0.2s ease;
    font-family: 'Inter', sans-serif;
}

/* Voting Section - Card Format */
.voting-section {
    margin-bottom: 60px;
}

.voting-section .card {
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
}

.voting-header {
    text-align: center;
    margin-bottom: 30px;
}

.voting-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: block;
}

.voting-header h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.voting-tagline {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    font-weight: 400;
}

.voting-description {
    margin-bottom: 30px;
    text-align: center;
}

.voting-description p {
    font-size: 1.05rem;
    margin-bottom: 12px;
    color: #ffffff;
    font-weight: 400;
    line-height: 1.7;
}

.voting-description a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.voting-description a:hover {
    border-bottom-color: var(--accent-color);
}

/* Form Styles */
.nonprofit-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-message {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid var(--success-color);
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid var(--error-color);
    display: block;
}

/* Footer */
.footer {
    background: #0f172a; /* Slate 900 - Richer dark */
    color: #e2e8f0;
    padding: 60px 20px 30px;
    border-top: 4px solid var(--primary-color); /* Brand accent */
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr; /* Brand | Cities */
    gap: 60px;
    margin-bottom: 50px;
}

.footer-column h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 25px;
    font-weight: 700;
    color: var(--primary-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    display: inline-block;
}

/* Brand Column Styles */
.brand-column h3 {
    color: white;
    font-size: 1.4rem;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 15px;
    text-transform: none;
    letter-spacing: -0.01em;
}

.brand-tagline {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}



.city-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 20px;
    list-style: none;
}

.footer-links {
    list-style: none;
}

.city-links li,
.footer-links li {
    margin-bottom: 10px;
}

.city-links a,
.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.city-links a::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.5;
    transition: var(--transition);
}

.city-links a:hover,
.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.city-links a:hover::before {
    opacity: 1;
    background: #fff;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    font-size: 0.85rem;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal {
    display: flex;
    gap: 20px;
    list-style: none;
    align-items: center;
}

.footer-legal a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: white;
}

.back-to-top {
    color: var(--primary-light) !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.back-to-top:hover {
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 60px 20px 50px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .container {
        padding: 40px 15px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .card {
        padding: 25px;
    }

    .map-container {
        padding: 25px 15px;
    }

    .hero-content {
        padding: 0 10px;
    }

    .hero-brand {
        font-size: 3rem; /* Reduce from 5rem to fit tablet/mobile */
    }

    .city-links {
        grid-template-columns: repeat(2, 1fr); /* 2 columns instead of 3 */
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-brand {
        font-size: 2.2rem; /* Even smaller for phones */
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .card-title {
        font-size: 1.25rem;
    }
}
