/* ==========================================================================
   Resolutionz — eerste opzet website
   Stijl gebaseerd op het brandbook: navy + turquoise, halftoon, Century Gothic.
   ========================================================================== */

/* ---------- design tokens ---------- */
:root {
  --c-navy:        #0F1B2D;
  --c-navy-2:      #1A2A45;
  --c-turq:        #14C4B8;
  --c-turq-light:  #3FE5D8;
  --c-turq-dark:   #0A6D66;
  --c-grey:        #6B7A92;
  --c-soft:        #F5F7FA;
  --c-line:        #D9DEE6;
  --c-white:       #FFFFFF;

  --font-sans: "Century Gothic", "URW Gothic", "URW Gothic L", "ITC Avant Garde Gothic", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1180px;
  --gap:  clamp(16px, 4vw, 40px);

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 18px;

  --shadow-1: 0 6px 24px rgba(15, 27, 45, 0.08);
  --shadow-2: 0 12px 44px rgba(15, 27, 45, 0.12);
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-navy);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--c-turq);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5.2vw, 60px); }
h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: 20px; letter-spacing: 0; }
p  { margin: 0 0 1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 4vw, 32px); }

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-turq-dark);
  font-weight: 700;
  margin: 0 0 14px;
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::after {
  content: ""; display: inline-block; width: 32px; height: 2px;
  background: var(--c-turq); border-radius: 2px;
}
.eyebrow-light { color: var(--c-turq-light); }
.eyebrow-light::after { background: var(--c-turq); }

.lead { font-size: 18px; color: var(--c-grey); max-width: 60ch; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  /* iets minder padding links zodat het logo dichter naar de rand staat */
  padding: 14px clamp(20px, 4vw, 40px) 14px clamp(10px, 1.6vw, 18px);
  background: rgba(15, 27, 45, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.brand img { height: 48px; width: auto; }
.site-nav { display: flex; gap: 30px; align-items: center; }
.site-nav a {
  color: #DCE3EE; font-size: 15px; font-weight: 500;
  transition: color .15s ease;
}
.site-nav a:hover { color: var(--c-turq-light); }
.site-nav .nav-cta {
  padding: 9px 18px;
  border: 1.5px solid var(--c-turq);
  border-radius: 999px;
  color: var(--c-turq-light);
  font-weight: 600;
  transition: background .15s ease, color .15s ease;
}
.site-nav .nav-cta:hover { background: var(--c-turq); color: var(--c-navy); }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 8px; cursor: pointer;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s ease, opacity .2s ease; border-radius: 2px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  /* top gelijk aan de headerhoogte (logo 48px + 2x14px padding), zodat het
     menu bij scrollen netjes onder de header blijft hangen. */
  position: sticky; top: 76px; z-index: 49;
  background: rgba(15, 27, 45, 0.97);
  padding: 12px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mobile-nav a {
  display: block; padding: 10px 6px; color: #DCE3EE; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-nav a.nav-cta { color: var(--c-turq-light); border: 0; }
.mobile-nav.is-open { display: block; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  color: var(--c-white);
  padding: clamp(80px, 12vw, 140px) 0 clamp(72px, 10vw, 120px);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 70% 50%, rgba(20, 196, 184, 0.18), transparent 60%),
    linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-2) 100%);
  z-index: -2;
}
.hero-halftone {
  position: absolute;
  /* Alle 12 kolommen van het halftoon-patroon moeten altijd zichtbaar zijn -
     vaste merkregel, zie brandbook sectie 9. */
  left: 0; top: 50%; transform: translateY(-50%);
  height: 100%; width: auto;
  opacity: 0.85;
  pointer-events: none;
  z-index: -1;
}
.hero-inner {
  /* Hero-tekstblok staat links-verankerd, net rechts van het halftoon-patroon.
     H1, lead en CTA's lijnen allemaal op dezelfde linkermarge uit — rustig en
     consistent leesbaar, zonder dat het patroon onder de tekst doorloopt. */
  max-width: 880px;
  margin: 0;
  padding: 0 clamp(20px, 4vw, 32px) 0 clamp(50px, 14vw, 230px);
}
/* Hero-tekst staat op vaste pixelmaten vanaf tablet en groter, zodat het
   over alle viewports identiek oogt. Mobiel krijgt eigen kleinere maten in
   de media-query onderaan. */
.hero h1 .accent { color: var(--c-turq); }
.hero h1 {
  font-size: 56px;
  line-height: 1.12;
  /* Ruime spacing tussen H1 en lead. Resolutionz-voorkeur: liever te veel lucht
     dan te weinig. Zie ontwerp-voorkeuren in _workflow/Cowork-en-Claude-Code-werkwijze.md */
  margin-bottom: clamp(32px, 3vw, 48px);
}

/* ---------- Hero entrance-animaties ----------
   Bij eerste page-load verschijnen de H1-regels, lead en CTA's één voor één
   met een rustige fade-in vanuit hun eigen positie. Geen zijwaartse beweging —
   alleen ritme. Honoreert prefers-reduced-motion. */
.hero h1 .line {
  display: block;
  opacity: 0;
  animation: hero-fade-in 0.65s ease-out forwards;
}
.hero h1 .line-1 { animation-delay: 0.15s; }
.hero h1 .line-2 { animation-delay: 1.0s; }

.hero-lead {
  opacity: 0;
  animation: hero-fade-in 0.6s ease-out 2.0s forwards;
}
.hero-cta {
  opacity: 0;
  animation: hero-fade-in 0.6s ease-out 2.0s forwards;
}

@keyframes hero-fade-in {
  to { opacity: 1; }
}

/* ---------- Hero-visualisatie: Blender-gerenderde laser-scan video ----------
   Real 3D-gerenderde animatie van scanner + cube + fan + scan-points.
   hero.webm = VP9 met alpha (Chrome/Firefox/Edge), hero.mp4 = H264 fallback
   op zwarte achtergrond. Bron: hero_baselines/Baseline_v1_beatpattern. */
.hero-viz {
  position: absolute;
  /* Evenredige bleed naar rechts — schaalt mee met de viewport. */
  right: -7vw;
  top: 50%;
  transform: translateY(-50%);
  /* Vloeiend meeschalen: groeit/krimpt evenredig (64vw) met een onder- en
     bovengrens, zodat de animatie nooit te klein of te groot wordt en niet
     uit beeld valt. Mobiel krijgt eigen maten in de media-query onderaan. */
  width: clamp(360px, 64vw, 1180px);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  animation: viz-fade-in 0.8s ease-out 2.5s forwards;
}

.hero-laser-video {
  display: block;
  width: 100%;
  height: auto;
  /* MP4-fallback (Safari) heeft zwarte bg; `screen` blend zorgt dat zwart
     wegvalt en alleen de turquoise emission overblijft op donkere hero-bg.
     De WebM met alpha-channel werkt zonder deze truc maar krijgt 'm ook —
     identiek visueel resultaat zo. */
  mix-blend-mode: screen;
}

@keyframes viz-fade-in {
  to { opacity: 1; }
}

/* Bezoekers met OS-instelling 'reduce motion' krijgen geen animatie. */
@media (prefers-reduced-motion: reduce) {
  .hero h1 .line,
  .hero-lead,
  .hero-cta {
    animation: none;
    opacity: 1;
  }
  .hero-viz { animation: none; opacity: 0.85; }
  .hero-laser-video {
    /* Reduce-motion: pauzeer video op eerste frame */
    animation-play-state: paused;
  }
}
.hero-lead {
  font-size: 18px;
  line-height: 1.6;
  color: #C9D2E0; max-width: 60ch; margin-bottom: 36px;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Uitgevulde bodytekst — site-breed consistent met de hero.
   Justify + automatische woordafbreking (hyphens) houdt de woordgaten klein. */
.dienst p,
.over-text p:not(.eyebrow):not(.claim),
.contact-intro .lead {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px;
  font-family: inherit; font-size: 15px; font-weight: 600;
  border: 0; border-radius: 999px; cursor: pointer;
  text-decoration: none; line-height: 1;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--c-turq); color: var(--c-navy); }
.btn-primary:hover { background: var(--c-turq-light); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(20,196,184,0.35); }
.btn-ghost { background: transparent; color: var(--c-white); border: 1.5px solid rgba(255,255,255,0.35); }
.btn-ghost:hover { border-color: var(--c-turq); color: var(--c-turq-light); }

/* ---------- diensten ---------- */
.diensten {
  padding: clamp(72px, 10vw, 120px) 0;
  background: var(--c-white);
}
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head h2 { margin-bottom: 16px; }
.section-head .lead { margin: 0 auto; }

.diensten-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(18px, 2.4vw, 26px);
}
.dienst {
  background: var(--c-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.dienst:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: rgba(20,196,184,0.4);
}
.dienst-icon {
  width: 52px; height: 52px;
  color: var(--c-turq);
  margin-bottom: 22px;
}
.dienst h3 { color: var(--c-navy); margin-bottom: 10px; }
.dienst p { color: var(--c-grey); font-size: 15px; line-height: 1.6; margin: 0; }

/* ---------- over (dark) ---------- */
.over {
  position: relative;
  color: var(--c-white);
  padding: clamp(80px, 10vw, 120px) 0;
}
.over-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(45% 60% at 25% 60%, rgba(20, 196, 184, 0.16), transparent 65%),
    linear-gradient(160deg, var(--c-navy) 0%, var(--c-navy-2) 100%);
  z-index: -1;
}
.over-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 80px); align-items: center;
}
.over-text h2 { color: var(--c-white); }
.over-text p { color: #C9D2E0; max-width: 56ch; }
.over-text p:last-of-type { margin-bottom: 32px; }
.over-text .claim {
  color: var(--c-white);
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.005em;
  margin-top: 28px;
}
.over-text .claim .accent { color: var(--c-turq); }

.over-visual {
  position: relative; height: 360px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 50%, rgba(20,196,184,0.22), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(15,27,45,0) 0%, rgba(15,27,45,0.4) 60%, rgba(15,27,45,0.6) 100%);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.lens-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 50%, var(--c-turq) 0 8%, transparent 9%),
    radial-gradient(circle at 50% 50%, transparent 22%, rgba(20,196,184,0.22) 23%, transparent 26%),
    radial-gradient(circle at 50% 50%, transparent 36%, rgba(20,196,184,0.16) 37%, transparent 40%),
    radial-gradient(circle at 50% 50%, transparent 50%, rgba(20,196,184,0.12) 51%, transparent 54%);
  filter: blur(0.2px);
}

/* ---------- contact (light) ---------- */
.contact {
  padding: clamp(80px, 10vw, 120px) 0;
  background: var(--c-soft);
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px); align-items: start;
}
.contact-intro h2 { margin-bottom: 16px; }
.contact-intro .lead { margin-bottom: 28px; }
.contact-details {
  list-style: none; padding: 0; margin: 0 0 12px;
  border-top: 1px solid var(--c-line);
}
.contact-details li {
  display: grid; grid-template-columns: 110px 1fr;
  align-items: baseline; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-line);
  font-size: 16px;
}
.ci-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--c-grey);
}
.contact-details a { color: var(--c-navy); border-bottom: 1px solid transparent; transition: border-color .15s ease; }
.contact-details a:hover { border-color: var(--c-turq); }

.contact-form {
  position: relative;
  background: var(--c-white);
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-1);
}
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 600; color: var(--c-navy); margin-bottom: 6px; letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 16px; color: var(--c-navy);
  background: var(--c-white);
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--c-turq);
  box-shadow: 0 0 0 3px rgba(20,196,184,0.15);
  outline: none;
}
/* Type-aanvraag dropdown: zelfde look als de invoervelden, met eigen pijltje */
.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236B7A92' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
/* Placeholder-optie (nog niets gekozen) toont grijs, net als een leeg veld */
.field select:invalid { color: var(--c-grey); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form button { width: 100%; padding: 16px 26px; margin-top: 6px; }
.form-note { font-size: 13px; color: var(--c-grey); margin: 14px 0 0; text-align: center; }

/* honeypot anti-spam: onzichtbaar voor mensen, zichtbaar voor bots */
.hp-field {
  position: absolute;
  left: -9999px; top: 0;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* statusmelding na het versturen van het formulier */
.form-status {
  font-size: 14px; line-height: 1.5; font-weight: 600;
  margin: 14px 0 0; padding: 12px 14px;
  border-radius: var(--radius-sm); text-align: center;
}
.form-status.is-success {
  color: var(--c-turq-dark);
  background: rgba(20, 196, 184, 0.10);
  border: 1px solid rgba(20, 196, 184, 0.35);
}
.form-status.is-error {
  color: #B23B3B;
  background: rgba(178, 59, 59, 0.07);
  border: 1px solid rgba(178, 59, 59, 0.30);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--c-navy);
  color: #C9D2E0;
  padding: 48px 0 28px;
  position: relative;
}
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--c-turq) 50%, transparent);
}
.footer-grid {
  display: grid; grid-template-columns: 1fr auto; gap: 24px;
  align-items: center; padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand img { height: 32px; margin-bottom: 8px; }
.footer-brand p { margin: 0; font-size: 14px; color: #9AA7B8; }
.footer-meta p { margin: 4px 0; font-size: 14px; text-align: right; }
.footer-meta a { color: #C9D2E0; border-bottom: 1px solid transparent; }
.footer-meta a:hover { border-color: var(--c-turq); }
.muted { color: #6B7A92; }
.copyright { text-align: center; margin: 22px 0 0; font-size: 13px; color: var(--c-grey); }

.footer-social { display: inline-flex; margin-top: 12px; color: #C9D2E0; transition: color .15s ease; }
.footer-social:hover { color: var(--c-turq); }
.footer-social svg { width: 22px; height: 22px; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; }
  .hero-inner { padding: 0 clamp(20px, 4vw, 32px); }
  /* Mobiel: halftoon klein en subtiel op de achtergrond, alle 12 kolommen visible */
  .hero-halftone { left: 0; opacity: 0.35; height: 65%; }
  /* Mobiel: hero-tekst eigen, vaste, kleinere maten */
  .hero h1 { font-size: 36px; line-height: 1.18; }
  .hero-lead { font-size: 16px; }
  /* Mobiel: geen hero-animatie. Een telefoon-hero moet rust en focus geven;
     de navy-gradient, het halftoon-patroon en de koptekst dragen het merk.
     De scan-animatie blijft een desktop-pronkstuk. */
  .hero-viz { display: none; }
  .over-grid { grid-template-columns: 1fr; }
  .over-visual { height: 240px; }
  .contact-grid { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-meta p { text-align: left; }
}
