/* =========================================================
   Jeroen A.C. Stoffels - portfolio
   Gedeelde stijl voor alle pagina's
   ========================================================= */

/* ---- Thema-tokens ---------------------------------------- */
:root {
  /* Donker thema is de standaard */
  --bg: #1A1A1A;
  --bg-elev: #232322;
  --text: #EDEAE3;
  --text-muted: #A6A199;
  --border: #383733;

  --warm: #E07E5B;          /* terracotta, accent in tekst en koppen */
  --cool: #7FA9C9;          /* staalblauw, accent in tekst en koppen */

  --btn-bg: #D2694A;        /* gevulde knop */
  --btn-fg: #17130F;
  --btn-bg-hover: #E07E5B;

  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='1.5' cy='1.5' r='1.5' fill='%23EDEAE3' fill-opacity='0.045'/%3E%3C/svg%3E");

  --maxw: 960px;
  --radius: 3px;
  --pad-x: 24px;
  --font-head: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

:root[data-theme="light"] {
  --bg: #F7F5F0;
  --bg-elev: #FFFFFF;
  --text: #1F1D1A;
  --text-muted: #5E594F;
  --border: #DAD4C8;

  --warm: #A94A24;
  --cool: #3F6E92;

  --btn-bg: #A94A24;
  --btn-fg: #FFFFFF;
  --btn-bg-hover: #8F3D1C;

  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='1.5' cy='1.5' r='1.5' fill='%231F1D1A' fill-opacity='0.06'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Decoratieve stippenlaag */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--pattern);
  z-index: -1;
  pointer-events: none;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ---- Hulpklassen --------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.ac-warm { color: var(--warm); }
.ac-cool { color: var(--cool); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--btn-bg);
  color: var(--btn-fg);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

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

/* ---- Navigatie ---------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}
.nav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0.85rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.nav__link {
  position: relative;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0.25rem 0;
  transition: color 0.15s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--warm);
  transition: width 0.2s ease;
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { width: 100%; }
.nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::after { width: 100%; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius);
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.theme-toggle:hover { color: var(--text); border-color: var(--cool); }
.tt-icon {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  position: relative;
  overflow: hidden;
  flex: none;
}
.tt-icon::after {
  content: "";
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: -5px;
  width: 12px;
  border-radius: 50%;
  background: var(--bg);
}
:root[data-theme="light"] .tt-icon { background: currentColor; }
:root[data-theme="light"] .tt-icon::after { background: transparent; }

/* ---- Knoppen en link-accenten ------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 0.85em 1.5em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
}
.btn-primary:hover {
  background: var(--btn-bg-hover);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--cool);
  color: var(--cool);
  transform: translateY(-2px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.link-arrow:hover {
  color: var(--warm);
  border-bottom-color: var(--warm);
}

/* ---- Hero -------------------------------------------- */
.hero {
  padding-block: clamp(3.5rem, 11vw, 7rem) clamp(3rem, 8vw, 5rem);
}
.hero__naam {
  font-size: clamp(2.6rem, 8vw, 4.5rem);
  font-weight: 700;
}
.hero__titel {
  margin-top: 0.9rem;
  color: var(--text-muted);
  font-family: var(--font-head);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
}
.hero__lead {
  margin-top: 1.8rem;
  max-width: 44ch;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.55;
}
.hero__tagline {
  margin-top: 1.6rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.4rem, 4vw, 2rem);
  letter-spacing: -0.02em;
}
.hero__acties {
  margin-top: 2.4rem;
  display: flex;
  align-items: center;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
}

/* ---- Secties --------------------------------------- */
.section {
  padding-block: clamp(3rem, 8vw, 5.5rem);
  border-top: 1px solid var(--border);
}
.section > .container > h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  margin-bottom: 1.6rem;
  position: relative;
  padding-top: 1.2rem;
}
.section > .container > h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 3px;
  background: var(--warm);
}

.prose { max-width: 62ch; }
.prose p + p { margin-top: 1.1rem; }
.prose p { color: var(--text); }

/* ---- Paginakop op subpagina's --------------------- */
.page-head {
  border-top: 0;
  padding-top: clamp(3.5rem, 10vw, 6rem);
}
.page-head h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  margin-bottom: 1.4rem;
  position: relative;
  padding-top: 1.2rem;
}
.page-head h1::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 3px;
  background: var(--warm);
}
.page-head .lead {
  max-width: 54ch;
  font-size: clamp(1.1rem, 2.3vw, 1.3rem);
  line-height: 1.55;
}
.page-head .lead p + p { margin-top: 1rem; }

/* ---- Wat ik doe: twee sporen ----------------------- */
.sporen {
  margin-top: 2.4rem;
  border-top: 1px solid var(--border);
}
.spoor {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.2s ease;
}
.spoor:hover { padding-left: 0.6rem; }
.spoor__kop {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}
.spoor__titel {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  letter-spacing: -0.02em;
}
.spoor__pijl {
  color: var(--warm);
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}
.spoor:hover .spoor__pijl { transform: translateX(6px); }
.spoor:hover .spoor__titel { color: var(--warm); }
.spoor__tekst {
  display: block;
  margin-top: 0.6rem;
  max-width: 54ch;
  color: var(--text-muted);
}

/* ---- Werkfilosofie: drie principes ----------------- */
.principes {
  margin-top: 2.4rem;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(3, 1fr);
}
.principe {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.principe:hover {
  transform: translateY(-4px);
  border-color: var(--warm);
}
.principe__nr {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--cool);
}
.principe__titel {
  margin-top: 0.5rem;
  font-size: 1.2rem;
}
.principe__bron {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}
.principe__tekst {
  margin-top: 0.9rem;
  font-size: 0.96rem;
  color: var(--text);
}

/* ---- Projecten (onderwijs.html, consultancy.html) -- */
.tags {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  list-style: none;
}
.tag {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.projecten {
  margin-top: 2.4rem;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(2, 1fr);
}
.project {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.project:hover {
  transform: translateY(-4px);
  border-color: var(--cool);
}
.project__tag {
  font-family: var(--font-head);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cool);
}
.project__titel {
  margin-top: 0.5rem;
  font-size: 1.25rem;
}
.project__rol {
  margin-top: 0.9rem;
  font-size: 0.95rem;
}
.project__rol dt {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 0.7rem;
}
.project__rol dd { margin: 0.15rem 0 0; }
.project__rol dd ul { margin: 0.4rem 0 0; padding-left: 1.1em; }
.project__rol dd li { margin-top: 0.3rem; }
.project__rol dd li:first-child { margin-top: 0; }

/* ---- Contact: noot onder het contactblok ---------- */
.form-noot {
  margin-top: 1.4rem;
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.form-noot + .form-noot { margin-top: 0.6rem; }

/* ---- CTA-blok onderaan subpagina's ---------------- */
.cta-slot {
  margin-top: 2.6rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--border);
}
.cta-slot h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  margin-bottom: 0.8rem;
}
.cta-slot p {
  max-width: 44ch;
  margin-bottom: 1.4rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ---- Footer -------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 2.2rem;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__copy { font-size: 0.9rem; }
.footer__tag {
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer__right {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

/* ---- Social-link (LinkedIn) --------------------- */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.15s ease;
}
.social-link:hover { color: var(--cool); }
.social-icon { flex: none; }

/* ---- Contactblok ------------------------------- */
.contact-blok {
  margin-top: 2.2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
}
.contact-social { margin: 0; }
.contact-social .social-link { font-size: 1rem; }

/* ---- Responsive: breekpunt rond 768px ------------ */
@media (max-width: 768px) {
  .nav__inner { justify-content: center; }
  .nav__links { justify-content: center; gap: 1rem 1.1rem; }
  .brand { width: 100%; text-align: center; }

  .principes { grid-template-columns: 1fr; }
  .projecten { grid-template-columns: 1fr; }

  .footer__inner { justify-content: center; text-align: center; }
}

/* ---- Minder beweging ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
