/* ============================================================
   Cematix — design tokens
   Palette drawn from the logo mark: mint → emerald → forest.
   ============================================================ */
:root{
  --paper:      #F5F7F3;
  --paper-dim:  #ECF0E9;
  --ink:        #0B1710;
  --ink-soft:   #35473D;
  --forest:     #071B14;
  --forest-2:   #0A2E22;
  --emerald:    #0E9F6A;
  --mint:       #4ADE80;
  --mint-light: #A8F0BE;
  --line:       rgba(11,23,16,0.12);
  --line-dark:  rgba(255,255,255,0.14);

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --container: 1120px;
  --radius: 18px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{
  font-family:var(--font-display);
  margin:0 0 .5em;
  letter-spacing:-0.01em;
  line-height:1.08;
}
p{ margin:0 0 1em; }
ul{ margin:0; padding:0; list-style:none; }
:focus-visible{ outline:2px solid var(--emerald); outline-offset:3px; }

.wrap{
  max-width:var(--container);
  margin:0 auto;
  padding:0 28px;
}

.eyebrow{
  font-family:var(--font-mono);
  font-size:12.5px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--emerald);
  display:flex;
  align-items:center;
  gap:.6em;
  margin-bottom:1em;
}
.eyebrow::before{
  content:"";
  width:7px;height:7px;border-radius:50%;
  background:var(--mint);
  box-shadow:0 0 0 3px rgba(74,222,128,.25);
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:.5em;
  font-family:var(--font-mono);
  font-size:13.5px;
  letter-spacing:.02em;
  padding:14px 24px;
  border-radius:999px;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-1px); }
.btn-primary{
  background:var(--ink);
  color:var(--paper);
}
.btn-primary:hover{ background:var(--forest-2); }
.btn-ghost{
  border-color:var(--line);
  color:var(--ink);
  background:transparent;
}
.btn-ghost:hover{ border-color:var(--ink); }
.btn-on-dark{
  border-color:var(--line-dark);
  color:var(--paper);
}
.btn-on-dark:hover{ border-color:var(--mint); color:var(--mint-light); }
.btn-solid-on-dark{
  background:var(--mint);
  color:var(--forest);
}
.btn-solid-on-dark:hover{ background:var(--mint-light); }

/* ---------- Nav ---------- */
.site-nav{
  position:sticky; top:0; z-index:50;
  background:rgba(245,247,243,.82);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.site-nav .wrap{
  height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ width:36px; height:36px; }
.brand-word{
  font-family:var(--font-display);
  font-weight:600;
  font-size:19px;
  letter-spacing:-0.01em;
}
.brand-word small{
  display:block;
  font-family:var(--font-mono);
  font-weight:400;
  font-size:10.5px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--ink-soft);
}
.nav-links{
  display:flex;
  align-items:center;
  gap:36px;
  font-size:14.5px;
}
.nav-links a{
  position:relative;
  padding:4px 0;
  color:var(--ink-soft);
}
.nav-links a:hover, .nav-links a.active{ color:var(--ink); }
.nav-links a.active::after{
  content:"";
  position:absolute; left:0; right:0; bottom:-4px;
  height:2px; background:var(--emerald); border-radius:2px;
}
.nav-cta{ display:flex; align-items:center; gap:14px; }
.nav-phone{
  font-family:var(--font-mono);
  font-size:13.5px;
  display:none;
}
.nav-toggle{
  display:none;
  background:none; border:0; cursor:pointer;
  width:40px; height:40px;
  flex-direction:column; align-items:center; justify-content:center; gap:5px;
}
.nav-toggle span{ width:20px; height:2px; background:var(--ink); border-radius:2px; }

@media (min-width: 860px){
  .nav-phone{ display:inline; }
}
@media (max-width: 859px){
  .nav-links{
    position:absolute; top:78px; left:0; right:0;
    background:var(--paper);
    border-bottom:1px solid var(--line);
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    padding:8px 28px 20px;
    display:none;
  }
  .nav-links.open{ display:flex; }
  .nav-links a{ width:100%; padding:12px 0; }
  .nav-toggle{ display:flex; }
}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  min-height:88vh;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  background:var(--forest);
  color:var(--paper);
}
.hero canvas{
  position:absolute; inset:0;
  width:100%; height:100%;
  z-index:0;
}
.hero::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(7,27,20,.18) 0%, rgba(7,27,20,.58) 78%, rgba(7,27,20,.88) 100%);
  z-index:1;
}
.hero-inner{
  position:relative; z-index:2;
  width:100%;
  padding:128px 0 76px;
}
.hero .eyebrow{ color:var(--mint-light); }
.hero .eyebrow::before{ background:var(--mint); box-shadow:0 0 0 3px rgba(74,222,128,.3); }
.hero h1{
  font-size:clamp(40px, 6.4vw, 84px);
  max-width:16ch;
  color:#fff;
}
.hero-sub{
  max-width:46ch;
  font-size:18px;
  color:rgba(245,247,243,.82);
  margin-top:2em;
}
.hero-actions{ display:flex; flex-wrap:wrap; gap:14px; }
.hero-ring{
  position:absolute; z-index:1;
  right:-120px; top:-120px;
  width:520px; height:520px;
  opacity:.16;
}
@media (max-width: 640px){
  .hero-inner{ padding:140px 0 56px; }
}

/* ---------- Sections ---------- */
section{ padding:112px 0; }
.section-head{
  display:flex; justify-content:space-between; align-items:flex-end; gap:32px;
  margin-bottom:56px;
}
.section-head h2{ font-size:clamp(28px,3.6vw,42px); max-width:14ch; }
.section-head p{ max-width:38ch; color:var(--ink-soft); margin:0; }
@media (max-width: 720px){
  .section-head{ flex-direction:column; align-items:flex-start; }
}

.section-dark{
  background:var(--forest);
  color:var(--paper);
}
.section-dark .ink-soft{ color:rgba(245,247,243,.72); }
.section-dark h2{ color:#fff; }

/* ---------- Service cards ---------- */
.grid-cards{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(250px,1fr));
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
}
.card{
  background:var(--paper);
  padding:36px 32px;
  transition:background .2s ease;
}
.card:hover{ background:#fff; }
.card .ring-icon{ margin-bottom:22px; }
.card h3{ font-size:19px; margin-bottom:.5em; }
.card p{ color:var(--ink-soft); font-size:14.5px; margin:0; }

.ring-icon{
  width:46px; height:46px;
  border-radius:50%;
  border:2px solid var(--emerald);
  border-top-color:var(--mint);
  display:flex; align-items:center; justify-content:center;
}
.ring-icon svg{ width:20px; height:20px; stroke:var(--forest-2); }

/* ---------- Process ---------- */
.process-list{
  display:grid;
  gap:0;
}
.process-item{
  display:grid;
  grid-template-columns:64px 1fr;
  gap:24px;
  padding:28px 0;
  border-top:1px solid var(--line-dark);
}
.process-item:last-child{ border-bottom:1px solid var(--line-dark); }
.process-ring{
  width:44px; height:44px;
  border-radius:50%;
  border:2px solid var(--mint);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-mono);
  font-size:13px;
  color:var(--mint-light);
}
.process-item h3{ font-size:19px; color:#fff; margin-bottom:.35em; }
.process-item p{ margin:0; color:rgba(245,247,243,.72); max-width:56ch; font-size:14.5px; }

/* ---------- Values / why us ---------- */
.value-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(230px,1fr));
  gap:40px;
}
.value-grid h3{ font-size:18px; margin-bottom:.4em; }
.value-grid p{ color:var(--ink-soft); font-size:14.5px; margin:0; }
.value-mark{
  width:34px; height:2px;
  background:var(--emerald);
  margin-bottom:18px;
}

/* ---------- Stats / animated counters ---------- */
.stats-section{ padding-top:0; }
.stat-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(200px,1fr));
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
}
.stat-item{
  background:var(--paper);
  padding:44px 28px;
  text-align:center;
}
.stat-number{
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(38px,5vw,56px);
  color:var(--forest-2);
  letter-spacing:-0.02em;
  line-height:1;
  margin-bottom:12px;
}
.stat-number .stat-affix{
  color:var(--emerald);
}
.stat-label{
  font-family:var(--font-mono);
  font-size:12.5px;
  letter-spacing:.06em;
  color:var(--ink-soft);
}

/* ---------- CTA band ---------- */
.cta-band{
  background:var(--ink);
  color:var(--paper);
  border-radius:24px;
  padding:64px 48px;
  display:flex;
  flex-wrap:wrap;
  gap:32px;
  align-items:center;
  justify-content:space-between;
}
.cta-band h2{ color:#fff; margin-bottom:.3em; font-size:clamp(24px,3vw,34px); }
.cta-band p{ margin:0; color:rgba(245,247,243,.7); }
.cta-band-actions{ display:flex; gap:14px; flex-wrap:wrap; }
@media (max-width:640px){ .cta-band{ padding:44px 28px; } }

/* ---------- Footer ---------- */
footer{
  background:var(--forest);
  color:rgba(245,247,243,.75);
  padding:72px 0 32px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr;
  gap:40px;
  padding-bottom:48px;
  border-bottom:1px solid var(--line-dark);
}
.footer-brand .brand-word{ color:#fff; }
.footer-brand .brand-word small{ color:rgba(245,247,243,.6); }
.footer-brand p{ margin-top:16px; max-width:34ch; font-size:14px; }
footer h4{
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--mint-light);
  margin-bottom:16px;
}
footer li{ margin-bottom:10px; font-size:14.5px; }
footer a:hover{ color:#fff; }
.footer-bottom{
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;
  padding-top:28px;
  font-family:var(--font-mono);
  font-size:12px;
  color:rgba(245,247,243,.5);
}
@media (max-width:720px){
  .footer-grid{ grid-template-columns:1fr; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero{
  padding:170px 0 72px;
  background:var(--forest);
  color:#fff;
  position:relative;
  overflow:hidden;
}
.page-hero canvas{
  position:absolute; inset:0;
  width:100%; height:100%;
  z-index:0;
}
.page-hero::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(7,27,20,.25) 0%, rgba(7,27,20,.6) 78%, rgba(7,27,20,.88) 100%);
  z-index:1;
}
.page-hero .wrap{ position:relative; z-index:2; }
.page-hero h1{ font-size:clamp(34px,5vw,58px); color:#fff; max-width:18ch; }
.page-hero p{ max-width:52ch; color:rgba(245,247,243,.78); font-size:17px; }
.page-hero-ring{
  position:absolute; right:-140px; top:-100px;
  width:460px; height:460px; opacity:.14; z-index:1;
}

/* ---------- Diensten page ---------- */
.service-detail{
  display:grid;
  grid-template-columns:56px 1fr;
  gap:24px;
  padding:40px 0;
  border-top:1px solid var(--line);
}
.service-detail:last-child{ border-bottom:1px solid var(--line); }
.service-detail h3{ font-size:22px; margin-bottom:.4em; }
.service-detail p{ color:var(--ink-soft); max-width:62ch; }
.service-num{
  font-family:var(--font-mono);
  font-size:13px;
  color:var(--emerald);
  padding-top:6px;
}

/* ---------- Contact page ---------- */
.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:64px;
  align-items:start;
}
@media (max-width:860px){
  .contact-grid{ grid-template-columns:1fr; gap:48px; }
}
.contact-card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:32px;
  margin-bottom:16px;
}
.contact-card h3{ font-size:12px; font-family:var(--font-mono); text-transform:uppercase; letter-spacing:.12em; color:var(--emerald); margin-bottom:.6em; }
.contact-card .value{ font-size:20px; font-family:var(--font-display); }
.contact-card .value a:hover{ color:var(--emerald); }

.field{ margin-bottom:20px; }
.field label{
  display:block; font-family:var(--font-mono); font-size:12px;
  text-transform:uppercase; letter-spacing:.1em; color:var(--ink-soft);
  margin-bottom:8px;
}
.field input, .field textarea{
  width:100%;
  border:1px solid var(--line);
  background:#fff;
  border-radius:10px;
  padding:13px 15px;
  font-family:var(--font-body);
  font-size:15px;
  color:var(--ink);
}
.field input:focus, .field textarea:focus{ border-color:var(--emerald); outline:none; }
.field textarea{ resize:vertical; min-height:120px; }
.form-note{ font-size:13px; color:var(--ink-soft); margin-top:14px; }

.map-frame{
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--line);
  height:320px;
}
.map-frame iframe{ width:100%; height:100%; border:0; display:block; }

/* ---------- Utility ---------- */
.mb-0{ margin-bottom:0; }
