/*
 * Dombox – tijdelijke constructiepagina
 * Huisstijl overgenomen uit Dombox.App/src/custom/assets/css/dombox (tokens, base, buttons).
 */

@font-face {
  font-family: "Archivo Black";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/archivo-black-4.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/archivo-2.woff2") format("woff2");
}

:root {
  --bg: #000;
  --ink: #fff;
  --yellow: #ffb208;
  --card: #212121;
  --muted: rgba(255, 255, 255, .64);
  --font-display: "Archivo Black", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --track: -.06em;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-swipe: cubic-bezier(.7, 0, .2, 1);
  --gl: clamp(16px, 6.35vw, 122px);
  --gr: clamp(16px, 6.1vw, 117px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }

body {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gr) 0 var(--gl);
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font: 400 clamp(17px, 1.25vw, 24px)/1.333 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

/* Groot DOMBOX-woord op de achtergrond */
/* Het vlak beslaat de hele pagina en knipt de letters af, zodat ze geen extra scrollruimte maken */
.bgword {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font: 400 21vw/.78 var(--font-display);
  letter-spacing: var(--track);
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .09);
  pointer-events: none;
  user-select: none;
}
body { isolation: isolate; }

/* Header */
.top { padding: clamp(20px, 2.5vw, 48px) 0; }
.logo { display: inline-block; }
.logo img { width: clamp(150px, 13.7vw, 263px); }

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(40px, 4.5vw, 86px);
  padding: clamp(24px, 4vw, 72px) 0;
}

/* Koppen */
.h1, .h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--track);
}
.h1 { font-size: clamp(40px, 7.3vw, 140px); line-height: .875; }
.h3 { font-size: clamp(28px, 2.2vw, 42px); line-height: 1; }
.h1 em, .h3 em { font-style: normal; color: var(--yellow); }

/* Hero */
.label {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 clamp(18px, 1.6vw, 30px);
  font: 400 clamp(14px, .9vw, 17px)/1 var(--font-display);
  letter-spacing: var(--track);
  text-transform: uppercase;
}
.sq { width: 10px; height: 10px; background: var(--yellow); flex: none; }
.txt { max-width: 34em; margin: clamp(20px, 2vw, 40px) 0 0; color: var(--muted); }
.txt-s { margin: 8px 0 0; color: var(--muted); }

/* Spoedblok */
.emergency {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 24px 48px;
  max-width: 1100px;
  padding: clamp(24px, 2.2vw, 42px);
  background: var(--card);
  border-left: 6px solid var(--yellow);
}

/* Knop (zoals buttons.css: vlak veegt in van links, tekst rolt, pijl schiet door) */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px;
  padding: 0 14px;
  border-radius: 0;
  background: var(--yellow); color: #000;
  font: 400 17px/1 var(--font-display);
  letter-spacing: var(--track);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color .25s .12s;
}
.btn img { width: 18px; height: 18px; transition: filter .25s .12s; }
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; background: #000;
  transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform .55s var(--ease-swipe);
}
.btn:hover, .btn:focus-visible { color: #fff; }
.btn:hover img, .btn:focus-visible img { filter: invert(1); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: 0 50%; }
.btn:hover .b-t { animation: roll .6s var(--ease-swipe); }
.btn:hover img { animation: arrow .6s var(--ease-swipe) .06s; }
.btn:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.btn .b-t { display: inline-block; }

@keyframes roll { 0% { transform: none } 45% { transform: translateY(-2em) } 46% { transform: translateY(2em) } 100% { transform: none } }
@keyframes arrow { 0% { transform: none } 45% { transform: translateX(2em) } 46% { transform: translateX(-2em) } 100% { transform: none } }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0; padding: 0; list-style: none;
}
.stats li { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .2); }
.stats strong {
  font: 400 clamp(36px, 3.4vw, 64px)/1 var(--font-display);
  letter-spacing: var(--track);
  color: var(--yellow);
}
.stats span { font-size: clamp(14px, .95vw, 18px); color: var(--muted); }

/* Footer */
.foot {
  display: flex; flex-wrap: wrap; gap: 8px 32px;
  padding: clamp(20px, 2vw, 40px) 0;
  font-size: clamp(14px, .85vw, 16px);
  color: var(--muted);
}
.foot a { text-decoration: none; }
.foot a:hover, .foot a:focus-visible { color: var(--yellow); }

/* Subtiele intro */
.hero, .emergency, .stats { animation: rise .9s var(--ease) both; }
.emergency { animation-delay: .12s; }
.stats { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

@media (max-width: 767px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .emergency { border-left-width: 4px; }
  .btn { height: auto; min-height: 50px; padding: 12px 16px; font-size: 16px; white-space: normal; }
  .bgword { font-size: 21vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
