/* ==========================================================================
   quinnov — Web design system implementation
   Bron: Quinnov Web Design System & AI Implementation Directive (Sectie 3–8)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* --- LIGHT SURFACE TOKENS (Header, Focus Areas, Track Record) --- */
  --color-canvas-white: #FFFFFF;     /* Zuivere leesdrager */
  --color-canvas-subtle: #F8FAFC;    /* Kaart- en sectie-achtergronden */
  --color-border-primary: #E2E8F0;   /* 1px architecturale haarlijnen */
  --color-border-subtle: #F1F5F9;
  --color-text-navy: #0A192F;        /* Obsidian Navy (koppen & woordmerk) */
  --color-text-body: #334155;        /* Donker leisteen voor doorlopende tekst */
  --color-text-muted: #64748B;       /* Midden leisteen voor labels & toelichting */
  --color-text-technical: #94A3B8;   /* Monospace metadata & datumstempels */
  --color-nav: #475569;              /* Navigatielinks (Sectie 6.1) */

  /* --- DARK SURFACE TOKENS (Contact & Engagement Footer) --- */
  --color-midnight-base: #070D18;    /* Diepste nachtblauw voor contactsectie */
  --color-midnight-surface: #0B1528; /* Verhoogde donkere container */
  --color-midnight-border: #1E293B;  /* 1px scheidslijn op donker */
  --color-midnight-text: #F8FAFC;    /* Krijtwit primair */
  --color-midnight-muted: #94A3B8;   /* Leisteengrijs secundair */

  /* --- FUNCTIONAL ACCENTS --- */
  --color-accent-photonic: #0284C7;  /* Fotonisch Cerulean */
  --color-accent-hover: #0369A1;     /* Donkerder blauw bij hover */
  --color-accent-glow: rgba(2, 132, 199, 0.12);

  /* --- LAYOUT & WHITESPACE TOKENS (>= 45% witruimte-regel) --- */
  --container-max-width: 1200px;
  --container-wide-width: 1400px;
  --header-height: 72px;
  --section-padding-y: clamp(4.5rem, 8vw, 7.5rem); /* Verticale sectiespatiëring */
  --section-gap: clamp(3rem, 6vw, 5rem);           /* Interne sectie-afstand */
  --radius-sharp: 0px;                             /* Geen speelse afrondingen */
  --radius-subtle: 2px;                            /* Maximaal 2px micro-afronding */

  /* --- GRID TOKENS (desktop default, Sectie 5.1) --- */
  --grid-columns: 12;
  --grid-gutter: 24px;
  --container-padding: 32px;

  /* --- TYPOGRAPHY TOKENS --- */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-canvas-white);
  color: var(--color-text-body);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, dl, dt, dd {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

:focus-visible {
  outline: 1px solid var(--color-accent-photonic);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* --------------------------------------------------------------------------
   3. Typographic matrix (Sectie 4.2)
   -------------------------------------------------------------------------- */
h1 {
  font-family: var(--font-display);
  font-size: clamp(2.0rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--color-text-navy);
  max-width: 32ch;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.0rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--color-text-navy);
}

h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--color-text-navy);
}

p {
  max-width: 72ch;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.0;
  color: var(--color-accent-photonic);
  text-transform: uppercase;
}

/* Merknaam blijft altijd in onderkast (woordmerk-conventie) */
.eyebrow--brand {
  text-transform: none;
}

.lead {
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-body);
  max-width: 72ch;
}

.data-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.mono-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-size: 0.9375em;
  color: var(--color-text-navy);
}

/* --------------------------------------------------------------------------
   4. Layout: container, grid, sections
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container-max-width) + 2 * var(--container-padding));
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  column-gap: var(--grid-gutter);
}

.section {
  padding-block: var(--section-padding-y);
}

.section-stack {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}

/* --------------------------------------------------------------------------
   5. Adaptive header (Sectie 6.1)
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   5. Adaptive header (Sectie 6.1)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  background: rgba(7, 13, 24, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-midnight-border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  display: block;
  flex-shrink: 0;
  color: var(--color-midnight-text); /* Krijtwit (#F8FAFC) — maakt de SVG direct wit */
}

.brand-logo svg {
  width: 140px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
}

.site-nav a {
  font-family: var(--font-body);
  font-size: 0.8125rem; /* 13px */
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-midnight-muted); /* Subtiel leisteengrijs (#94A3B8) */
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-midnight-text); /* Krijtwit (#F8FAFC) bij hover */
}

/* --------------------------------------------------------------------------
   6. Executive proposition & Core focus areas (Sectie 5.2, 6.3)
   -------------------------------------------------------------------------- */
.section-proposition {
  padding-top: calc(var(--section-padding-y) * 0.75);
  border-bottom: 1px solid var(--color-border-primary);
}

.section-focus {
  border-bottom: 1px solid var(--color-border-primary);
}

.focus-grid {
  row-gap: var(--grid-gutter);
  align-items: stretch;
}

.focus-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: var(--color-canvas-subtle);
  border: 1px solid var(--color-border-primary);
  border-radius: var(--radius-sharp);
  transition: border-color 160ms ease;
}

.focus-card:hover {
  border-color: var(--color-accent-photonic);
}

.card-index {
  display: block;
}

/* --------------------------------------------------------------------------
   7. Background and track record (Sectie 6.4)
   -------------------------------------------------------------------------- */
.background-intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.track-record-list {
  border-top: 1px solid var(--color-border-primary);
}

.track-row {
  padding-block: 32px;
  border-bottom: 1px solid var(--color-border-primary);
  row-gap: 8px;
}

.pillar-title {
  grid-column: span 4;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--color-text-navy);
}

.pillar-body {
  grid-column: span 8;
  max-width: 72ch;
  color: var(--color-text-body);
}

/* --------------------------------------------------------------------------
   8. Contact and engagement model — dark anchor canvas (Sectie 5.2, 6.2, 7)
   -------------------------------------------------------------------------- */
.section-contact-dark {
  flex-grow: 1;
  background: var(--color-midnight-base);
  color: var(--color-midnight-text);
  padding-top: var(--section-padding-y);
  padding-bottom: 48px;
}

.section-contact-dark h2 {
  color: var(--color-midnight-text);
}

.section-contact-dark p {
  color: var(--color-midnight-muted);
}

.contact-grid {
  row-gap: 40px;
}

.contact-intro {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-channels {
  grid-column: 8 / span 5;
  border-top: 1px solid var(--color-midnight-border);
}

.channel-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-block: 20px;
  border-bottom: 1px solid var(--color-midnight-border);
}

.section-contact-dark .data-label {
  color: var(--color-midnight-muted);
}

.btn-direct {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem; /* 12px */
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--color-midnight-text);
  background: var(--color-midnight-surface);
  border: 1px solid var(--color-midnight-border);
  border-radius: var(--radius-sharp);
  transition: border-color 160ms ease, color 160ms ease;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.btn-direct:hover,
.btn-direct:focus-visible {
  border-color: var(--color-accent-photonic);
  color: var(--color-accent-photonic);
}

.scope-value {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--color-midnight-text);
}

/* Legal & trademark notice */
.legal {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--color-midnight-border);
}

.footer-logo {
  width: 120px;
  height: auto;
  color: var(--color-midnight-text);
}

.legal-notice {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-contact-dark .legal-notice p {
  font-family: var(--font-mono);
  font-size: 0.6875rem; /* 11px */
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.6;
  color: var(--color-text-technical);
  max-width: none;
}

/* --------------------------------------------------------------------------
   9. Responsive — Tablet (768px – 1023px): 8 kolommen
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  :root {
    --grid-columns: 8;
    --grid-gutter: 20px;
    --container-padding: 32px;
  }

  .focus-card {
    grid-column: span 8;
  }

  .pillar-title {
    grid-column: span 3;
  }

  .pillar-body {
    grid-column: span 5;
  }

  .contact-intro,
  .contact-channels {
    grid-column: span 8;
  }
}

/* --------------------------------------------------------------------------
   10. Responsive — Mobiel (< 768px): 4 kolommen
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  :root {
    --grid-columns: 4;
    --grid-gutter: 16px;
    --container-padding: 20px;
  }

  .focus-card,
  .pillar-title,
  .pillar-body,
  .contact-intro,
  .contact-channels {
    grid-column: span 4;
  }

  .focus-card {
    padding: 24px;
  }

  .track-row {
    padding-block: 24px;
  }

  .site-nav {
    gap: 16px;
  }

  .site-nav a {
    font-size: 0.75rem; /* 12px */
    letter-spacing: 0.01em;
  }

  h1 {
    font-size: clamp(1.45rem, 6.5vw, 1.95rem);
    line-height: 1.22;
  }

  /* [Punt D] Monospace kicker: gecontroleerde regelafbreking */
  .eyebrow,
  .kicker {
    line-height: 1.45;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
    white-space: normal;
  }
}

/* Smalle mobiele header edge-case (< 480px): verfijnde gap en compact logo */
@media (max-width: 480px) {
  .header-inner {
    gap: 12px;
  }

  .brand-logo svg {
    width: 110px;
  }

  .site-nav {
    gap: 10px;
  }

  .site-nav a {
    font-size: 0.71875rem; /* 11.5px */
    letter-spacing: 0;
  }
}

/* Extreem smalle viewports (< 360px, bijv. 320px-toestellen) */
@media (max-width: 359px) {
  .header-inner {
    gap: 8px;
  }

  .brand-logo svg {
    width: 95px;
  }

  .site-nav {
    gap: 8px;
  }

  .site-nav a {
    font-size: 0.6875rem; /* 11px */
  }
}

/* --------------------------------------------------------------------------
   11. Print — dossier-export (1–2 A4-pagina's)
   -------------------------------------------------------------------------- */
@media print {
  @page {
    size: A4;
    margin: 16mm 14mm;
  }

  :root {
    --section-padding-y: 1.25rem;
    --section-gap: 1.25rem;
  }

  html {
    scroll-padding-top: 0;
  }

  body {
    display: block;
    min-height: 0;
    font-size: 10pt;
    background: #FFFFFF;
  }

  .site-header {
    position: static;
    height: auto;
    padding-block: 0 8px;
    background: #FFFFFF;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-nav {
    display: none;
  }

  .container {
    max-width: none;
    padding-inline: 0;
  }

  h1 { font-size: 20pt; max-width: none; }
  h2 { font-size: 14pt; }
  h3 { font-size: 11pt; }
  .lead { font-size: 10.5pt; }

  .focus-card {
    grid-column: span 4;
    padding: 12px;
    background: #FFFFFF;
  }

  /* Behoud desktop 12-koloms indeling op papier */
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 12px; }
  .pillar-title { grid-column: span 4; }
  .pillar-body { grid-column: span 8; }
  .contact-intro { grid-column: span 6; }
  .contact-channels { grid-column: 8 / span 5; }

  .focus-card,
  .track-row,
  .channel-row,
  .legal {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .track-row { padding-block: 10px; }

  /* Donker canvas omzetten naar inktvriendelijk licht, met behoud van haarlijnen */
  .section-contact-dark {
    background: #FFFFFF;
    color: var(--color-text-navy);
    padding-bottom: 0;
    break-before: auto;
  }

  .section-contact-dark h2,
  .scope-value,
  .btn-direct,
  .footer-logo {
    color: var(--color-text-navy);
  }

  .section-contact-dark p,
  .section-contact-dark .data-label,
  .section-contact-dark .legal-notice p {
    color: var(--color-text-body);
  }

  .contact-channels,
  .channel-row,
  .legal {
    border-color: var(--color-border-primary);
  }

  .btn-direct {
    padding: 0;
    background: none;
    border: 0;
  }

  .btn-direct[href^="http"]::after {
    content: " (" attr(href) ")";
    text-transform: none;
    letter-spacing: 0;
  }
}
