/* JH Business Intelligence — stylesheet
   Kleuren en lettertypes pas je centraal aan in :root */
:root {
  --primary: #172e75;      /* kopteksten, donkerblauw (WordPress) */
  --primary-2: #23419a;
  --accent: #0c3b31;       /* accentkleur, groen (WordPress) */
  --accent-dark: #05503e;
  --logo-green: #258307;   /* donkergroen uit het logo */
  --text: #1f2933;
  --muted: #5b6b7a;
  --bg: #ffffff;
  --bg-soft: #f0faf7;       /* achtergrond met kleur (WordPress) */
  --border: #d6e7e1;
  --radius: 10px;
  --max: 1140px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
a:hover { color: var(--primary); }
h1, h2, h3 { color: var(--primary); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: #fff; padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Topbar ---------- */
.topbar { background: var(--accent); color: #fff; font-size: .9rem; }
.topbar .container { display: flex; justify-content: flex-end; gap: 22px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: #bfe6da; }
.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 78px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 54px; width: auto; }
.logo-text { font-weight: 800; font-size: 1.5rem; color: var(--primary); letter-spacing: .02em; }
.logo-text span { color: var(--accent); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 12px; font: inherit; font-weight: 600; color: var(--primary); cursor: pointer;
  align-items: center; gap: 8px;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 20px; height: 2px; background: var(--primary); position: relative; content: ""; transition: .2s;
}
.nav-toggle .bars::before { position: absolute; top: -6px; }
.nav-toggle .bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav a {
  display: block; padding: 10px 16px; border-radius: 8px; text-decoration: none;
  color: var(--primary); font-weight: 600;
}
.main-nav a:hover { background: var(--bg-soft); }
.main-nav a[aria-current="page"] { color: var(--accent-dark); }

@media (max-width: 1100px) {
  .main-nav ul { gap: 2px; }
  .main-nav a { padding: 10px 12px; }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--border);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
}
@media (max-width: 760px) {
  .topbar .container { justify-content: center; gap: 16px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary) 45%, var(--accent-dark) 100%);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.hero .container { position: relative; padding-top: clamp(70px, 12vw, 100px); padding-bottom: clamp(70px, 12vw, 100px); }
.hero h1 { color: #fff; }
.hero p { font-size: 1.2rem; color: #e4e9f6; }
.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; font-size: .95rem; border: 0; cursor: pointer; font-family: inherit;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
/* Compactere secties (o.a. Koppelingen-pagina): minder witruimte tussen de blokken */
.compact .section { padding-block: clamp(32px, 5vw, 56px); }
.section-soft {
  background-color: var(--bg-soft);
  /* foto met een laag in de bg-soft kleur erover, zodat het rustig en licht blijft */
  background-image: linear-gradient(rgba(240, 250, 247, .88), rgba(240, 250, 247, .88)), url("/assets/img/achtergrond.jpg");
  background-size: cover;
  background-position: center;
}
/* Witte sectie waarin de kaarten een groene rand hebben (zelfde groen als de lijn onder de titelbalk) */
.section-green { background: var(--bg); }
.section-green .card { border: 3px solid var(--logo-green); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--accent-dark); margin-bottom: .6em; }
.lead { font-size: 1.2rem; color: var(--muted); }
/* Titelbalk subpagina's: kleurverloop zoals de hero, hero-foto rechts (vervaagt naar links), groene accentlijn */
.page-head {
  position: relative; overflow: hidden; color: #fff; padding: 22px 0 26px;
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary) 45%, var(--accent-dark) 100%);
  border-bottom: 4px solid var(--logo-green);
}
.page-head::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 60%); pointer-events: none;
  background: url("/assets/img/hero.jpg") center / cover no-repeat; opacity: .35;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 45%);
          mask-image: linear-gradient(to right, transparent, #000 45%);
}
.page-head .container { position: relative; }
.page-head h1 { color: #fff; margin: 0; font-size: clamp(1.4rem, 2.5vw, 1.75rem); }
.page-sub { margin: 4px 0 0; color: rgba(255, 255, 255, .82); font-size: 1.05rem; }
/* Minder witruimte tussen titelbalk en eerste inhoud */
.page-head + .section,
.hero + .section { padding-top: clamp(28px, 4vw, 44px); }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 32px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 2px 10px rgba(23, 46, 117, .06);
}
.card .num { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 14px; }
.card .num svg { width: 26px; height: 26px; }
/* Alleen voor schermlezers (bijv. "Stap 1:" bij de iconen) */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Logo's van gekoppelde systemen; per logo een hoogte zodat de woordmerken even groot ogen
   (de bestanden hebben verschillend veel lege ruimte eromheen) */
.card-logo { height: 64px; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 18px; }
.card-logo img { width: auto; max-width: 100%; object-fit: contain; object-position: center; }
.card-logo .logo-exact { height: 44px; }
.card-logo .logo-twinfield { height: 72px; }
.card-logo .logo-timewax { height: 98px; max-width: none; }
/* Klantcases */
.cases { display: grid; gap: 24px; }
.case {
  display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; box-shadow: 0 2px 10px rgba(23, 46, 117, .06);
}
.case-logo { display: flex; align-items: center; justify-content: center; height: 110px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.case-logo img { max-height: 70px; width: auto; object-fit: contain; }
.case h2 { margin-bottom: .2em; }
.case h3 { color: var(--accent-dark); font-weight: 600; margin-bottom: .8em; }
.case p:last-of-type { margin-bottom: 0; }
@media (max-width: 760px) {
  .case { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .case-logo { height: 90px; max-width: 260px; }
}
.tags { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-size: .95rem; }

/* ---------- Klanten ---------- */
.clients { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: center; margin-top: 28px; }
.clients figure {
  margin: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  height: 120px; display: grid; place-items: center; padding: 18px;
}
.clients img { max-height: 80px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: .25s; }
.clients figure:hover img { filter: none; opacity: 1; }
.clients .fallback { font-weight: 800; font-size: 1.4rem; color: var(--muted); }
@media (max-width: 640px) { .clients { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Contactblok / footer ---------- */
.contact-band { background: var(--bg); color: var(--text); padding: 56px 0; }
.contact-band .container { display: grid; grid-template-columns: 1fr auto 1fr; gap: 48px; }
.contact-band .container > div:last-child { text-align: right; }
.contact-band .container > div:last-child .social { justify-content: flex-end; }
.contact-band h2, .contact-band h3 { color: var(--primary); }
.contact-band h2 { font-size: 1.5rem; }
.contact-band ul { list-style: none; padding: 0; margin: 0; }
.contact-band li { margin-bottom: 10px; }
.contact-band a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.contact-band a:hover { color: var(--accent); }
.tagline { font-size: 1.35rem; font-weight: 700; color: var(--primary); line-height: 1.35; white-space: nowrap; }
@media (max-width: 900px) {
  .contact-band .container { grid-template-columns: 1fr; gap: 32px; }
  .tagline { white-space: normal; }
  .contact-band .container > div:last-child { text-align: left; }
  .contact-band .container > div:last-child .social { justify-content: flex-start; }
}
.social { display: flex; gap: 12px; }
.social a {
  width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff;
  display: grid; place-items: center; transition: background .2s;
}
.social a:hover { background: var(--accent); color: #fff; }
.social .icon { width: 20px; height: 20px; }

.site-footer { background: var(--bg); color: var(--text); border-top: 1px solid rgba(23, 46, 117, .15); font-size: .9rem; padding: 18px 0; text-align: center; }
.site-footer a { color: var(--primary); }

/* ---------- Formulier ---------- */
.form-grid { display: grid; gap: 18px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row-2 { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--primary); }
label .req { color: #c0392b; }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
  font: inherit; color: var(--text); background: #fff;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
textarea { min-height: 160px; resize: vertical; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.consent input { margin-top: 5px; }
.consent label { font-weight: 400; color: var(--text); margin: 0; }
.form-msg { padding: 14px 16px; border-radius: 8px; display: none; }
.form-msg.ok { display: block; background: #e6f6ee; color: #146c43; border: 1px solid #b7e4cb; }
.form-msg.err { display: block; background: #fdecea; color: #a12a1e; border: 1px solid #f5c2bc; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 32px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.card .tags li { background: var(--bg-soft); }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.info-list .icon { color: var(--accent); width: 20px; height: 20px; }

/* ---------- Privacy ---------- */
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
