/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #5a508c;
    --secondary-color: #f06446;
    --accent-color: #5a5096;
    --primary-dark: #50468c;
    --primary-darker: #282878;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --max-width: 1200px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: white;
    color: var(--text-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-bottom: 2px solid var(--primary-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-brand .logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: left;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-align: left;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.hero-impact {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Sections */
.intro, .locations, .newsletter-cta {
    padding: 4rem 0;
}

.intro {
    background-color: var(--bg-light);
}

.intro h2, .locations h2, .newsletter-cta h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.intro-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.feature-list li {
    padding: 0.75rem;
    background-color: white;
    border-left: 4px solid var(--accent-color);
    border-radius: 4px;
}

/* Location Cards */
.location-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.location-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.location-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.location-card p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

/* Impact Section */
.impact {
    padding: 2rem 0 1rem 0;
    background-color: var(--bg-light);
}

.impact h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.impact > .container > p {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.impact .iframe-container {
    margin-bottom: 0;
    padding-bottom: 0;
    height: auto;
    max-height: 90px;
}

.impact .iframe-container iframe {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 90px;
}

.iframe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.iframe-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding-bottom: 52.86%; /* 370/700 aspect ratio */
    height: 0;
    overflow: hidden;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Newsletter CTA */
.newsletter-cta {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.newsletter-cta .container {
    text-align: center;
}

.newsletter-cta h2 {
    color: white;
    text-align: center;
}

.newsletter-cta p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.note {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.newsletter-cta .note {
    color: rgba(255,255,255,0.8);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Content Sections */
.content-section {
    padding: 3rem 0;
}

.info-box {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.info-box h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-box .btn {
    margin-top: 1.5rem;
}

.info-box.warning {
    background-color: #fff3cd;
    border-left: 4px solid var(--warning-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.info-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.info-card h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-card ul {
    list-style: none;
    padding-left: 0;
}

.info-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.info-card ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Events */
.events {
    padding: 2rem 0;
}

.event-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.event-content {
    padding: 1.5rem;
}

.event-card h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.event-location {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.event-details {
    margin: 1rem 0;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: 4px;
}

.event-details p {
    margin-bottom: 0.5rem;
}

/* Repair Categories */
.repair-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.category {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.category h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* Volunteer Benefits */
.volunteer-benefits {
    margin-top: 1.5rem;
}

.volunteer-benefits ul {
    list-style: none;
    padding-left: 0;
}

.volunteer-benefits ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.volunteer-benefits ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Help Options */
.help-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.help-option {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
}

.help-option h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.value-item {
    text-align: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
}

.value-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Numbered List */
.numbered-list {
    list-style: none;
    counter-reset: item;
    padding-left: 0;
}

.numbered-list li {
    counter-increment: item;
    padding: 1rem 0;
    padding-left: 3rem;
    position: relative;
}

.numbered-list li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 1rem;
    background-color: var(--primary-color);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

.cta-section h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Location Info */
.location-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.location-detail {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
}

.location-detail h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.location-detail a {
    color: var(--secondary-color);
    text-decoration: none;
}

.location-detail a:hover {
    text-decoration: underline;
}

/* Social Links */
.social-links {
    margin-top: 1rem;
}

/* Mailchimp Form Container */
.mailchimp-form-container {
    margin-top: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
}

.newsletter-cta .mailchimp-form-container {
    max-width: 500px;
}

#mc_embed_signup {
    width: 100% !important;
    max-width: 600px;
    margin: 0 auto !important;
    display: block;
}

.newsletter-cta #mc_embed_signup {
    max-width: 500px;
}

/* Mailchimp Form Text Color Overrides */
#mc_embed_signup h2,
#mc_embed_signup #mc_embed_signup_scroll h2 {
    color: var(--primary-color) !important;
}

#mc_embed_signup #mc_embed_signup_scroll h2 {
    padding-top: 14px;
}

#mc_embed_signup label,
#mc_embed_signup .indicates-required,
#mc_embed_signup .asterisk,
#mc_embed_signup input[type="email"],
#mc_embed_signup .mc-field-group {
    color: var(--text-color) !important;
}

#mc_embed_signup input[type="email"] {
    color: var(--text-color) !important;
    background-color: white !important;
    border: 1px solid var(--border-color) !important;
}

#mc_embed_signup .button {
    background-color: var(--primary-color) !important;
    color: white !important;
    border: none !important;
}

#mc_embed_signup .button:hover {
    background-color: var(--primary-dark) !important;
}

/* Newsletter CTA section - white text on dark background */
.newsletter-cta #mc_embed_signup h2,
.newsletter-cta #mc_embed_signup #mc_embed_signup_scroll h2 {
    color: var(--primary-color) !important;
}

.newsletter-cta #mc_embed_signup label,
.newsletter-cta #mc_embed_signup .indicates-required,
.newsletter-cta #mc_embed_signup .asterisk {
    color: var(--text-color) !important;
}

.newsletter-cta #mc_embed_signup input[type="email"] {
    color: var(--text-color) !important;
    background-color: white !important;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
        gap: 0;
        border-top: 2px solid var(--primary-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
        width: 100%;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-brand .logo {
        height: 40px;
    }

    .nav-brand h1 {
        font-size: 1.2rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-text {
        text-align: center;
    }

    .hero h2 {
        font-size: 2rem;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .intro h2, .locations h2, .newsletter-cta h2, .impact h2 {
        font-size: 1.75rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .location-cards {
        grid-template-columns: 1fr;
    }

    .iframe-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .iframe-container {
        max-width: 100%;
    }
}

