/* Determinato-kassa – vormgeving overgenomen van determinato.nl (css/style.css) */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #01244e;
  --navy-deep: #001833;
  --blue: #3b82e0;
  --blue-dark: #1f63bd;
  --blue-soft: #e8f1fc;
  --text: #23292f;
  --muted: #5d6b7a;
  --line: #dfe5ec;
  --tint: #f4f7fb;
  --white: #fff;
  --ok: #1e7a46;
  --warn: #9a6400;
  --bad: #b3261e;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(1, 36, 78, .06), 0 8px 24px rgba(1, 36, 78, .08);
  --shadow-lg: 0 2px 4px rgba(1, 36, 78, .06), 0 20px 40px rgba(1, 36, 78, .16);
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 17px/1.7 var(--font-body);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-dark); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 1.6em 0 .5em;
}

h1 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
main > h1:first-child, main > :first-child h1 { margin-top: 0; }

svg { width: 1.1em; height: 1.1em; fill: currentColor; vertical-align: -.15em; flex-shrink: 0; }

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

.eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 .6em;
}

.meta, .small { color: var(--muted); }
.meta { margin-top: 0; font-size: .95rem; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  min-height: 92px;
}

/* the logo image has whitespace on the right; show only emblem + name */
.logo { display: block; width: 400px; max-width: 100%; height: 64px; overflow: hidden; flex-shrink: 1; }
.logo img { width: 640px; max-width: none; height: 64px; mix-blend-mode: multiply; }

.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }

.main-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--navy);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, color .2s;
}

.main-nav a:hover { background: var(--tint); }
.main-nav a.active { color: var(--blue-dark); background: var(--blue-soft); }

/* ---------- page hero ---------- */

.page-hero {
  position: relative;
  color: var(--white);
  padding: 72px 0 64px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(59, 130, 224, .45), transparent 45%),
    radial-gradient(circle at 10% 110%, rgba(59, 130, 224, .3), transparent 40%),
    var(--navy-deep);
}

.page-hero .eyebrow { color: #9cc3f5; }
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0; letter-spacing: -.025em; }
.page-hero .lead { color: rgba(255, 255, 255, .85); font-size: 1.2rem; line-height: 1.55; max-width: 34em; margin: 14px 0 0; }

/* ---------- main ---------- */

main.container { padding-top: 56px; padding-bottom: 88px; min-height: 50vh; }
.intro { max-width: 46em; }

/* ---------- buttons ---------- */

button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .8em 1.4em;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--blue);
  color: var(--white);
  font: 600 .95rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}

button:hover, .btn:hover { background: var(--blue-dark); color: var(--white); transform: translateY(-1px); }
button:disabled { background: #a9b4c0; cursor: not-allowed; transform: none; }

button.secondary { background: transparent; color: var(--navy); border-color: var(--line); padding: .55em 1.1em; }
button.secondary:hover { background: var(--tint); color: var(--navy); }

/* ---------- messages ---------- */

.alert, .notice {
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 0 0 24px;
  max-width: 46em;
}

.alert { background: #fdeeed; color: #7a1a14; border: 1px solid #f5cdca; }
.notice { background: var(--blue-soft); color: var(--navy); border: 1px solid #cfe0f7; }

/* ---------- cards & forms ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 24px 28px 28px; }
.card h2 { margin: 0 0 .3em; font-size: 1.4rem; }
.card-body > button { width: 100%; margin-top: 8px; }

.form { max-width: 640px; }

label { display: block; margin: 0 0 16px; font-weight: 600; font-size: .92rem; color: var(--navy); }

input[type=text], input[type=email], input[type=search], input[type=date], input[type=time], input[type=number], select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 400;
  color: var(--text);
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s, background .2s;
}

input:focus, select:focus {
  outline: 0;
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 224, .18);
}

fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px 4px; margin: 0 0 24px; }
legend { padding: 0 8px; font-weight: 700; color: var(--navy); }

.choice { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 1rem; color: var(--text); }
.choice input { margin-top: .4em; accent-color: var(--blue); }
fieldset .choice { display: inline-flex; margin-right: 24px; font-weight: 600; color: var(--navy); }

.total { font-size: 1.05rem; margin: 0 0 16px; padding: 12px 16px; background: var(--blue-soft); border-radius: var(--radius-sm); color: var(--navy); }

.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.4rem; font-weight: 700; letter-spacing: .08em; color: var(--navy); margin: .3em 0; }

.row { display: flex; flex-wrap: wrap; gap: 0 16px; }
.row label { flex: 1 1 12rem; }

/* ---------- footer ---------- */

.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .7); font-size: .95rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 48px;
}

.site-footer h2 {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 16px;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer p { margin: 0 0 1em; }

.footer-name { font: 700 1.5rem/1.15 var(--font-display); color: var(--white); }

.footer-social { display: flex; gap: 10px; }

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  transition: background .2s;
}

.footer-social a:hover { background: var(--blue); text-decoration: none; }
.footer-social svg { width: 20px; height: 20px; }

.copyright {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .85rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 20px;
  padding-bottom: 20px;
}

.copyright p { margin: 0; }

/* ---------- beheer ---------- */

.admin-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.admin-top h1 { margin: 0; }
.admin-top form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0 16px; padding: 16px; background: var(--tint); border-radius: var(--radius-sm); }
.filters select, .filters input[type=search] { width: auto; margin: 0; padding: 9px 12px; background: var(--white); }
.filters input[type=search] { flex: 1 1 14rem; min-width: 0; }
.filters button { padding: .65em 1.2em; }

.summary { color: var(--muted); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
table.admin { border-collapse: collapse; width: 100%; font-size: .92rem; line-height: 1.45; }
table.admin th, table.admin td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.admin tbody tr:last-child td { border-bottom: 0; }
table.admin th { background: var(--tint); color: var(--navy); font-weight: 600; white-space: nowrap; }
table.admin tbody tr:hover td { background: #fafcfe; }
table.admin tr.past td { color: #8a96a3; }
table.admin .num { text-align: right; }
table.admin .meta { font-size: .85rem; }

.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; background: var(--tint); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.badge.live { background: var(--ok); color: var(--white); box-shadow: none; }
.badge.test { background: #fff2d6; color: var(--warn); box-shadow: inset 0 0 0 1px #f1d9a3; }

.status { font-weight: 600; }
.status.ok { color: var(--ok); }
.status.wait { color: var(--warn); }
.status.bad { color: var(--bad); }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .header-inner { min-height: 72px; padding-top: 10px; padding-bottom: 10px; }
  .logo { width: 250px; height: 40px; }
  .logo img { width: 400px; height: 40px; }
  .main-nav a { padding: 8px 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .main-nav { width: 100%; margin: 0 -12px; }
  .page-hero { padding: 48px 0 40px; }
  main.container { padding-top: 32px; padding-bottom: 56px; }
  .card-body { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding-top: 48px; }
}
