/* ═══════════════════════════════════════════════════
   Optimalisatiefabriek — main.css
   ═══════════════════════════════════════════════════ */

:root {
  --ink: #0B1929;
    --ink-soft: #0F2A45;
    --muted: #5A7A96;
    --line: #C8DCED;
    --paper: #F0F5FA;
    --paper-2: #E4EEF7;
  --white:        #FFFFFF;
  --werk: #143D66;
    --signaal: #2776BA;
    --signaal-dk: #1B5E9F;
    --attentie: #E07830;
  --radius:       14px;
  --radius-lg:    22px;
  --maxw:         1160px;
  --ease:         0.2s ease;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html  { scroll-behavior: smooth; }
body  {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--attentie); color: var(--ink); }
a      { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img    { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ── Utility ── */
.wrap    { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
.h2   { font-size: clamp(28px, 3.8vw, 50px); font-weight: 800; line-height: 1.07; letter-spacing: -.03em; }
.lead { font-size: clamp(16px, 1.4vw, 20px); color: var(--muted); line-height: 1.6; max-width: 58ch; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 20px; border-radius: 11px; font-weight: 600; font-size: 15px;
  transition: transform .15s ease, background var(--ease), border-color var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary   { background: var(--signaal); color: var(--white); }
.btn-primary:hover  { background: var(--signaal-dk); }
.btn-secondary { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); padding: 12px 0; }
.btn-ghost:hover { color: var(--signaal-dk); }
.btn .arrow { transition: transform var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ── Scroll reveal ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
  transition-delay: var(--delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ══════════════════════════════════════════
   NAV
══════════════════════════════════════════ */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 13px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; }
.logo .mark {
  width: 28px; height: 28px; border-radius: 7px; background: var(--ink);
  display: grid; place-items: center; flex-shrink: 0;
}
.logo .name { font-size: 16px; }
.logo .name b { font-weight: 800; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  padding: 7px 11px; border-radius: 8px; transition: background var(--ease), color var(--ease);
}
.nav a:hover  { background: rgba(0,0,0,.05); }
.nav a.active { color: var(--signaal-dk); font-weight: 600; }
.nav .cta {
  background: var(--ink); color: var(--white); padding: 9px 15px; border-radius: 9px;
  font-weight: 600; display: inline-flex; align-items: center; gap: 6px; margin-left: 8px;
  transition: background var(--ease);
}
.nav .cta:hover { background: var(--signaal-dk); }
.nav .cta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signaal); }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  padding: 7px; border-radius: 8px; cursor: pointer; transition: background var(--ease);
}
.nav-toggle:hover { background: rgba(0,0,0,.05); }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.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 drawer */
.mobile-nav {
  display: none;
  position: fixed; inset: 0; top: 57px; z-index: 90;
  background: var(--paper); padding: 24px 32px 40px;
  transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav nav { display: flex; flex-direction: column; gap: 0; }
.mobile-nav a {
  font-size: 17px; font-weight: 600; color: var(--ink);
  padding: 16px 0; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-nav a::after { content: "→"; color: var(--muted); font-weight: 400; }
.mobile-nav .mobile-cta {
  margin-top: 24px; background: var(--ink); color: var(--white);
  padding: 16px 20px; border-radius: 11px; text-align: center;
  font-size: 16px; font-weight: 700; display: block;
}
.mobile-nav .mobile-cta::after { display: none; }

/* ══════════════════════════════════════════
   SECTIONS (shared)
══════════════════════════════════════════ */
section { padding: 84px 0; }
.section-header { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; margin-bottom: 52px; align-items: end; }
.section-header.center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.section-header h2 { margin-top: 12px; }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero { padding: 100px 0 80px; }
.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.hero h1 {
  font-size: clamp(48px, 7vw, 104px); font-weight: 800;
  line-height: .96; letter-spacing: -.04em; margin-bottom: 28px;
}
.hero h1 em { font-style: normal; color: var(--signaal); }
.hero h1 .hl {
  background: linear-gradient(transparent 68%, var(--attentie) 68% 95%, transparent 95%);
  padding: 0 .1em;
}
.hero .sub {
  font-size: clamp(17px, 1.5vw, 21px); color: var(--muted);
  max-width: 56ch; margin: 0 auto 36px;
}
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 52px; }
.hero-meta {
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 32px;
}
.hero-meta .item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hero-meta .num { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.hero-meta .lbl { font-size: 12px; color: var(--muted); }

/* ══════════════════════════════════════════
   ABOUT / INTRO
══════════════════════════════════════════ */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-text .tagline {
  font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; letter-spacing: -.02em;
  line-height: 1.2; margin: 14px 0 20px;
}
.about-text p { color: var(--muted); font-size: 16px; line-height: 1.7; margin-bottom: 14px; max-width: 52ch; }
.about-text p:last-of-type { margin-bottom: 28px; }

.diagram-wrap { position: relative; }
.diagram-wrap svg {
  width: 100%;
  height: auto;
  max-width: 480px;
  display: block;
  margin: 0 auto;
  transform: scale(1.375);
  transform-origin: center center;
}

/* ══════════════════════════════════════════
   SERVICES
══════════════════════════════════════════ */
.services { background: var(--ink); color: var(--white); }
.services .eyebrow { color: rgba(255,255,255,.55); }
.services .eyebrow::before { background: var(--signaal); }
.services h2  { color: var(--white); }
.services .lead { color: rgba(255,255,255,.6); }

/* Tabs row */
.service-tabs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); overflow: hidden;
}
.stab {
  padding: 24px 16px; text-align: center; cursor: pointer;
  border-right: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.65); transition: background var(--ease), color var(--ease);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.stab:last-child { border-right: none; }
.stab:hover  { background: rgba(255,255,255,.05); color: var(--white); }
.stab.active { background: rgba(255,255,255,.08); color: var(--white); border-bottom: 2.5px solid var(--signaal); }
.stab .stab-ico {
  width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255,255,255,.07); color: rgba(255,255,255,.7);
  transition: background var(--ease);
}
.stab.active .stab-ico { background: var(--signaal); color: var(--white); }
.stab h4  { font-size: 14px; font-weight: 700; line-height: 1.2; }
.stab span { font-size: 11px; color: rgba(255,255,255,.5); }
.stab.active span { color: rgba(255,255,255,.7); }

/* Content panel */
.service-panel {
  margin-top: 0;
  border: 1px solid rgba(255,255,255,.1); border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 40px;
  background: rgba(255,255,255,.03);
  display: none;
}
.service-panel.active { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start; }
.service-panel h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 16px; }
.service-panel p  { font-size: 15px; color: rgba(255,255,255,.75); line-height: 1.75; margin-bottom: 16px; }
.service-panel p:last-of-type { margin-bottom: 0; }
.panel-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.panel-chip {
  font-size: 12px; font-weight: 500; padding: 5px 12px; border-radius: 100px;
  background: rgba(255,255,255,.07); color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.1);
}
.panel-cta { display: flex; flex-direction: column; gap: 10px; min-width: 180px; }
.panel-cta .btn { justify-content: center; }

/* ══════════════════════════════════════════
   APPROACH PILLARS
══════════════════════════════════════════ */
.approach { background: var(--paper-2); }
.pillars  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pillar {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; transition: transform var(--ease), box-shadow var(--ease);
}
.pillar:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.07); }
.pillar .num  { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--muted); font-family: ui-monospace, monospace; }
.pillar h3    { font-size: 26px; font-weight: 800; line-height: 1.08; letter-spacing: -.025em; margin: 12px 0 10px; }
.pillar p     { font-size: 14px; color: var(--muted); line-height: 1.65; }
.pillar .ico  { width: 48px; height: 48px; border-radius: 11px; background: var(--paper); display: grid; place-items: center; margin-bottom: 12px; font-size: 20px; }
.pillar.yellow {
  background: var(--attentie);
  border-color: var(--attentie);
}

.pillar.yellow .num,
.pillar.yellow p {
  color: var(--ink-soft);
}

.pillar.yellow .ico {
  background: rgba(255, 255, 255, .25);
  color: var(--ink-soft);
}

.pillar.green {
  background: var(--werk);
  color: var(--white);
  border-color: var(--werk);
}

.pillar.green .num,
.pillar.green p {
  color: rgba(255, 255, 255, .7);
}

.pillar.green .ico {
  background: rgba(255, 255, 255, .12);
  color: var(--white);
}

/* ══════════════════════════════════════════
   PROCESS TIMELINE
══════════════════════════════════════════ */
.process {
  background: var(--white);
}
.process-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; position: relative;
}
.process-grid::before {
  content: ""; position: absolute; top: 28px; left: 6%; right: 6%;
  height: 2px; background: var(--line); z-index: 0;
}
.pstep {
  background: var(--paper); border: 1px solid var(--line); border-radius: 13px;
  padding: 20px 16px; position: relative; z-index: 1; cursor: pointer;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.pstep:hover { border-color: var(--ink); }
.pstep .badge {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--line);
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
  margin: -40px 0 14px; transition: background var(--ease), border-color var(--ease);
}
.pstep.active .badge { background: var(--signaal); color: var(--white); border-color: var(--signaal); }
.pstep h4   { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.pstep p    { font-size: 12px; color: var(--muted); line-height: 1.5; }
.pstep .when {
  font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: .1em;
  text-transform: uppercase; margin-top: 10px; display: inline-block;
  padding: 3px 8px; background: var(--white); border: 1px solid var(--line); border-radius: 5px;
}

/* ══════════════════════════════════════════
   FAQ
══════════════════════════════════════════ */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; transition: border-color var(--ease); }
.faq-item.open { border-color: var(--ink); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; text-align: left; font-size: 16px; font-weight: 600; letter-spacing: -.01em;
  cursor: pointer;
}
.faq-q .pm {
  width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--ink);
  display: grid; place-items: center; font-size: 17px; flex-shrink: 0;
  transition: transform .25s ease, background var(--ease);
}
.faq-item.open .pm { transform: rotate(45deg); background: var(--ink); color: var(--white); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 22px 22px; color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 64ch; }
.faq-item.open .faq-a { max-height: 360px; }

/* ══════════════════════════════════════════
   CONTACT / END CTA
══════════════════════════════════════════ */
.end-cta { background: var(--paper-2); padding: 80px 0; text-align: center; }
.end-cta h2 {
  font-size: clamp(36px, 5vw, 66px); font-weight: 800; letter-spacing: -.035em;
  line-height: 1.04; margin: 16px 0 20px; max-width: 16ch; margin-left: auto; margin-right: auto;
}
.end-cta h2 .hl { background: linear-gradient(transparent 65%, var(--attentie) 65% 94%, transparent 94%); padding: 0 .1em; }
.end-cta .sub   { color: var(--muted); font-size: 17px; max-width: 50ch; margin: 0 auto 32px; line-height: 1.6; }
.end-cta .ctas  { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.end-cta .note  { margin-top: 24px; font-size: 13px; color: var(--muted); }
.end-cta .note a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 56px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 40px; }
.foot-col h5 {
  color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 12px;
}
.foot-col a { font-size: 14px; color: rgba(255,255,255,.65); display: block; padding: 3px 0; transition: color var(--ease); }
.foot-col a:hover { color: var(--white); }
.foot-blurb { font-size: 13px; line-height: 1.65; color: rgba(255,255,255,.55); max-width: 28ch; margin-top: 10px; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px;
  font-size: 12px; color: rgba(255,255,255,.4); flex-wrap: wrap; gap: 12px;
}
.foot-bottom-links { display: flex; gap: 16px; }
.foot-bottom a:hover { color: var(--white); }
.foot-credit { font-size: 12px; color: rgba(255,255,255,0.28); text-align: center; margin-top: 16px; }
.foot-credit a { color: rgba(255,255,255,0.45); text-decoration: none; }
.foot-credit a:hover { color: var(--white); }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 900px) {
  .about-grid    { grid-template-columns: 1fr; gap: 40px; }
                                .diagram-wrap {
                                  max-width: 460px;
                                  margin: 0 auto;
                                }
  .section-header { grid-template-columns: 1fr; gap: 20px; }

  .service-tabs  { grid-template-columns: repeat(2, 1fr); }
  .stab:nth-child(2) { border-right: none; }
  .stab:nth-child(1), .stab:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.12); }

  .service-panel.active { grid-template-columns: 1fr; }
  .panel-cta { flex-direction: row; flex-wrap: wrap; }

  .pillars { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav a:not(.cta) { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: block; }
}

@media (max-width: 580px) {
  .wrap  { padding: 0 20px; }
  .topbar-inner { padding: 12px 20px; }
  .mobile-nav { padding: 20px 20px 36px; }
  section { padding: 56px 0; }
  .hero { padding: 48px 0 40px; }

  .service-tabs { grid-template-columns: 1fr 1fr; }
  .stab h4 { font-size: 12px; }
  .service-panel { padding: 24px 20px; }
  .pillars { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}
