/* =========================================================
   G-Advisory Group — Design tokens
   ========================================================= */
:root {
  --navy-deep:  #081B33;
  --navy:       #0F3868;
  --navy-mid:   #154C86;
  --sky:        #4FA6FF;
  --ink:        #0D1117;
  --paper:      #FFFFFF;
  --mist:       #F4F6FA;
  --mist-dark:  #E7EBF1;
  --line:       #E2E8F0;
  --muted:      #5B6472;

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --max-w: 1180px;
}

* { box-sizing: border-box; }

/* Global safety net: the native [hidden] attribute must always win,
   regardless of what display value a component's own class sets.
   Without this, any element that is both `hidden` and has a class
   like .btn (display:flex) or .cookie-banner (display:block) stays
   visible, because author CSS beats the UA stylesheet's [hidden] rule. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

p { margin: 0; line-height: 1.6; color: var(--muted); }

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

/* Defensive fallback: any inline SVG icon without an explicit size
   (e.g. one I forgot to scope with CSS) renders at 1em instead of
   the browser's ~300x150 default, which previously blew up a button. */
svg:not([width]) { width: 1em; height: 1em; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  margin: 0 0 12px;
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.7rem;
  gap: 1px;
  line-height: 1;
}
.logo-g { color: var(--ink); }
.logo-a { color: var(--navy-mid); }
.footer .logo-g { color: var(--paper); }
.footer .logo-a { color: var(--sky); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--sky);
  color: var(--navy-deep);
}
.btn-primary:hover { background: #6FB8FF; }
.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover { border-color: var(--sky); color: var(--sky); }
.btn-light {
  background: var(--paper);
  color: var(--navy-deep);
}
.btn-light:hover { background: var(--mist); }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter .25s ease;
}
.nav.scrolled {
  background: rgba(8, 27, 51, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav .logo-g { color: var(--paper); }
.nav .logo-a { color: var(--sky); }
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: rgba(255,255,255,0.78);
  font-weight: 600;
  font-size: 0.92rem;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--paper); }
.nav-links a.is-active { color: var(--sky); }
.nav-actions { display: flex; align-items: center; gap: 22px; }
.nav-login {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  transition: color .2s ease;
}
.nav-login svg { width: 17px; height: 17px; }
.nav-login:hover { color: var(--sky); }
.nav-links-login {
  display: none;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: radial-gradient(120% 100% at 15% 0%, var(--navy-mid) 0%, var(--navy) 42%, var(--navy-deep) 100%);
  padding: 168px 24px 96px;
  overflow: hidden;
}
.hero-blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}
.blob-a {
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--sky), transparent 70%);
  top: -160px; right: -80px;
  animation: drift-a 16s ease-in-out infinite;
}
.blob-b {
  width: 360px; height: 360px;
  background: radial-gradient(circle, #7CC0FF, transparent 70%);
  bottom: -140px; left: 8%;
  animation: drift-b 20s ease-in-out infinite;
}
@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 30px) scale(1.08); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -24px) scale(1.05); }
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(60% 60% at 30% 20%, black, transparent);
}
.hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}
.hero-copy { flex: 1 1 560px; min-width: 0; }
.hero .eyebrow { color: var(--sky); }
.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 900;
  color: var(--paper);
  max-width: 780px;
}
.text-accent { color: var(--sky); }
.hero-sub {
  margin-top: 24px;
  max-width: 560px;
  font-size: 1.08rem;
  color: rgba(255,255,255,0.75);
}
.hero-sub strong { color: var(--paper); }
.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-stats {
  margin: 72px 0 0;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.hero-stats dt {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  color: var(--paper);
}
.hero-stats dd {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ---- Hero mascot ---- */
.hero-mascot {
  flex: 0 0 auto;
  width: 300px;
  display: flex;
  justify-content: center;
  position: relative;
}
.hero-mascot::after {
  content: "";
  position: absolute;
  bottom: 6%;
  width: 200px;
  height: 34px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.28), transparent 70%);
  filter: blur(6px);
}
.wave-mascot {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  transform-origin: 50% 8%;
  animation: float 5s ease-in-out infinite, wave 4.5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes wave {
  0%, 12%, 100% { rotate: 0deg; }
  3%  { rotate: 8deg; }
  6%  { rotate: -5deg; }
  9%  { rotate: 8deg; }
}
@media (prefers-reduced-motion: reduce) {
  .wave-mascot, .blob-a, .blob-b { animation: none; }
}

/* ---- Value strip (home, condensed) ---- */
.value-strip {
  background: var(--mist);
  padding: 28px 24px;
}
.value-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
}
.value-strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
}
.value-strip-item svg { width: 20px; height: 20px; color: var(--sky); flex-shrink: 0; }

/* ---- Departments teaser (home) ---- */
.dept-teaser {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 110px 24px 100px;
}
.dept-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.dept-pill {
  padding: 12px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  transition: all .2s ease;
}
.dept-pill:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  color: var(--paper);
  transform: translateY(-2px);
}
.dept-teaser-cta { margin-top: 36px; }
.btn-outline-navy {
  background: transparent;
  color: var(--navy-mid);
  border-color: var(--navy-mid);
  padding: 12px 4px;
}
.btn-outline-navy:hover { color: var(--sky); border-color: var(--sky); background: none; transform: translateX(4px); }

/* ---- Page header (sub-pages) ---- */
.page-header {
  position: relative;
  background: radial-gradient(120% 100% at 15% 0%, var(--navy-mid) 0%, var(--navy) 42%, var(--navy-deep) 100%);
  padding: 158px 24px 84px;
  overflow: hidden;
}
.page-header-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.page-header .eyebrow { color: var(--sky); justify-content: center; }
.page-header h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--paper);
}
.page-header p {
  margin-top: 18px;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
}

/* =========================================================
   DEPARTMENTS
   ========================================================= */
.departments {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 90px 24px 20px;
}
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head .eyebrow { color: var(--navy-mid); }
.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  color: var(--ink);
}
.section-sub { margin-top: 16px; font-size: 1.02rem; }
.text-accent-navy { color: var(--navy-mid); }

.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.dept-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px 34px;
  overflow: hidden;
  scroll-margin-top: 100px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.dept-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 40px -22px rgba(15, 30, 60, 0.25);
  border-color: transparent;
}
.dept-card.dept-highlight {
  animation: dept-pulse 1.6s ease 2;
}
@keyframes dept-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 143, 255, 0); }
  50% { box-shadow: 0 0 0 8px rgba(46, 143, 255, 0.12); }
}
.dept-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform .3s ease;
}
.dept-icon svg { width: 24px; height: 24px; }
.dept-card:hover .dept-icon { transform: scale(1.08) rotate(-4deg); }
.dept-num {
  position: absolute;
  top: 28px; right: 26px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  opacity: 0.55;
}
.dept-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 10px;
}
.dept-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}
.dept-bar {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 4px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.dept-card:hover .dept-bar { transform: scaleX(1); }

/* ---- Extra services (diensten.html) ---- */
.pill-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--navy-mid), var(--sky));
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.extra-services {
  background: var(--mist);
  padding: 90px 24px;
}
.extra-services .section-head { max-width: var(--max-w); margin: 0 auto 48px; text-align: center; }
.extra-services .section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.extra-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.extra-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.extra-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -22px rgba(15, 30, 60, 0.2); }

/* ---- Page header mascot ---- */
.page-header-mascot {
  width: 92px;
  height: auto;
  margin: 0 auto 20px;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,0.25));
}

/* ---- Page header, two mascots in opposite corners (diensten.html) ---- */
.page-header-corner-mascot {
  position: absolute;
  bottom: 0;
  width: auto;
  height: 210px;
  z-index: 1;
  filter: drop-shadow(0 16px 22px rgba(0,0,0,0.28));
  pointer-events: none;
}
.page-header-corner-mascot-left { left: 3%; }
.page-header-corner-mascot-right { right: 3%; }

/* =========================================================
   QUIZ CTA
   ========================================================= */
.quiz {
  background: var(--navy-deep);
  padding: 100px 24px;
}
.quiz-inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.quiz-icon {
  width: 56px; height: 56px;
  margin: 0 auto 24px;
  color: var(--sky);
}
.quiz h2 {
  color: var(--paper);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}
.quiz p {
  margin-top: 16px;
  color: rgba(255,255,255,0.7);
  font-size: 1.02rem;
}
.quiz .btn { margin-top: 32px; }

/* =========================================================
   VALUE PROPS
   ========================================================= */
.values {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 110px 24px;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.value-icon {
  width: 44px; height: 44px;
  color: var(--navy-mid);
  margin-bottom: 20px;
}
.value-item h3 {
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.value-item p { font-size: 0.92rem; }

/* =========================================================
   PROCESS
   ========================================================= */
.process {
  background: var(--mist);
  padding: 110px 24px;
}
.process .section-head { max-width: var(--max-w); margin-left: auto; margin-right: auto; }
.process-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--max-w);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.process-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 26px;
}
.process-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--sky);
  margin-bottom: 18px;
}
.process-list h3 {
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.process-list p { font-size: 0.92rem; }

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
  background: linear-gradient(120deg, var(--navy-mid), var(--navy));
  padding: 100px 24px;
  text-align: center;
}
.cta-band h2 {
  color: var(--paper);
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
}
.cta-band p {
  margin-top: 12px;
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
}
.cta-band .btn { margin-top: 32px; }

/* =========================================================
   TRUSTED BY
   ========================================================= */
.trusted {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px 110px;
  text-align: center;
}
.trusted-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}
.trusted-logos {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  flex-wrap: wrap;
}
.trusted-logo {
  width: 176px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.trusted-logo:hover {
  border-color: transparent;
  box-shadow: 0 16px 34px -18px rgba(15, 56, 104, 0.35);
  transform: translateY(-4px);
}
.trusted-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* =========================================================
   TEAM / MASCOTS
   ========================================================= */
.team {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 110px 24px;
}
.team-row {
  display: flex;
  align-items: center;
  gap: 64px;
  margin-top: 72px;
}
.team-row-reverse { flex-direction: row-reverse; }
.team-row-figure {
  flex: 0 0 auto;
  width: 260px;
  display: flex;
  justify-content: center;
  position: relative;
}
.team-row-figure::after {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle, var(--mist) 0%, transparent 68%);
  z-index: 0;
}
.team-row-figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 30px rgba(15, 56, 104, 0.18));
  animation: team-float 6s ease-in-out infinite;
}
.team-row-reverse .team-row-figure img { animation-delay: -3s; }
@keyframes team-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.team-row-copy { flex: 1 1 420px; min-width: 0; }
.team-row-copy .eyebrow { color: var(--navy-mid); }
.team-row-copy h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--ink);
  margin: 6px 0 14px;
}
.team-row-copy p { font-size: 1rem; max-width: 460px; }
@media (prefers-reduced-motion: reduce) {
  .team-row-figure img { animation: none; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--navy-deep);
  padding: 80px 24px 32px;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.footer-brand p {
  margin-top: 18px;
  color: rgba(255,255,255,0.55);
  max-width: 340px;
  font-size: 0.92rem;
}
.footer-col h4 {
  font-family: var(--font-display);
  color: var(--paper);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.92rem;
  margin-bottom: 10px;
  transition: color .2s ease;
}
.footer-col a:hover { color: var(--sky); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 64px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
}

/* =========================================================
   PLATFORM USP (home)
   ========================================================= */
.platform-usp {
  background: var(--navy-deep);
  padding: 110px 24px;
  overflow: hidden;
}
.platform-usp-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 64px;
}
.platform-copy { flex: 1 1 480px; min-width: 0; }
.platform-copy .eyebrow { color: var(--sky); }
.platform-copy h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  color: var(--paper);
}
.platform-lead {
  margin-top: 18px;
  font-size: 1.02rem;
  color: rgba(255,255,255,0.72);
  max-width: 520px;
}
.platform-points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 520px;
}
.platform-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}
.platform-points svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--sky);
}
.platform-copy .btn-outline-navy {
  margin-top: 32px;
  color: var(--paper);
  border-color: rgba(255,255,255,0.35);
}
.platform-copy .btn-outline-navy:hover { color: var(--sky); border-color: var(--sky); }

.platform-visual {
  flex: 0 0 360px;
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
}
.platform-glow {
  position: absolute;
  inset: 6% 10%;
  background: radial-gradient(circle, rgba(46,143,255,0.22), transparent 70%);
  filter: blur(20px);
  z-index: 0;
}
.platform-card-grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.platform-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--paper);
  animation: platform-float 5s ease-in-out infinite;
}
.platform-card:nth-child(1) { animation-delay: 0s; }
.platform-card:nth-child(2) { animation-delay: -0.8s; }
.platform-card:nth-child(3) { animation-delay: -1.6s; }
.platform-card:nth-child(4) { animation-delay: -2.4s; }
.platform-card:nth-child(5) { animation-delay: -3.2s; }
.platform-card:nth-child(6) { animation-delay: -4s; }
@keyframes platform-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.pc-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.pc-dot-green { background: #3DD68C; }
.pc-dot-blue { background: var(--sky); }
.pc-dot-amber { background: #F5B342; }
.pc-dot-pink { background: #E37FC2; }
@media (prefers-reduced-motion: reduce) {
  .platform-card { animation: none; }
}

/* =========================================================
   COOKIE BANNER
   ========================================================= */
.cookie-banner {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 200;
  max-width: 640px;
  margin: 0 auto;
  background: var(--paper);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px -18px rgba(8, 27, 51, 0.45);
  border: 1px solid var(--line);
  padding: 22px 24px;
  animation: cookie-in .4s ease;
}
.cookie-banner.is-dismissing { opacity: 0; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease; }
@keyframes cookie-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}
.cookie-banner p a { color: var(--navy-mid); font-weight: 600; }
.cookie-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cookie-btn-secondary {
  background: var(--paper);
  border: 1.5px solid var(--line);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
.cookie-btn-secondary:hover { border-color: var(--navy-mid); }
.cookie-btn-reject {
  background: none;
  border: none;
  color: #A13434;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 10px 8px;
}
.cookie-btn-reject:hover { text-decoration: underline; }

/* =========================================================
   TIMELINE (over-ons)
   ========================================================= */
.timeline-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 100px 24px 40px;
}
.timeline {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  position: relative;
  max-width: 760px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 27px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--line), var(--line));
  background-image: repeating-linear-gradient(to bottom, var(--line) 0 6px, transparent 6px 12px);
}
.timeline li {
  display: flex;
  gap: 26px;
  margin-bottom: 36px;
  position: relative;
}
.timeline li:last-child { margin-bottom: 0; }
.timeline-marker {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--navy-mid), var(--sky));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 24px -10px rgba(21, 76, 134, 0.5);
  z-index: 1;
}
.timeline-marker svg { width: 24px; height: 24px; color: var(--paper); }
.timeline-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  flex: 1;
  transition: transform .25s ease, box-shadow .25s ease;
}
.timeline li:hover .timeline-card {
  transform: translateX(4px);
  box-shadow: 0 16px 32px -20px rgba(15, 30, 60, 0.3);
}
.timeline-date {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--navy-mid);
  margin-bottom: 6px;
}
.timeline-card h3 { font-size: 1.05rem; color: var(--ink); margin-bottom: 8px; }
.timeline-card p { font-size: 0.9rem; }

.team-cta { margin-top: 56px; text-align: center; }

/* =========================================================
   LEGAL PAGES
   ========================================================= */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 24px 120px;
}
.legal-note {
  background: var(--mist);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 40px;
}
.legal-note strong { color: var(--ink); }
.legal-aside {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: -8px;
}
.legal-aside a { font-weight: 600; }
.legal-content h2 { font-size: 1.2rem; color: var(--ink); margin: 32px 0 12px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { font-size: 0.95rem; line-height: 1.65; }
.legal-content ul { margin: 12px 0 20px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.legal-content li { font-size: 0.95rem; color: var(--muted); line-height: 1.6; }
.legal-content li strong { color: var(--ink); }
.legal-content a { color: var(--navy-mid); font-weight: 600; }
.legal-content a:hover { text-decoration: underline; }
.legal-back {
  display: inline-block;
  margin-bottom: 28px;
  font-weight: 600;
  color: var(--navy-mid);
  font-size: 0.9rem;
}
.legal-closing {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.legal-content .btn { margin-top: 18px; }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { color: rgba(255,255,255,0.5); font-size: 0.8rem; }
.footer-legal a:hover { color: var(--sky); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* =========================================================
   DEPARTMENT CHECKBOXES (contact form)
   ========================================================= */
.dept-select-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
}
.dept-select-label em { font-style: normal; font-weight: 400; opacity: 0.75; }
.dept-checkboxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
.dept-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.dept-checkbox:hover { border-color: var(--dept-color, var(--navy-mid)); }
.dept-checkbox input { position: absolute; opacity: 0; width: 0; height: 0; }
.dept-checkbox-box {
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s ease, border-color .15s ease;
}
.dept-checkbox-box svg { width: 12px; height: 12px; color: var(--paper); opacity: 0; transition: opacity .15s ease; }
.dept-checkbox input:checked + .dept-checkbox-box {
  background: var(--dept-color, var(--navy-mid));
  border-color: var(--dept-color, var(--navy-mid));
}
.dept-checkbox input:checked + .dept-checkbox-box svg { opacity: 1; }
.dept-checkbox input:focus-visible + .dept-checkbox-box { outline: 2px solid var(--navy-mid); outline-offset: 2px; }
.dept-checkbox-label { font-size: 0.86rem; font-weight: 600; color: var(--ink); }

/* =========================================================
   FAQ (contact page)
   ========================================================= */
.faq-section {
  max-width: 780px;
  margin: 0 auto;
  padding: 20px 24px 120px;
}
.faq-section .section-head { text-align: center; margin-bottom: 32px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--paper);
  border: none;
  padding: 18px 20px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
}
.faq-question svg { width: 18px; height: 18px; color: var(--navy-mid); flex-shrink: 0; transition: transform .25s ease; }
.faq-item.is-open .faq-question svg { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  background: var(--mist);
}
.faq-item.is-open .faq-answer { max-height: 200px; }
.faq-answer p { padding: 4px 20px 18px; font-size: 0.88rem; }
.faq-answer a { color: var(--navy-mid); font-weight: 600; }

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 100px 24px 120px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color .2s ease, transform .2s ease;
}
.contact-info-card:hover { border-color: var(--navy-mid); transform: translateY(-2px); }
.contact-info-card svg { width: 22px; height: 22px; color: var(--navy-mid); flex-shrink: 0; margin-top: 2px; }
.contact-info-card h4 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-info-card a {
  font-weight: 600;
  color: var(--ink);
}
.contact-info-card a:hover { color: var(--navy-mid); }

.contact-form {
  background: var(--mist);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.form-row-full { display: block; margin-bottom: 22px; }
.contact-form label { display: block; }
.contact-form label span {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--paper);
  transition: border-color .2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--navy-mid);
}
.contact-form textarea { resize: vertical; }
.form-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* honeypot field: visually hidden, still reachable by bots that ignore CSS,
   but off-screen so real visitors never see or fill it in */
.hp-field {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-success {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #E4F3EA;
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.form-success svg { width: 24px; height: 24px; color: #1F6F45; flex-shrink: 0; }
.form-success p { font-size: 0.92rem; font-weight: 600; color: #1F6F45; margin: 0; }

.form-error {
  margin-top: 14px;
  font-size: 0.85rem;
  color: #A13434;
  background: #FBEAEA;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}
.form-error a { color: #A13434; text-decoration: underline; font-weight: 600; }

/* mobile nav open state */
.nav.menu-open .nav-links {
  display: flex;
  position: absolute;
  top: 100%; left: 0; right: 0;
  flex-direction: column;
  background: var(--navy-deep);
  padding: 24px;
  gap: 20px;
}
.nav.menu-open .nav-links-login {
  display: block;
  margin-top: 4px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: var(--sky);
  font-weight: 700;
}
.nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   RESPONSIVE
   (kept at the very end of the file on purpose — CSS cascade
   resolves same-specificity rules by source order, so these
   overrides must come after every component's base styles,
   not just after the ones that existed when first written)
   ========================================================= */
@media (max-width: 980px) {
  .dept-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero-mascot { width: 220px; }
  .contact-grid { grid-template-columns: 1fr; }
  .platform-usp-inner { flex-direction: column; }
  .platform-visual { width: 100%; height: 220px; }
  .extra-grid { grid-template-columns: 1fr; }
  .dept-checkboxes { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-sm { display: none; }
  .nav-login { display: none; }
  .hero { padding: 140px 20px 72px; }
  .hero-inner { flex-direction: column; text-align: left; }
  .hero-mascot { width: 180px; margin-top: 12px; }
  .hero-stats { gap: 32px; }
  .btn { white-space: normal; }
  .hero-actions .btn { padding: 13px 18px; text-align: center; flex: 1 1 auto; min-width: 0; }
  .dept-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trusted-logos { gap: 32px; }
  .value-strip-inner { justify-content: flex-start; }
  .dept-pills { gap: 8px; }
  .team-row, .team-row-reverse { flex-direction: column; text-align: center; gap: 28px; }
  .team-row-copy p { margin-left: auto; margin-right: auto; }
  .form-row { grid-template-columns: 1fr; }
  .timeline::before { left: 21px; }
  .timeline-marker { width: 44px; height: 44px; }
  .timeline-marker svg { width: 19px; height: 19px; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 18px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Corner mascots on the diensten.html header: only on genuinely wide
   screens, where there's enough room beside the centered text without
   ever overlapping it. Hidden on tablet and phone. */
@media (max-width: 1180px) {
  .page-header-corner-mascot { display: none; }
}

/* =========================================================
   BEDANKT (thank-you) PAGE
   ========================================================= */
.thanks-header {
  min-height: 68vh;
  display: flex;
  align-items: center;
}
.thanks-header .page-header-inner { max-width: 560px; }
.thanks-check {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(61, 214, 140, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}
.thanks-check svg { width: 30px; height: 30px; color: #3DD68C; }
.thanks-header .page-header-mascot { width: 84px; margin-bottom: 8px; }
.thanks-actions {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
