:root {
    --navy: #11194A;
    --navy-light: #1c2a6e;
    --paper: #F2F1EF;
    --paper-alt: #E7E5E1;
    --ink: #1A1A2E;
    --ink-soft: #55566b;
    --line: #dcdad4;
    --white: #ffffff;
    --accent: #C9A24B;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Inter', -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3, .display {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    color: var(--navy);
    margin: 0 0 0.5em;
}

.display-italic { font-style: italic; }

a { color: var(--navy); }

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow {
    max-width: 760px;
}

/* ---- Nav ---- */
.site-header {
    background: var(--navy);
    color: var(--white);
    padding: 18px 0;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.site-header a.brand {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Fraunces', serif;
    font-size: 19px;
}
.site-header .brand img { height: 40px; width: auto; }
.site-header nav a {
    color: var(--white);
    text-decoration: none;
    margin-left: 24px;
    font-size: 14px;
    opacity: 0.9;
}
.site-header nav a:hover { opacity: 1; text-decoration: underline; }

/* ---- Hero ---- */
.hero {
    padding: 72px 0 56px;
    text-align: center;
}
.hero .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 13px;
    color: var(--ink-soft);
    margin-bottom: 12px;
}
.hero h1 {
    font-size: 44px;
    line-height: 1.15;
}
.hero p.lead {
    max-width: 640px;
    margin: 20px auto 0;
    font-size: 18px;
    color: var(--ink-soft);
}
.hero .cta-row {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary {
    background: var(--navy);
    color: var(--white);
}
.btn-primary:hover { background: var(--navy-light); }
.btn-secondary {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.btn-small { padding: 8px 16px; font-size: 13px; }
.btn-danger { background: #9b2c2c; color: var(--white); }
.btn-danger:hover { background: #7a2222; }

/* ---- Section ---- */
.section {
    padding: 56px 0;
}
.section--alt {
    background: var(--paper-alt);
}
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 { font-size: 30px; }
.section-title p { color: var(--ink-soft); max-width: 620px; margin: 12px auto 0; }

.prose p { margin: 0 0 1.1em; }
.prose { color: var(--ink); }

/* ---- Charter card ---- */
.charter-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 40px;
}

.kaderstuk {
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    padding: 36px 40px;
}
.kaderstuk h2 { font-size: 24px; }
.kaderstuk p:last-of-type { margin-bottom: 0; }
.kaderstuk .cta-line { font-weight: 600; color: var(--navy); }

/* ---- Engagements grid ---- */
.engagements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 8px;
}
.engagement {
    border-top: 2px solid var(--navy);
    padding-top: 14px;
}
.engagement .num {
    display: inline-block;
    font-family: 'Fraunces', serif;
    font-size: 15px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 4px;
}
.engagement h3 {
    font-size: 16px;
    margin-bottom: 6px;
}
.engagement p {
    font-size: 14px;
    color: var(--ink-soft);
    margin: 0;
}

/* ---- Wall of signatures ---- */
.wall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.wall-item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 18px 20px;
}
.wall-item .bedrijf {
    font-weight: 700;
    color: var(--navy);
}
.wall-item .stad {
    font-size: 13px;
    color: var(--ink-soft);
    margin-top: 2px;
}
.wall-empty {
    text-align: center;
    color: var(--ink-soft);
    padding: 24px;
}

/* ---- Prisma teaser ---- */
.teaser {
    background: var(--navy);
    color: var(--white);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
}
.teaser h3 { color: var(--white); font-size: 22px; }
.teaser p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 12px auto 24px; }
.teaser .btn-secondary { color: var(--white); border-color: var(--white); }
.teaser .btn-secondary:hover { background: var(--white); color: var(--navy); }

/* ---- Forms ---- */
.form-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 40px;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field label .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    background: var(--paper);
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: 2px solid var(--navy);
    outline-offset: 1px;
}
.field-hint { font-size: 12px; color: var(--ink-soft); }
.fieldset-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
    margin: 28px 0 14px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
}
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.alert {
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 24px;
}
.alert-error { background: #fbe9e9; color: #9b2c2c; border: 1px solid #f0c2c2; }
.alert-success { background: #e8f3ea; color: #276739; border: 1px solid #bfe0c6; }

/* ---- Footer ---- */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.75);
    padding: 32px 0;
    font-size: 13px;
    text-align: center;
    margin-top: 40px;
}
.site-footer a { color: rgba(255,255,255,0.9); }
.site-footer-credit { margin-top: 6px; font-size: 12px; color: rgba(255,255,255,0.55); }

/* ---- Admin ---- */
.admin-shell { min-height: 100vh; }
.admin-topbar {
    background: var(--navy);
    color: var(--white);
    padding: 14px 0;
}
.admin-topbar .container { display: flex; justify-content: space-between; align-items: center; }
.admin-topbar a { color: var(--white); text-decoration: none; font-size: 14px; }
.admin-topbar .brand { font-family: 'Fraunces', serif; font-size: 17px; }
.admin-main { padding: 32px 0; }
.admin-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}
.stat-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.stat-box {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px 22px;
    min-width: 140px;
}
.stat-box .n { font-family: 'Fraunces', serif; font-size: 28px; color: var(--navy); }
.stat-box .l { font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }

table.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.admin-table th, table.admin-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
}
table.admin-table th { color: var(--ink-soft); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
table.admin-table tr:hover td { background: var(--paper); }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.badge-nieuw { background: #eef1fb; color: #33418a; }
.badge-goedgekeurd { background: #e8f3ea; color: #276739; }
.badge-afgekeurd { background: #fbe9e9; color: #9b2c2c; }
.badge-betaald { background: #fff4d9; color: #8a6100; }
.badge-muted { background: #eee; color: #666; }

.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; align-items: center; }
.filters select, .filters input[type=text] {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 14px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 24px;
    font-size: 14px;
    margin-bottom: 20px;
}
.detail-grid dt { color: var(--ink-soft); font-size: 12px; text-transform: uppercase; margin-top: 10px; }
.detail-grid dd { margin: 2px 0 0; }

.action-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper);
}
.login-box {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 40px;
    width: 100%;
    max-width: 360px;
}

@media (max-width: 860px) {
    .engagements-grid { grid-template-columns: 1fr 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .hero h1 { font-size: 32px; }
    .engagements-grid { grid-template-columns: 1fr; }
    .charter-card, .form-card { padding: 24px; }

    .site-header .container { flex-direction: column; align-items: flex-start; gap: 10px; }
    .site-header a.brand { font-size: 16px; }
    .site-header .brand img { height: 30px; }
    .site-header nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
    .site-header nav a { margin-left: 0; }
}
