/* ==========================================================================
   2M Asbestinventarisatie — stylesheet
   Richting C: "Vertrouwen in Cijfers" — dossier/data-gedreven, antraciet + rood
   (huisstijlrood, zie --accent). Logo: het echte fotologo (assets/logo-echt.png),
   transparant gemaakt, in header en footer.
   ========================================================================== */

:root {
  --ink: #101820;         /* antraciet — hero, stat-strip, offerte-sectie */
  --ink-line: #2a333d;    /* scheidingslijnen op donkere vlakken */
  --paper: #f4f5f3;       /* lichte secties */
  --paper-alt: #ffffff;   /* kaarten, formuliervelden */
  --line: #d7d9d4;        /* scheidingslijnen op licht */
  --text-soft: #4a5560;   /* secundaire tekst op licht */
  --text-on-dark: #f4f5f3;
  --text-on-dark-muted: #b7bcc2;
  --accent: #d31f1f;      /* huisstijlrood — cijfers, accenten, knoppen */
  --accent-bright: #c22a26; /* hoverstatus knoppen — 5.75:1 op wit, voldoet aan WCAG AA */
  --radius: 3px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.brand-mark { color: var(--accent); }
.hero h1 .brand-mark { color: var(--accent); }

p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

/* ---- wordmark ---------------------------------------------------------- */

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 48px;
  width: auto;
  display: block;
}

/* ---- top bar ------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  border-top: 3px solid var(--accent);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.topnav { display: flex; align-items: center; gap: 28px; }
.topnav__links { display: block; }
.topnav__links-inner { display: flex; gap: 24px; font-size: 14.5px; }
.topnav__links-inner a { text-decoration: none; color: var(--text-soft); font-weight: 500; }
.topnav__links-inner a:hover { color: var(--ink); }
.topnav__contact { display: flex; align-items: center; gap: 16px; font-size: 14.5px; }
.topnav__phone {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13.5px;
}

/* ---- mobiel navigatiemenu (hamburger) ---------------------------------- */

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}
.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

/* ---- buttons --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius);
  padding: 13px 22px;
  font-family: "Archivo", sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn--primary { background: var(--accent); color: #ffffff; }
.btn--primary:hover { background: var(--accent-bright); }
.btn--small { padding: 9px 16px; font-size: 13.5px; }

/* ---- hero -------------------------------------------------------------- */

.hero {
  position: relative;
  color: var(--text-on-dark);
  background-image:
    linear-gradient(100deg, rgba(16,24,32,0.72) 0%, rgba(58,20,18,0.55) 45%, rgba(16,24,32,0.25) 100%),
    url("assets/content/loep-asbestvezel.jpg");
  background-size: cover;
  background-position: center;
}

.hero__inner {
  padding: 80px 24px 64px;
}

.hero__content { max-width: 620px; }

.hero__kicker {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-on-dark-muted);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  max-width: 38ch;
}

.hero__sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-on-dark-muted);
  max-width: 52ch;
  margin-bottom: 32px;
}

.hero__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.hero__phone {
  font-size: 14.5px;
  color: var(--text-on-dark-muted);
  text-decoration: none;
}

.hero__phone strong {
  color: #ffffff;
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 15px;
  font-weight: 600;
}

/* ---- stats (vervangt usp-strip) ---------------------------------------- */

.stats {
  background: var(--ink);
  border-top: 1px solid var(--ink-line);
}

.stats__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-line);
  padding-top: 1px;
}

.stat {
  background: var(--ink);
  padding: 34px 32px;
}

.stat__num {
  display: block;
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--accent);
}

.stat__label {
  font-size: 14px;
  color: var(--text-on-dark-muted);
  line-height: 1.5;
  max-width: 26ch;
}

/* ---- section shell ------------------------------------------------------ */

.section { padding: 80px 24px; border-bottom: 1px solid var(--line); }
.section__head { max-width: 620px; margin-bottom: 44px; }
.section__head h2 {
  font-size: 30px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  position: relative;
}
.section__head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
}
.section__head p { color: var(--text-soft); font-size: 16px; }

/* ---- over ons -------------------------------------------------------------- */

.over-ons__body { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.over-ons__body p { font-size: 15.5px; color: var(--text-soft); line-height: 1.65; }
.over-ons__tag { font-weight: 700; color: var(--ink); }

/* ---- wat is asbest ---------------------------------------------------------- */

.asbest-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.asbest-type__swatch { display: block; width: 28px; height: 28px; border-radius: 50%; margin-bottom: 14px; border: 1px solid var(--line); }
.asbest-type__swatch--wit { background: #f4f5f3; }
.asbest-type__swatch--bruin { background: #8a6a4e; }
.asbest-type__swatch--blauw { background: #3a5a7a; }
.asbest-type h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.asbest-type p { font-size: 14.5px; color: var(--text-soft); line-height: 1.55; }

/* ---- sub-koppen binnen een samengestelde sectie (bv. Asbestinventarisatie) --- */

.section__subhead { max-width: 620px; margin: 56px 0 28px; }
.section__subhead h3 { font-size: 22px; margin-bottom: 10px; }
.section__subhead p { color: var(--text-soft); font-size: 15.5px; }

/* ---- wanneer verplicht --------------------------------------------------- */

.notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  padding: 30px 32px;
  background: #fdf2f1;
  border: 1px solid #f3d6d3;
  border-radius: var(--radius);
}

.notice__icon { width: 32px; height: 32px; flex-shrink: 0; color: var(--accent); }
.notice h3 { font-size: 21px; margin-bottom: 10px; }
.notice p { font-size: 15.5px; color: #6b524e; max-width: 62ch; line-height: 1.6; }

/* ---- doelgroepen --------------------------------------------------------- */

.audiences { display: grid; grid-template-columns: repeat(5, 1fr); }
.audience { padding: 26px 26px 0 0; border-left: 1px solid var(--line); padding-left: 26px; }
.audience:first-child { border-left: none; padding-left: 0; }
.audience h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 9px; }
.audience h3::before { content: ""; width: 8px; height: 8px; background: var(--accent); border-radius: 1px; flex-shrink: 0; }
.audience p { font-size: 14.5px; color: var(--text-soft); line-height: 1.55; }

/* ---- werkwijze ------------------------------------------------------------ */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.step { position: relative; padding-top: 4px; }

.step__num {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 14px;
}

.step h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--text-soft); line-height: 1.55; }

/* ---- quick scan ------------------------------------------------------------ */

.quickscan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 32px; }
.quickscan__col h3 { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.quickscan__col p { font-size: 14.5px; color: var(--text-soft); line-height: 1.6; margin-bottom: 12px; }
.quickscan__list { margin: 0 0 12px; padding-left: 18px; }
.quickscan__list li { font-size: 14.5px; color: var(--text-soft); line-height: 1.7; }
.quickscan__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.quickscan__note { font-size: 13.5px; color: var(--text-soft); }

/* ---- materialen ----------------------------------------------------------- */

.materials { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.materials li {
  list-style: none;
  border: 1px solid #f3d6d3;
  background: #fdf2f1;
  color: #8c2016;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 15px;
  border-radius: var(--radius);
}

/* ---- wet- en regelgeving ---------------------------------------------------- */

.regelgeving-list { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 10px; max-width: 620px; }
.regelgeving-list li { font-size: 15px; color: var(--ink); font-weight: 600; padding-left: 22px; position: relative; }
.regelgeving-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; background: var(--accent); border-radius: 1px; }
.regelgeving-list li a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.regelgeving-list li a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.regelgeving-link { font-size: 14.5px; color: var(--text-soft); max-width: 62ch; }
.regelgeving-link a { color: var(--accent); font-weight: 600; text-decoration: underline; }

/* ---- certificaat ------------------------------------------------------------ */

.certificaat__kicker { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.certificaat__body h2 { font-size: 26px; margin-bottom: 14px; }
.certificaat__body > p { font-size: 15px; color: var(--text-soft); max-width: 62ch; margin-bottom: 22px; }
.certificaat__meta { display: flex; gap: 32px; flex-wrap: wrap; margin: 0 0 26px; }
.certificaat__meta dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-soft); margin-bottom: 4px; }
.certificaat__meta dd { margin: 0; font-family: "IBM Plex Mono", monospace; font-size: 15px; font-weight: 600; color: var(--ink); }
.certificaat__voorwaarden { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.certificaat__voorwaarden h3 { font-size: 16px; margin-bottom: 8px; }
.certificaat__voorwaarden p { font-size: 14.5px; color: var(--text-soft); max-width: 62ch; margin: 0; }
.certificaat__voorwaarden p a { color: var(--accent); font-weight: 600; text-decoration: underline; }

/* ---- projecten ------------------------------------------------------------ */

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-alt);
}

.project-card__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--line);
}

.project-card__body { padding: 16px 18px 20px; }
.project-card__title { font-size: 15.5px; font-weight: 700; margin-bottom: 4px; }
.project-card__meta { font-size: 13px; color: var(--text-soft); margin-bottom: 8px; }
.project-card__desc { font-size: 13.5px; color: var(--text-soft); line-height: 1.5; }

@media (max-width: 920px) {
  .projects { grid-template-columns: 1fr; }
}

/* ---- offerte form ------------------------------------------------------ */

.offerte {
  position: relative;
  color: var(--text-on-dark);
  background-image:
    linear-gradient(100deg, rgba(16, 24, 32, 0.72) 0%, rgba(16, 24, 32, 0.60) 55%, rgba(16, 24, 32, 0.40) 100%),
    url("assets/content/kantoor-gebouw.jpg");
  background-size: cover;
  background-position: center;
}
.offerte .section__head h2 { color: #ffffff; }
.offerte .section__head p { color: var(--text-on-dark-muted); }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 24px; max-width: 760px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--text-on-dark-muted); }

.form-field input, .form-field select, .form-field textarea {
  background: var(--paper-alt);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: "Archivo", sans-serif;
  font-size: 15px;
  color: var(--ink);
}

.form-field textarea { resize: vertical; min-height: 90px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; margin-top: 8px; flex-wrap: wrap; }
.form-note { font-size: 13px; color: #8b95a0; max-width: 60ch; }
.form-status { font-size: 14.5px; font-weight: 600; display: none; color: #8fd19e; }
.form-status.is-visible { display: block; }
.form-status.is-error { color: #f0968c; }

/* ---- footer --------------------------------------------------------------- */

.footer { padding: 48px 24px 32px; border-top: 3px solid var(--accent); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand .logo { margin-bottom: 12px; }
.footer__brand p { font-size: 14px; color: var(--text-soft); max-width: 32ch; }
.footer__col h4 { font-family: "Archivo", sans-serif; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.footer__col p, .footer__col a { display: block; font-size: 14px; color: var(--text-soft); text-decoration: none; margin-bottom: 6px; overflow-wrap: break-word; }
.footer__col a:hover { color: var(--ink); }
.footer__bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
}

.footer__credit { font-size: 12px; opacity: 0.7; }
.footer__credit a { color: var(--text-soft); text-decoration: none; }
.footer__credit a:hover { color: var(--ink); text-decoration: underline; }

/* ---- responsive ------------------------------------------------------------ */

@media (max-width: 920px) {
  .hero__inner { padding: 48px 24px 32px; }
  .hero h1 { font-size: 34px; }
  .stats__inner, .audiences, .steps, .asbest-types, .quickscan { grid-template-columns: 1fr; }
  .stat { padding: 12px 20px; }
  .stat .stat__num { font-size: 17px; }
  .notice { grid-template-columns: 1fr; padding: 22px; }
  .audience { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 22px; }
  .audience:first-child { border-top: none; padding-top: 0; }
  .steps { gap: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: flex; }
  .topnav { flex-wrap: wrap; justify-content: flex-end; row-gap: 8px; }
  .topnav__links {
    order: 1;
    flex-basis: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 16px rgba(16, 24, 32, 0.08);
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.25s ease;
  }
  .topnav__links.is-open { grid-template-rows: 1fr; }
  .topnav__links-inner { flex-direction: column; gap: 0; overflow: hidden; min-height: 0; }
  .topnav__links-inner a { padding: 14px 24px; border-bottom: 1px solid var(--line); }
  .topnav__links-inner a:last-child { border-bottom: none; }

  .hero { background-image: linear-gradient(100deg, rgba(16,24,32,0.72) 0%, rgba(58,20,18,0.55) 45%, rgba(16,24,32,0.25) 100%), url("assets/content/loep-asbestvezel-sm.jpg"); }
  .offerte { background-image: linear-gradient(100deg, rgba(16, 24, 32, 0.72) 0%, rgba(16, 24, 32, 0.60) 55%, rgba(16, 24, 32, 0.40) 100%), url("assets/content/kantoor-gebouw-sm.jpg"); }
}

@media (max-width: 560px) {
  .footer__inner { grid-template-columns: 1fr; }
  .section { padding: 56px 20px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 28px; }
  .hero__sub { font-size: 15.5px; }
  .section__head h2 { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---- zwevende contact-knoppen ------------------------------------------- */

#maps-btn, #wa-btn, #li-btn, #fb-btn {
  position: fixed;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  color: #fff;
  text-decoration: none;
  transition: transform 0.22s, box-shadow 0.22s;
}
#maps-btn:hover, #wa-btn:hover, #li-btn:hover, #fb-btn:hover { transform: scale(1.12); }
#maps-btn svg, #wa-btn svg, #li-btn svg, #fb-btn svg { width: 20px; height: 20px; }

#maps-btn { bottom: 168px; background: #4285f4; box-shadow: 0 3px 14px rgba(66,133,244,.5); }
#maps-btn:hover { box-shadow: 0 5px 20px rgba(66,133,244,.7); }

#wa-btn { bottom: 118px; background: #25d366; box-shadow: 0 3px 14px rgba(37,211,102,.5); }
#wa-btn:hover { box-shadow: 0 5px 20px rgba(37,211,102,.7); }
#wa-btn svg { width: 22px; height: 22px; }

#li-btn { bottom: 68px; background: #0a66c2; box-shadow: 0 3px 14px rgba(10,102,194,.5); }
#li-btn:hover { box-shadow: 0 5px 20px rgba(10,102,194,.7); }

#fb-btn { bottom: 18px; background: #1877f2; box-shadow: 0 3px 14px rgba(24,119,242,.5); }
#fb-btn:hover { box-shadow: 0 5px 20px rgba(24,119,242,.7); }

@media (max-width: 480px) {
  #maps-btn, #wa-btn, #li-btn, #fb-btn { width: 36px; height: 36px; right: 14px; }
  #maps-btn svg, #wa-btn svg, #li-btn svg, #fb-btn svg { width: 17px; height: 17px; }
  #wa-btn svg { width: 19px; height: 19px; }
  #maps-btn { bottom: 144px; }
  #wa-btn { bottom: 102px; }
  #li-btn { bottom: 60px; }
  #fb-btn { bottom: 14px; }
}
