/* ============================================================
   DP Vergunningen Advies — one-page site
   Design system + 3 stijlrichtingen (kalm / strak / donker)
   ============================================================ */

:root {
  /* type */
  --font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --font-head-sans: "Libre Franklin", system-ui, sans-serif;
  --font-head-serif: "Newsreader", Georgia, serif;
  --font-head: var(--font-head-sans);
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* accent (overschreven door tweak) */
  --accent: #007FE1;
  --accent-strong: color-mix(in oklab, var(--accent) 84%, #0a1a28);
  --accent-soft: color-mix(in oklab, var(--accent) 12%, var(--surface));
  --accent-ink: #ffffff;

  /* radius / rhythm */
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);

  /* ===== THEME: KALM (default) ===== */
  --paper: #f4f6f4;
  --surface: #ffffff;
  --surface-2: #eef1ef;
  --ink: #15242f;
  --muted: #57676f;
  --faint: #8895a0;
  --border: #e0e5e1;
  --border-strong: #cfd6d1;

  --hero-bg: #0f2533;
  --hero-ink: #f0f5f8;
  --hero-muted: #a6bbc7;
  --hero-line: rgba(255,255,255,0.13);

  --shadow-sm: 0 1px 2px rgba(18,38,52,.05), 0 2px 8px rgba(18,38,52,.05);
  --shadow-md: 0 4px 14px rgba(18,38,52,.08), 0 18px 44px rgba(18,38,52,.07);
}

/* ===== THEME: STRAK (modern, wit, minimaal) ===== */
[data-theme="strak"] {
  --paper: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f7f6;
  --ink: #111a1f;
  --muted: #5b6a66;
  --faint: #94a09a;
  --border: #eceeec;
  --border-strong: #e0e3e0;
  --radius: 4px;
  --radius-sm: 3px;

  --hero-bg: #ffffff;
  --hero-ink: #111a1f;
  --hero-muted: #5b6a66;
  --hero-line: #ececec;

  --shadow-sm: none;
  --shadow-md: 0 1px 0 var(--border);
}

/* ===== THEME: DONKER (premium, navy, serif) ===== */
[data-theme="donker"] {
  --paper: #0b1721;
  --surface: #102330;
  --surface-2: #16303f;
  --ink: #e9eef2;
  --muted: #9fb2bd;
  --faint: #72868f;
  --border: #1e3543;
  --border-strong: #2a4555;
  --font-head: var(--font-head-serif);

  --accent-soft: color-mix(in oklab, var(--accent) 22%, #0b1721);
  --hero-bg: #081019;
  --hero-ink: #f1f6f9;
  --hero-muted: #9fb2bd;
  --hero-line: rgba(255,255,255,0.10);

  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 18px 50px rgba(0,0,0,.45);
}

/* heading font toggle */
[data-head="serif"] { --font-head: var(--font-head-serif); }
[data-head="sans"]  { --font-head: var(--font-head-sans); }

/* ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .35s ease, color .35s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 640;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
[data-head="serif"] h1, [data-head="serif"] h2, [data-head="serif"] h3,
[data-theme="donker"] h1, [data-theme="donker"] h2, [data-theme="donker"] h3 {
  font-weight: 540;
  letter-spacing: -0.01em;
}
p { margin: 0; text-wrap: pretty; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 124px); }

/* eyebrow */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--accent);
  display: inline-block;
}

.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); line-height: 1.62; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-weight: 560; font-size: 16px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* on hero band */
.on-band .btn-ghost { color: var(--hero-ink); border-color: var(--hero-line); }
.on-band .btn-ghost:hover { border-color: var(--hero-ink); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--paper) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled { border-color: var(--border); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 76px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
[data-theme="donker"] .brand img { filter: brightness(1.7) contrast(1.05); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15.5px;
  padding: 9px 14px; border-radius: 8px; transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.menu-btn { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--hero-bg);
  color: var(--hero-ink);
  position: relative;
  overflow: hidden;
  transition: background .35s ease, color .35s ease;
}
.hero .eyebrow { color: var(--accent); }
[data-theme="kalm"] .hero .eyebrow,
[data-theme="donker"] .hero .eyebrow {
  color: color-mix(in oklab, var(--accent) 70%, white);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
  padding-block: clamp(70px, 10vw, 128px);
}
.hero h1 {
  color: var(--hero-ink);
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.05;
  margin-bottom: 26px;
  text-wrap: balance;
  hyphens: none;
}
.hero h1 .accentword { color: var(--accent); }
[data-theme="kalm"] .hero h1 .accentword,
[data-theme="donker"] .hero h1 .accentword {
  color: color-mix(in oklab, var(--accent) 62%, white);
}
.hero-sub { color: var(--hero-muted); font-size: clamp(17px, 1.7vw, 20px); max-width: 46ch; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* portrait */
.hero-portrait { position: relative; }
.portrait-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--surface-2);
  box-shadow: var(--shadow-md);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.portrait-tag {
  position: absolute; left: 18px; bottom: 18px; right: 18px;
  display: flex; align-items: center; gap: 12px;
  background: color-mix(in oklab, var(--surface) 90%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 15px;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.portrait-tag b { font-family: var(--font-head); font-weight: 600; font-size: 15px; display: block; }
.portrait-tag span { font-size: 13px; color: var(--muted); }
.portrait-tag .dot { width: 9px; height: 9px; border-radius: 50%; background: #2ea66a; flex-shrink: 0; box-shadow: 0 0 0 4px color-mix(in oklab, #2ea66a 22%, transparent); }

/* decorative grid lines on hero */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--hero-line) 1px, transparent 1px);
  background-size: 100% 56px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  opacity: .6; pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; }

/* specialisme strip under hero */
.spec-strip {
  border-top: 1px solid var(--hero-line);
  display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center;
  padding-block: 22px;
  position: relative; z-index: 1;
}
.spec-strip .label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--hero-muted); }
.spec-strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0; padding: 0; }
.spec-strip li {
  font-size: 14px; font-weight: 500; color: var(--hero-ink);
  border: 1px solid var(--hero-line); border-radius: 999px; padding: 6px 14px;
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-head { max-width: 64ch; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head h2 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 18px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ============================================================
   DIENSTEN
   ============================================================ */
.svc-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px 30px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.svc-card:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--accent) 45%, var(--border)); box-shadow: var(--shadow-md); }
.svc-num {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em;
  color: var(--accent); margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.svc-num::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.svc-card h3 { font-size: 21px; margin-bottom: 16px; }
.svc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.svc-list li { position: relative; padding-left: 26px; font-size: 16px; color: var(--muted); line-height: 1.5; }
.svc-list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 12px; height: 12px;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
  border-radius: 3px;
}
.svc-list li strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   OVER MIJ
   ============================================================ */
.about { background: var(--surface); border-block: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 76px); align-items: center; }
.about-photo {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5;
  box-shadow: var(--shadow-md); background: var(--surface-2);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.about h2 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 22px; }
.about p + p { margin-top: 16px; }
.about .muted { color: var(--muted); }
.cred-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.cred {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 18px; background: var(--paper);
}
.cred .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.cred .v { font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--ink); line-height: 1.25; }

/* ============================================================
   ZEKERHEID / SCHIJNZELFSTANDIGHEID
   ============================================================ */
.assurance { position: relative; }
.assurance .section-head h2 { font-size: clamp(28px, 3.8vw, 46px); }
.assur-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.assur-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 24px 26px;
  display: flex; gap: 18px; align-items: flex-start;
  box-shadow: var(--shadow-sm);
}
.assur-card .tick {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-top: 2px;
}
.assur-card h3 { font-size: 18px; margin-bottom: 7px; }
.assur-card p { font-size: 15.5px; color: var(--muted); line-height: 1.55; }
.assur-foot {
  margin-top: 26px;
  display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center;
  font-size: 14px; color: var(--muted);
  font-family: var(--font-mono);
}
.assur-foot .pill {
  border: 1px dashed var(--border-strong); border-radius: 999px;
  padding: 7px 15px; color: var(--ink);
}

/* full-width intro card for assurance */
.assur-intro {
  background: var(--hero-bg); color: var(--hero-ink);
  border-radius: var(--radius); padding: clamp(30px, 4vw, 48px);
  margin-bottom: 30px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center;
}
.assur-intro h2 { color: var(--hero-ink); font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 16px; }
.assur-intro .eyebrow { color: color-mix(in oklab, var(--accent) 70%, white); }
.assur-intro p { color: var(--hero-muted); font-size: 17px; }
.assur-intro .big {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(40px, 6vw, 64px); line-height: 1; color: var(--hero-ink);
}
.assur-intro .big small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 13px; letter-spacing: .1em; color: var(--hero-muted); margin-top: 12px; text-transform: uppercase; }

/* ============================================================
   CONTACT / CTA
   ============================================================ */
.contact { background: var(--hero-bg); color: var(--hero-ink); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
.contact h2 { color: var(--hero-ink); font-size: clamp(30px, 4.4vw, 56px); margin-bottom: 20px; }
.contact .lead { color: var(--hero-muted); margin-bottom: 30px; }
.contact-card {
  background: color-mix(in oklab, var(--surface) 96%, transparent);
  color: var(--ink);
  border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow-md);
}
[data-theme="donker"] .contact-card { background: var(--surface); }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.contact-list li { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.contact-list li:last-child { border-bottom: none; }
.contact-list .ico {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
}
.contact-list .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.contact-list .v { font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--ink); text-decoration: none; }
.contact-list a.v:hover { color: var(--accent); }
.contact-cta { margin-top: 26px; }
.contact-cta .btn-primary { width: 100%; justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--paper); border-top: 1px solid var(--border); padding-block: 40px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
.footer-inner img { height: 24px; opacity: .9; }
[data-theme="donker"] .footer-inner img { filter: brightness(1.7); }
.footer-meta { font-size: 13.5px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--font-mono); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal.d1 { transition-delay: .08s; }
  .reveal.d2 { transition-delay: .16s; }
  .reveal.d3 { transition-delay: .24s; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .hero-grid, .about-grid, .contact-grid, .assur-intro { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 380px; }
  .about-photo { max-width: 420px; }
  .svc-groups { grid-template-columns: 1fr; }
  .assur-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .cred-grid { grid-template-columns: 1fr; }
  .header-cta .btn span.full { display: none; }
}
