/**
 * DLPA + Crivits legal — shared design tokens, web font, and a scoped baseline
 * reset for the Canvas landing-page SDCs.
 *
 * Every DLPA component places `dlpa-c` on its root element so these baseline
 * rules stay isolated from commatheme's Bootstrap/Classy globals (and vice
 * versa). Design tokens come straight from the Figma variables.
 */

/* "Archia" in the source design is a commercial font; Hanken Grotesk is a
   license-clean (OFL) geometric-grotesque stand-in with matching weights. */
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/hanken-grotesk-latin-variable.woff2") format("woff2-variations");
}

:root {
  /* Colour tokens (Figma variables) */
  --dlpa-blauw: #003478;
  --dlpa-paars: #a597dc;
  --dlpa-geel: #dfcf46;
  --dlpa-zacht-grijs: #faf7f7;
  --dlpa-mid-grijs: #dbdde2;
  --dlpa-grijs-tekst: #bcc0cb;
  --dlpa-wit: #ffffff;

  /* Effects */
  --dlpa-drop: 0 4px 12px rgba(0, 0, 0, 0.08);

  /* Type */
  --dlpa-font: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  /* Layout: at >=1440px a 992px container leaves ~224px margins, matching the
     Figma inset. A wider track is used for the hero / team imagery. */
  --dlpa-container: 992px;
  --dlpa-container-wide: 1160px;
  --dlpa-gutter: clamp(20px, 5vw, 64px);

  /* Asset base for background images referenced from component CSS. */
  --dlpa-img: "figma";
}

/* Offset anchored sections so smooth-scroll targets clear the sticky nav. */
.dlpa-c[id] {
  scroll-margin-top: 88px;
}

/* Scroll-reveal: armed by JS so content stays visible without JS. */
[data-dlpa-reveal].dlpa-armed {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.7, 0.2, 1);
  transition-delay: var(--dlpa-delay, 0ms);
  will-change: opacity, transform;
}

[data-dlpa-reveal].dlpa-armed.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-dlpa-reveal].dlpa-armed {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Scoped baseline reset — only applies inside DLPA components. */
.dlpa-c,
.dlpa-c *,
.dlpa-c *::before,
.dlpa-c *::after {
  box-sizing: border-box;
}

.dlpa-c {
  font-family: var(--dlpa-font);
  color: var(--dlpa-blauw);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.dlpa-c p {
  margin: 0;
}

.dlpa-c a {
  color: inherit;
  text-decoration: none;
}

.dlpa-c img,
.dlpa-c svg {
  display: block;
  max-width: 100%;
}

/* Shared label style (small uppercase tracked caption). */
.dlpa-label {
  margin: 0;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Centred content tracks reused by the section components. */
.dlpa-container {
  width: 100%;
  max-width: calc(var(--dlpa-container) + var(--dlpa-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--dlpa-gutter);
}

.dlpa-container--wide {
  max-width: calc(var(--dlpa-container-wide) + var(--dlpa-gutter) * 2);
}

.dlpa-container--full {
  max-width: 100%;
}

/* No-code spacing scale (per-section top/bottom padding). */
.dlpa-space-top--none { padding-top: 0; }
.dlpa-space-top--s { padding-top: clamp(28px, 4vw, 48px); }
.dlpa-space-top--m { padding-top: clamp(40px, 6vw, 72px); }
.dlpa-space-top--l { padding-top: clamp(56px, 8vw, 104px); }
.dlpa-space-top--xl { padding-top: clamp(80px, 11vw, 150px); }
.dlpa-space-bottom--none { padding-bottom: 0; }
.dlpa-space-bottom--s { padding-bottom: clamp(28px, 4vw, 48px); }
.dlpa-space-bottom--m { padding-bottom: clamp(40px, 6vw, 72px); }
.dlpa-space-bottom--l { padding-bottom: clamp(56px, 8vw, 104px); }
.dlpa-space-bottom--xl { padding-bottom: clamp(80px, 11vw, 150px); }

/* Text alignment helper for content sections. */
.dlpa-align--center {
  text-align: center;
}
.dlpa-align--center .dlpa-container,
.dlpa-align--center [class*="__text"],
.dlpa-align--center [class*="__intro"],
.dlpa-align--center [class*="__col"] {
  margin-inline: auto;
  align-items: center;
}

/* Configurable background colours. Each sets a background (--sec-bg) and a
   matching foreground/text colour (--sec-fg) so contrast follows the choice.
   Section components read these vars, falling back to their own defaults. */
.dlpa-bg--wit {
  --sec-bg: var(--dlpa-wit);
  --sec-fg: var(--dlpa-blauw);
}
.dlpa-bg--zacht-grijs {
  --sec-bg: var(--dlpa-zacht-grijs);
  --sec-fg: var(--dlpa-blauw);
}
.dlpa-bg--blauw {
  --sec-bg: var(--dlpa-blauw);
  --sec-fg: var(--dlpa-wit);
}
.dlpa-bg--geel {
  --sec-bg: var(--dlpa-geel);
  --sec-fg: var(--dlpa-blauw);
}
.dlpa-bg--paars {
  --sec-bg: var(--dlpa-paars);
  --sec-fg: var(--dlpa-blauw);
}
