body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

h1, h2 {
    color: #111;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 20px 0;
}

.lang-switcher {
    text-align: right;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.lang-switcher a {
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.lang-switcher a:hover {
    opacity: 1;
}

/* ── Site header ────────────────────────────────────────────────────────────── */

.site-header {
    background: #111;
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.site-logo {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-logo-img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.site-logo:hover {
    text-decoration: none;
    color: #fff;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-nav a {
    color: #ccc;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav a:hover {
    color: #fff;
    text-decoration: none;
}

.nav-contact {
    background: #0066cc;
    color: #fff !important;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.nav-contact:hover {
    background: #0052a3 !important;
    color: #fff !important;
    text-decoration: none !important;
}

.nav-flags {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 0.25rem;
}

.nav-flags a {
    font-size: 1.2rem;
    text-decoration: none;
    opacity: 0.35;
    transition: opacity 0.2s;
}

.nav-flags a:hover {
    opacity: 1;
    text-decoration: none;
}

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* ── Header nav dropdowns ───────────────────────────────────────────────────── */

.nav-item {
    position: relative;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #111;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    min-width: 160px;
    z-index: 100;
    border-top: 2px solid #444;
}

.nav-item:hover .dropdown {
    display: block;
}

.dropdown li a {
    display: block;
    padding: 0.4rem 1rem;
    color: #ccc;
    text-decoration: none;
    white-space: nowrap;
}

.dropdown li a:hover {
    color: #fff;
    background: #222;
}

/* ── Responsive nav (≤ 768px) ───────────────────────────────────────────────── */

@media (max-width: 768px) {
    .nav-hamburger {
        display: block;
    }

    .site-nav {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #111;
        padding: 1rem 2rem 1.5rem;
        gap: 0.75rem;
        z-index: 200;
        border-top: 1px solid #2a2a2a;
    }

    .site-nav.open {
        display: flex;
    }

    /* Disable hover dropdowns on mobile */
    .nav-item:hover .dropdown {
        display: none;
    }

    .nav-item {
        width: 100%;
    }

    /* Mobile dropdowns: static, toggled via .open class */
    .nav-item .dropdown {
        position: static;
        border-top: none;
        border-left: 2px solid #333;
        background: transparent;
        padding: 0.25rem 0 0.25rem 1rem;
        min-width: auto;
        display: none;
    }

    .nav-item.open .dropdown {
        display: block;
    }

    .nav-contact {
        align-self: flex-start;
    }

    .nav-flags {
        gap: 0.75rem;
    }
}

/* ── Site footer ────────────────────────────────────────────────────────────── */

.site-footer {
    background: #111;
    color: #888;
    padding: 2rem;
    margin-top: 4rem;
}

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

.footer-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    color: #666;
    font-size: 0.85rem;
}

.footer-legal {
    width: 100%;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    border-top: 1px solid #1e1e1e;
    padding-top: 0.75rem;
    margin-top: 0.25rem;
}

.footer-legal a {
    color: #555;
    text-decoration: none;
    font-size: 0.8rem;
}

.footer-legal a:hover {
    color: #999;
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .footer-meta,
    .footer-legal {
        justify-content: flex-start;
    }
}

/* ── CTA button ─────────────────────────────────────────────────────────────── */

.cta-button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.65rem 1.5rem;
    background: #0066cc;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.cta-button:hover {
    background: #0052a3;
    color: #fff;
}

/* ── Service list excerpts ──────────────────────────────────────────────────── */

.service-title {
    display: block;
    font-weight: 600;
}

.service-excerpt,
.list-excerpt {
    display: block;
    color: #666;
    font-size: 0.88rem;
    margin-top: 0.15rem;
    line-height: 1.5;
}

main ul li + li {
    margin-top: 0.9rem;
}

/* ── Article metadata ───────────────────────────────────────────────────────── */

.article-meta {
    padding: 0 2rem 0.75rem;
    color: #777;
    font-size: 0.9em;
}

.meta-author {
    font-weight: 600;
    color: #555;
}

.meta-sep {
    color: #bbb;
}

.list-date {
    color: #999;
    font-size: 0.85em;
    margin-left: 0.5rem;
}

/* ── Profile header (founder pages) ─────────────────────────────────────────── */

.profile-layout {
    /* plain block for articles without a photo */
}

.profile-layout:has(.profile-header) {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: start;
    column-gap: 2rem;
    padding: 1.5rem 2rem 0;
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: #0a66c2;
    color: #fff;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
    white-space: nowrap;
}

.linkedin-link:hover {
    background: #004182;
    color: #fff;
    text-decoration: none;
}

.profile-body {
    min-width: 0;
}

.profile-body h1:first-child {
    margin-top: 0.25rem;
    padding-top: 0;
}

@media (max-width: 600px) {
    .profile-layout:has(.profile-header) {
        grid-template-columns: 1fr;
        padding: 1rem 1.25rem 0;
    }

    .profile-header {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
    }
}

/* ── Contact form ────────────────────────────────────────────────────────────── */

.contact-form {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 560px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
}

.form-field input,
.form-field textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.85rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: #333;
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}

.form-field textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.5;
}

.contact-form .cta-button {
    align-self: flex-start;
    margin-top: 0.25rem;
}

@media (max-width: 480px) {
    .contact-form .cta-button {
        width: 100%;
        text-align: center;
    }
}

.form-status {
    padding: 0.85rem 1rem;
    border-radius: 5px;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-status.success {
    background: #e6f4ea;
    color: #1a7a36;
    border: 1px solid #b0dfbc;
}

.form-status.error {
    background: #fdecea;
    color: #b91c1c;
    border: 1px solid #f5c2be;
}