/* HW Consulting – stylesheet
 * Beeldtaal: de drie balken uit het logo zijn planningsbalken (Gantt).
 * Knoppen en balken: recht aan de linkerkant, rond aan de rechterkant.
 */

@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"), url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: italic; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url("../fonts/archivo-latin-wdth-italic.woff2") format("woff2-variations"), url("../fonts/archivo-latin-wdth-italic.woff2") format("woff2"); }

:root {
  --ink: #10243E;
  --ink-2: #0B1A2E;
  --text: #1C2B40;
  --muted: #51627A;
  --blue: #0A79D5;          /* logo */
  --blue-dark: #0863AF;
  --line: #D6DFE8;
  --paper: #F3F6F9;
  --white: #fff;
  --error: #B42318;

  --c-ifs: #0A4F92;
  --c-d365: #0A79D5;
  --c-optimity: #7DB4E5;
  --c-other: #AEBBC9;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --r: 14px;
  --bar-r: 0 999px 999px 0;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 20px); scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.1; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.break { overflow-wrap: anywhere; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- typografie ---------- */
.h1, .hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); font-weight: 780; font-stretch: 112%; letter-spacing: -0.025em; line-height: 1.02; }
.h2 { font-size: clamp(1.85rem, 3.3vw, 2.7rem); font-weight: 760; font-stretch: 110%; letter-spacing: -0.02em; }
.h3 { font-size: 1.25rem; font-weight: 720; font-stretch: 105%; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; margin-top: 16px; }
.prose { max-width: 40rem; }
.prose p { margin-bottom: 1em; }
.prose h2:not(.h2) { font-size: 1.3rem; margin: 1.6em 0 .5em; }
.prose-page { max-width: 44rem; }

/* ---------- knoppen ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: .7em 1.6em .7em 1.25em; border: 2px solid transparent; border-radius: var(--bar-r); font: inherit; font-weight: 650; font-stretch: 105%; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn-sm { min-height: 40px; padding: .45em 1.3em .45em 1em; font-size: .95rem; }
.btn-lg { min-height: 54px; font-size: 1.05rem; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper); color: var(--ink); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand img { height: 52px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav > a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 560; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav > a:not(.btn):hover, .main-nav > a[aria-current="page"] { border-bottom-color: var(--blue); }
.main-nav .lang { font-weight: 700; color: var(--muted); }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 80px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.hero-copy { padding-bottom: clamp(32px, 5vw, 64px); }
.hero h1 { max-width: 12ch; }
.hero-lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--text); max-width: 36rem; margin: 24px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { margin: 0; justify-self: end; width: 100%; max-width: 340px; }
.hero-photo img { width: 100%; aspect-ratio: 356 / 534; object-fit: cover; border-radius: 0 var(--r) 0 0; }

.hero-bars { display: grid; gap: 8px; width: calc(50% + min(50%, var(--wrap) / 2 + var(--gutter)) - var(--gutter)); margin-top: -10px; position: relative; z-index: 1; }
.hbar { display: flex; align-items: center; justify-content: flex-end; height: 38px; padding: 0 22px; border-radius: var(--bar-r); color: #fff; text-decoration: none; font-weight: 650; font-stretch: 108%; font-size: .98rem; transform-origin: left center; }
.hbar:hover { color: #fff; filter: brightness(1.08); }
.hbar-1 { width: 69%; }
.hbar-2 { width: 52%; }
.hbar-3 { width: 100%; height: 70px; font-size: clamp(1.05rem, 1.8vw, 1.35rem); }
.hbar.g-optimity, .hbar.g-optimity:hover { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .hbar { animation: bar-in .9s cubic-bezier(.2,.7,.2,1) both; }
  .hbar-2 { animation-delay: .12s; }
  .hbar-3 { animation-delay: .24s; }
  .hbar span { animation: fade-in .4s ease .8s both; }
  .hbar-3 span { animation-delay: 1s; }
}
@keyframes bar-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- secties ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tight { padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); }
.section-paper { background: var(--paper); }
.sec-head { margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; }
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 80px); }
.page-head { padding: clamp(48px, 7vw, 88px) 0 0; }
.page-head .lead { margin-top: 20px; }

/* herken je dit */
.pain-list { list-style: none; padding: 0; border-top: 2px solid var(--ink); }
.pain-list li { position: relative; padding: 18px 0 18px 52px; border-bottom: 1px solid var(--line); font-size: 1.15rem; font-weight: 500; color: var(--ink); }
.pain-list li::before { content: ""; position: absolute; left: 0; top: 50%; width: 32px; height: 10px; margin-top: -5px; border-radius: var(--bar-r); background: var(--blue); }
.pains-answer { margin-top: 28px; font-size: 1.15rem; color: var(--muted); max-width: 38rem; }

/* diensten */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 40px; }
.service { border-top: 2px solid var(--ink); padding-top: 20px; }
.service h3 { font-size: 1.2rem; font-weight: 720; font-stretch: 105%; margin-bottom: 10px; }
.service p { color: var(--muted); }

/* aanpak: planning met verspringende balken */
.plan { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.plan-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.plan-text h3 { display: flex; align-items: baseline; gap: 12px; font-size: 1.2rem; font-weight: 720; font-stretch: 105%; margin-bottom: 6px; }
.plan-num { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .9rem; font-weight: 700; transform: translateY(-2px); }
.plan-text p { color: var(--muted); padding-left: 42px; }
.plan-track { position: relative; height: 26px; background-image: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px calc(100% / var(--steps))); }
.plan-bar { position: absolute; top: 0; bottom: 0; left: calc(100% / var(--steps) * var(--i)); width: calc(100% / var(--steps) * 1.35); max-width: calc(100% - 100% / var(--steps) * var(--i)); border-radius: var(--bar-r); background: linear-gradient(90deg, var(--c-ifs), var(--blue)); }

/* ---------- Gantt ---------- */
.g-legend { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; color: var(--muted); }
.g-legend li { display: flex; align-items: center; gap: 8px; }
.g-key { display: inline-block; width: 22px; height: 10px; border-radius: var(--bar-r); flex: none; }
.g-ifs { background: var(--c-ifs); }
.g-d365 { background: var(--c-d365); }
.g-optimity { background: var(--c-optimity); }
.g-other { background: var(--c-other); }

.gantt { --info: minmax(0, 1fr); --track: minmax(0, 1.55fr); border-top: 2px solid var(--ink); }
.g-axis { display: grid; grid-template-columns: var(--info) var(--track) 28px; gap: 0 28px; }
.g-axis-track { grid-column: 2; position: relative; height: 34px; }
.g-year { position: absolute; top: 8px; font-size: .78rem; font-weight: 600; color: var(--muted); transform: translateX(4px); }
.g-row { border-top: 1px solid var(--line); }
.g-head { display: grid; grid-template-columns: var(--info) var(--track) 28px; grid-template-areas: "info track toggle" "meta track toggle"; gap: 2px 28px; align-items: center; padding: 16px 0; list-style: none; }
summary.g-head { cursor: pointer; }
summary.g-head::-webkit-details-marker { display: none; }
.g-info { grid-area: info; display: block; }
.g-client { display: block; font-weight: 700; font-stretch: 104%; color: var(--ink); font-size: 1.05rem; }
.g-client small { font-weight: 500; color: var(--muted); font-size: .82rem; font-stretch: 100%; }
.g-role { display: block; color: var(--text); font-size: .95rem; }
.g-meta { grid-area: meta; font-size: .82rem; color: var(--muted); }
.g-plat::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; margin: 0 8px 2px 4px; }
.g-track { grid-area: track; position: relative; align-self: stretch; min-height: 34px; background-image: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px calc(100% / var(--years))); }
.g-bar { position: absolute; top: 50%; height: 16px; margin-top: -8px; min-width: 14px; border-radius: var(--bar-r); }
.g-bar.g-open { border-radius: 0; -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent); mask-image: linear-gradient(90deg, #000 70%, transparent); }
.g-toggle { grid-area: toggle; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--ink); transition: transform .2s ease, background-color .2s; }
summary.g-head:hover .g-client { color: var(--blue-dark); }
summary.g-head:hover .g-toggle { border-color: var(--ink); }
.g-row[open] .g-toggle { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.g-detail { padding: 0 0 22px; max-width: 46rem; }
.g-detail h4 { font-size: .95rem; margin: 16px 0 6px; }
.g-detail ul { padding-left: 1.2em; }
.g-detail li + li { margin-top: 3px; }
.g-goal { margin-bottom: 0; }
.g-result { list-style: none; padding-left: 0 !important; }
.g-result li { display: flex; gap: 8px; }
.g-result .icon { color: var(--blue); flex: none; margin-top: 5px; }
.g-row[hidden] { display: none; }
.more { margin-top: 28px; }
.clients { list-style: none; padding: 0; margin-top: 44px; display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--muted); font-weight: 600; font-stretch: 106%; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 18px 6px 14px; border: 1.5px solid var(--line); border-radius: var(--bar-r); background: #fff; font: inherit; font-size: .95rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.chip > span:last-child { color: var(--muted); font-weight: 500; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-pressed="true"] > span:last-child { color: rgba(255,255,255,.75); }

/* ---------- over mij ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-text .h2 { margin-bottom: 24px; }
.about-side { display: grid; gap: 28px; }
.quote { margin: 0; padding: 28px 30px; background: var(--ink); color: #fff; border-radius: 0 var(--r) var(--r) 0; position: relative; }
.quote::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--blue); }
.quote p { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-style: italic; font-weight: 600; font-stretch: 108%; line-height: 1.25; color: #fff; margin-bottom: 14px; }
.quote footer { color: rgba(255,255,255,.72); font-size: .95rem; }
.cert { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: start; }
.cert img { width: 96px; height: 96px; }
.cert h3 { font-size: 1.1rem; margin-bottom: 8px; }
.cert p { font-size: .95rem; color: var(--muted); margin-bottom: .6em; }
.why-title { margin: clamp(48px, 7vw, 80px) 0 24px; }
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.why-item { border-top: 2px solid var(--blue); padding-top: 16px; }
.why-item h4 { font-size: 1.1rem; font-weight: 720; margin-bottom: 8px; }
.why-item p { color: var(--muted); }

/* ervaring: feiten */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.fact-list { list-style: none; padding: 0; margin-top: 14px; }
.fact-list li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.mt { margin-top: 32px; }
.cert-stack { grid-template-columns: 1fr; }
.cert-stack img { width: 120px; height: 120px; }

/* cta-band */
.cta-band { background: var(--ink); }
.cta-band .h2 { color: #fff; }
.cta-band .lead { color: rgba(255,255,255,.8); margin-bottom: 28px; }

/* ---------- contact ---------- */
.contact { background: var(--ink); color: rgba(255,255,255,.85); }
.contact .h2 { color: #fff; }
.contact .lead { color: rgba(255,255,255,.8); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.direct-title { margin: 36px 0 12px; font-weight: 650; color: #fff; }
.direct { list-style: none; padding: 0; display: grid; gap: 10px; }
.direct a { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 560; }
.direct a:hover { text-decoration: underline; color: #fff; }
.direct .icon { color: var(--c-optimity); flex: none; }
.contact-form { background: #fff; color: var(--text); border-radius: 0 var(--r) var(--r) 0; padding: clamp(22px, 4vw, 40px); border-left: 8px solid var(--blue); }
.f-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 18px; }
.f-full { grid-column: 1 / -1; }
.f-field { margin-bottom: 16px; }
.f-field label { display: block; font-weight: 620; color: var(--ink); margin-bottom: 6px; font-size: .95rem; }
.f-field label small { font-weight: 400; color: var(--muted); }
.f-field input[type=text], .f-field input[type=email], .f-field input[type=tel], .f-field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #fff; border: 1.5px solid #B9C6D4; border-radius: 8px; padding: 11px 14px; min-height: 48px; }
.f-field textarea { resize: vertical; min-height: 130px; }
.f-field input:focus, .f-field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10,121,213,.2); }
.f-field [aria-invalid="true"] { border-color: var(--error); }
.f-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--text) !important; }
.f-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.f-error { color: var(--error); font-size: .88rem; margin: 6px 0 0; font-weight: 600; }
.f-hp { position: absolute; left: -9999px; height: 1px; overflow: hidden; }
.f-notice { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 8px; margin-bottom: 20px; font-weight: 560; }
.f-ok { background: #E7F6EC; color: #054F31; }
.f-warn { background: #FEF3C7; color: #7A4B00; }
.f-bad { background: #FDECEA; color: var(--error); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink-2); color: rgba(255,255,255,.72); padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.footer-brand img { height: 52px; width: auto; margin-bottom: 16px; }
.footer-list { list-style: none; padding: 0; display: grid; gap: 10px; align-content: start; }
.footer-list a, .footer-list span { display: inline-flex; align-items: center; gap: 10px; }
.footer-list .icon { color: var(--c-optimity); flex: none; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: .85rem; }
.footer-bottom a { color: rgba(255,255,255,.72); text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .services, .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: 1fr 1fr; }
  .cert-stack { grid-column: 1 / -1; grid-template-columns: 96px minmax(0, 1fr); }
  .cert-stack img { width: 96px; height: 96px; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .brand img { height: 40px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 16px 6px 12px; border: 1.5px solid var(--line); border-radius: var(--bar-r); background: #fff; font: inherit; font-weight: 650; color: var(--ink); cursor: pointer; }
  .nav-toggle-bars { display: grid; gap: 3px; }
  .nav-toggle-bars i { display: block; height: 3px; border-radius: var(--bar-r); background: var(--blue); }
  .nav-toggle-bars i:nth-child(1) { width: 14px; }
  .nav-toggle-bars i:nth-child(2) { width: 10px; }
  .nav-toggle-bars i:nth-child(3) { width: 20px; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; box-shadow: 0 16px 30px -20px rgba(16,36,62,.35); }
  .main-nav.is-open { display: flex; }
  .main-nav > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav > a:not(.btn):hover, .main-nav > a[aria-current="page"] { border-bottom-color: var(--line); color: var(--blue-dark); }
  .main-nav .btn { margin-top: 16px; align-self: flex-start; }
  .header-inner { position: static; }
  .site-header { position: sticky; }

  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 150px); align-items: start; gap: 20px; }
  .hero-copy { padding-bottom: 32px; }
  .hero-photo { max-width: 150px; }
  .hero h1 { max-width: none; }
  .hero-copy { grid-column: 1 / -1; grid-row: 2; }
  .hero-photo { grid-row: 1; grid-column: 1; justify-self: start; }
  .hero-bars { width: 100%; margin-top: 0; }
  .hbar { height: 32px; padding: 0 14px; font-size: .9rem; }
  .hbar-1 { width: 78%; }
  .hbar-2 { width: 62%; }
  .hbar-3 { height: 56px; }

  .split, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .plan-step { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .plan-text p { padding-left: 42px; }

  .gantt { --info: minmax(0, 1fr); }
  .g-axis { grid-template-columns: minmax(0, 1fr); }
  .g-axis-track { grid-column: 1; }
  .g-year-odd { display: none; }
  .g-head { grid-template-columns: minmax(0, 1fr) 28px; grid-template-areas: "info toggle" "meta toggle" "track track"; gap: 2px 16px; }
  .g-track { min-height: 26px; margin-top: 8px; }
  div.g-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "info" "meta" "track"; }
}
@media (max-width: 640px) {
  .services, .why, .facts { grid-template-columns: minmax(0, 1fr); }
  .f-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .pain-list li { padding-left: 44px; font-size: 1.05rem; }
  .pain-list li::before { width: 26px; }
  .plan-text p { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
