/* ============================================================
   BLUE ESOX — Design System
   Kleuren, typografie, spacing, componenten
   ============================================================ */

/* --- Reset & base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

/* --- Design tokens ----------------------------------------- */
:root {
  /* Kleuren */
  --color-navy:       #11111F;
  --color-navy-deep:  #0A0A14;
  --color-navy-mid:   #1A2A3A;
  --color-cyan:       #4EC3E0;
  --color-cyan-light: #7DD4EC;
  --color-cyan-dark:  #2AA8CC;
  --color-white:      #FFFFFF;
  --color-grey-100:   #F5F5F7;
  --color-grey-200:   #E8E8ED;
  --color-grey-400:   #C7C7CC;
  --color-grey-600:   #6E6E73;
  --color-grey-800:   #3A3A3C;
  --color-text:       #1D1D1F;

  /* Typografie */
  --font-display:     'Rubik', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Schaal (clamp voor responsive) */
  --text-xs:    clamp(10px, 1.2vw, 12px);
  --text-sm:    clamp(12px, 1.4vw, 14px);
  --text-base:  clamp(15px, 1.6vw, 17px);
  --text-lg:    clamp(18px, 2vw, 21px);
  --text-xl:    clamp(22px, 2.5vw, 28px);
  --text-2xl:   clamp(28px, 3.5vw, 40px);
  --text-3xl:   clamp(36px, 5vw, 56px);
  --text-4xl:   clamp(34px, 5vw, 56px);
  --text-hero:  clamp(34px, 5vw, 56px);

  /* Spacing */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-7:  28px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Layout */
  --max-width:      1200px;
  --max-width-text: 800px;
  --nav-height:     88px;

  /* Animaties */
  --ease-apple:     cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:    cubic-bezier(0.45, 0, 0.55, 1);
  --duration-fast:  200ms;
  --duration-base:  400ms;
  --duration-slow:  700ms;

  /* Border radius */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-xl:  0 24px 64px rgba(0,0,0,0.18);
  --shadow-cyan: 0 8px 32px rgba(78,195,224,0.25);
}

/* --- Base element styles ----------------------------------- */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }

/* --- Typography -------------------------------------------- */
.t-hero {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.t-display {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.t-h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.t-h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.t-h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.t-lead {
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-grey-800);
}
.t-body {
  font-size: var(--text-base);
  line-height: 1.7;
}
.t-small {
  font-size: var(--text-sm);
  line-height: 1.55;
}
.t-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Kleur-helpers */
.t-white     { color: var(--color-white); }
.t-cyan      { color: var(--color-cyan); }
.t-grey      { color: var(--color-grey-600); }
.t-navy      { color: var(--color-navy); }
.t-muted     { color: rgba(255,255,255,0.55); }

/* --- Layout ------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-8);
}
.container--narrow {
  max-width: var(--max-width-text);
}

.section {
  padding: var(--space-32) 0;
}
.section--sm {
  padding: var(--space-20) 0;
}
.section--dark {
  background: var(--color-navy);
  color: var(--color-white);
}
.section--grey {
  background: var(--color-grey-100);
}

/* Doorschijnende achtergrondafbeelding in een sectie.
   Gebruik: <section class="section section--grey section--image"
            style="--section-bg:url('assets/images/bestand.jpg')">
   Pas de zichtbaarheid aan met --section-bg-opacity (standaard 0.10). */
.section--image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Overlay-sterkte centraal regelbaar: hoger = subtieler, lager = duidelijker */
:root { --img-ov: rgba(245, 245, 247, 0.65); }
.bg-inkoop    { background-image: linear-gradient(var(--img-ov), var(--img-ov)), url('../assets/images/bg-inkoop.jpg'); }
.bg-vastgoed  { background-image: linear-gradient(var(--img-ov), var(--img-ov)), url('../assets/images/bg-vastgoed.jpg'); }
.bg-principes { background-image: linear-gradient(var(--img-ov), var(--img-ov)), url('../assets/images/bg-principes.jpg'); }
.bg-opdrachten{ background-image: linear-gradient(var(--img-ov), var(--img-ov)), url('../assets/images/bg-opdrachten.jpg'); }
.bg-loopbaan  { background-image: linear-gradient(var(--img-ov), var(--img-ov)), url('../assets/images/bg-loopbaan.jpg'); }
.bg-contact   { background-image: linear-gradient(var(--img-ov), var(--img-ov)), url('../assets/images/bg-contact.jpg'); }
.bg-vraagstukken { background-image: linear-gradient(var(--img-ov), var(--img-ov)), url('../assets/images/bg-vraagstukken.jpg'); }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }

/* Flex helpers */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { display: flex; flex-direction: column; }

/* --- Navigatie --------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background var(--duration-base) var(--ease-apple),
              backdrop-filter var(--duration-base) var(--ease-apple),
              border-color var(--duration-base) var(--ease-apple);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(17, 17, 31, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-color: rgba(255,255,255,0.08);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-8);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.nav__logo img {
  height: 46px;
  width: auto;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: color var(--duration-fast);
  letter-spacing: 0.01em;
}
.nav__link:hover { color: var(--color-white); }
.nav__link.active { color: var(--color-cyan); }
.nav__cta {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-navy);
  background: var(--color-cyan);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  transition: background var(--duration-fast), transform var(--duration-fast);
}
.nav__cta:hover {
  background: var(--color-cyan-light);
  transform: scale(1.02);
}
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--duration-base), opacity var(--duration-base);
}

/* --- Knoppen ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-base);
  font-weight: 600;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  transition: transform var(--duration-fast) var(--ease-apple),
              box-shadow var(--duration-fast) var(--ease-apple),
              background var(--duration-fast);
  cursor: pointer;
  border: none;
  letter-spacing: -0.01em;
}
.btn:hover { transform: scale(1.02); }
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--color-cyan);
  color: var(--color-navy);
}
.btn--primary:hover { background: var(--color-cyan-light); box-shadow: var(--shadow-cyan); }

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn--outline:hover { border-color: var(--color-white); background: rgba(255,255,255,0.06); }

.btn--dark {
  background: var(--color-navy);
  color: var(--color-white);
}
.btn--dark:hover { background: var(--color-navy-mid); }

.btn--lg {
  font-size: var(--text-lg);
  padding: var(--space-6) var(--space-10);
}
.btn--sm {
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-6);
}

/* --- Kaarten ----------------------------------------------- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-grey-200);
  padding: var(--space-8);
  transition: transform var(--duration-base) var(--ease-out-expo),
              box-shadow var(--duration-base) var(--ease-out-expo);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card--dark {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  color: var(--color-white);
}
.card--dark:hover {
  background: rgba(255,255,255,0.07);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* Diensten icoon */
.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(78, 195, 224, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
}
.card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-cyan);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Stat blokken ------------------------------------------ */
.stat {
  text-align: center;
}
.stat__number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-cyan);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat__label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  margin-top: var(--space-2);
}

/* --- Sectiekleur-wissel ------------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-cyan);
  border-radius: 2px;
}

/* --- Divider ----------------------------------------------- */
.divider {
  width: 48px;
  height: 3px;
  background: var(--color-cyan);
  border-radius: 3px;
  margin: var(--space-6) 0;
}

/* --- Tags / chips ------------------------------------------ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: rgba(78,195,224,0.1);
  color: var(--color-cyan-dark);
  border: 1px solid rgba(78,195,224,0.2);
}
.chip--dark {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.12);
}

/* --- Footer ------------------------------------------------ */
.footer {
  background: var(--color-navy-deep);
  color: var(--color-white);
  padding: var(--space-8) 0 var(--space-5);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--space-5);
}
.footer__tagline {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  margin-top: var(--space-4);
  line-height: 1.65;
}
.footer__heading {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-4);
}
.footer__links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer__link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  transition: color var(--duration-fast);
}
.footer__link:hover { color: var(--color-cyan); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
}

/* --- Animatie-klassen (startposities) ---------------------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}
.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}
.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s var(--ease-out-expo),
              transform 0.7s var(--ease-out-expo);
}
.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger vertragingen */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* Tekst-reveal (woord voor woord) */
.word-reveal .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out-expo),
              transform 0.5s var(--ease-out-expo);
}
.word-reveal.is-visible .word {
  opacity: 1;
  transform: translateY(0);
}

/* --- Mobiel navigatie -------------------------------------- */
.nav__mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-navy-deep);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
}
.nav__mobile-menu.open { display: flex; }
.nav__mobile-link {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-white);
  transition: color var(--duration-fast);
}
.nav__mobile-link:hover { color: var(--color-cyan); }

/* --- Responsive -------------------------------------------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root {
    --space-32: 80px;
    --space-24: 64px;
    --space-20: 48px;
    --nav-height: 72px;
  }
  .container { padding: 0 var(--space-6); }
  .nav__logo img { height: 40px; }
  .nav__links { display: none; }
  .nav__cta.desktop-only { display: none; }
  .nav__hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer__bottom { flex-direction: column; gap: var(--space-3); text-align: center; }
}

@media (max-width: 480px) {
  .btn--lg { font-size: var(--text-base); padding: var(--space-4) var(--space-8); }
}

/* --- Print (basis) ----------------------------------------- */
@media print {
  .nav, .footer { display: none; }
  .section--dark { background: white !important; color: black !important; }
}
