/* ===========================================================
   R&R Vastgoed & Ontruiming — stylesheet v2
   -----------------------------------------------------------
   KLEURSTRATEGIE — bestaand merk (zwart · wit · Amsterdam-rood),
   volwassener verdeeld. Richtverhouding per scherm:
     ~85%  wit + warm off-white   (rust, ruimte)
     ~10%  zwart                  (tekst, één afsluitend donker blok)
     ~5%   rood                   (CTA, logo, kleine merkaccenten)
   Regels:
   - Eén rood. Rood = actie of merk. Nooit als vlakvullend blok.
   - Zwart = tekst + één donker blok per pagina (afsluiting/footer).
   - Neutralen zijn warm (licht beige-grijs), passend bij wit/zwart.
   =========================================================== */

:root {
  /* Merkkleuren (ongewijzigd) */
  --red: #e2001a;          /* Primary / CTA / merk */
  --red-hover: #c00016;    /* CTA hover — zelfde tint, donkerder */
  --black: #0f0f0f;        /* Secondary / tekst / donker blok */
  --white: #ffffff;        /* Background */

  /* Ondersteunende neutralen */
  --bg-alt: #f6f5f2;       /* Alternatieve achtergrond */
  --line: #e4e2dc;         /* Borders, scheidingslijnen */
  --line-strong: #cbc8bf;  /* Sterkere scheidingslijnen */
  --field: #8f8b82;        /* Rand invoervelden (3.4:1, WCAG 1.4.11) */
  --text: var(--black);    /* Tekst primair (19:1 op wit) */
  --text-2: #57554f;       /* Tekst secundair (7.4:1 op wit) */

  /* Op donker */
  --on-dark: #ffffff;
  --on-dark-2: rgba(255, 255, 255, 0.72);
  --on-dark-line: rgba(255, 255, 255, 0.16);

  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --max: 1160px;
  --gutter: 20px;
  --radius: 3px;
  --section: 72px;
  --header-h: 68px;
}

@media (min-width: 720px) { :root { --gutter: 32px; --section: 96px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; --section: 112px; --header-h: 80px; } }

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typografie ---------- */
.h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.5rem, 1.75rem + 3.6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.005em;
}
.h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 1.6rem + 1.8vw, 3rem);
  line-height: 1.05;
}
.h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.125rem; line-height: 1.35; }
.lead { font-size: 1.0625rem; line-height: 1.6; color: var(--text-2); max-width: 54ch; }
@media (min-width: 720px) { .lead { font-size: 1.1875rem; } }
.muted { color: var(--text-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* Drie Andreaskruisen — merkdetail */
.crosses { width: 34px; height: 10px; flex: none; color: var(--red); }

/* ---------- Toegankelijkheid ---------- */
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 300;
  background: var(--black); color: var(--white);
  padding: 12px 18px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; text-align: center;
  border-radius: var(--radius); border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-hover); }
.btn-secondary { background: transparent; color: var(--black); border-color: var(--black); }
.btn-secondary:hover { background: var(--black); color: var(--white); }
.btn-on-dark { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-on-dark:hover { border-color: var(--white); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none; color: var(--black);
  border-bottom: 1.5px solid var(--red); padding-bottom: 2px;
}
.text-link:hover { color: var(--red); }

.actions { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 480px) { .actions { flex-direction: row; flex-wrap: wrap; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand .rr { font-family: var(--font-head); font-weight: 700; font-size: 1.75rem; color: var(--red); letter-spacing: .01em; }
.brand .sub { font-size: .5625rem; font-weight: 700; letter-spacing: .12em; color: var(--black); margin-top: 3px; }
.brand .crosses { margin-top: 5px; width: 30px; height: 8px; }
@media (min-width: 1024px) {
  .brand .rr { font-size: 2rem; }
  .brand .sub { font-size: .625rem; }
}

.nav-desktop { display: none; align-items: center; gap: 4px; }
@media (min-width: 960px) { .nav-desktop { display: flex; } }
.nav-desktop a { text-decoration: none; font-size: .9375rem; font-weight: 500; padding: 10px 14px; color: var(--black); }
.nav-desktop a:not(.btn):hover { color: var(--red); }
.nav-desktop a[aria-current="page"]:not(.btn) { box-shadow: inset 0 -2px 0 var(--red); }
.nav-desktop .nav-phone { font-weight: 600; margin-left: 8px; }
.nav-desktop a.btn-primary { color: var(--white); }
.nav-desktop .btn { min-height: 44px; padding: 0 20px; margin-left: 8px; font-size: .9375rem; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; margin-right: -8px;
  background: none; border: 0; cursor: pointer; color: var(--black);
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }
@media (min-width: 960px) { .nav-toggle { display: none; } }

.nav-mobile { display: none; border-top: 1px solid var(--line); background: var(--white); padding: 8px 0 20px; }
.nav-mobile.open { display: block; }
.nav-mobile a:not(.btn) {
  display: block; padding: 14px var(--gutter);
  font-size: 1.0625rem; font-weight: 500; text-decoration: none; color: var(--black);
}
.nav-mobile a[aria-current="page"]:not(.btn) { color: var(--red); }
.nav-mobile .actions { padding: 12px var(--gutter) 0; }
@media (min-width: 960px) { .nav-mobile { display: none !important; } }

/* ---------- Mobiele actiebalk ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: auto 1fr; gap: 10px;
  padding: 10px var(--gutter) max(10px, env(safe-area-inset-bottom));
  background: var(--white); border-top: 1px solid var(--line);
}
.mobile-bar .btn { min-height: 48px; padding: 0 16px; font-size: .9375rem; white-space: nowrap; }
body.has-mobile-bar .dark { padding-bottom: 72px; }
.js .mobile-bar { transform: translateY(110%); transition: transform .2s ease; }
.js .mobile-bar.show { transform: none; }
@media (min-width: 960px) {
  .mobile-bar { display: none; }
  body.has-mobile-bar .dark { padding-bottom: 0; }
}

/* ---------- Secties ---------- */
.section { padding: var(--section) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head .lead { margin-top: 16px; }
@media (min-width: 720px) { .section-head { margin-bottom: 56px; } }

/* ---------- Hero ---------- */
.hero { background: var(--bg-alt); padding: 48px 0 56px; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .hero { padding: 80px 0 88px; } }
@media (min-width: 1024px) { .hero { padding: 104px 0 112px; } }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 72px; } }
.hero .eyebrow { margin-bottom: 20px; }
.hero .h1 { max-width: 13ch; }
.hero .lead { margin-top: 20px; }
.hero .actions { margin-top: 32px; }

.facts {
  list-style: none; margin: 40px 0 0; padding: 24px 0 0;
  border-top: 1px solid var(--line-strong);
  display: grid; gap: 14px;
  font-size: .9375rem;
}
@media (min-width: 600px) { .facts { grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 40px; } }
.facts li { display: flex; flex-direction: column; gap: 2px; }
.facts strong { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.facts a { text-decoration: none; font-weight: 600; }
.facts a:hover { color: var(--red); }

/* Belofte-kaart */
.promise { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
@media (min-width: 720px) { .promise { padding: 36px; } }
.promise .h3 { font-size: 1.0625rem; }
.checklist { list-style: none; margin: 20px 0 0; padding: 0; }
.checklist li { display: grid; grid-template-columns: 20px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.checklist li:last-child { padding-bottom: 0; }
.checklist svg { width: 20px; height: 20px; margin-top: 2px; color: var(--red); }
.checklist b { display: block; font-weight: 600; }
.checklist span { display: block; color: var(--text-2); font-size: .9375rem; margin-top: 2px; }

/* ---------- Diensten ---------- */
.services { display: grid; gap: 16px; }
@media (min-width: 720px) { .services { grid-template-columns: 1fr 1fr; gap: 20px; } }
.service { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; background: var(--white); }
@media (min-width: 720px) { .service { padding: 36px; } }
.service-icon { width: 36px; height: 36px; color: var(--black); margin-bottom: 24px; }
.service .h3 { font-size: 1.25rem; }
.service p { margin-top: 8px; color: var(--text-2); }
.services-foot {
  display: flex; flex-direction: column; gap: 20px;
  margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line);
}
@media (min-width: 720px) { .services-foot { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ---------- Werkwijze ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: step; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line-strong); }
.step:last-child { border-bottom: 1px solid var(--line-strong); }
.step-n { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; line-height: 1.1; color: var(--red); }
.step p { margin-top: 6px; color: var(--text-2); }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .step { grid-template-columns: 1fr; gap: 20px; padding: 28px 0 0; border-bottom: 0 !important; border-top: 1.5px solid var(--black); }
}

/* ---------- Zakelijk ---------- */
.split { display: grid; gap: 40px; }
@media (min-width: 1024px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: start; } }
.split-intro .lead { margin-top: 16px; }
.split-intro .actions { margin-top: 32px; }
@media (min-width: 1024px) { .split-intro { position: sticky; top: calc(var(--header-h) + 40px); } }
.audience { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.audience li { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .audience li { grid-template-columns: 220px 1fr; gap: 24px; padding: 22px 0; } }
.audience b { font-weight: 600; }
.audience span { color: var(--text-2); }

/* ---------- Afsluiting + footer (één donker blok) ---------- */
.dark { background: var(--black); color: var(--on-dark); }
.closing { padding: var(--section) 0 calc(var(--section) * .75); }
.closing-inner { display: grid; gap: 32px; padding-bottom: calc(var(--section) * .75); border-bottom: 1px solid var(--on-dark-line); }
@media (min-width: 960px) { .closing-inner { grid-template-columns: 1fr auto; align-items: end; gap: 48px; } }
.closing .h2 { color: var(--white); }
.closing .lead { color: var(--on-dark-2); margin-top: 14px; }

.site-footer { padding: 48px 0 32px; font-size: .9375rem; color: var(--on-dark-2); }
.dark:not(.closing-wrap) .site-footer, .site-footer.dark { padding-top: 56px; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; } }
.footer-brand .brand .sub { color: var(--white); }
.footer-brand p { margin-top: 18px; max-width: 32ch; }
.footer-col h2 { font-family: var(--font-body); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--white); text-decoration: none; }
.footer-col a:hover { color: var(--on-dark-2); text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--on-dark-line);
  font-size: .8125rem;
}

/* ---------- Subpagina-kop ---------- */
.page-head { padding: 48px 0 40px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .page-head { padding: 72px 0 56px; } }
.page-head .eyebrow { margin-bottom: 16px; }
.page-head .lead { margin-top: 16px; }
.page-body { padding: 40px 0 var(--section); }
@media (min-width: 720px) { .page-body { padding-top: 56px; } }

.layout-aside { display: grid; gap: 32px; }
@media (min-width: 960px) { .layout-aside { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; } }
@media (min-width: 960px) { .layout-aside.contact { grid-template-columns: 380px minmax(0, 1fr); } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; }
@media (min-width: 720px) { .card { padding: 36px; } }
.card-title { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); margin-bottom: 8px; }
.aside-stack { display: grid; gap: 16px; }
@media (min-width: 960px) { .aside-stack { position: sticky; top: calc(var(--header-h) + 24px); } }
.aside-stack .card { padding: 24px; }

/* Contactregels */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { border-top: 1px solid var(--line); }
.contact-list li:first-child { border-top: 0; }
.contact-list a, .contact-list .row {
  display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 14px;
  padding: 16px 0; text-decoration: none; color: var(--black);
}
.contact-list svg { width: 20px; height: 20px; color: var(--black); }
.contact-list .k { display: block; font-size: .8125rem; color: var(--text-2); }
.contact-list .v { display: block; font-weight: 600; overflow-wrap: anywhere; }
.contact-list .go { width: 16px; height: 16px; color: var(--text-2); }
.contact-list a:hover .v { color: var(--red); }

.mini-steps { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: ms; }
.mini-steps li { counter-increment: ms; display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 10px 0; font-size: .9375rem; color: var(--text-2); }
.mini-steps li::before { content: counter(ms); font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; color: var(--red); line-height: 1.3; }

/* ---------- Formulieren ---------- */
.form-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-grid.two-col { grid-template-columns: 1fr 1fr; } }
.form-stack { display: grid; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-size: .9375rem; font-weight: 600; }
.field .hint { font-weight: 400; color: var(--text-2); }
.req { color: var(--red); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 14px;
  font-family: var(--font-body); font-size: 1rem; color: var(--black);
  background: var(--white); border: 1px solid var(--field); border-radius: var(--radius);
  appearance: none; -webkit-appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230f0f0f' stroke-width='1.6'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px;
}
.field input[type="date"] { min-height: 52px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--black); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 1px var(--black); }
.field [aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field-error { font-size: .8125rem; color: var(--red-hover); font-weight: 500; }
.form-note { font-size: .875rem; color: var(--text-2); }
.form-note a { font-weight: 600; }
.form-foot { display: grid; gap: 14px; margin-top: 8px; }

.form-status { display: none; margin-top: 16px; padding: 14px 16px; border-left: 3px solid var(--black); background: var(--bg-alt); font-weight: 500; }
.form-status.show { display: block; }
.form-status.error { border-left-color: var(--red); color: var(--red-hover); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.split-note { margin-top: 16px; max-width: 54ch; }
#contact-form { margin-top: 16px; }
.text-link svg { width: 18px; height: 18px; flex: none; }
.text-link { white-space: nowrap; align-self: flex-start; }
