/* ==========================================================================
   RenoWijs — stijl
   Merk: onafhankelijk, technisch, geen verkoop. Blauwdruk-esthetiek:
   verzorgd papier, grafiet-inkt, één diep blauwdruk-blauw, spaarzaam oker.
   Mobiel eerst. Geen franje.
   ========================================================================== */

:root {
  /* Kleur */
  --paper:      #F4F4F0;   /* warm papiergrijs, geen crème-cliché */
  --paper-2:    #ECECE6;   /* iets dieper vlak */
  --ink:        #16181C;   /* grafiet, leest als zwart */
  --ink-soft:   #55595A;   /* rustige lopende tekst */
  --line:       #D6D6CE;   /* haarlijn */
  --brand:      #0F3B57;   /* blauwdruk-blauw: technisch, betrouwbaar */
  --brand-deep: #0A2C43;
  --brand-tint: #E4EBF0;   /* zacht blauwvlak */
  --accent:     #B26A1F;   /* oker: schaarste/nadruk, héél spaarzaam */
  --ok:         #1F6B4F;   /* "wel" */
  --no:         #9A3324;   /* "niet" */
  --focus:      #1E6FB0;

  /* Type */
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --disp: "Archivo", var(--sans);

  /* Maat */
  --wrap: 62rem;
  --measure: 40rem;      /* < 80 tekens leesbreedte */
  --gap: clamp(1rem, 4vw, 1.6rem);
  --sp-section: clamp(3rem, 8vw, 5.5rem);
  --radius: 3px;

  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: inherit; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
}

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

/* --- Type --- */
h1, h2, h3 {
  font-family: var(--disp);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.05rem, 7vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4.4vw, 2.15rem); margin-top: 0; }
h3 { font-size: 1.18rem; font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1rem; max-width: var(--measure); }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-deep); }
strong { font-weight: 600; }
small { font-size: 0.875rem; }

/* --- Layout --- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--sp-section); }
.section + .section { border-top: 1px solid var(--line); }
.stack > * + * { margin-top: 1rem; }
.narrow { max-width: var(--measure); }

/* --- Kop/nav --- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.site-head .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: 4rem;
}
.brandmark {
  font-family: var(--disp); font-weight: 800; font-size: 1.22rem;
  letter-spacing: -0.02em; color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: baseline; gap: 0.15rem;
}
.brandmark span { color: var(--brand); }
.nav { display: flex; align-items: center; gap: 1.35rem; }
.nav a {
  color: var(--ink); text-decoration: none; font-size: 0.97rem; font-weight: 500;
  padding: 0.25rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover { border-color: var(--line); }
.nav a[aria-current="page"] { border-color: var(--accent); }
.nav .btn { border: 0; }
.nav-toggle { display: none; }

@media (max-width: 46rem) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .5rem;
    background: none; border: 1px solid var(--line); border-radius: var(--radius);
    padding: .5rem .7rem; font: inherit; font-size: .95rem; color: var(--ink); cursor: pointer;
  }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem 0; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 1.25rem; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-left: 3px solid var(--accent); border-bottom: 1px solid var(--line); }
  .nav .btn { margin: .6rem 1.25rem; }
}

/* --- Knoppen --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: .8rem 1.35rem; border-radius: var(--radius); cursor: pointer;
  text-decoration: none; border: 1px solid transparent; line-height: 1.2;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand-tint); color: var(--brand-deep); }
.btn-block { width: 100%; }
.linkline { display: inline-block; font-weight: 500; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px;
}

/* --- Hero --- */
.hero { padding-top: clamp(2.5rem, 7vw, 4rem); }
.hero h1 { max-width: 18ch; }
.hero .lead { max-width: 34rem; margin-bottom: 1.6rem; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: .8rem 1.1rem; align-items: center; }
.hero .cta-row .linkline { font-size: .98rem; }

/* Vertrouwensstrip (feiten, geen verkoop) */
.trust {
  margin-top: 1.9rem; padding-top: 1.1rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .35rem 1.1rem;
  font-size: .92rem; color: var(--ink-soft); max-width: none;
}
.trust b { color: var(--ink); font-weight: 600; }
.trust li { list-style: none; }
.trust ul { display: contents; margin: 0; padding: 0; }

/* --- Probleem-lijst --- */
.problem { list-style: none; margin: 0 0 1.2rem; padding: 0; max-width: var(--measure); }
.problem li {
  padding: .75rem 0 .75rem 1.5rem; border-bottom: 1px solid var(--line);
  position: relative; font-weight: 500;
}
.problem li::before {
  content: ""; position: absolute; left: 0; top: 1.15rem;
  width: .55rem; height: .55rem; border: 2px solid var(--accent); border-radius: 1px;
}
.closer { font-size: 1.08rem; }
.closer b { color: var(--brand); }

/* --- Wie is Jeff (compact) --- */
.jeff { display: grid; gap: 1.5rem; }
@media (min-width: 40rem) { .jeff { grid-template-columns: 8.5rem 1fr; align-items: start; } }
.photo-slot {
  aspect-ratio: 1 / 1; background: var(--paper-2);
  border: 1px dashed var(--line); border-radius: var(--radius);
  display: grid; place-items: center; text-align: center;
  color: var(--ink-soft); font-size: .8rem; padding: .5rem;
}
.pledge {
  border-left: 3px solid var(--brand); padding: .1rem 0 .1rem 1rem;
  font-size: 1.1rem; color: var(--ink); font-weight: 500; max-width: var(--measure);
}

/* --- Product-samenvatting + prijs --- */
.priceline {
  display: inline-flex; align-items: baseline; gap: .5rem;
  font-family: var(--disp); font-weight: 700;
}
.priceline .amt { font-size: 2rem; color: var(--brand); }
.priceline .amt small { font-size: .95rem; color: var(--ink-soft); font-weight: 500; }
.price-quiet { font-size: 1.05rem; color: var(--ink); }
.price-quiet .amt-quiet { font-family: var(--disp); font-weight: 700; color: var(--brand); }

/* Wel / niet blok — eerlijkheid als ontwerp */
.welniet { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 40rem) { .welniet { grid-template-columns: 1fr 1fr; } }
.welniet > div { background: var(--paper); padding: 1.15rem 1.25rem; }
.welniet h3 { display: flex; align-items: center; gap: .5rem; margin-bottom: .7rem; }
.welniet ul { margin: 0; padding: 0; list-style: none; }
.welniet li { padding: .35rem 0 .35rem 1.5rem; position: relative; font-size: .98rem; }
.welniet .wel li::before  { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.welniet .niet li::before { content: "–"; position: absolute; left: .15rem; color: var(--no); font-weight: 800; }
.welniet .wel h3 { color: var(--ok); }
.welniet .niet h3 { color: var(--no); }

/* --- Stappen (échte volgorde → nummering verantwoord) --- */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; max-width: var(--measure); }
.steps li {
  counter-increment: step; position: relative;
  padding: .95rem 0 .95rem 3rem; border-bottom: 1px solid var(--line);
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: .85rem;
  width: 2rem; height: 2rem; border: 1.5px solid var(--brand); color: var(--brand);
  border-radius: 50%; display: grid; place-items: center;
  font-family: var(--disp); font-weight: 700; font-size: .95rem;
}
.steps b { display: block; }
.steps small { color: var(--ink-soft); }

/* --- Case / voorbeeld --- */
.case {
  background: var(--brand-tint); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; max-width: var(--measure);
}
.case p { margin: 0 0 .9rem; font-size: 1.05rem; }
.case p:last-child { margin-bottom: 0; }
.case-result {
  border-left: 3px solid var(--accent);
  padding-left: .9rem; color: var(--ink-soft); font-style: italic;
}

/* --- FAQ --- */
.faq { max-width: var(--measure); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 1rem 0; font-weight: 600; font-family: var(--disp);
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 700; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > p { padding: 0 0 1rem; margin: 0; }

/* --- CTA-blok --- */
.ctablock { background: var(--brand); color: #fff; border-radius: var(--radius); padding: clamp(1.6rem, 5vw, 2.6rem); }
.ctablock h2, .ctablock p { color: #fff; }
.ctablock p { max-width: 34rem; opacity: .92; }
.ctablock .btn-primary { background: #fff; color: var(--brand-deep); }
.ctablock .btn-primary:hover { background: var(--paper); }
.ctablock a { color: #fff; }

/* --- Formulier --- */
.formcard { max-width: 38rem; }
.form-intro {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.25rem; margin-bottom: 1.6rem; font-size: .98rem;
}
.field { margin-bottom: 1.1rem; }
.field > label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .97rem; }
.field .hint { display: block; font-weight: 400; color: var(--ink-soft); font-size: .86rem; margin-top: .1rem; }
.req { color: var(--no); }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid #C4C4BC; border-radius: var(--radius);
  padding: .7rem .8rem;
}
textarea { min-height: 6.5rem; resize: vertical; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .95rem; }
.check input { margin-top: .25rem; width: 1.05rem; height: 1.05rem; flex: 0 0 auto; }
.route-switch { display: grid; gap: .6rem; margin-bottom: 1.6rem; }
@media (min-width: 34rem){ .route-switch { grid-template-columns: 1fr 1fr; } }
.route-switch label {
  border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem;
  cursor: pointer; display: flex; gap: .6rem; align-items: flex-start; background: #fff;
}
.route-switch input { margin-top: .25rem; }
.route-switch label:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.route-switch b { display: block; }
.route-switch small { color: var(--ink-soft); }
.hidden { display: none; }
.hp { position: absolute; left: -5000px; }

/* --- Voetnoot / footer --- */
.site-foot { border-top: 1px solid var(--line); background: var(--paper-2); }
.site-foot .wrap { padding-block: 2.4rem; }
.foot-grid { display: grid; gap: 1.5rem; }
@media (min-width: 40rem){ .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-foot a { color: var(--ink); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot h4 { font-family: var(--disp); font-size: .95rem; margin: 0 0 .6rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { padding: .2rem 0; font-size: .95rem; }
.foot-legal { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: .3rem 1rem; }

/* --- Sticky mobiele CTA --- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(8px); border-top: 1px solid var(--line);
  padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom, 0px));
  display: none;
}
.sticky-cta .btn { width: 100%; }
@media (max-width: 46rem) { .sticky-cta { display: block; } body { padding-bottom: 4.5rem; } }

/* --- Diversen --- */
.eyebrow-note { color: var(--ink-soft); font-size: .95rem; }
.grid-2 { display: grid; gap: 1.5rem; }
@media (min-width: 40rem){ .grid-2 { grid-template-columns: 1fr 1fr; } }
.legal h2 { margin-top: 2rem; }
.legal { max-width: var(--measure); }
.legal ul { padding-left: 1.1rem; }
.legal li { margin-bottom: .4rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
