/* =========================================================================
   Studio Brunings — stylesheet
   Palet: merk-zand + zwart. Motief: omlijnde vormen (de open "STUDIO"-letters).
   ========================================================================= */

/* ---- Fonts (self-hosted, variabel) ------------------------------------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  font-style: normal;
}

/* ---- Tokens ------------------------------------------------------------- */
:root {
  --sand:       #C2B59B;
  --sand-deep:  #B3A582;
  --sand-soft:  #CEC3A9;
  --ink:        #000000;
  --ink-72:     rgba(0, 0, 0, .72);
  --ink-55:     rgba(0, 0, 0, .55);
  --line:       #000000;
  --line-soft:  rgba(0, 0, 0, .22);

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Instrument Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --radius:     16px;
  --radius-lg:  26px;
  --border:     1.75px;

  --container:  1140px;
  --gutter:     clamp(1.15rem, 4vw, 2.5rem);
  --section-y:  clamp(3.5rem, 8vw, 6.5rem);

  --maxread:    62ch;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
}
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.28rem; font-weight: 700; letter-spacing: -0.01em; }
p  { margin: 0 0 1rem; max-width: var(--maxread); }

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

.skip-link {
  position: absolute; left: 8px; top: -60px;
  background: var(--ink); color: var(--sand);
  padding: .6rem 1rem; border-radius: 10px; z-index: 100;
  transition: top .15s ease;
}
.skip-link:focus { top: 8px; }

/* ---- Layout helpers ----------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section   { padding-block: var(--section-y); }
.section--alt { background: var(--sand-deep); }
.narrow    { max-width: 820px; }
.eyebrow   { font-family: var(--font-body); font-weight: 600; font-size: .95rem; color: var(--ink-72); margin: 0 0 .9rem; }
.lead      { font-size: 1.22rem; line-height: 1.55; color: var(--ink); max-width: var(--maxread); }
.muted     { color: var(--ink-72); }

.stack > * + * { margin-top: 1rem; }
.grid { display: grid; gap: clamp(1rem, 3vw, 2rem); }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--sand);
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  line-height: 1; padding: .95rem 1.5rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: var(--border) solid var(--ink); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { --btn-bg: transparent; --btn-fg: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--sand); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* ---- Header / nav ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--sand);
  border-bottom: 1.5px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line-soft); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 76px;
}
.nav__brand { display: inline-flex; align-items: center; }
.nav__brand svg, .nav__brand img { height: 42px; width: auto; }
.nav__menu {
  display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.1rem);
  list-style: none; margin: 0; padding: 0;
}
.nav__link {
  font-weight: 500; text-decoration: none; padding: .4rem 0;
  position: relative; white-space: nowrap;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1.5px; width: 100%;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { font-weight: 600; }

/* dropdown */
.has-drop { position: relative; }
.drop-toggle {
  background: none; border: 0; font: inherit; font-weight: 500;
  cursor: pointer; padding: .4rem 0; display: inline-flex; align-items: center; gap: .35rem;
  color: inherit;
}
.drop-toggle svg { width: 12px; height: 12px; transition: transform .2s ease; }
.has-drop[data-open="true"] .drop-toggle svg { transform: rotate(180deg); }
.drop {
  position: absolute; top: calc(100% + 10px); left: -1rem;
  min-width: 268px; background: var(--sand);
  border: var(--border) solid var(--ink); border-radius: var(--radius);
  padding: .5rem; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-drop[data-open="true"] .drop { opacity: 1; visibility: visible; transform: translateY(0); }
.drop a {
  display: block; padding: .6rem .8rem; border-radius: 10px; text-decoration: none;
  font-weight: 500;
}
.drop a:hover, .drop a:focus-visible { background: var(--sand-deep); }
.drop a small { display: block; font-weight: 400; color: var(--ink-72); font-size: .82rem; }

/* mobile nav */
.nav__toggle { display: none; }
@media (max-width: 860px) {
  .nav__brand, .nav__toggle { position: relative; z-index: 60; }
  .nav__toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    background: none; border: 0; cursor: pointer; padding: .55rem;
  }
  .nav__toggle span { width: 26px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
  body[data-nav="open"] .nav__toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  body[data-nav="open"] .nav__toggle span:nth-child(2) { opacity: 0; }
  body[data-nav="open"] .nav__toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .nav__menu {
    position: fixed; inset: 0 0 auto 0; z-index: 40;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--sand); border-bottom: var(--border) solid var(--ink);
    padding: calc(76px + .6rem) var(--gutter) 1.5rem;
    max-height: 100dvh; overflow-y: auto;
    transform: translateY(-100%); transition: transform .25s ease;
  }
  body[data-nav="open"] .nav__menu { transform: translateY(0); }
  .nav__menu > li { border-bottom: 1px solid var(--line-soft); }
  .nav__link, .drop-toggle { padding: 1rem 0; width: 100%; font-size: 1.1rem; }
  .nav__link::after { display: none; }
  .drop {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; padding: 0 0 .6rem .4rem; min-width: 0;
    display: none;
  }
  .has-drop[data-open="true"] .drop { display: block; }
}

/* ---- Hero --------------------------------------------------------------- */
.hero { position: relative; overflow: clip; padding-block: clamp(3rem, 7vw, 6rem) 0; }
.hero__inner { position: relative; z-index: 2; max-width: 760px; }
.hero h1 { font-size: clamp(2.7rem, 8vw, 5.2rem); font-weight: 800; }
.hero .lead { margin-top: 1.2rem; }
.hero__ghost {
  position: relative; z-index: 1;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3.2rem, 15.5vw, 12rem); line-height: .8;
  letter-spacing: -0.03em;
  color: transparent; -webkit-text-stroke: 2px var(--ink);
  text-stroke: 2px var(--ink);
  white-space: nowrap; user-select: none; pointer-events: none;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  overflow: clip;
}

/* ---- Ghost word (section accent) --------------------------------------- */
.ghost-word {
  font-family: var(--font-display); font-weight: 800;
  color: transparent; -webkit-text-stroke: 1.75px var(--ink); text-stroke: 1.75px var(--ink);
  line-height: .85; letter-spacing: -0.02em;
}

/* ---- Framed elements (het STUDIO-omlijningsmotief) --------------------- */
.frame {
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
}

/* USP spec-strip: één kader met interne hairlines */
.specs {
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-lg);
  display: grid; grid-template-columns: repeat(4, 1fr);
  overflow: clip;
}
.specs > div { padding: 1.5rem 1.4rem; border-left: 1.5px solid var(--line-soft); }
.specs > div:first-child { border-left: 0; }
.specs h3 { margin: 0 0 .25rem; font-size: 1.08rem; }
.specs p  { margin: 0; font-size: .95rem; color: var(--ink-72); }
@media (max-width: 860px) { .specs { grid-template-columns: repeat(2, 1fr); } .specs > div:nth-child(odd){border-left:0;} .specs > div:nth-child(n+3){border-top:1.5px solid var(--line-soft);} }
@media (max-width: 480px) { .specs { grid-template-columns: 1fr; } .specs > div { border-left: 0; } .specs > div + div { border-top: 1.5px solid var(--line-soft); } }

/* ---- Sector cards ------------------------------------------------------- */
.sector-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.sector-card {
  display: flex; flex-direction: column; gap: .5rem;
  padding: 1.6rem 1.5rem 1.5rem;
  border: var(--border) solid var(--ink); border-radius: var(--radius);
  text-decoration: none; background: transparent;
  transition: background-color .18s ease, transform .18s ease;
}
.sector-card:hover { background: var(--sand-soft); }
.sector-card h3 { margin: 0; }
.sector-card p { margin: 0; color: var(--ink-72); font-size: .96rem; }
.sector-card__more { margin-top: auto; padding-top: .8rem; font-weight: 600; text-decoration: underline; }

/* ---- Media placeholder -------------------------------------------------- */
.media-ph {
  border: var(--border) solid var(--ink); border-radius: var(--radius);
  background: var(--sand-deep);
  aspect-ratio: 3 / 2;
  display: grid; place-items: center;
  position: relative; overflow: clip;
}
.media-ph img { width: 46%; max-width: 200px; opacity: .16; }
.media-ph span {
  position: absolute; bottom: .7rem; right: .9rem;
  font-size: .78rem; color: var(--ink-55);
}
.media-ph--portrait { aspect-ratio: 1 / 1; border-radius: 50%; }

/* ---- Split / prose ------------------------------------------------------ */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.split--text { grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 820px) { .split, .split--text { grid-template-columns: 1fr; } }

.prose { max-width: 820px; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul { padding-left: 1.15rem; max-width: var(--maxread); }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: var(--ink-55); }

/* ---- Process steps (echte volgorde → nummering is terecht) ------------- */
.steps { counter-reset: step; display: grid; gap: 1rem; }
.step {
  border: var(--border) solid var(--ink); border-radius: var(--radius);
  padding: 1.4rem 1.5rem 1.4rem 1.4rem;
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start;
}
.step__num {
  counter-increment: step;
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
  width: 2.7rem; height: 2.7rem; border-radius: 50%;
  border: var(--border) solid var(--ink);
  display: grid; place-items: center;
}
.step__num::before { content: counter(step); }
.step h3 { margin: .2rem 0 .35rem; }
.step p { margin: 0; color: var(--ink-72); }

/* ---- FAQ ---------------------------------------------------------------- */
.faq { max-width: 820px; }
.faq details {
  border-bottom: 1.5px solid var(--line-soft);
  padding: 1.1rem 0;
}
.faq details:first-of-type { border-top: 1.5px solid var(--line-soft); }
.faq summary {
  font-family: var(--font-display); font-weight: 700; font-size: 1.12rem;
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 700; font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .8rem 0 0; color: var(--ink-72); }

/* ---- Callout / CTA band ------------------------------------------------- */
.callout {
  border: var(--border) solid var(--ink); border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 5vw, 3rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
.callout h2 { margin: 0; max-width: 22ch; }
.callout p { margin: .4rem 0 0; color: var(--ink-72); }

/* ---- References --------------------------------------------------------- */
.refs { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; }
.ref-chip {
  border: 1.5px solid var(--ink); border-radius: 999px;
  padding: .5rem 1.1rem; font-weight: 600; font-size: .95rem;
}

/* ---- Contact ------------------------------------------------------------ */
.contact-lines { font-size: 1.15rem; line-height: 1.9; }
.contact-lines a { text-decoration: none; font-weight: 600; }
.contact-lines a:hover { text-decoration: underline; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer {
  border-top: var(--border) solid var(--ink);
  padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; } }
.footer-grid h4 { font-family: var(--font-body); font-weight: 700; font-size: .95rem; margin: 0 0 .8rem; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: .5rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.site-footer .brand-mark svg, .site-footer .brand-mark img { height: 46px; margin-bottom: 1rem; }
.footer-legal {
  margin-top: 2.5rem; padding-top: 1.3rem; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
  font-size: .85rem; color: var(--ink-72);
}
.footer-legal a { color: inherit; }

/* ---- Breadcrumb --------------------------------------------------------- */
.crumbs { font-size: .85rem; color: var(--ink-72); padding-top: 1.4rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--ink-55); }

/* ---- Page hero (binnenpagina's) ---------------------------------------- */
.page-hero { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); }
.page-hero .lead { margin-top: 1rem; }

/* ---- Utilities ---------------------------------------------------------- */
.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;
}
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
