/* ============================================================
   Newlin — design system
   Colors, typography & components derived from Figma tokens
   ============================================================ */

:root {
  /* Brand colors */
  --navy: #00113a;
  --royal-blue: #2b66ff;
  --lime: #d0f861;
  --ivory: #f9f1e7;
  --white: #ffffff;
  --grey-line: #c9c9c9;
  --grey-soft: #eceae6;

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  /* Layout */
  --container: 1520px;
  --gutter: clamp(20px, 5vw, 80px);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --section-gap: clamp(72px, 10vw, 160px);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--navy);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

/* ---------- Typography helpers ---------- */
.display {
  font-weight: 900;
  font-size: clamp(44px, 7vw, 104px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.h-xl { font-weight: 800; font-size: clamp(40px, 5.5vw, 72px); line-height: 1.08; letter-spacing: -0.015em; }
.h-l  { font-weight: 800; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.12; letter-spacing: -0.01em; }
.h-m  { font-weight: 700; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.16; }
.h-s  { font-weight: 700; font-size: 24px; line-height: 1.33; }

.accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.label {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead { font-size: clamp(18px, 1.4vw, 20px); line-height: 1.6; }
.muted { color: rgba(0, 17, 58, 0.66); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-gap); }

.section-head {
  position: relative;
  z-index: 2; /* laat de section-arrow over volgende blokken heen vallen */
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 64px;
}
.section-head .label { color: var(--royal-blue); }

/* curved hand-drawn arrow pointing from a section head into the content below
   (design: valt over de rand van de case-banner heen) */
.section-arrow {
  position: absolute;
  right: clamp(-160px, -9vw, -80px);
  top: calc(100% + 4px);
  width: clamp(84px, 8.5vw, 124px);
  aspect-ratio: 136.862 / 125.457;
  max-width: none;
  transform: scaleX(-1) rotate(10deg);
  z-index: 2;
}
/* zigzag arrow left of a section head (Figma B_Diensten "Ontdek onze Diensten") */
.head-arrow-left {
  position: absolute;
  left: clamp(-190px, -11vw, -110px);
  top: 10%;
  width: clamp(70px, 7vw, 110px);
  aspect-ratio: 120.559 / 160.745;
  max-width: none;
  transform: rotate(-158deg); /* Figma: rotate(-158.54deg), geen spiegeling */
}
@media (max-width: 1200px) { .section-arrow, .head-arrow-left { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 16px;
  border: none;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--royal-blue);
  color: var(--white);
  padding: 8px 8px 8px 24px;
  border-radius: 999px;
}
.btn-primary .btn-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  display: grid; place-items: center;
  color: var(--royal-blue);
}
.btn-primary:hover { background: #1a54f0; }

.btn-ghost {
  color: var(--navy);
  gap: 10px;
  background: transparent;
  padding: 6px 0;
}
.btn-ghost .btn-circle {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: grid; place-items: center;
}
.btn-ghost.on-blue { color: var(--white); }

.btn .arrow { width: 16px; height: 16px; }

/* ============================================================
   Header / navigation  (Figma: menu-bar 167:3021)
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px var(--gutter);
  pointer-events: none;
}
.header-logo {
  pointer-events: auto;
  position: absolute;
  left: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-logo img { height: 30px; width: 62px; }
.header-logo span {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--navy);
}
.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: var(--white);
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav a {
  display: block;
  width: 132px;
  padding: 16px 0;
  border-radius: 999px;
  font-weight: 500;
  font-size: 16px;
  color: var(--navy);
  text-align: center;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
/* rolling label on hover (two stacked labels, Figma txt-container) */
.nav a .roll {
  display: block;
  overflow: hidden;
  height: 24px;
  line-height: 24px;
}
.nav a .roll span {
  display: block;
  height: 24px;
  transition: transform .3s cubic-bezier(.2,.65,.3,1);
}
.nav a:hover .roll span { transform: translateY(-100%); }
.nav a.active {
  background: var(--royal-blue);
  color: var(--white);
  font-weight: 700;
}

.nav-toggle { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 180px var(--gutter) 100px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 55% at 78% 30%, rgba(43, 102, 255, 0.55), transparent 60%),
    radial-gradient(55% 60% at 20% 55%, rgba(208, 248, 97, 0.55), transparent 60%),
    radial-gradient(80% 80% at 50% 20%, rgba(43, 102, 255, 0.18), transparent 70%),
    linear-gradient(180deg, #eef2ff 0%, #ffffff 72%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(100% 60% at 50% 100%, var(--white), transparent 70%);
}
.hero-inner {
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.hero p.lead { max-width: 720px; }
.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* Showreel floating card */
.showreel {
  position: absolute;
  right: clamp(16px, 6vw, 120px);
  top: 30%;
  width: 240px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(0, 17, 58, 0.16);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2;
}
.showreel .thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: var(--navy);
}
.showreel .thumb img { width: 100%; height: 100%; object-fit: cover; }
.showreel .play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
}
.showreel .play span {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: grid; place-items: center;
  color: var(--navy);
}
.showreel .meta { display: flex; align-items: center; justify-content: space-between; }
.showreel .meta strong { font-size: 14px; letter-spacing: 0.08em; }
.showreel .meta .label { font-size: 11px; color: var(--muted, rgba(0,17,58,.6)); }

/* Partners strip — infinite logo carousel (Figma: logos 174:118) */
.partners {
  padding-block: 40px 8px;
  text-align: center;
  overflow: hidden;
}
.partners-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: rgba(0,17,58,.45);
  margin-bottom: 44px;
}
.partners-label .line {
  flex: 0 1 220px;
  height: 1px;
  background: rgba(0,17,58,.14);
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(48px, 6vw, 96px);
  width: max-content;
  padding-inline: clamp(24px, 3vw, 48px);
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { width: auto; max-width: none; }
@keyframes marquee {
  to { transform: translateX(calc(-50% - clamp(24px, 3vw, 48px))); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* ============================================================
   Intro statement — scroll fill effect (Figma 174:117)
   ============================================================ */
.statement {
  text-align: center;
  padding-block: clamp(80px, 12vw, 180px);
}
.statement p {
  max-width: 1100px;
  margin-inline: auto;
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 64px);
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.fill-text { color: #cdcdcd; }
.fill-text .ch { color: #cdcdcd; transition: color .18s linear; }
.fill-text .ch.on { color: var(--navy); }
.fill-text .w { white-space: nowrap; }

/* ============================================================
   Services (blue)
   ============================================================ */
.services {
  background: var(--royal-blue);
  color: var(--white);
  border-radius: var(--radius-lg);
  margin-inline: var(--gutter);
  padding: clamp(48px, 6vw, 96px);
  position: relative;
  overflow: hidden;
}
.services-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.services h2 { margin-bottom: 40px; }
.service-list { display: flex; flex-direction: column; }
.service-item {
  border-top: 1px solid rgba(255,255,255,0.25);
  padding: 24px 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  cursor: pointer;
  transition: padding-left .2s ease;
}
.service-item:last-child { border-bottom: 1px solid rgba(255,255,255,0.25); }
.service-item:hover { padding-left: 8px; }
.service-item .name {
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 32px);
  transition: color .25s ease, font-weight .25s ease, transform .3s ease;
}
.service-item .num {
  font-size: 14px;
  font-weight: 600;
  opacity: .85;
  vertical-align: super;
  position: relative;
  top: -0.7em;
  letter-spacing: 1px;
}
.service-item .plus { margin-left: auto; font-size: 24px; opacity: .8; transition: transform .25s ease; }
.service-item.active .name { color: var(--lime); font-weight: 700; }
.service-item.active .num { color: var(--lime); }
.service-item.active .plus { transform: rotate(45deg); }

.services-detail {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.services-detail img { width: 100%; height: 240px; object-fit: cover; }
.services-detail .detail-body { padding: 28px; display: flex; flex-direction: column; gap: 20px; }

/* paneel per dienst — alleen het actieve is zichtbaar */
.service-panel { display: none; }
.service-panel.active { display: block; animation: panelIn .4s cubic-bezier(.2,.65,.3,1); }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .service-panel.active { animation: none; }
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 14px;
}

/* ============================================================
   Cases
   ============================================================ */
.cases { text-align: center; }

/* Home: full-width case banners (Figma: case showcase 181:xxx) */
.case-banners {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 56px;
  text-align: left;
}
.case-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  display: grid;
  grid-template-columns: 1.05fr minmax(300px, 460px) 0.85fr;
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
  padding: clamp(40px, 5vw, 88px);
  min-height: clamp(520px, 44vw, 760px);
}
.case-banner .bg {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  max-width: none;
  object-fit: cover;
  z-index: -2;
  transform: scale(1.9);
  filter: blur(14px) saturate(1.15);
}
.case-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}
.case-banner.tint-blue::after { background: rgba(96, 130, 255, 0.42); }
.case-banner.tint-gold::after { background: rgba(220, 168, 20, 0.35); }
.case-banner.tint-dark::after { background: rgba(12, 18, 48, 0.55); }
.case-banner .case-text { display: flex; flex-direction: column; gap: 24px; }
.case-banner .case-text h3 { font-size: clamp(32px, 3.4vw, 48px); font-weight: 800; }
.case-banner .case-text p { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.92); max-width: 440px; }
.case-banner .case-phone {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 32px 80px rgba(0, 17, 58, 0.35);
  transition: transform .6s cubic-bezier(.2,.65,.3,1);
}
.case-banner:hover .case-phone { transform: scale(1.025); }
.case-banner .case-services { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.case-banner .case-services h4 { font-size: 24px; font-weight: 700; }
.case-banner .case-services .chip { border-color: rgba(255,255,255,.65); color: var(--white); }
.case-banner .case-services .chips { flex-direction: column; align-items: flex-start; }

@media (max-width: 1080px) {
  .case-banner { grid-template-columns: 1fr; min-height: 0; }
  .case-banner .case-phone { max-width: 420px; margin-inline: auto; }
  .case-banner .case-services .chips { flex-direction: row; }
}

/* Subpages: compact 3-col case cards */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 56px;
  text-align: left;
}
.case-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  color: var(--white);
  isolation: isolate;
}
.case-card::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,17,58,0) 30%, rgba(0,17,58,0.75) 100%);
}
.case-card img.bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.case-card .case-logo { font-weight: 800; font-size: 22px; margin-bottom: auto; }
.case-card .case-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.case-card .case-tags span {
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  font-size: 13px;
}
.case-card h3 { font-size: 28px; font-weight: 800; }
.case-card .services-tag { font-size: 14px; opacity: .85; margin-top: 6px; }

/* ============================================================
   Testimonials
   ============================================================ */
.reviews { text-align: center; }
.reviews-banner {
  background: var(--royal-blue);
  color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: stretch;
  margin-bottom: 32px;
  text-align: left;
}
.reviews-banner .banner-text {
  padding: clamp(40px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
}
.reviews-banner .banner-photo { position: relative; min-height: 340px; }
.reviews-banner .banner-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.review-card {
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-md);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: left;
  justify-content: space-between;
}
.review-card p { font-size: 16px; line-height: 1.6; }
.review-author { display: flex; align-items: center; gap: 14px; }
.review-author img {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  background: var(--grey-soft);
}
.review-author strong { display: block; font-size: 16px; }
.review-author span { font-size: 14px; color: rgba(0,17,58,.65); }

/* ============================================================
   Blog
   ============================================================ */
.blog { background: var(--ivory); }
.blog-wrap {
  background: var(--ivory);
  border-radius: var(--radius-lg);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 4vw, 64px);
}
.blog-card { display: flex; flex-direction: column; gap: 24px; }
.blog-card .blog-img {
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--grey-soft);
}
.blog-card .blog-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-meta { display: flex; align-items: center; gap: 16px; font-size: 15px; color: rgba(0,17,58,.7); }
.blog-meta .sep { width: 1px; height: 20px; background: var(--navy); opacity: .3; }
.blog-card h3 { font-size: 24px; font-weight: 700; }
.blog-card .excerpt { font-size: 18px; line-height: 1.55; color: rgba(0,17,58,.8); }

/* ============================================================
   CTA
   ============================================================ */
.cta { text-align: center; }
.cta-box {
  background: var(--royal-blue);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(56px, 8vw, 120px) var(--gutter) clamp(80px, 9vw, 140px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 1080px) {
  .cta-doodle.arrow-right {
    left: calc(100% + clamp(40px, 6vw, 90px));
    height: clamp(110px, 12vw, 140px);
  }
}
@media (max-width: 720px) {
  .cta-box { padding-bottom: clamp(56px, 8vw, 120px); }
  .cta-doodle { display: none; }
}
.cta-box h2 { max-width: 900px; }
.cta-box .btn-primary { background: var(--white); color: var(--royal-blue); }
.cta-box .btn-primary .btn-circle { background: var(--royal-blue); color: var(--white); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding-block: clamp(64px, 8vw, 110px) 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-brand .logo { font-weight: 900; font-size: 28px; letter-spacing: 0.02em; margin-bottom: 24px; }
.footer-brand p { max-width: 380px; color: rgba(255,255,255,0.7); line-height: 1.6; }
.footer-col h4 { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; opacity: .6; margin-bottom: 20px; font-weight: 600; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col address { color: rgba(255,255,255,0.85); font-style: normal; line-height: 1.7; transition: color .15s ease; }
.footer-col a:hover { color: var(--lime); }
.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
}
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: var(--lime); }

/* ============================================================
   Generic page hero (subpages)
   ============================================================ */
.page-hero {
  padding: 200px var(--gutter) 80px;
  text-align: center;
  background:
    radial-gradient(50% 50% at 80% 10%, rgba(43,102,255,.25), transparent 60%),
    radial-gradient(45% 55% at 15% 30%, rgba(208,248,97,.4), transparent 60%),
    linear-gradient(180deg, #eef2ff, #ffffff);
}
.page-hero .inner { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 24px; align-items: center; }

/* ============================================================
   About: split section, value cards, FAQ
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.split .split-text { display: flex; flex-direction: column; gap: 20px; }
.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photo-row img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius-md); }

.about-band { background: var(--ivory); border-radius: var(--radius-lg); }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card {
  background: var(--ivory);
  border-radius: var(--radius-md);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 260px;
}
.value-card .value-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--navy);
  display: grid; place-items: center;
  color: var(--lime);
}
.value-card h3 { font-size: 22px; font-weight: 700; margin-top: auto; }
.value-card p { color: rgba(0,17,58,.7); }

.faq { max-width: 900px; margin-inline: auto; }
.faq-item {
  border-bottom: 1px solid var(--grey-line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 18px;
  font-weight: 400;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  display: grid; place-items: center;
  transition: transform .3s cubic-bezier(.2,.65,.3,1), background .25s ease, border-color .25s ease, color .25s ease;
}
.faq-item summary .icon svg { display: block; }
.faq-item summary:hover .icon { background: rgba(43,102,255,.08); }
.faq-item[open] summary .icon {
  transform: rotate(45deg);
  background: var(--royal-blue);
  border-color: var(--royal-blue);
  color: var(--white);
}
.faq-item .faq-answer { padding: 0 4px 26px; color: rgba(0,17,58,.72); max-width: 720px; line-height: 1.6; }

/* FAQ split layout: intro + curl arrow left, questions right */
.faq-split {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}
.faq-split .faq { max-width: none; margin: 0; }
.faq-left { display: flex; flex-direction: column; gap: 20px; text-align: left; }
/* .faq-left prefix wint qua specificiteit van .doodle (position: absolute) */
.faq-left .faq-arrow {
  position: relative;
  inset: auto;
  width: clamp(130px, 15vw, 215px);
  aspect-ratio: 215 / 149.848;
  max-width: none;
  align-self: center;
  transform: translateX(18%);
  margin-top: clamp(40px, 5vw, 72px);
}
@media (max-width: 1080px) {
  .faq-split { grid-template-columns: 1fr; }
  .faq-arrow { display: none; }
}

.logos-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(28px, 5vw, 64px); opacity: .55; margin-top: 12px;
}
.logos-row span { font-weight: 700; font-size: 20px; color: var(--navy); }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 80px); }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-info .info-item h4 { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--royal-blue); margin-bottom: 8px; }
.contact-info .info-item p, .contact-info .info-item a { font-size: 18px; }
.contact-form {
  background: var(--ivory);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4vw, 56px);
  display: flex; flex-direction: column; gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  font: inherit;
  padding: 14px 16px;
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--navy);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--royal-blue); border-color: transparent; }
.field textarea { resize: vertical; min-height: 130px; }

/* ============================================================
   Diensten: tiles + werkwijze
   ============================================================ */
.tiles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tile {
  background: var(--ivory);
  border-radius: var(--radius-md);
  padding: 40px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .35s ease;
}
.tile:hover { transform: translateY(-6px); }
.tile .tile-icon { width: 64px; height: 64px; margin-bottom: auto; }
.tile h3 { font-size: 22px; font-weight: 700; }
.tile p { color: rgba(0,17,58,.72); font-size: 16px; line-height: 1.55; }
.tile.tile-cta { background: var(--royal-blue); color: var(--white); }
.tile.tile-cta p { color: rgba(255,255,255,.85); }
.tile.tile-cta .btn-ghost { color: var(--white); margin-top: 8px; }

.split-hero {
  padding: 190px var(--gutter) 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  max-width: var(--container);
  margin-inline: auto;
}
.split-hero h1 { max-width: 640px; }
.split-hero .intro { padding-bottom: 12px; }
.wide-photo { border-radius: var(--radius-lg); overflow: hidden; margin-top: 56px; }
.wide-photo img { width: 100%; height: clamp(280px, 40vw, 520px); object-fit: cover; }

.process {
  background: var(--royal-blue);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 6vw, 96px);
}
.process .label { color: rgba(255,255,255,.75); margin-bottom: 16px; }
.process h2 { margin-bottom: 20px; }
.process-intro {
  color: rgba(255,255,255,.88);
  max-width: 760px;
  font-size: 18px;
  line-height: 1.55;
  margin-bottom: clamp(48px, 6vw, 80px);
}

/* timeline: dot + thin line per step (Figma B_Diensten werkwijze) */
.timeline { padding-left: 4px; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 14px 1fr;
  column-gap: clamp(48px, 8vw, 100px);
  padding: 0 0 clamp(48px, 6vw, 88px);
  border: none;
}
.step:last-child { padding-bottom: 8px; }
.step .dot {
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 1.5px solid var(--white);
  background: transparent;
  margin-top: 5px;
}
.step:first-child .dot { background: var(--white); }
.step::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 26px;
  bottom: 6px;
  width: 1px;
  background: rgba(255,255,255,.5);
}
.step:last-child::after { display: none; }
.step .step-num {
  display: block;
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 10px;
}
.step h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 700; margin-bottom: 8px; }
.step p { color: rgba(255,255,255,.88); max-width: 520px; }

/* ============================================================
   Cases page: alternating masonry
   ============================================================ */
.cases-masonry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.cases-masonry .col { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 72px); }
.cases-masonry .col:nth-child(2) { margin-top: clamp(48px, 8vw, 140px); }
.case-entry { display: flex; flex-direction: column; gap: 20px; }
.case-entry .case-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
}
.case-entry .case-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.65,.3,1); }
.case-entry:hover .case-photo img { transform: scale(1.04); }
.case-entry h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; }
.case-entry p { color: rgba(0,17,58,.75); max-width: 520px; }
.case-entry .chips .chip { border-color: rgba(0,17,58,.35); color: var(--navy); }

/* Ivory CTA variant */
.cta-box.cta-ivory { background: var(--ivory); color: var(--navy); }
.cta-box.cta-ivory .btn-primary { background: var(--royal-blue); color: var(--white); }
.cta-box.cta-ivory .btn-primary .btn-circle { background: var(--white); color: var(--royal-blue); }

/* ============================================================
   Blog feed
   ============================================================ */
.blogfeed-hero {
  padding: 190px var(--gutter) 40px;
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.blogfeed-hero h1 { font-size: clamp(40px, 5vw, 64px); }
.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3.5vw, 48px);
}
.feed-grid .blog-card.featured { grid-column: span 2; }
.feed-grid .blog-card.featured .blog-img { height: 400px; }
.feed-grid .blog-card .blog-img { height: 260px; }

@media (max-width: 1080px) {
  .tiles-grid { grid-template-columns: 1fr 1fr; }
  .split-hero, .blogfeed-hero { grid-template-columns: 1fr; padding-top: 160px; }
  .cases-masonry { grid-template-columns: 1fr; }
  .cases-masonry .col:nth-child(2) { margin-top: 0; }
  .feed-grid { grid-template-columns: 1fr 1fr; }
  .feed-grid .blog-card.featured { grid-column: span 2; }
}
@media (max-width: 680px) {
  .tiles-grid { grid-template-columns: 1fr; }
  .feed-grid { grid-template-columns: 1fr; }
  .feed-grid .blog-card.featured { grid-column: span 1; }
  .step { grid-template-columns: 1fr; gap: 8px; }
}

/* ============================================================
   Hand-drawn doodles (from Figma) — anchored to text
   ============================================================ */
.doodle-wrap { position: relative; display: inline-block; white-space: nowrap; }
.doodle {
  position: absolute;
  pointer-events: none;
  user-select: none;
  max-width: none;
}

/* Oval loop around a word (hero "Rebels in code.") */
.doodle-oval {
  left: -6%;
  top: -26%;
  width: 112%;
  height: 152%;
  transform: rotate(-2.5deg);
}

/* Brush underline below a word */
.doodle-underline {
  left: 0;
  bottom: -0.28em;
  width: 100%;
  height: 0.22em;
}

/* Big rough underline (page hero) */
.doodle-underline-big {
  left: -2%;
  bottom: -0.32em;
  width: 104%;
  height: 0.3em;
}

/* Circle scribble around a word */
.doodle-scribble {
  left: -8%;
  top: -22%;
  width: 116%;
  height: 148%;
}

/* Free-floating arrows (CTA) */
.cta-doodle {
  position: absolute;
  pointer-events: none;
  max-width: none;
}
/* loop-arrow anchored to the CTA button (Figma OBJECTS 56x167, rotate -142.91deg:
   arrowhead points down-left, toward the button) */
.cta-action { position: relative; }
.cta-doodle.arrow-right {
  position: absolute;
  left: calc(100% + clamp(140px, 15vw, 235px)); /* Figma-guides: doodle-hart ±244px rechts van de knoprand */
  bottom: 10px;   /* Figma-guide: bovenkant pijlpunt op het midden van de knop */
  top: auto;
  right: auto;
  height: clamp(140px, 13vw, 190px); /* design: begint op paragraafhoogte */
  width: auto;
  aspect-ratio: 56.17 / 167.34;
  transform: rotate(-142.91deg);
}

/* ============================================================
   Animations (subtle, mirrors Figma prototype)
   ============================================================ */

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2,.65,.3,1), transform .7s cubic-bezier(.2,.65,.3,1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* Doodle draw-in: wipe from left when revealed */
.doodle, .cta-doodle {
  clip-path: inset(0 100% 0 0);
  transition: clip-path .9s cubic-bezier(.6,.05,.3,1) .35s;
}
.doodle.drawn, .cta-doodle.drawn, .in .doodle, .in .cta-doodle {
  clip-path: inset(0 0 0 0);
}

/* Hero entrance (on page load) */
@keyframes heroUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}
.hero-inner > * {
  animation: heroUp .8s cubic-bezier(.2,.65,.3,1) both;
}
.hero-inner > *:nth-child(1) { animation-delay: .05s; }
.hero-inner > *:nth-child(2) { animation-delay: .2s; }
.hero-inner > *:nth-child(3) { animation-delay: .35s; }
.showreel { animation: heroUp .9s cubic-bezier(.2,.65,.3,1) .5s both; }
.hero .doodle-oval { transition-delay: .8s; }

/* Nav: shadow + solid bg after scrolling */
.nav { transition: box-shadow .25s ease, background .25s ease; }
.site-header.scrolled .nav {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 34px rgba(0,17,58,.12);
}

/* Card & button micro-interactions */
.case-card { overflow: hidden; }
.case-card img.bg { transition: transform .6s cubic-bezier(.2,.65,.3,1); }
.case-card:hover img.bg { transform: scale(1.05); }
.case-card h3, .case-card .case-tags { transition: transform .45s cubic-bezier(.2,.65,.3,1); }
.case-card:hover h3 { transform: translateY(-4px); }

.btn-primary .btn-circle svg,
.btn-ghost .btn-circle svg { transition: transform .3s cubic-bezier(.2,.65,.3,1); }
.btn:hover .btn-circle svg { transform: translateX(3px); }

.blog-card .blog-img img { transition: transform .6s cubic-bezier(.2,.65,.3,1); }
.blog-card:hover .blog-img img { transform: scale(1.04); }

.review-card { transition: transform .35s ease, box-shadow .35s ease; }
.review-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(0,17,58,.08); }

.value-card { transition: transform .35s ease; }
.value-card:hover { transform: translateY(-6px); }

.service-item .name { transition: transform .3s ease; }
.service-item:hover .name { transform: translateX(4px); }

/* FAQ answer slide */
.faq-item .faq-answer {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-inner > *, .showreel { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
  .doodle, .cta-doodle { clip-path: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .reviews-banner { grid-template-columns: 1fr; }
  .reviews-banner .banner-photo { min-height: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .showreel { display: none; }
  .split { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1360px) {
  .header-logo span { display: none; }
}
@media (max-width: 1200px) {
  .nav a { width: auto; padding: 14px 20px; }
}
@media (max-width: 860px) {
  .header-logo { position: static; transform: none; }
  .header-logo span { display: inline; font-size: 18px; }
  .header-logo img { height: 24px; width: 50px; }
}
@media (max-width: 720px) {
  .site-header { padding: 14px var(--gutter); pointer-events: auto; }
  .nav {
    width: 100%;
    justify-content: space-between;
    border-radius: 18px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.94);
  }
  .header-logo { position: absolute; left: calc(var(--gutter) + 16px); top: 50%; transform: translateY(-50%); z-index: 2; }
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: var(--gutter); right: var(--gutter);
    flex-direction: column;
    gap: 4px;
    background: var(--white);
    border: 1px solid var(--navy);
    border-radius: 18px;
    padding: 12px;
    display: none;
    box-shadow: 0 20px 50px rgba(0,17,58,.15);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; text-align: center; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    background: transparent; border: none; padding: 8px;
    margin-left: auto;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .2s; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { min-height: auto; padding-top: 140px; }
  .case-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .services { margin-inline: 12px; }
  .footer-bottom { flex-direction: column; }
}

/* ============================================================
   Blogartikel
   ============================================================ */
.article-hero { padding: 190px var(--gutter) 40px; max-width: 880px; margin-inline: auto; }
.article-hero h1 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 800; line-height: 1.12; margin-bottom: 20px; }
.article-hero .blog-meta { margin-bottom: 8px; }
.article-img { max-width: 1100px; margin: 24px auto 0; padding-inline: var(--gutter); }
.article-img img { width: 100%; height: clamp(260px, 38vw, 480px); object-fit: cover; border-radius: var(--radius-lg); }
.article-body { max-width: 760px; margin-inline: auto; padding: 48px var(--gutter) 0; font-size: 18px; line-height: 1.7; color: rgba(0,17,58,.85); }
.article-body h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; color: var(--navy); margin: 44px 0 16px; }
.article-body h3 { font-size: 21px; font-weight: 700; color: var(--navy); margin: 32px 0 12px; }
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; }
.article-body li { margin-bottom: 8px; list-style: disc; }
.article-body ol li { list-style: decimal; }
.article-body strong { color: var(--navy); }
.article-body a { color: var(--royal-blue); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote { border-left: 3px solid var(--lime); padding: 8px 0 8px 20px; margin: 24px 0; font-style: italic; color: var(--navy); }
.article-cta { max-width: 760px; margin: 48px auto clamp(80px, 10vw, 150px); padding-inline: var(--gutter); }
.article-cta .inner { background: var(--ivory); border-radius: var(--radius-md); padding: 32px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.article-cta .inner p { margin: 0; font-weight: 600; color: var(--navy); }

/* ============================================================
   Contactformulier: honeypot + statusmeldingen
   ============================================================ */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  height: 1px; width: 1px;
  overflow: hidden;
}
.form-status { display: none; padding: 14px 18px; border-radius: var(--radius-sm); font-size: 15px; line-height: 1.5; }
.form-status.success { display: block; background: rgba(208, 248, 97, .35); color: #1d4b00; border: 1px solid rgba(29, 75, 0, .25); }
.form-status.error { display: block; background: rgba(220, 60, 60, .08); color: #a02020; border: 1px solid rgba(160, 32, 32, .3); }
.contact-form button[disabled] { opacity: .6; cursor: wait; transform: none; }

/* tekst-merken in de logo-carrousel (klanten zonder logo-asset) */
.marquee-track .brand {
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.01em;
  color: #dcdcdc;
  white-space: nowrap;
}

/* kleurenlogo's (PNG) uniform naar de licht-grijze merkenstijl (#DCDCDC) */
.marquee-track img.logo-tint {
  filter: contrast(0) brightness(1.72);
}

/* App Store-screenshots volledig tonen — geen crop */
.case-entry .case-photo--full { aspect-ratio: auto; }
.case-entry .case-photo--full img { height: auto; object-fit: contain; }
