/* =========================================================================
   joepa, websites zonder gedoe
   Aesthetiek: warm zonlicht-minimalisme met redactioneel karakter
   ========================================================================= */

:root {
  /* Kleur, joepa-merk 2026: coral + pruim op cream, met signatuur-gradient */
  --paper: #fbf4ea; /* cream */
  --paper-deep: #f6ebd9; /* cream-2 */
  --ink: #231a12;
  --ink-soft: #6e6256; /* ink-2 */
  --ink-faint: #978f84;
  --espresso: #2a1d13;

  --primary: #f0572c; /* coral */
  --primary-deep: #ce431c;
  --primary-soft: #fce2d7;

  --plum: #7e3ac2; /* tweede kleur */
  --plum-deep: #5e2a95;
  --plum-soft: #ece0f7;
  --pink: #e8527e; /* roze brug in de gradient */

  /* goud uitgefaseerd: de oude --gold-accenten worden nu pruim */
  --gold: var(--plum);
  --gold-soft: var(--plum-soft);

  --grad: linear-gradient(120deg, #f0572c 0%, #e8527e 50%, #7e3ac2 100%);

  --line: rgba(35, 26, 18, 0.12);
  --line-strong: rgba(35, 26, 18, 0.22);
  --white: #ffffff;

  /* Schaduwen, warm getint, nooit koud-grijs */
  --shadow-sm: 0 1px 2px rgba(101, 64, 30, 0.06),
    0 2px 6px rgba(101, 64, 30, 0.05);
  --shadow-md: 0 4px 14px rgba(101, 64, 30, 0.08),
    0 12px 30px rgba(101, 64, 30, 0.07);
  --shadow-lg: 0 10px 30px rgba(101, 64, 30, 0.1),
    0 28px 60px rgba(101, 64, 30, 0.1);
  --shadow-primary: 0 8px 22px rgba(240, 87, 44, 0.26),
    0 2px 6px rgba(240, 87, 44, 0.2);
  --shadow-hard: 7px 7px 0 rgba(35, 26, 18, 0.85);

  /* Typografie */
  --font-display: "Gabarito", system-ui, -apple-system, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Bradley Hand", cursive;

  /* Ritme */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --notch: polygon(
    0 0,
    100% 0,
    100% calc(100% - 13px),
    calc(100% - 13px) 100%,
    0 100%
  );

  --maxw: 1180px;
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  /* Cream met een zachte coral- en pruimgloed, plus een fijne ruislaag. */
  background-image: radial-gradient(
      1100px 640px at 92% -8%,
      rgba(240, 87, 44, 0.1),
      rgba(240, 87, 44, 0) 60%
    ),
    radial-gradient(
      1080px 740px at -10% 104%,
      rgba(126, 58, 194, 0.08),
      rgba(126, 58, 194, 0) 58%
    ),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.52 0 0 0 0 0.40 0 0 0 0 0.24 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: auto, auto, 360px 360px;
  background-attachment: fixed, fixed, fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Gestippeld warm grid over de hele pagina, altijd achter de content
   (de branche-paginas hebben geen #app-wrapper, dus z-index -1 i.p.v. 0). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(
      to right,
      rgba(99, 75, 40, 0.1) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(99, 75, 40, 0.1) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: repeating-linear-gradient(
      to right,
      #000 0 3px,
      transparent 3px 8px
    ),
    repeating-linear-gradient(to bottom, #000 0 3px, transparent 3px 8px);
  mask-image: repeating-linear-gradient(
      to right,
      #000 0 3px,
      transparent 3px 8px
    ),
    repeating-linear-gradient(to bottom, #000 0 3px, transparent 3px 8px);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

#app {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--primary-soft);
  color: var(--ink);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Layout helper ---- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

/* =========================================================================
   Knoppen
   ========================================================================= */
.btn {
  --lift: 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  border: none;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: transform 0.32s var(--ease-soft), box-shadow 0.32s var(--ease-soft),
    background-color 0.2s ease;
  transform: translateY(var(--lift));
  will-change: transform;
}

/* Gekerfde knop (afgesneden rechterhoek), het joepa-signatuur. */
.btn--primary {
  background: var(--primary);
  color: #fff;
  border-radius: 0;
  clip-path: var(--notch);
}
.btn--primary:hover {
  --lift: -2px; /* de joepa-lift */
  background: var(--primary-deep);
}
.btn--primary:active {
  --lift: -1px;
}

/* Gekerfde omlijnde knop: inkt-rand + cream vulling via twee lagen. */
.btn--ghost {
  position: relative;
  isolation: isolate;
  background: transparent;
  color: var(--ink);
}
.btn--ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  clip-path: var(--notch);
}
.btn--ghost::after {
  content: "";
  position: absolute;
  inset: 1.6px;
  z-index: -1;
  background: var(--paper);
  clip-path: var(--notch);
  transition: background 0.2s ease;
}
.btn--ghost:hover {
  --lift: -2px;
  color: var(--paper);
}
.btn--ghost:hover::after {
  background: var(--ink);
}

.btn--lg {
  padding: 1.1rem 2rem;
  font-size: 1.15rem;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  --lift: 0px;
}

/* =========================================================================
   Reveal-animaties bij page-load (gestaffeld via --i)
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal-up 0.8s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 90ms + 60ms);
}

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-14px) rotate(2deg);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-12px, 16px) scale(1.04);
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.85);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* =========================================================================
   joepa, scherm-specifieke stijl
   ========================================================================= */

/* ----------------------------- Logo ----------------------------- */
.logo {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
  gap: 0.2rem;
}
.logo__mark {
  display: block;
  height: 2.55rem;
  width: auto;
}
.logo__tagline {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  text-transform: lowercase;
}

