/* ==========================================================================
   BRICKL — DESIGN SYSTEM
   Tokens, primitives, components. Shared by every page.
   ========================================================================== */

/* ---------- Fonts ----------
   BelyDisplayW00 wordt lokaal geladen via @font-face. Poppins komt van Google Fonts. */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700&display=swap");

@font-face {
  font-family: 'BelyDisplayW00';
  src: url('/fonts/BelyDisplayW00-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---------- Color tokens ---------- */
  --brickl-dark: #012B2D;
  --brickl-dark-2: #0E2628;       /* footer / nested dark */
  --brickl-dark-3: #021f21;       /* deepest punch */
  --brickl-mint: #ACEBDB;
  --brickl-mint-soft: rgba(172, 235, 219, 0.16);
  --brickl-white: #FFFFFF;
  --brickl-logo-white: #FAFAF8;
  --brickl-sand: #F1ECE2;         /* warm light section */
  --brickl-sand-2: #E6DFD0;
  --brickl-rule-dark: rgba(250, 250, 248, 0.14);
  --brickl-rule-light: rgba(1, 43, 45, 0.14);
  --brickl-muted-on-dark: rgba(250, 250, 248, 0.66);
  --brickl-muted-on-light: rgba(1, 43, 45, 0.62);

  /* ---------- Type ---------- */
  --font-display: 'BelyDisplayW00', Georgia, serif;
  --font-body: "Poppins", system-ui, -apple-system, sans-serif;

  /* ---------- Spacing scale (8pt-ish) ---------- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;
  --sp-11: 160px;

  /* ---------- Layout ---------- */
  --container-max: 1320px;
  --container-pad: clamp(20px, 4vw, 56px);

  /* ---------- Radii / borders ---------- */
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--brickl-logo-white);
  background: var(--brickl-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  font-size: 17px;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

.h-display, .h-claim, .h-section, .h-eyebrow, .h-meta {
  margin: 0;
}

.h-claim {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 9.5vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.h-section {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
/* Op mobiel wrappen koppen vaker — krappe 0.96 laat regels plakken */
@media (max-width: 768px) {
  .h-section { line-height: 1.08; }
}

.h-display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 56px);
  line-height: 1.04;
  text-wrap: balance;
}

.h-eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.h-meta {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.lead {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  max-width: 60ch;
  text-wrap: pretty;
}

.body-l {
  font-size: 18px;
  line-height: 1.65;
  font-weight: 300;
}

.italic-quote { font-style: italic; }
.dot-mint { color: var(--brickl-mint); }
.dot-i { display: inline-block; transform-origin: center; }

/* ==========================================================================
   LAYOUT / SECTION CHROME
   ========================================================================== */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section {
  padding-top: clamp(80px, 12vw, 160px);
  padding-bottom: clamp(80px, 12vw, 160px);
  position: relative;
}
.section--tight { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }

.theme-dark {
  background: var(--brickl-dark);
  color: var(--brickl-logo-white);
}
.theme-darker {
  background: var(--brickl-dark-3);
  color: var(--brickl-logo-white);
}
.theme-light {
  background: var(--brickl-sand);
  color: var(--brickl-dark);
}
.theme-light .muted { color: var(--brickl-muted-on-light); }
.theme-dark .muted, .theme-darker .muted { color: var(--brickl-muted-on-dark); }

.divider-mint {
  width: 56px;
  height: 2px;
  background: var(--brickl-mint);
  border: 0;
  margin: 0 0 var(--sp-5) 0;
}

/* Section number tag — small editorial mark used at top-left of sections */
.section-marker {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: currentColor;
  opacity: 0.7;
  margin-bottom: var(--sp-6);
}
.section-marker::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* ==========================================================================
   NAV
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease-out),
              backdrop-filter 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(1, 43, 45, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--brickl-rule-dark);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.nav__brand {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--brickl-logo-white);
  display: inline-flex;
  align-items: center;
}
.nav__brand .dot-i { color: var(--brickl-mint); }
.nav__brand .brickl-logo {
  display: block;
  height: 26px;
  width: auto;
}
.nav__links {
  display: flex;
  gap: var(--sp-6);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
}
.nav__links a {
  position: relative;
  padding-bottom: 2px;
  color: var(--brickl-logo-white);
  opacity: 0.78;
  transition: opacity .2s var(--ease-out);
}
.nav__links a:hover { opacity: 1; }
.nav__links a.is-active {
  opacity: 1;
}
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--brickl-mint);
}
/* Hamburger button — alleen zichtbaar op mobiel */
.nav__hamburger {
  display: none;
  background: transparent;
  border: 0;
  padding: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--brickl-logo-white);
  transition: transform .25s var(--ease-out), opacity .2s var(--ease-out);
}
.nav.is-menu-open .nav__hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-menu-open .nav__hamburger span:nth-child(2) { opacity: 0; }
.nav.is-menu-open .nav__hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav__hamburger { display: block; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(1, 43, 45, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--brickl-rule-dark);
    padding: var(--sp-3) 0;
  }
  .nav.is-menu-open .nav__links { display: flex; }
  .nav__links a {
    padding: var(--sp-3) var(--container-pad);
    font-size: 18px;
    opacity: 0.9;
  }
  .nav__links a.is-active::after {
    left: var(--container-pad);
    right: auto;
    bottom: 4px;
    width: 24px;
  }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: 16px 28px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease-out), background .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out);
  text-decoration: none;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--brickl-mint);
  color: var(--brickl-dark);
}
.btn--primary:hover { background: #BFF0E2; }

.btn--ghost-light {
  background: transparent;
  color: var(--brickl-logo-white);
  border-color: var(--brickl-rule-dark);
}
.btn--ghost-light:hover { border-color: var(--brickl-mint); color: var(--brickl-mint); }

.btn--ghost-dark {
  background: transparent;
  color: var(--brickl-dark);
  border-color: var(--brickl-rule-light);
}
.btn--ghost-dark:hover { border-color: var(--brickl-dark); }

.btn--solid-dark {
  background: var(--brickl-dark);
  color: var(--brickl-logo-white);
}

.btn .arrow {
  display: inline-block;
  transition: transform .25s var(--ease-out);
}
.btn:hover .arrow { transform: translateX(4px); }

/* ==========================================================================
   FORMS
   ========================================================================== */

.input-row {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.input {
  flex: 1 1 280px;
  min-width: 0;
  background: transparent;
  border: 1px solid var(--brickl-rule-dark);
  color: var(--brickl-logo-white);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  padding: 16px 20px;
  border-radius: var(--r-pill);
  outline: none;
  transition: border-color .2s var(--ease-out);
}
.input::placeholder { color: var(--brickl-muted-on-dark); }
.input:focus { border-color: var(--brickl-mint); }

.theme-light .input {
  border-color: var(--brickl-rule-light);
  color: var(--brickl-dark);
}
.theme-light .input::placeholder { color: var(--brickl-muted-on-light); }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.7;
}
.field .input--block {
  border-radius: 6px;
  padding: 14px 16px;
  flex: none;
}
.field textarea.input--block {
  min-height: 140px;
  resize: vertical;
  font-family: var(--font-body);
}

/* ==========================================================================
   BADGES + STATUS
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}
.badge--mint { background: var(--brickl-mint); color: var(--brickl-dark); }
.badge--outline-light { border: 1px solid var(--brickl-rule-dark); color: var(--brickl-logo-white); }
.badge--outline-dark { border: 1px solid var(--brickl-rule-light); color: var(--brickl-dark); }
.badge--dot::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.card {
  border-radius: 6px;
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.card--dark {
  background: var(--brickl-dark-3);
  color: var(--brickl-logo-white);
  border: 1px solid var(--brickl-rule-dark);
}
.card--light {
  background: var(--brickl-logo-white);
  color: var(--brickl-dark);
}
.card--sand {
  background: var(--brickl-sand);
  color: var(--brickl-dark);
}
.card--bordered {
  background: transparent;
  border: 1px solid var(--brickl-rule-dark);
}
.theme-light .card--bordered { border-color: var(--brickl-rule-light); }

.card__eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
}
.card__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.04;
}
.card__body { font-weight: 300; line-height: 1.6; }

/* Step card */
.step {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.step__num {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 0.9;
  color: var(--brickl-mint);
}
.step__title {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.05;
}

/* Image frames */
.img-frame {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--brickl-dark-3);
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-frame--tall { aspect-ratio: 4 / 5; }
.img-frame--wide { aspect-ratio: 16 / 9; }
.img-frame--square { aspect-ratio: 1 / 1; }
.img-frame__cap {
  position: absolute;
  left: 16px; bottom: 16px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brickl-logo-white);
  background: rgba(1,43,45,0.7);
  padding: 6px 10px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--brickl-dark);
  isolation: isolate;
  border-radius: 0;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: 0;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(1,43,45,0.40) 0%, rgba(1,43,45,0.20) 40%, rgba(1,43,45,0.70) 100%);
}
.hero__content {
  padding-top: clamp(40px, 8vw, 100px);
  padding-bottom: clamp(48px, 8vw, 96px);
  background: none;
  border: none;
  border-radius: 0;
}
.hero__meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--sp-5);
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--brickl-rule-dark);
}

/* ==========================================================================
   ABSTRACT INTERLUDE (image 10)
   ========================================================================== */

.interlude {
  position: relative;
  padding: clamp(120px, 18vw, 240px) 0;
  overflow: hidden;
  background: var(--brickl-dark-3);
  color: var(--brickl-logo-white);
}
.interlude__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
}
.interlude__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.interlude::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--brickl-dark-3) 0%, transparent 25%, transparent 75%, var(--brickl-dark-3) 100%);
}
.interlude__inner {
  position: relative;
  z-index: 2;
  text-align: center;
}
.interlude__quote {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 80px);
  line-height: 1.04;
  max-width: 22ch;
  margin: 0 auto;
  text-wrap: balance;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: var(--brickl-dark-2);
  color: var(--brickl-logo-white);
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: 40px;
  border-top: 1px solid var(--brickl-rule-dark);
}
.footer__top {
  display: grid;
  grid-template-columns: 2.4fr 1fr 1fr;
  column-gap: 0;
  row-gap: var(--sp-7);
  padding-bottom: clamp(64px, 8vw, 96px);
  border-bottom: 1px solid var(--brickl-rule-dark);
}
.footer__top > *:nth-child(2) {
  padding-left: var(--sp-8); /* ruimte tussen logo-kolom en BRICKL */
}
.footer__top > *:nth-child(3) {
  padding-left: var(--sp-4); /* compacte ruimte tussen BRICKL en INITIATIEVEN */
}
@media (max-width: 860px) {
  .footer__top { grid-template-columns: 1fr; row-gap: var(--sp-7); }
  .footer__top > *:nth-child(2),
  .footer__top > *:nth-child(3) { padding-left: 0; }
}
.footer__mark {
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 96px);
  line-height: 0.95;
  color: var(--brickl-logo-white);
}
.footer__mark .dot-i { color: var(--brickl-mint); }
.footer__mark .brickl-logo {
  display: block;
  height: clamp(56px, 7vw, 96px);
  width: auto;
}
.footer__mark-sub {
  margin-top: var(--sp-3);
  font-size: 14px;
  opacity: 0.66;
  max-width: 30ch;
}
.footer__col h4 {
  font-family: 'BelyDisplayW00', Georgia, serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.66;
  margin: 0 0 var(--sp-4) 0;
}
.footer__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.footer__list a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  color: var(--brickl-logo-white);
  opacity: 0.92;
  transition: opacity .2s, color .2s;
}
.footer__list a:hover { color: var(--brickl-mint); opacity: 1; }
.footer__list a .ext {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-left: 6px;
  vertical-align: middle;
}
.footer__base {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: 12px;
  opacity: 0.55;
  letter-spacing: 0.04em;
}
.footer__base a:hover { opacity: 1; color: var(--brickl-mint); }
.footer__base .sep { opacity: 0.4; }

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-6);
}
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-12 { grid-template-columns: 1fr; }
}

.flex-between { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-5); flex-wrap: wrap; }
.flex-col { display: flex; flex-direction: column; }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-5 { gap: var(--sp-5); }
.gap-6 { gap: var(--sp-6); }

.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }

.mt-2 { margin-top: var(--sp-2); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mt-8 { margin-top: var(--sp-8); }

.text-muted-d { color: var(--brickl-muted-on-dark); }
.text-muted-l { color: var(--brickl-muted-on-light); }

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes heartbeat {
  0%, 70%, 100% { transform: scale(1); }
  10% { transform: scale(1.04); }
  20% { transform: scale(1); }
  30% { transform: scale(1.04); }
  40% { transform: scale(1); }
}

@keyframes spinDot {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes brickFall {
  0% { transform: translateY(-120%) rotate(-8deg); opacity: 0; }
  60% { transform: translateY(10%) rotate(2deg); opacity: 1; }
  80% { transform: translateY(-4%) rotate(-1deg); }
  100% { transform: translateY(0) rotate(0); opacity: 1; }
}

.brickl-fall {
  display: inline-flex;
  gap: 0;
}
.brickl-fall span {
  display: inline-block;
  opacity: 0;
  animation: brickFall 0.9s var(--ease-out) forwards;
}
.brickl-fall span:nth-child(1) { animation-delay: 0.05s; }
.brickl-fall span:nth-child(2) { animation-delay: 0.15s; }
.brickl-fall span:nth-child(3) { animation-delay: 0.25s; }
.brickl-fall span:nth-child(4) { animation-delay: 0.35s; }
.brickl-fall span:nth-child(5) { animation-delay: 0.45s; }
.brickl-fall span:nth-child(6) { animation-delay: 0.55s; }

.brickl-fall .dot-i {
  animation-name: brickFallI;
}
@keyframes brickFallI {
  0% { transform: translateY(-120%) rotate(-180deg); opacity: 0; }
  100% { transform: translateY(0) rotate(0); opacity: 1; }
}

/* Subtle reveal-on-load for hero claim block */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise-in { animation: riseIn 1s var(--ease-out) both; }
.rise-in.delay-1 { animation-delay: 0.2s; }
.rise-in.delay-2 { animation-delay: 0.4s; }
.rise-in.delay-3 { animation-delay: 0.6s; }
