/* Modern openEHR Affiliate Website Template */

/* Soehne Breit Font */
@font-face {
    font-family: 'Soehne Breit';
    src: url('https://django-legacy-site.openehr.org/static/fonts/soehne-breit-web-buch.woff2') format('woff2'),
         url('https://django-legacy-site.openehr.org/static/fonts/soehne-breit-web-buch.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Soehne Breit';
    src: url('https://django-legacy-site.openehr.org/static/fonts/soehne-breit-web-halbfett.woff2') format('woff2'),
         url('https://django-legacy-site.openehr.org/static/fonts/soehne-breit-web-halbfett.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Soehne Breit';
    src: url('https://django-legacy-site.openehr.org/static/fonts/soehne-breit-web-dreiviertelfett.woff2') format('woff2'),
         url('https://django-legacy-site.openehr.org/static/fonts/soehne-breit-web-dreiviertelfett.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #00acbc;
    --secondary-color: #f7a102;
    --text-color: #333;
    --text-light: #666;
    --background: #ffffff;
    --card-background: #f8f9fa;
    --border-color: #e1e4e8;
    --link-hover: #008a98;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Soehne Breit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    text-align: center;
    padding: 3rem 0 2rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 3rem;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.logo {
    height: 60px;
    width: auto;
}

h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-color);
}

h1 .country {
    font-weight: 600;
    color: var(--primary-color);
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Main Content */
main {
    flex: 1;
}

.intro {
    text-align: center;
    margin-bottom: 3rem;
}

.lead {
    font-size: 1.125rem;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Action Buttons */
.actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--link-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 172, 188, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 172, 188, 0.2);
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-card {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.info-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.info-card p {
    color: var(--text-color);
    line-height: 1.7;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    margin-bottom: 0.75rem;
}

.info-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.info-card a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 0.5rem;
}

footer p:last-child {
    margin-bottom: 0;
}

footer .source-link {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    header {
        padding: 2rem 0 1.5rem;
    }

    .logo-section {
        flex-direction: column;
        gap: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.125rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    .logo {
        height: 50px;
    }

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