/* ============================================================
   AFFERENT  ·  style.css
   Primair: teal/cyaan (#1A9FAA) - de Afferent-identiteit
   Donker navy (#1A2332) alleen voor smalle topbalk en footer
   Lettertype: Nunito (matcht het logo)
   ============================================================ */

:root {
  --teal:        #1A9FAA;
  --teal-deep:   #1387A0;
  --teal-bright: #3AABCB;
  --teal-soft:   #E9F6FC;
  --teal-mid:    #B3DDE5;
  --green:       #5BC298;
  --navy:        #1A2332;
  --navy-deep:   #0F1825;
  --orange:      #E89A4A;
  --orange-soft: #F5C99A;
  --white:       #FFFFFF;
  --bg:          #FFFFFF;
  --bg-soft:     #F6FAFB;
  --bg-blue:     #EEF4F8;
  --ink:         #1A2332;
  --ink-soft:    #2E4162;
  --muted:       #5F6B7E;
  --line:        #E2E8F0;

  --font: 'Nunito', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  --container: 1240px;
  --gutter: 24px;
  --gutter-lg: 40px;
  --section-py: 56px;
  --section-py-lg: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; padding: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 768px) { .container { padding: 0 var(--gutter-lg); } }

.text-teal { color: var(--teal); }
.text-muted { color: var(--muted); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal);
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px; height: 2px;
  background: currentColor;
}
.eyebrow--small { font-size: 11px; }

/* ============================================================
   TOP STRIP + NAV
   ============================================================ */
.topstrip {
  background: var(--navy);
  height: 8px;
  position: relative;
  overflow: hidden;
}
.topstrip__band {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-bright) 40%, var(--orange) 100%);
  opacity: 0;
  transition: opacity 800ms ease;
}
body.is-loaded .topstrip__band { opacity: 0.9; }

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(26, 35, 50, 0.92);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}
.nav.is-scrolled {
  background: rgba(15, 24, 37, 0.96);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}
/* signatuur Afferent-band onder nav (teal -> orange), verschijnt op scroll */
.nav::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-bright) 45%, var(--orange) 100%);
  opacity: 0;
  transition: opacity 320ms ease;
}
.nav.is-scrolled::after { opacity: 1; }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}
.logo img { height: 38px; width: auto; }

.nav__links {
  display: none;
  align-items: center;
  gap: 32px;
}
@media (min-width: 900px) { .nav__links { display: flex; } }
.nav__links a {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  padding: 4px 0;
  transition: color 220ms ease;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 260ms cubic-bezier(.2,.7,.2,1);
}
.nav__links a:hover { color: var(--teal-mid); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__right { display: flex; align-items: center; gap: 14px; }

/* ---------- Vlaggetjes ---------- */
.langswitch {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.langswitch__btn {
  width: 30px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  opacity: 0.55;
  transition: opacity 220ms ease, transform 220ms ease;
  padding: 0;
  position: relative;
}
.langswitch__btn svg {
  width: 22px;
  height: 16px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.langswitch__btn:hover { opacity: 0.95; transform: translateY(-1px); }
.langswitch__btn.is-active { opacity: 1; }
.langswitch__btn.is-active::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -6px;
  transform: translateX(-50%);
  width: 18px; height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: background 240ms ease, color 240ms ease, transform 240ms ease, box-shadow 240ms ease;
  white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn__arrow {
  width: 16px; height: 16px;
  transition: transform 240ms ease;
  color: currentColor;
}
.btn:hover .btn__arrow { transform: translate(2px, -2px); }
.btn--lg { padding: 14px 26px; font-size: 15px; }
.btn--teal {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 8px 22px -10px rgba(26, 159, 170, 0.5);
}
.btn--teal:hover {
  background: var(--teal-deep);
  box-shadow: 0 12px 30px -10px rgba(26, 159, 170, 0.65);
  transform: translateY(-1px);
}
.btn--ghost {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
.nav__cta { display: none; }
@media (min-width: 640px) {
  .nav__cta { display: inline-flex; padding: 10px 18px; font-size: 13px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 56px 0 64px;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, var(--teal-soft) 0%, transparent 50%),
    linear-gradient(180deg, var(--white) 0%, var(--bg-soft) 100%);
}
@media (min-width: 900px) { .hero { padding: 72px 0 96px; } }
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.05fr 1fr; gap: 64px; } }
.hero__text { max-width: 600px; }
.hero__title {
  margin-top: 22px;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero__title-accent {
  display: block;
  color: var(--teal);
  font-weight: 700;
  margin-top: 6px;
}
.hero__lead {
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.hero__ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero__stats {
  margin-top: 40px;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 40px -28px rgba(26, 35, 50, 0.18);
}
.hero__stats-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--teal);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(26, 159, 170, 0.55); }
  70%  { box-shadow: 0 0 0 11px rgba(26, 159, 170, 0); }
  100% { box-shadow: 0 0 0 0 rgba(26, 159, 170, 0); }
}
.hero__stats-label-top {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
}
.hero__stats-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.hero__stats-cell { display: flex; flex-direction: column; }
.hero__stats-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1;
}
.hero__stats-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.35;
  font-weight: 600;
}

.hero__visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(26, 35, 50, 0.35);
}
.hero__visual img { width: 100%; height: auto; display: block; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: var(--section-py) 0; }
@media (min-width: 768px) { .section { padding: var(--section-py-lg) 0; } }
.section--soft { background: var(--bg-soft); }

.section__head {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}
.section__head .eyebrow {
  justify-content: center;
  padding-left: 0;
}
.section__head .eyebrow::after {
  content: '';
  display: inline-block;
  width: 28px; height: 2px;
  background: currentColor;
}
.section__title {
  margin-top: 16px;
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.section__lead { margin-top: 18px; font-size: 16px; line-height: 1.65; }

.section__challenge .section__head {
  text-align: left;
  max-width: none;
  margin: 0 0 32px;
}
.section__challenge .section__head .eyebrow { justify-content: flex-start; }
.section__challenge .section__head .eyebrow::after { display: none; }
.section__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 768px) { .section__cols { grid-template-columns: 1fr 1fr; gap: 48px; } }
.section__cols p { font-size: 16px; line-height: 1.7; color: var(--ink-soft); }

/* ============================================================
   STEPS (grote custom icons)
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  transition: border-color 280ms ease, transform 280ms ease, box-shadow 280ms ease;
  position: relative;
  overflow: hidden;
}
.step::before {
  content: '';
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 3px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 360ms cubic-bezier(.2,.7,.2,1);
}
.step:hover {
  border-color: var(--teal-mid);
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -28px rgba(26, 35, 50, 0.18);
}
.step:hover::before { transform: scaleX(1); }

.step__icon {
  width: 96px;
  height: 96px;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 10px rgba(26, 159, 170, 0.2));
  object-fit: contain;
}
.step__num {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 800;
  margin-bottom: 8px;
}
.step__name {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.step__body {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ============================================================
   ZORGMODEL
   ============================================================ */
.model {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
@media (min-width: 900px) { .model { grid-template-columns: 1fr 1fr; gap: 56px; } }
.model__diagram { display: flex; justify-content: center; }
.model__diagram img { max-width: 460px; width: 100%; height: auto; }

.model__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.model__field {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 20px;
  transition: border-color 240ms ease, transform 240ms ease;
}
.model__field:hover { border-color: var(--teal-mid); transform: translateY(-2px); }
.model__field-num {
  font-size: 11px;
  color: var(--teal);
  font-weight: 800;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
  display: block;
}
.model__field-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.012em;
  margin-bottom: 8px;
  line-height: 1.25;
}
.model__field-tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.4;
}

/* ============================================================
   SHOWCASE  (mail + dashboard)
   ============================================================ */
.showcase {
  display: flex;
  flex-direction: column;
  gap: 64px;
}
@media (min-width: 768px) { .showcase { gap: 80px; } }

.showcase__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
@media (min-width: 768px) {
  .showcase__row { grid-template-columns: 1fr 1fr; gap: 56px; }
  .showcase__row--reverse .showcase__visual { order: 2; }
  .showcase__row--reverse .showcase__text { order: 1; }
}
.showcase__visual {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(26, 35, 50, 0.25);
  background: var(--white);
}
.showcase__visual--mail {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--teal-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}
.showcase__visual--mail img {
  max-width: 320px;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 30px 60px -20px rgba(26, 35, 50, 0.3);
}
.showcase__visual img { width: 100%; height: auto; display: block; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 12px;
}
.kicker__dot {
  width: 8px; height: 8px;
  background: var(--teal);
  border-radius: 999px;
}
.showcase__text h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.18;
}
.showcase__text p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.bullets { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 500;
}
.bullets li::before {
  content: '';
  display: inline-block;
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  background: var(--teal-soft);
  border-radius: 999px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A9FAA' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12l5 5L20 7'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}
.bullets--two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 18px;
}
@media (min-width: 640px) { .bullets--two-col { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 900px) { .contact { grid-template-columns: 5fr 7fr; gap: 56px; } }
.contact__left .section__title { margin-top: 16px; }
.contact__left .section__lead { margin-top: 16px; }

.contact__info {
  margin-top: 36px;
  padding: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact__info .eyebrow { margin-bottom: 8px; padding-left: 0; }
.contact__phone {
  font-size: 24px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.contact__line { font-size: 15px; color: var(--ink-soft); font-weight: 600; }
.contact__line:hover { color: var(--teal); }
.contact__addr { font-size: 14px; color: var(--muted); line-height: 1.6; margin-top: 4px; }

.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 20px 50px -28px rgba(26, 35, 50, 0.12);
}
.form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; column-gap: 22px; row-gap: 20px; } }
.field { display: block; }
.field--full { margin-top: 20px; }
.field__label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1.5px solid transparent;
  border-radius: 8px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 220ms ease, background 220ms ease;
  font-weight: 500;
}
.field input::placeholder, .field textarea::placeholder { color: #99A3B0; font-weight: 400; }
.field input:focus, .field textarea:focus { border-color: var(--teal); background: var(--white); }
.field textarea { resize: vertical; min-height: 104px; line-height: 1.5; }
.req { color: var(--teal); }

.form__bottom {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
@media (min-width: 640px) { .form__bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
.form__consent {
  font-size: 11.5px;
  color: var(--muted);
  max-width: 380px;
  line-height: 1.55;
}

.form__success {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  box-shadow: 0 20px 50px -28px rgba(26, 35, 50, 0.12);
}
.form__success[hidden] { display: none; }
.form__success-icon {
  width: 56px; height: 56px;
  background: var(--teal-soft);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
}
.form__success-icon svg { width: 28px; height: 28px; }
.form__success p {
  font-size: 22px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  color: var(--white);
  position: relative;
}
.footer__band {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-bright) 50%, var(--orange) 100%);
}
.footer__inner { padding: 64px 0 32px; position: relative; }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (min-width: 768px) { .footer__grid { grid-template-columns: 5fr 4fr 3fr; gap: 48px; } }
.footer__logo { height: 44px; width: auto; margin-bottom: 16px; }
.footer__tagline {
  font-size: 15px;
  color: var(--teal-mid);
  max-width: 340px;
  line-height: 1.55;
  font-weight: 500;
}
.footer__title {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-bright);
  font-weight: 700;
  margin-bottom: 14px;
}
.footer__lines { font-size: 14px; line-height: 1.75; color: rgba(255, 255, 255, 0.75); }
.footer__lines a { color: rgba(255, 255, 255, 0.92); }
.footer__lines a:hover { color: var(--teal-bright); }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: 14px; color: rgba(255, 255, 255, 0.75); font-weight: 500; }
.footer__links a:hover { color: var(--teal-bright); }

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (min-width: 640px) { .footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer__bottom p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.02em;
}

/* ============================================================
   REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1);
}
.reveal.is-shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .topstrip__band { opacity: 0.9; }
}
