/* ============================================================
   in2ai — Componenten & layout
   ============================================================ */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* --- Layout helpers --- */
.wrap  { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.wrap-wide { width: 100%; max-width: var(--maxw-wide); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: var(--sec-pad); }
.section--alt  { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #f5f7fa; }
.center { text-align: center; }
.eyebrow {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 18px;
}
.section--dark .eyebrow { color: var(--brand-azure); }

/* --- Typografie --- */
h1, h2, h3 { font-weight: 600; letter-spacing: var(--tracking-h); line-height: var(--lh-snug); }
.h-hero {
  font-size: var(--fs-hero); font-weight: 600; line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }
.lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--ink-2); font-weight: 400; }
.section--dark .lead { color: #c7cfdb; }
.muted { color: var(--ink-2); }
.grad-text {
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* --- Knoppen --- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 13px 26px; border-radius: var(--radius-pill);
  font-size: 1.0625rem; font-weight: 500; border: 1px solid transparent;
  transition: transform .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 20px -8px rgba(30,111,196,.7); }
.btn--primary:hover { background: var(--brand-hover); }
.btn--ghost { background: rgba(30,111,196,.08); color: var(--brand); }
.btn--ghost:hover { background: rgba(30,111,196,.14); }
.section--dark .btn--ghost { background: rgba(255,255,255,.1); color: #fff; }
.btn--sm { padding: 8px 17px; font-size: 0.9375rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .32em;
  color: var(--brand); font-size: 1.0625rem; font-weight: 500;
}
.link-arrow .chev { transition: transform .2s var(--ease); }
.link-arrow:hover .chev { transform: translateX(3px); }
.section--dark .link-arrow { color: var(--brand-azure); }

/* --- Navigatie (translucent, blur, sticky) --- */
.nav {
  position: sticky; top: 0; z-index: 100; height: 52px;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline-2);
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 26px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 30px; margin-inline: auto; }
.nav__links a {
  font-size: 0.875rem; color: var(--ink); opacity: .82;
  transition: opacity .15s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { opacity: 1; }
.nav__cta { display: flex; align-items: center; }
.nav__links-cta { display: none; }

/* Hamburger */
.nav__toggle {
  display: none; margin-left: auto; width: 40px; height: 40px;
  align-items: center; justify-content: center; border: 0; background: transparent; border-radius: 10px;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 20px; height: 1.5px; background: var(--ink); border-radius: 2px;
  transition: transform .28s var(--ease), opacity .2s var(--ease);
}
.nav__toggle span { position: relative; }
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after  { position: absolute; top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__cta { display: none; }
  .nav__links {
    position: absolute; top: 52px; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255,255,255,.96);
    backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--hairline-2);
    padding: 6px 0 14px; display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 15px var(--gut); opacity: 1; font-size: 1.0625rem; }
  .nav__links-cta { display: block; margin: 10px var(--gut) 0; color: #fff !important;
    background: var(--brand); border-radius: var(--radius-pill); text-align: center; padding: 13px 20px !important; }
}

/* Interior page-hero (kleiner dan homepage-hero) */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(64px, 10vw, 104px) clamp(28px, 5vw, 48px); text-align: center; }
.page-hero .h-hero { font-size: clamp(2.25rem, 4.6vw, 3.5rem); max-width: 20ch; margin-inline: auto; }
.page-hero .lead { max-width: 52ch; margin: 20px auto 0; }
.page-hero__glow { position: absolute; inset: -40% 0 auto 0; height: 460px; z-index: 0; background: var(--brand-glow); opacity: .7; pointer-events: none; }
.page-hero .wrap { position: relative; z-index: 1; }

/* Detail-service rijen */
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,70px); align-items: center; padding-block: clamp(40px,6vw,72px); border-top: 1px solid var(--hairline-2); }
.svc-row:first-of-type { border-top: 0; }
.svc-row__media { aspect-ratio: 4/3; border-radius: var(--radius); background-color: var(--brand-strong); background-position: center; background-size: cover; background-repeat: no-repeat; box-shadow: var(--shadow-card); }
.svc-row h2 { font-size: var(--fs-h3); margin-bottom: 14px; }
.svc-row p { color: var(--ink-2); }
.svc-row p + p { margin-top: 12px; }
@media (max-width: 760px) { .svc-row { grid-template-columns: 1fr; } .svc-row__media { order: -1; } }

/* Blog cards */
.bloglist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.blogcard {
  display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--hairline-2);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.blogcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.blogcard__cover { aspect-ratio: 16/9; background-color: var(--brand-strong); background-position: center; background-size: cover; background-repeat: no-repeat; }
.blogcard__body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blogcard__meta { font-size: .8125rem; color: var(--ink-3); }
.blogcard h3 { font-size: 1.3125rem; line-height: 1.25; }
.blogcard p { color: var(--ink-2); font-size: 1rem; }
.blogcard .link-arrow { margin-top: auto; font-size: 1rem; }
@media (max-width: 700px) { .bloglist { grid-template-columns: 1fr; } }

/* Prose (blog-artikel) */
.prose { max-width: 720px; margin-inline: auto; }
.prose > * + * { margin-top: 22px; }
.prose h2 { font-size: 1.6rem; margin-top: 44px; }
.prose h3 { font-size: 1.3rem; margin-top: 32px; }
.prose p, .prose li { color: #2b2b2f; font-size: 1.1875rem; line-height: 1.62; }
.prose ul { padding-left: 1.25em; display: grid; gap: 10px; }
.prose li::marker { color: var(--brand); }
.prose blockquote { border-left: 3px solid var(--brand); padding: 4px 0 4px 22px; color: var(--ink-2); font-style: italic; }
.prose strong { color: var(--ink); }
.article-head { text-align: center; max-width: 760px; margin: 0 auto; }
.article-head .meta { color: var(--ink-3); font-size: .875rem; margin-top: 16px; }
.article-back { display: inline-flex; margin-top: 8px; }

/* Legal / privacy */
.legal { max-width: 760px; margin-inline: auto; }
.legal > * + * { margin-top: 18px; }
.legal h2 { font-size: 1.3rem; margin-top: 36px; }
.legal p, .legal li { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.6; }
.legal ul { padding-left: 1.2em; display: grid; gap: 8px; }

/* --- Hero --- */
.hero { position: relative; overflow: hidden; padding-block: clamp(90px, 15vh, 168px) clamp(72px, 10vw, 120px); text-align: center; }
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  pointer-events: none;
}
/* Lees-sluier: beeld blijft zichtbaar achter de tekst, kop blijft scherp leesbaar */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.58) 0%, rgba(255,255,255,.74) 46%, rgba(255,255,255,.90) 100%);
}
.hero__glow {
  position: absolute; inset: -20% 0 auto 0; height: 720px; z-index: 0;
  background: var(--brand-glow); filter: blur(10px);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { max-width: 16ch; margin-inline: auto; }
.hero .lead { max-width: 44ch; margin: 26px auto 0; }
.hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }
.hero__note { margin-top: 20px; font-size: .875rem; color: var(--ink-3); }

/* --- Statement-sectie --- */
.statement h2 { max-width: 20ch; margin-inline: auto; }
.statement .lead { max-width: 60ch; margin: 22px auto 0; }

/* --- Aanpak-tegels --- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 54px; }
.tile {
  background: var(--bg); border: 1px solid var(--hairline-2); border-radius: var(--radius);
  padding: 34px 30px; text-align: left; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.tile__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 22px;
  background: var(--brand-tint); color: var(--brand); font-weight: 600; font-size: 1.125rem;
}
.tile h3 { font-size: 1.3125rem; margin-bottom: 10px; }
.tile p { color: var(--ink-2); font-size: 1rem; }

/* --- Statrij --- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.stat__num { font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 600; letter-spacing: var(--tracking-tight); line-height: 1; }
.stat__num .grad-text { display: inline-block; }
.stat__label { margin-top: 14px; color: var(--ink-2); font-size: 1rem; }
.section--dark .stat__label { color: #aab4c2; }

/* --- Services-teaser --- */
.svc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 48px; }
@media (min-width: 861px) and (max-width: 1040px) { .svc { grid-template-columns: repeat(2, 1fr); } }
.svc__card {
  border-radius: var(--radius); padding: 30px; background: var(--bg-alt);
  border: 1px solid var(--hairline-2); text-align: left;
}
.svc__card h3 { font-size: 1.1875rem; margin-bottom: 8px; }
.svc__card p { color: var(--ink-2); font-size: .975rem; }
.svc__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-grad); margin-bottom: 18px; display: grid; place-items: center; color: #fff; }
.svc__icon svg { width: 22px; height: 22px; }

/* --- Contact --- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .8125rem; font-weight: 600; color: var(--ink-2); letter-spacing: .01em; }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--hairline); border-radius: 12px;
  background: var(--bg); transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.form .btn { justify-self: start; }
@media (max-width: 520px) { .form .btn { justify-self: stretch; } }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: .9375rem; min-height: 1.2em; }
.form__status[data-kind="ok"]  { color: #1a7f37; }
.form__status[data-kind="err"] { color: #c0392b; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(30,111,196,.14);
}
.contact__meta { display: grid; gap: 26px; align-content: start; }
.contact__meta .label { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.contact__meta a { color: var(--brand); }

/* --- Footer --- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--hairline-2); padding-block: 56px 30px; font-size: .875rem; color: var(--ink-2); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__logo img { height: 24px; margin-bottom: 16px; }
.footer h4 { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--brand); }
.footer__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--hairline-2); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-3); }

/* --- Scroll-reveal (progressive enhancement) ---
   Alleen verbergen als JS actief is (html.js); zonder JS blijft alles zichtbaar. */
.reveal { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.in { opacity: 1; transform: none; }

/* --- Responsive --- */
@media (max-width: 860px) {
  .tiles, .stats, .svc { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
}
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; max-width: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .tile, .link-arrow .chev { transition: none !important; }
}
