/* Huisstijl naar www.well-fair.nl (Well-Fair by comfora) */
:root {
    --gold: #a2844e;
    --gold-dark: #8a6f3f;
    --plum: #5c0037;
    --comfora: #3f0049;      /* paars van de nieuwe pas */
    --cream: #fdf3e7;        /* crème band van de nieuwe pas */
    --sand: #f6f4f2;         /* footer / vlakken op well-fair.nl */
    --line: #e6e1dc;
    --text: #0f0f0f;
    --muted: #666;
    --white: #fff;
    --error: #b3261e;
    --radius: 8px;
    --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Libre Baskerville", "Baskerville", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    background: var(--white);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--gold); }
a:hover { color: var(--gold-dark); }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo img { height: 52px; width: auto; display: block; }
.header-title {
    font-size: 13px; font-weight: 500; letter-spacing: 1.3px; text-transform: uppercase; color: var(--gold);
}

/* Pagina */
.page { flex: 1; padding-top: 48px; padding-bottom: 64px; }
.embed { padding: 8px; }
.embed body, body:has(.embed) { min-height: 0; background: transparent; }

.lookup {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    background: var(--sand);
    border-radius: var(--radius);
    padding: 40px;
}

.lookup-card img {
    width: 100%; height: auto; display: block;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(63, 0, 73, .18);
}

h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 34px;
    line-height: 1.2;
    color: #444;
    margin: 0 0 8px;
}

.lead { color: var(--gold); font-size: 17px; margin: 0 0 24px; }

.label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }

.field-row { display: flex; gap: 8px; flex-wrap: wrap; }

.input {
    flex: 1 1 200px;
    min-width: 0;
    height: 48px;
    padding: 0 14px;
    font: inherit;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text);
    background: var(--white);
    border: 1px solid #cfc8c0;
    border-radius: var(--radius);
}
.input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.input.invalid { border-color: var(--error); }

.btn {
    height: 48px;
    padding: 0 22px;
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: var(--white);
    background: var(--gold);
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
}
.btn:hover { background: var(--gold-dark); }
.btn:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }

.field-error, .validation-message { color: var(--error); font-size: 14px; margin-top: 6px; }

.disclaimer {
    margin: 24px 0 0;
    padding: 12px 16px;
    font-size: 14px;
    background: var(--cream);
    border-left: 3px solid var(--plum);
    border-radius: 4px;
}
.disclaimer a { color: var(--plum); font-weight: 600; white-space: nowrap; }
.disclaimer a::after { content: " \2192"; }

/* Resultaat */
.notice {
    margin-top: 32px; padding: 16px 20px;
    background: #fbeeee; color: var(--error); border-radius: var(--radius);
}

.notice.demo { background: #fff6dd; color: #6b5300; }

.result { margin-top: 32px; }

.total {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px;
    padding: 24px 28px;
    color: var(--white);
    background: var(--comfora);
    border-radius: var(--radius);
}
.total-label { font-size: 14px; letter-spacing: 1.3px; text-transform: uppercase; opacity: .85; flex-basis: 100%; }
.total-value { font-family: var(--font-display); font-size: 44px; line-height: 1.1; }
.total-pas { font-size: 14px; opacity: .75; }

.empty { margin: 16px 0 0; color: var(--muted); }

.mutaties { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.mutaties th {
    text-align: left; font-weight: 500; font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
    color: var(--muted); padding: 10px 12px; border-bottom: 2px solid var(--line);
}
.mutaties td { padding: 12px; border-bottom: 1px solid var(--line); }
.mutaties tbody tr:nth-child(even) td { background: #faf9f7; }
.mutaties .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mutaties .neg { color: var(--plum); }
.mutaties tfoot td { font-weight: 600; border-bottom: 0; border-top: 2px solid var(--line); }

/* Footer */
.site-footer { background: var(--sand); font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 24px; padding-bottom: 24px; }
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--gold); }

/* Mobiel */
@media (max-width: 760px) {
    .page { padding-top: 24px; }
    .lookup { grid-template-columns: 1fr; gap: 24px; padding: 24px 16px; }
    .lookup-card { max-width: 380px; }
    h1 { font-size: 28px; }
    .btn { flex: 1 1 100%; }
    .total-value { font-size: 36px; }
    .header-inner { height: 64px; }
    .logo img { height: 42px; }
}
