/* ==================================================================
   SAL Solutions — Blueprint / HUD huisstijl v2.0
   ------------------------------------------------------------------
   AANPASSEN? De belangrijkste knoppen zitten hieronder in :root —
   kleuren, rastergrootte en animatiesnelheden. Elke sectie is
   gemarkeerd met een kop zodat je snel kunt vinden wat je zoekt.
   ================================================================== */

:root {
  /* -- kleuren -- */
  --bg: #070B14;
  --surface: #0C1322;
  --blue: #2E7CF6;
  --cyan: #22D3EE;
  --text: #F2F5FA;
  --muted: #93A0B8;
  --grad: linear-gradient(90deg, var(--blue), var(--cyan));

  /* -- blueprint-lijnen -- */
  --grid: rgba(146, 180, 255, 0.045);       /* fijn raster */
  --grid-strong: rgba(146, 180, 255, 0.07); /* grof raster */
  --line: rgba(146, 180, 255, 0.16);        /* randen & dividers */
  --line-bright: rgba(34, 211, 238, 0.55);  /* accentlijnen */

  /* -- maatvoering & tempo -- */
  --grid-size: 48px;         /* rastercel klein */
  --grid-size-lg: 240px;     /* rastercel groot */
  --scan-duration: 9s;       /* snelheid scanlijn in hero */
  --ticker-duration: 28s;    /* snelheid tekstband */
  --reveal-duration: 0.7s;   /* snelheid scroll-animaties */

  /* -- typografie -- */
  --font-head: 'Space Grotesk', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  /* het blueprint-raster: fijn + grof, vast t.o.v. de viewport */
  background-image:
    linear-gradient(var(--grid-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size:
    var(--grid-size-lg) var(--grid-size-lg),
    var(--grid-size-lg) var(--grid-size-lg),
    var(--grid-size) var(--grid-size),
    var(--grid-size) var(--grid-size);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

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

h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; }

/* mono-microlabels: het DNA van deze stijl */
.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   HOEKMARKERINGEN — zet class "corner-box" op elk element dat
   blueprint-hoekjes moet krijgen (kaarten, formulier, visual)
   ============================================================ */
.corner-box { position: relative; }

.corner-box::before,
.corner-box::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  transition: width 0.25s, height 0.25s;
  pointer-events: none;
}

.corner-box::before {
  top: -1px; left: -1px;
  border-top: 1px solid var(--line-bright);
  border-left: 1px solid var(--line-bright);
}

.corner-box::after {
  bottom: -1px; right: -1px;
  border-bottom: 1px solid var(--line-bright);
  border-right: 1px solid var(--line-bright);
}

.corner-box:hover::before,
.corner-box:hover::after { width: 26px; height: 26px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 1.2rem;
}

.brand svg { width: 34px; height: 34px; flex-shrink: 0; }
.brand strong { font-weight: 700; }
.brand span { font-weight: 300; }

.site-nav { display: flex; align-items: center; gap: 26px; }

.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--text); }
.site-nav a .idx { color: var(--cyan); margin-right: 5px; }

.lang-switch {
  border: 1px solid var(--line);
  padding: 6px 12px;
  transition: border-color 0.2s, color 0.2s;
}

.lang-switch:hover { border-color: var(--cyan); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }

.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  margin: 5px 0;
}

/* ============================================================
   KNOPPEN — hoekige, technische stijl
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 15px 30px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
}

.btn-primary {
  background: var(--grad);
  color: #04121e;
  box-shadow: 0 0 24px rgba(46, 124, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(34, 211, 238, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover { border-color: var(--cyan); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 190px 0 120px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

/* zachte gloed achter de titel */
.hero::before {
  content: "";
  position: absolute;
  width: 640px; height: 640px;
  border-radius: 50%;
  background: rgba(46, 124, 246, 0.12);
  filter: blur(100px);
  top: -220px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

/* scanlijn die langzaam van boven naar beneden loopt */
.scanline {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-bright), transparent);
  animation: scan var(--scan-duration) linear infinite;
  pointer-events: none;
}

@keyframes scan {
  0%   { top: 0; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* live X/Y-uitlezing rechtsboven (gevuld door main.js) */
.coords {
  position: absolute;
  top: 92px; right: 28px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 1px;
  color: var(--muted);
  opacity: 0.7;
}

/* decoratieve kruisjes op rasterpunten */
.cross {
  position: absolute;
  width: 15px; height: 15px;
  opacity: 0.5;
  pointer-events: none;
}

.cross::before,
.cross::after { content: ""; position: absolute; background: var(--line-bright); }
.cross::before { left: 7px; top: 0; width: 1px; height: 15px; }
.cross::after  { top: 7px; left: 0; height: 1px; width: 15px; }

.hero .container { position: relative; z-index: 1; }

/* statuschip met knipperend blokje */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--line);
  padding: 8px 18px;
  margin-bottom: 34px;
}

.status-chip .dot {
  width: 7px; height: 7px;
  background: var(--cyan);
  animation: blink 1.6s steps(2, start) infinite;
}

@keyframes blink { 50% { opacity: 0.15; } }

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.1rem);
  font-weight: 700;
  max-width: 840px;
  margin: 0 auto 30px;
}

/* maatlijn onder de titel, zoals op een technische tekening */
.dim-line {
  display: flex;
  align-items: center;
  max-width: 560px;
  margin: 0 auto 30px;
}

.dim-line .tick { width: 1px; height: 12px; background: var(--line-bright); }
.dim-line .rule { flex: 1; height: 1px; background: var(--line); }

.dim-line .lbl {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 16px;
  white-space: nowrap;
}

.hero .sub {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 620px;
  margin: 0 auto 42px;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* mono-dataregel onderin de hero */
.hero-data {
  display: flex;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
  margin-top: 64px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-data span b { color: var(--cyan); font-weight: 500; }

/* ============================================================
   TEKSTBAND (ticker)
   ============================================================ */
.ticker {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 14px 0;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  gap: 0;
  animation: ticker var(--ticker-duration) linear infinite;
}

.ticker span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  padding-right: 24px;
}

.ticker span i { font-style: normal; color: var(--cyan); padding-left: 24px; }

@keyframes ticker { to { transform: translateX(-50%); } }

/* ============================================================
   SECTIES
   ============================================================ */
section { padding: 100px 0; }

/* sectielabel: SEC.01 // NAAM met doorlopende lijn */
.sec-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 26px;
}

.sec-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.section-head { max-width: 680px; margin-bottom: 56px; }

.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ============================================================
   DIENSTEN — kaarten met hoekmarkeringen
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 34px 30px;
  transition: transform 0.2s;
}

.card:hover { transform: translateY(-4px); }

.card .card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.card .icon {
  width: 50px; height: 50px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card .icon svg { width: 25px; height: 25px; stroke: var(--cyan); }

.card .idx {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  color: var(--muted);
}

.card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }

.card ul { list-style: none; font-size: 0.88rem; color: var(--muted); }

.card ul li {
  padding: 7px 0 7px 22px;
  position: relative;
  border-top: 1px dashed var(--line);
}

.card ul li:first-child { border-top: none; }

.card ul li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-family: var(--font-mono);
}

/* ============================================================
   WERKWIJZE — schema met knooppunten op een lijn
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.step { border-top: 1px solid var(--line); padding-top: 26px; position: relative; }

/* vierkant knooppunt op de lijn */
.step::before {
  content: "";
  position: absolute;
  top: -4px; left: 0;
  width: 7px; height: 7px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
}

.step .num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  display: block;
  margin-bottom: 12px;
}

.step h3 { font-size: 1.12rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ============================================================
   WAAROM — spec-sheet raster (cellen gescheiden door 1px lijn)
   ============================================================ */
.usps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.usp { background: var(--bg); padding: 30px 28px; display: flex; gap: 16px; align-items: flex-start; }

.usp svg { width: 22px; height: 22px; stroke: var(--cyan); flex-shrink: 0; margin-top: 3px; }
.usp h3 { font-size: 1rem; margin-bottom: 6px; }
.usp p { color: var(--muted); font-size: 0.9rem; }

/* ============================================================
   OVER — met blueprint-tekening van het beeldmerk
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.about-text h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 18px; }
.about-text p { color: var(--muted); margin-bottom: 16px; }

.about-visual {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.about-visual svg { width: 230px; height: auto; }

/* lijn-tekenanimatie: paden met class "draw" tekenen zichzelf
   zodra de sectie in beeld komt (main.js zet .visible) */
.draw {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
}

.visible .draw {
  animation: drawIn 1.6s ease forwards;
}

.visible .draw:nth-of-type(2) { animation-delay: 0.3s; }
.visible .draw:nth-of-type(3) { animation-delay: 0.6s; }

@keyframes drawIn { to { stroke-dashoffset: 0; } }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }

.contact-info h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 16px; }
.contact-info > p { color: var(--muted); margin-bottom: 32px; }

.contact-lines { list-style: none; border-top: 1px solid var(--line); }

.contact-lines li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-lines svg { width: 19px; height: 19px; stroke: var(--cyan); flex-shrink: 0; }
.contact-lines a:hover { color: var(--text); }

.contact-form { background: var(--surface); border: 1px solid var(--line); padding: 38px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan);
}

.field textarea { resize: vertical; min-height: 130px; }

.hp-field { position: absolute; left: -9999px; opacity: 0; }

.form-status { margin-top: 14px; font-size: 0.9rem; display: none; }
.form-status.ok  { display: block; color: #4ADE80; }
.form-status.err { display: block; color: #F87171; }

/* ============================================================
   FOOTER — met "titelblok" zoals op een technische tekening
   ============================================================ */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 14px; font-size: 1.05rem; }
.footer-brand p { color: var(--muted); font-size: 0.85rem; }

.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }

.footer-nav a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-nav a:hover { color: var(--text); }

/* het titelblok */
.titleblock {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 24px;
}

.titleblock > div { background: var(--bg); padding: 12px 16px; }

.titleblock .k {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}

.titleblock .v {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  color: var(--text);
}

.titleblock .v.accent { color: var(--cyan); }

.footer-legal {
  color: var(--muted);
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   SCROLL-ANIMATIES
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--reveal-duration) ease, transform var(--reveal-duration) ease;
}

.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scanline, .ticker-track, .status-chip .dot { animation: none; }
  .draw, .visible .draw { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .about, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { min-height: 240px; }
  .usps { grid-template-columns: 1fr; }
  .titleblock { grid-template-columns: repeat(2, 1fr); }
  .coords { display: none; }
}

@media (max-width: 720px) {
  .site-nav {
    position: fixed;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
    display: none;
  }

  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 0; font-size: 0.8rem; width: 100%; }
  .site-nav .lang-switch { width: auto; margin-top: 8px; padding: 6px 16px; }
  .nav-toggle { display: block; }

  section { padding: 64px 0; }
  .hero { padding: 150px 0 84px; }
  .hero-data { gap: 18px; }
  .form-row { grid-template-columns: 1fr; }
  .cross { display: none; }
}
