/* ============================================================
   Lichtgolf — Hoofdstylesheet
   Ton-sur-ton blauwschaal · Space Grotesk + Manrope
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --blue-50:  #eef3f9;
  --blue-100: #d8e3f0;
  --blue-200: #b3c8e0;
  --blue-300: #87a6cd;
  --blue-400: #5a82b6;
  --blue-500: #3a629b;
  --blue-600: #2b4d7e;
  --blue-700: #213c63;
  --blue-800: #182c48;
  --blue-900: #101e33;

  --gray-50:  #f6f8fb;
  --gray-100: #eef1f6;
  --gray-200: #e0e6ef;
  --gray-300: #cbd4e1;
  --gray-400: #97a3b6;
  --gray-500: #6b7689;
  --gray-600: #4d586b;
  --gray-700: #374050;
  --gray-800: #232a36;
  --gray-900: #131822;
  --white:    #ffffff;
  --amber:    #f5a623;

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-sans:    "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.8125rem;
  --text-base: 0.9375rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  2rem;
  --text-4xl:  2.75rem;
  --text-5xl:  3.5rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(16,30,51,.06);
  --shadow-sm: 0 1px 3px rgba(16,30,51,.08), 0 3px 8px rgba(16,30,51,.06);
  --shadow-md: 0 3px 8px rgba(16,30,51,.08), 0 8px 24px rgba(16,30,51,.10);
  --shadow-lg: 0 6px 16px rgba(16,30,51,.10), 0 20px 48px rgba(16,30,51,.12);

  --ease: cubic-bezier(0.22,1,0.36,1);
  --nav-h: 64px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
  font-size: var(--text-base);
  padding-top: var(--nav-h);
}

/* ── Type ────────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--blue-900);
}
h1 { font-size: var(--text-5xl); letter-spacing: -0.025em; }
h2 { font-size: var(--text-4xl); letter-spacing: -0.02em; }
h3 { font-size: var(--text-2xl); letter-spacing: -0.01em; }
h4 { font-size: var(--text-xl); }
p  { line-height: 1.7; color: var(--gray-600); }
a  { color: var(--blue-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--blue-800); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ── Layout ──────────────────────────────────────────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.container-sm { max-width: 760px; margin: 0 auto; padding: 0 var(--space-6); }

section { padding: var(--space-24) 0; }

.grid   { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); }

.section-header { text-align: center; margin-bottom: var(--space-16); }
.section-header h2 { margin-bottom: var(--space-4); }
.section-header p { font-size: var(--text-lg); max-width: 560px; margin: 0 auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: var(--space-3);
}
.divider { border: none; border-top: 1px solid var(--gray-200); margin: 0; }

/* ── Nav ─────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 200;
  box-shadow: var(--shadow-xs);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand img { height: 28px; width: auto; }
.nav-brand-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--blue-800);
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  flex: 1;
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-600);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all .15s var(--ease);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-700);
  background: var(--blue-50);
  text-decoration: none;
}
.nav-cta { margin-left: auto; }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-700);
  padding: var(--space-2);
  margin-left: auto;
}
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: var(--space-4) var(--space-6);
  flex-direction: column;
  gap: var(--space-1);
  z-index: 199;
  box-shadow: var(--shadow-md);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--gray-700);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all .15s;
}
.nav-mobile a:hover,
.nav-mobile a.active { background: var(--blue-50); color: var(--blue-700); }

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  section { padding: var(--space-16) 0; }
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0 var(--space-6);
  height: 44px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all .18s var(--ease);
  text-decoration: none !important;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: -0.01em;
}
.btn:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 2px; }

.btn-sm { height: 36px; padding: 0 var(--space-4); font-size: var(--text-xs); border-radius: var(--radius-sm); }
.btn-lg { height: 54px; padding: 0 var(--space-8); font-size: var(--text-base); border-radius: var(--radius-lg); }

.btn-primary { background: var(--blue-600); color: white; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-700); box-shadow: var(--shadow-md); transform: translateY(-1px); color: white; }
.btn-primary:active { transform: translateY(0); background: var(--blue-800); }

.btn-secondary { background: var(--blue-50); color: var(--blue-700); }
.btn-secondary:hover { background: var(--blue-100); color: var(--blue-800); }

.btn-outline { background: transparent; color: var(--blue-600); box-shadow: inset 0 0 0 1.5px var(--blue-300); }
.btn-outline:hover { background: var(--blue-50); box-shadow: inset 0 0 0 1.5px var(--blue-500); color: var(--blue-700); }

.btn-ghost { background: transparent; color: var(--gray-600); }
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-900); }

.btn-white { background: white; color: var(--blue-700); box-shadow: var(--shadow-sm); }
.btn-white:hover { background: var(--blue-50); color: var(--blue-800); box-shadow: var(--shadow-md); transform: translateY(-1px); }

.btn-white-outline { background: transparent; color: white; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.4); }
.btn-white-outline:hover { background: rgba(255,255,255,0.1); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.7); }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: all .22s var(--ease);
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue-200);
  transform: translateY(-2px);
}

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
}
.badge-blue    { background: var(--blue-100); color: var(--blue-700); }
.badge-dark    { background: var(--blue-800); color: var(--blue-100); }
.badge-muted   { background: var(--gray-100); color: var(--gray-600); }
.badge-success { background: #dcfce7; color: #166534; }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-5); }
.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
  font-family: var(--font-display);
}
.form-control {
  width: 100%;
  height: 44px;
  padding: 0 var(--space-4);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--gray-900);
  background: white;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
  outline: none;
}
.form-control:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(43,77,126,.15); }
.form-control::placeholder { color: var(--gray-400); }
textarea.form-control { height: auto; padding-top: var(--space-3); resize: vertical; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-700) 55%, var(--blue-600) 100%);
  color: white;
  padding: var(--space-24) var(--space-6) var(--space-20);
  overflow: hidden;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}
.hero h1 { color: white; margin-bottom: var(--space-6); font-size: clamp(2rem,5vw,var(--text-5xl)); }
.hero p { color: rgba(255,255,255,.75); font-size: var(--text-lg); margin-bottom: var(--space-10); max-width: 540px; margin-left: auto; margin-right: auto; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-4);
  font-size: var(--text-sm);
  color: rgba(255,255,255,.85);
  font-family: var(--font-display);
  font-weight: 500;
  margin-bottom: var(--space-8);
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber);
}
.hero-btns { display: flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center; }
.hero-wave {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: var(--space-12);
}

/* ── Service cards ───────────────────────────────────────── */
.service-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-lg);
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
  margin-bottom: var(--space-5);
  transition: all .2s var(--ease);
}
.card:hover .service-icon { background: var(--blue-100); color: var(--blue-700); }

/* ── Stats ───────────────────────────────────────────────── */
.stat-item { text-align: center; }
.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--blue-800);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat-label { font-size: var(--text-sm); color: var(--gray-500); font-weight: 500; }

/* ── Page header ─────────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-600) 100%);
  padding: var(--space-20) var(--space-6) var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.page-header-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.page-header h1 { color: white; font-size: var(--text-4xl); margin-bottom: var(--space-4); }
.page-header p { color: rgba(255,255,255,.75); font-size: var(--text-lg); margin: 0; }

/* ── Portfolio card ──────────────────────────────────────── */
.portfolio-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .22s var(--ease);
}
.portfolio-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--blue-200); }
.portfolio-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
}
.portfolio-body { padding: var(--space-5); }
.portfolio-body h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.portfolio-body p { font-size: var(--text-sm); margin-bottom: var(--space-4); }

/* ── CTA banner ──────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  padding: var(--space-20) var(--space-6);
  text-align: center;
}
.cta-banner h2 { color: white; margin-bottom: var(--space-4); }
.cta-banner p { color: rgba(255,255,255,.75); font-size: var(--text-lg); margin-bottom: var(--space-8); max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--blue-900);
  padding: var(--space-16) var(--space-6) var(--space-10);
}
.footer-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: var(--space-8);
}
.footer-brand img { height: 28px; filter: brightness(0) invert(1); opacity: .7; margin-bottom: var(--space-4); }
.footer-brand-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: rgba(255,255,255,.8);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}
.footer-brand p { font-size: var(--text-sm); color: rgba(255,255,255,.45); line-height: 1.7; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: rgba(255,255,255,.7);
  margin-bottom: var(--space-4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: var(--space-2); }
.footer-col ul li a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .15s;
}
.footer-col ul li a:hover { color: rgba(255,255,255,.8); text-decoration: none; }
.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-bottom p { font-size: var(--text-xs); color: rgba(255,255,255,.3); margin: 0; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── QR Scanner page ─────────────────────────────────────── */
.qr-hero { background: linear-gradient(135deg, var(--blue-900), var(--blue-700)); }
.qr-feature { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.qr-feature-icon {
  width: 44px; height: 44px;
  background: var(--blue-100);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-600);
  flex-shrink: 0;
}

/* ── Alert ───────────────────────────────────────────────── */
.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-6);
}
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
