/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 0 0 4px 4px;
}

.skip-link:focus {
    top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
a:focus,
button:focus,
[tabindex]:focus {
    outline: 3px solid #2370AD;
    outline-offset: 2px;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    display: block;
}

.logo:hover {
    color: #2370AD;
}

/* Navigation */
.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-list a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 0;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
    color: #2370AD;
    border-bottom: 2px solid #2370AD;
}

.lang-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.9rem;
}

.lang-list li {
    margin-bottom: 0;
}

.lang-list a {
    display: block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.lang-list a:hover {
    background: #e9ecef;
}

.lang-list span[aria-current] {
    display: block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: #2370AD;
    color: #fff;
    font-weight: 600;
}

/* Main content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #2370AD 0%, #1A5A8C 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.tagline {
    margin: 3rem 0;
}

.tagline h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Page headers */
.page-header {
    margin-bottom: 3rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.page-header .lead {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 1rem;
}

.page-header .subtitle {
    font-size: 1.1rem;
    color: #2370AD;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Sections */
section {
    margin-bottom: 3rem;
}

section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #333;
}

section h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #333;
}

/* Service sections */
.service-section {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    background: #fafafa;
}

.service-section h2 {
    color: #2370AD;
    border-bottom: 2px solid #E8A830;
    padding-bottom: 0.5rem;
}

/* Team member cards */
.team-member {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    background: #fafafa;
}

.team-member h3 {
    color: #2370AD;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.team-member p {
    margin-bottom: 1rem;
}

.team-member p:last-child {
    margin-bottom: 0;
}

/* Lists */
ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Investment and CTA sections */
.investment-section,
.cta-section {
    background: #f8f9fa;
    border-left: 4px solid #E8A830;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

/* Contact styles */
.contact-email {
    font-size: 1.25rem;
    margin: 1.5rem 0;
}

.contact-email a {
    color: #2370AD;
    text-decoration: none;
    border-bottom: 1px solid #2370AD;
}

.letterbird-form {
    margin-top: 1.5rem;
}

.calendly-widget {
    margin-top: 1.5rem;
}

.calendly-inline-widget {
    min-width: 320px;
    height: 700px;
}

.signature {
    margin-top: 3rem;
    text-align: center;
    color: #666;
}

.signature hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 2rem 0 1rem;
}

/* Donate page */
.donate-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.donate-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    background: #fafafa;
    text-align: center;
}

.donate-card h3 {
    color: #2370AD;
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.donate-card p {
    margin-bottom: 1.25rem;
    color: #555;
}

/* Software listing */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.software-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    background: #fafafa;
}

.software-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.software-card h3 a {
    color: #2370AD;
    text-decoration: none;
}

.software-card h3 a:hover {
    text-decoration: underline;
}

.software-card p {
    color: #555;
}

.product-logo {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #2370AD;
    color: white;
    border-color: #2370AD;
}

.btn-primary:hover {
    background: #1A5A8C;
    border-color: #1A5A8C;
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #2370AD;
}

/* Footer */
.site-footer {
    background: #333;
    color: white;
    padding: 2rem 0;
    margin-top: auto;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-footer a {
    color: #2370AD;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .lead {
        font-size: 1.1rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .site-footer .container {
        flex-direction: column;
        text-align: center;
    }
    
    .service-section,
    .team-member {
        padding: 1.5rem;
    }

    .donate-grid {
        grid-template-columns: 1fr;
    }

    .donate-card {
        padding: 1.5rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero {
        background: #000;
    }
    
    .btn-primary {
        background: #000;
        border-color: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .btn {
        transition: none;
    }
}