/* ============================================================
   LEMONYZE — Design tokens & components
   Light / fintech aesthetic (Revolut-inspired)
   Electric-blue accent · cool neutrals · airy whitespace
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,500&display=swap");

:root {
  /* --- Canvas & ink --- */
  --white:        #ffffff;
  --canvas:       #ffffff;        /* page background */
  --mist:         #f5f7fc;        /* alt section bg (cool off-white) */
  --mist-2:       #eef2fb;        /* deeper tint */
  --ink:          #0a0f1f;        /* near-black, cool */
  --ink-deep:     #060912;        /* dark sections */
  --ink-700:      #2b3243;        /* secondary text */
  --ink-500:      #5b6478;        /* muted text */
  --ink-400:      #8a93a6;        /* faint */

  /* --- Accent: indigo (vastgezet vanuit tweaks-panel voor livegang) --- */
  --blue:         #4a3aff;        /* primary action */
  --blue-600:     #3a2bd6;        /* hover */
  --blue-700:     #2c1fae;        /* active */
  --blue-300:     #9486ff;        /* light accent */
  --indigo:       #4a3aff;
  --violet:       #22d3ee;        /* gradient partner */
  --cyan:         #9486ff;        /* gradient partner */
  --blue-tint:    rgba(74, 58, 255, 0.07);
  --blue-tint-2:  rgba(74, 58, 255, 0.12);

  /* --- Lines --- */
  --border:       #e6eaf3;
  --border-2:     #d6dcea;
  --border-dark:  rgba(255,255,255,0.10);

  /* --- Semantic --- */
  --green:        #18b58a;
  --green-bg:     #e7f7f1;
  --amber:        #e0962a;

  /* --- Type --- */
  --font:         "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  --t-hero:    clamp(40px, 6.2vw, 82px);
  --t-display: clamp(34px, 4.6vw, 60px);
  --t-h1:      clamp(30px, 3.4vw, 46px);
  --t-h2:      clamp(25px, 2.6vw, 34px);
  --t-h3:      22px;
  --t-h4:      18px;
  --t-lg:      19px;
  --t-body:    16px;
  --t-sm:      14px;
  --t-xs:      13px;
  --t-eyebrow: 12px;

  /* --- Spacing (4px grid) --- */
  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:20px; --s6:24px;
  --s8:32px; --s10:40px; --s12:48px; --s16:64px; --s20:80px; --s24:96px; --s32:128px;

  /* --- Radius --- */
  --r-sm:8px; --r-md:14px; --r-lg:20px; --r-xl:28px; --r-pill:9999px;

  /* --- Shadows (cool, soft) --- */
  --sh-sm: 0 1px 2px rgba(13,20,40,0.05);
  --sh-md: 0 6px 22px rgba(13,20,40,0.07);
  --sh-lg: 0 18px 48px rgba(13,20,40,0.10);
  --sh-xl: 0 34px 80px rgba(13,20,40,0.14);
  --sh-blue: 0 12px 32px rgba(74,58,255,0.30);
  --focus: 0 0 0 3px rgba(74,58,255,0.30);

  /* --- Motion --- */
  --ease: cubic-bezier(0.4,0,0.2,1);
  --ease-out: cubic-bezier(0.16,1,0.3,1);

  /* --- Layout --- */
  --max: 1200px;
  --max-wide: 1320px;
  --nav-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* voorkomt horizontaal scrollen door decoratieve blobs op mobiel (breekt sticky nav niet) */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1,h2,h3,h4 {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
}
p { margin: 0; }

::selection { background: var(--blue-tint-2); color: var(--blue-700); }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: 24px; }
.wrap-wide { max-width: var(--max-wide); }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section-sm { padding-block: clamp(48px, 6vw, 80px); }
.bg-mist { background: var(--mist); }
.bg-ink { background: var(--ink-deep); color: #c8cfde; }
.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--t-eyebrow); font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1.5px; background: var(--blue);
  display: inline-block;
}
.eyebrow.center::before { display: none; }

.lead { font-size: var(--t-lg); line-height: 1.6; color: var(--ink-500); font-weight: 400; }
.measure { max-width: 640px; }
.center { text-align: center; }
.center.measure { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font); font-weight: 600; font-size: 15px;
  padding: 14px 24px; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease),
              box-shadow .25s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--sh-blue); }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-2px); box-shadow: 0 18px 40px rgba(43,89,255,0.38); }
.btn-primary:active { background: var(--blue-700); transform: translateY(0); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--border-2); box-shadow: var(--sh-sm); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1a2236; transform: translateY(-2px); }
.btn-lg { padding: 17px 30px; font-size: 16px; }
.btn-on-dark { background: #fff; color: var(--ink); }
.btn-on-dark:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0,0,0,0.3); }
.btn-ghost-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,0.22); }
.btn-ghost-dark:hover { border-color: #fff; background: rgba(255,255,255,0.06); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--blue); font-weight: 600; font-size: 15px;
  transition: gap .2s var(--ease), color .2s var(--ease);
}
.link-arrow svg { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--blue-700); gap: 11px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(255,255,255,0.88); }
.nav .wrap { display: flex; align-items: center; gap: 32px; }
.brand {
  font-weight: 800; font-size: 22px; letter-spacing: -0.04em; color: var(--ink);
  display: inline-flex; align-items: center; gap: 9px;
}
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); margin-bottom: -2px;
  box-shadow: 0 0 0 4px var(--blue-tint); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--ink-700);
  padding: 9px 14px; border-radius: var(--r-pill);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav-links a:hover { background: var(--mist-2); color: var(--ink); }
.nav-links a.active { color: var(--blue); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-tel { font-weight: 600; font-size: 15px; color: var(--ink); padding: 9px 6px; }
.nav-tel:hover { color: var(--blue); }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  color: var(--ink); }
.nav-burger svg { width: 26px; height: 26px; }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
  background: var(--white); padding: 24px;
  display: none; flex-direction: column; gap: 6px;
  transform: translateY(-12px); opacity: 0;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.mobile-menu.open { display: flex; opacity: 1; transform: none; }
.mobile-menu a { font-size: 20px; font-weight: 600; color: var(--ink); padding: 14px 8px;
  border-bottom: 1px solid var(--border); }
.mobile-menu .btn { margin-top: 16px; }

/* ---------- pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-pill); padding: 7px 15px 7px 11px;
  font-size: 13px; font-weight: 600; color: var(--ink-700);
  box-shadow: var(--sh-sm);
}
.pill .dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 3px var(--green-bg); }
.tag {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--blue); background: var(--blue-tint); padding: 5px 12px; border-radius: var(--r-pill);
}

/* ---------- cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card-hover:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: var(--border-2); }

.svc-icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--blue-tint); color: var(--blue);
  margin-bottom: 20px;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease-out);
}
.svc-icon svg { width: 26px; height: 26px; }
.card-hover:hover .svc-icon { background: var(--blue); color: #fff; transform: scale(1.06) rotate(-3deg); }
.svc-title { font-size: var(--t-h4); font-weight: 700; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.02em; }
.svc-desc { font-size: var(--t-sm); color: var(--ink-500); line-height: 1.6; }

/* ---------- grids ---------- */
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- footer ---------- */
.footer { background: var(--ink-deep); color: #97a1b5; padding-top: 80px; }
.footer h4 { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 18px; }
.footer a { color: #97a1b5; font-size: 15px; transition: color .18s var(--ease); }
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-block: 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: #67718a; }
.social-row { display: flex; gap: 10px; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.14);
  display: grid; place-items: center; color: #97a1b5; }
.social-row a:hover { border-color: var(--blue); color: #fff; background: var(--blue); }
.social-row svg { width: 18px; height: 18px; }

/* ---------- interactive glow (cursor spotlight on dark bands) ---------- */
.glow-track { position: relative; }
.glow-spot {
  position: absolute; inset: 0; border-radius: inherit; z-index: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%),
    rgba(107,140,255,0.40), rgba(123,92,255,0.16) 38%, transparent 66%);
  opacity: 0; transition: opacity .45s var(--ease); mix-blend-mode: screen;
}
.glow-track:hover .glow-spot { opacity: 1; }
.glow-track > *:not(.glow-spot) { position: relative; z-index: 1; }

/* ---------- misc utilities ---------- */
.divider { height: 1px; background: var(--border); border: 0; }
.text-grad {
  background: linear-gradient(100deg, var(--blue) 0%, var(--violet) 60%, var(--cyan) 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* responsive */
@media (max-width: 980px) {
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .g-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .nav-links, .nav-tel { display: none; }
  .nav-burger { display: inline-flex; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Simpele animaties op telefoon: content meteen tonen, geen hover-/cursor-effecten */
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .glow-spot { display: none !important; }
  .card-hover:hover, .proj:hover, .case:hover, .why-card:hover, .bento-card:hover,
  .integ-tile:hover, .pcard:hover, .proj-more:hover, .svc-icon, .ci-item:hover,
  .why-card:hover .wi, .card-hover:hover .svc-icon { transform: none !important; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .wrap { padding-inline: 18px; }
}

/* ============================================================
   COOKIE CONSENT (AVG / GDPR · Google Consent Mode v2)
   ============================================================ */
.cookie-banner {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(140%);
  z-index: 9999; width: min(720px, calc(100vw - 32px));
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--sh-xl); padding: 22px 24px;
  opacity: 0; visibility: hidden; transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .35s ease, visibility .35s;
}
.cookie-banner.open { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; }
.cookie-banner h3 { font-size: 17px; letter-spacing: -0.02em; margin-bottom: 8px; }
.cookie-banner p { font-size: 14px; color: var(--ink-500); line-height: 1.6; margin: 0; }
.cookie-banner p a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.cookie-actions .btn { font-size: 14px; }
.cookie-prefs { margin-top: 16px; display: none; flex-direction: column; gap: 10px; }
.cookie-banner.show-prefs .cookie-prefs { display: flex; }
.cookie-pref {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--r-md); background: var(--mist);
}
.cookie-pref .cp-txt { flex: 1; }
.cookie-pref .cp-txt strong { font-size: 14px; display: block; }
.cookie-pref .cp-txt span { font-size: 12.5px; color: var(--ink-500); }
.cookie-pref input[type=checkbox] { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--blue); cursor: pointer; }
.cookie-pref input[disabled] { opacity: .5; cursor: not-allowed; }
.cookie-backdrop {
  position: fixed; inset: 0; z-index: 9998; background: rgba(6,9,18,0.35);
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s;
}
.cookie-backdrop.open { opacity: 1; visibility: visible; }
@media (max-width: 520px) {
  .cookie-banner { bottom: 0; left: 0; transform: translateY(140%); width: 100%; border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 20px 18px; }
  .cookie-banner.open { transform: translateY(0); }
  .cookie-actions .btn { flex: 1; justify-content: center; }
}
