/* ==========================================================================
   Engwerda Installaties — homepage
   Implementation of Homepage.dc.html (Claude Design)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --navy:        #14264A;
  --blue:        #2469E6;
  --blue-light:  #5B8DEF;
  --blue-pale:   #D6E3FB;

  /* Neutrals */
  --ink:         #3A4350;
  --muted:       #5A6472;
  --line:        #C9CFD8;
  --line-soft:   #E3E7EC;
  --wash:        #F2F4F7;
  --white:       #FFFFFF;

  /* On-navy */
  --on-navy:     #B8C4D6;
  --on-navy-2:   #DDE4EE;
  --on-navy-3:   #8494AC;

  /* Type — the same two stacks the design declares. The arrow glyph (→) is
     absent from both families, so a longer fallback chain would hand it to a
     different font and change its shape and width. */
  --font-body:    'Barlow', sans-serif;
  --font-display: 'Barlow Semi Condensed';

  /* Layout */
  --gutter: 40px;
  --gutter-lg: 48px;
  --section-y: 80px;
  --page-max: 1200px;   /* content cap on wide screens */
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  /* The design leaves line-height at the font default; every block that needs
     something else sets it explicitly. Forcing a global ratio here shifts the
     whole page down. */
  line-height: normal;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
img { border-style: none; }

h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }

address { font-style: normal; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
  color: var(--white);
}

/* Design props: penAccenten / schemaPatroon (both on by default) */
body.no-accents .accent { display: none; }
body.no-pattern .stats__pattern,
body.no-pattern .werkwijze__pattern,
body.no-pattern .cta__pattern { display: none; }

/* --------------------------------------------------------------------------
   3. Shared pieces
   -------------------------------------------------------------------------- */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--blue);
  margin-bottom: 8px;
}

.section {
  padding: var(--section-y) var(--gutter);
}
.section--flush-top { padding-top: 0; }

.section__head { margin-bottom: 44px; }

.section__head--split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1.05;
  color: var(--navy);
  text-transform: uppercase;
}

.rule {
  width: 56px;
  height: 3px;
  background: var(--blue);
  margin-top: 14px;
}

/* Hand-drawn pen accents sit on top of a word */
.mark {
  position: relative;
  display: inline-block;
}
.accent {
  position: absolute;
  pointer-events: none;
  /* Several accents are sized past their anchor word (the oval runs to 138%),
     so they must escape the global max-width clamp. */
  max-width: none;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: normal;
  letter-spacing: 0.06em;
  padding: 15px 26px;
  cursor: pointer;
  border: 0;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn--sm { font-size: 13px; padding: 12px 20px; }

.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--blue); color: var(--white); }

.btn--blue { background: var(--blue); color: var(--white); padding: 16px 28px; }
.btn--blue:hover { background: var(--blue-light); color: var(--white); }

/* The outlined button carries its 2px border inside the same box height, so it
   trades padding for border rather than adding to it. */
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: 13px 26px;
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }

/* Text links */
.link-arrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--blue);
}

.link-underline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
  padding-bottom: 2px;
}
.link-underline:hover { color: var(--navy); border-color: var(--navy); }

.link-plain {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--navy);
}
.link-plain:hover { color: var(--blue); }

.stars { display: inline-flex; gap: 2px; }
.stars--sm { gap: 1px; }
.star { display: block; flex: none; }

/* --------------------------------------------------------------------------
   4. Utility bar
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--wash);
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--muted);
}
.topbar__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  padding: 8px var(--gutter);
}
.topbar b { color: var(--navy); }

.topbar__rating {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
}
.topbar__rating:hover { color: var(--navy); }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 0 var(--gutter);
  background: var(--white);
  border-bottom: 1px solid var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
}
.logo__mark { width: 36px; height: 36px; display: block; flex: none; }
.logo__text { display: flex; flex-direction: column; }
.logo__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
  color: var(--navy);
  letter-spacing: 0.05em;
}
.logo__sub {
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.34em;
  color: var(--blue);
  margin-top: 4px;
}
.logo:hover .logo__name { color: var(--blue); }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 600;
}
.nav__link { color: var(--navy); }
.nav__link:hover { color: var(--blue); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: transform .2s ease, opacity .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); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--wash);
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* monteur staat rechts; 18% van boven houdt zijn hoofd op elk scherm in beeld */
  object-position: 88% 18%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.94) 0%,
    rgba(255,255,255,0.7) 38%,
    rgba(255,255,255,0.06) 66%);
}

.hero__content {
  position: relative;
  padding: 72px 56px 64px var(--gutter);
  max-width: 680px;
}

/* The hero eyebrow sits a little further from its heading than the section ones. */
.hero__content .eyebrow { margin-bottom: 14px; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  color: var(--navy);
  text-transform: uppercase;
}

.accent--underline-hero {
  left: 0;
  bottom: -24px;
  width: 100%;
  /* vaste hoogte: bij een breed woord schaalde de streep mee en liep hij door de letters */
  height: 24px;
}

.hero__lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 500px;
  margin: 26px 0 30px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-size: 14px;
  color: var(--ink);
}
.hero__check { width: 22px; flex: none; }

.hero__checks {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 14px;
  color: var(--ink);
}
.hero__checks li {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.hero__badge {
  position: absolute;
  right: 0;
  bottom: 32px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  padding: 10px 18px;
}

/* --------------------------------------------------------------------------
   7. Stats bar
   -------------------------------------------------------------------------- */
.stats {
  display: flex;
  position: relative;
  background: var(--blue);
}
.stats__pattern {
  position: absolute;
  inset: 0;
  background-image: url('../assets/schema-patroon-wit.png');
  background-size: 900px auto;
  opacity: 0.16;
}
.stat {
  position: relative;
  flex: 1;
  padding: 26px var(--gutter);
  border-right: 1px solid rgba(255,255,255,0.3);
}
.stat:last-child { border-right: 0; }

.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  color: var(--white);
}
.stat__label {
  font-size: 14px;
  color: var(--blue-pale);
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   8. Diensten
   -------------------------------------------------------------------------- */
.accent--oval {
  left: -18%;
  top: -26%;
  width: 138%;
  height: 150%;
}

.diensten {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.dienst {
  display: block;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 28px;
  background: var(--white);
  color: inherit;
  transition: background-color .15s ease;
}
.dienst:hover { background: var(--wash); color: inherit; }

.dienst__icon {
  height: 64px;
  display: flex;
  align-items: flex-end;
}
.dienst__icon img {
  height: var(--ih, 56px);
  width: auto;
  display: block;
}

.dienst__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
  text-transform: uppercase;
  margin-top: 18px;
}

.dienst__text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  margin: 8px 0 14px;
}

/* --------------------------------------------------------------------------
   9. Reviews
   -------------------------------------------------------------------------- */
.accent--bang {
  right: -30px;
  top: -4px;
  width: 16px;
  transform: rotate(8deg);
}

.section--flush-top .section__head--split { margin-bottom: 36px; }

.score {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 4px;
}
.score__logo { flex: none; }
.score__row { display: flex; align-items: center; gap: 8px; }
.score__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  color: var(--navy);
}
.score__meta { font-size: 13px; color: var(--muted); margin-top: 2px; }

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

.review {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 22px 24px;
}

.review__head { display: flex; align-items: center; gap: 12px; }

.avatar {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 17px;
}
.avatar--google     { background: #1A73E8; }
.avatar--trustpilot { background: #00B67A; }
.avatar--werkspot   { background: #5B67F1; }
.avatar--pink       { background: #E8467C; }

.review__name { font-size: 15px; font-weight: 600; color: var(--navy); }
.review__src  { font-size: 12px; color: var(--muted); }

.review__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 10px;
}
.review__when { font-size: 12px; color: var(--muted); }

.review__body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}
.review__more { color: #1A73E8; }
.review__more:hover { text-decoration: underline; }

.review--cta {
  background: var(--wash);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
}
.review__ctaTitle {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--navy);
  text-transform: uppercase;
  line-height: 1.1;
}
.review--cta .btn { margin-top: 6px; }

/* --------------------------------------------------------------------------
   10. Werkwijze
   -------------------------------------------------------------------------- */
.werkwijze {
  position: relative;
  background: var(--wash);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.werkwijze__pattern {
  position: absolute;
  inset: 0;
  background-image: url('../assets/schema-patroon.png');
  background-size: 900px auto;
  opacity: 0.55;
}
.werkwijze__inner {
  position: relative;
  padding: var(--section-y) var(--gutter);
  display: flex;
  gap: 64px;
}
.werkwijze__head { flex: 1; }

.accent--arrow-curve {
  position: static;
  display: block;
  width: 120px;
  margin-top: 36px;
  transform: rotate(12deg);
}

.stappen {
  flex: 2.2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stap { background: var(--white); padding: 26px 28px; }

.stap__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--blue);
}
.stap__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--navy);
  text-transform: uppercase;
  margin-top: 6px;
}
.stap__text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   11. Projecten
   -------------------------------------------------------------------------- */
.section__action { display: flex; align-items: center; gap: 14px; }

.accent--arrow-straight {
  position: static;
  width: 88px;
  margin-bottom: 6px;
}

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

.project {
  border: 1px solid var(--line);
  background: var(--white);
  color: inherit;
  display: block;
  transition: border-color .15s ease;
}
.project:hover { border-color: var(--blue); color: inherit; }

.project__media {
  height: 220px;
  overflow: hidden;
  position: relative;
}
.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: saturate(0.9);
}
.project__tag {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  padding: 8px 14px;
}

.project__body {
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.project__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
  text-transform: uppercase;
}
.project__meta { font-size: 13px; color: var(--muted); margin-top: 3px; }
.project__arrow {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--blue);
}

/* --------------------------------------------------------------------------
   12. Over ons
   -------------------------------------------------------------------------- */
.overons {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: stretch;
}
.overons__media {
  flex: 1;
  position: relative;
  min-height: 420px;
}
.overons__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* gezichten zitten in het bovenste deel van de portretfoto's */
  object-position: center 22%;
  filter: saturate(0.85);
}

.overons__body {
  flex: 1.2;
  padding: 72px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.accent--underline {
  left: 0;
  bottom: -16px;
  width: 100%;
}

.overons__text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  max-width: 520px;
  margin-top: 20px;
}
.overons__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-top: 28px;
}

/* --------------------------------------------------------------------------
   13. CTA band
   -------------------------------------------------------------------------- */
.cta {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 52px var(--gutter-lg);
  position: relative;
  overflow: hidden;
}
.cta__pattern {
  position: absolute;
  inset: 0;
  background-image: url('../assets/schema-patroon-wit.png');
  background-size: 900px auto;
  opacity: 0.1;
  pointer-events: none;
}
.cta__ghost {
  position: absolute;
  opacity: 0.14;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.cta__ghost--1 { right: 340px; bottom: -30px; height: 200px; transform: rotate(-6deg); }
.cta__ghost--2 { right: 120px; top: -46px;  height: 190px; transform: rotate(8deg); }

.cta__text { position: relative; }

.cta__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  line-height: 1.05;
  color: var(--white);
  text-transform: uppercase;
}
.accent--asterisk {
  right: -44px;
  top: -14px;
  width: 30px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.cta__lead {
  font-size: 15px;
  color: var(--on-navy);
  margin-top: 10px;
  max-width: 480px;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.cta__mail { color: var(--white); font-size: 14px; font-weight: 600; }
.cta__mail a { color: var(--blue-light); }
.cta__mail a:hover { color: var(--white); }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.15);
}
.footer__cols {
  display: flex;
  gap: 48px;
  padding: 44px var(--gutter-lg) 36px;
  flex-wrap: wrap;
}
.footer__brand { flex: 1.4; min-width: 240px; }
.footer__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--white);
  letter-spacing: 0.06em;
}
.footer__about {
  font-size: 13px;
  line-height: 1.6;
  color: var(--on-navy);
  max-width: 280px;
  margin-top: 14px;
}

.footer__col {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.footer__col--contact { flex: 1.2; }

.footer__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--blue-light);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.footer__col a { color: var(--on-navy-2); }
.footer__col a:hover { color: var(--white); }

.footer__col address {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--on-navy-2);
}
.footer__storing { color: var(--blue-light); font-weight: 600; }

.footer__bar {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 16px var(--gutter-lg);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--on-navy-3);
}
.footer__legal { display: flex; gap: 20px; }
.footer__legal a { color: var(--on-navy-3); }
.footer__legal a:hover { color: var(--white); }

/* --------------------------------------------------------------------------
   15. Responsive
   -------------------------------------------------------------------------- */



@media (max-width: 1200px) {
  :root { --gutter: 32px; --gutter-lg: 32px; --section-y: 64px; }

  .hero { min-height: 560px; }
  .hero__title { font-size: 52px; }
  .hero__content { padding: 56px 40px 56px var(--gutter); }
  .section__title { font-size: 34px; }
  .cta__title { font-size: 30px; }
  .werkwijze__inner { gap: 40px; }
  .cta__ghost--1 { right: 300px; }
}

@media (max-width: 1000px) {
  .nav-toggle { display: flex; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--navy);
    padding: 8px var(--gutter) 20px;
    box-shadow: 0 12px 24px rgba(20,38,74,0.12);
  }
  .nav.is-open { display: flex; }
  .nav__link {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 16px;
  }
  .nav .btn { margin-top: 16px; text-align: center; }

  .header { position: relative; }

  .topbar__item--addr { display: none; }

  .diensten { grid-template-columns: repeat(2, 1fr); }
  .reviews  { grid-template-columns: repeat(2, 1fr); }
  .projecten { grid-template-columns: repeat(2, 1fr); }

  .werkwijze__inner { flex-direction: column; gap: 36px; }
  .accent--arrow-curve { display: none; }

  .overons { flex-direction: column; }
  .overons__media { min-height: 300px; }
  .overons__body { padding: 56px var(--gutter); }

  .cta { flex-direction: column; align-items: flex-start; }
  .cta__ghost { display: none; }

  .hero__badge { position: static; display: inline-block; margin: 0 var(--gutter) 32px; }
  .hero { flex-direction: column; align-items: flex-start; justify-content: center; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; --gutter-lg: 20px; --section-y: 52px; }

  .topbar__inner { justify-content: flex-start; gap: 16px; flex-wrap: wrap; }
  .topbar__item { display: none; }

  .hero { min-height: 0; }
  .hero__img { position: relative; height: 280px; }
  .hero__scrim {
    top: auto;
    height: 280px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.85) 82%, #fff 100%);
  }
  .hero__content { padding: 32px var(--gutter) 40px; max-width: none; }
  .hero__title { font-size: 40px; }
  .accent--underline-hero { bottom: -14px; }
  .hero__lead { font-size: 16px; margin: 20px 0 24px; }
  .hero__badge { margin-bottom: 24px; font-size: 13px; }

  .stats { flex-wrap: wrap; }
  .stat { flex: 1 1 50%; border-bottom: 1px solid rgba(255,255,255,0.3); }
  .stat:nth-child(2n) { border-right: 0; }

  .section__title { font-size: 28px; }
  .section__head { margin-bottom: 32px; }

  .diensten  { grid-template-columns: 1fr; }
  .reviews   { grid-template-columns: 1fr; }
  .projecten { grid-template-columns: 1fr; gap: 20px; }
  .stappen   { grid-template-columns: 1fr; }

  .dienst { padding: 24px 20px; }

  .overons__body { padding: 40px var(--gutter); }
  .accent--underline { bottom: -12px; }

  .cta { padding: 40px var(--gutter); }
  .cta__title { font-size: 26px; }
  /* The heading fills the line here, so the asterisk moves above it instead of
     hanging off the right edge where it would be clipped. */
  .accent--asterisk { right: 0; top: -30px; width: 20px; }

  .footer__cols { flex-direction: column; gap: 32px; padding: 36px var(--gutter) 28px; }
  .footer__bar { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   16. Subpage components
   Built from Hoofdelementen.dc.html: form fields, storing-balk, review quote,
   plus layout pieces the inner pages need.
   ========================================================================== */

/* ---- compact page header --------------------------------------------- */
.page-hero {
  position: relative;
  background: var(--wash);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero__pattern {
  position: absolute;
  inset: 0;
  background-image: url('../assets/schema-patroon.png');
  background-size: 900px auto;
  opacity: 0.35;
}
.page-hero__inner {
  position: relative;
  padding: 56px var(--gutter) 48px;
}
.page-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 48px;
  line-height: 1.05;
  color: var(--navy);
  text-transform: uppercase;
  max-width: 900px;
}
.page-hero__lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 640px;
  margin-top: 18px;
}
.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--navy); }
.breadcrumbs span[aria-current] { color: var(--navy); font-weight: 600; }

/* ---- article text ----------------------------------------------------- */
.prose {
  max-width: 680px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}
.prose p { margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--navy);
  text-transform: uppercase;
  margin: 36px 0 12px;
}
.prose h2:first-child { margin-top: 0; }
.prose a { border-bottom: 1px solid var(--blue); }
.prose a:hover { border-color: var(--navy); }

/* square blue markers keep the angular style of the design */
.checklist {
  max-width: 680px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}
.checklist li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  background: var(--blue);
}

/* ---- two-column blocks ------------------------------------------------ */
.split {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}
.split__aside { flex: 1; min-width: 280px; }
.split__main { flex: 1.6; }

.aside-card {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 24px 26px;
}
.aside-card + .aside-card { margin-top: 20px; }
.aside-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.aside-card p { font-size: 14px; line-height: 1.6; color: var(--ink); margin: 0 0 10px; }
.aside-card p:last-child { margin-bottom: 0; }

/* ---- storing-balk (Hoofdelementen) ------------------------------------ */
.storing-bar {
  background: var(--navy);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.storing-bar__dot {
  width: 8px;
  height: 8px;
  background: var(--blue-light);
  flex: none;
}
.storing-bar__text { font-size: 13px; color: var(--white); flex: 1; }
.storing-bar__link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--blue-light);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.storing-bar__link:hover { color: var(--white); }

/* ---- review quote (Hoofdelementen) ------------------------------------ */
.quote {
  background: var(--wash);
  border: 1px solid var(--line);
  padding: 24px;
}
.quote__mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 34px;
  color: var(--blue);
  line-height: 1;
}
.quote__text { font-size: 15px; line-height: 1.6; color: var(--navy); margin: 4px 0 14px; }
.quote__meta { display: flex; justify-content: space-between; align-items: center; }
.quote__name { font-size: 13px; font-weight: 600; color: var(--ink); }
.quote__score { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--navy); }

/* ---- FAQ --------------------------------------------------------------- */
.faq { max-width: 680px; }
.faq details {
  border: 1px solid var(--line);
  background: var(--white);
  margin-bottom: -1px;
}
.faq summary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-weight: 800;
  font-size: 20px;
  color: var(--blue);
  flex: none;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div {
  padding: 0 20px 18px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}
.faq details > div p { margin: 0 0 12px; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---- forms (Hoofdelementen) ------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
.form__field { display: flex; flex-direction: column; gap: 5px; }
.form__row { display: flex; gap: 16px; }
.form__row .form__field { flex: 1; }
.form label { font-size: 13px; font-weight: 600; color: var(--navy); }
.form input,
.form select,
.form textarea {
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--navy);
  background: var(--white);
  outline: none;
  width: 100%;
}
.form input:focus,
.form select:focus,
.form textarea:focus { border-color: var(--blue); }
.form textarea { min-height: 120px; resize: vertical; }
.form__note { font-size: 12px; color: var(--muted); }
.form .btn { align-self: flex-start; }

/* ---- vacancy / contact ------------------------------------------------- */
.dl-plain { max-width: 680px; }
.dl-plain > div {
  display: flex;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
}
.dl-plain dt { flex: 0 0 180px; font-weight: 600; color: var(--navy); }
.dl-plain dd { margin: 0; color: var(--ink); }

/* ---- section spacing helpers ------------------------------------------ */
.section--tight { padding-top: 56px; padding-bottom: 56px; }
.section + .section { padding-top: 0; }

/* active nav item */
.nav__link.is-active { color: var(--blue); }

/* ---- responsive for subpage pieces ------------------------------------ */
@media (max-width: 1000px) {
  .page-hero__title { font-size: 38px; }
  .split { flex-direction: column; gap: 40px; }
}
@media (max-width: 760px) {
  .page-hero__inner { padding: 40px var(--gutter) 36px; }
  .page-hero__title { font-size: 30px; }
  .form__row { flex-direction: column; gap: 16px; }
  .dl-plain > div { flex-direction: column; gap: 2px; }
}

/* Wide screens: cap the content at --page-max and center it. Coloured bands
   (navy, wash) keep bleeding to the viewport edges; only the content inside
   them is constrained. At --page-max and below the formulas equal the
   existing gutters, so nothing changes there. */
@media (min-width: 1201px) {
  .topbar__inner,
  .header,
  .section,
  .werkwijze__inner,
  .page-hero__inner {
    padding-inline: calc((100% - var(--page-max)) / 2 + var(--gutter));
  }
  .cta,
  .footer__cols,
  .footer__bar {
    padding-inline: calc((100% - var(--page-max)) / 2 + var(--gutter-lg));
  }
  /* hero keeps its own padding; shift the block instead of padding it */
  .hero__content { margin-left: calc((100% - var(--page-max)) / 2); }
  .hero__badge { right: calc((100% - var(--page-max)) / 2); }
  /* the stat cells carry their own gutters, so the band only centers them */
  .stats { padding-inline: calc((100% - var(--page-max)) / 2); }
  /* white section: cap the whole block, gutters stay page-white */
  .overons { margin-inline: calc((100% - var(--page-max)) / 2); }
}

/* ---- foto in de zijkolom (echte shootfoto's) --------------------------- */
.aside-photo {
  margin: 0 0 20px;
  border: 1px solid var(--line);
}
.aside-photo img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.95);
}

/* ---- fotorij van de shoot ---------------------------------------------- */
.foto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.foto-grid figure {
  margin: 0;
  border: 1px solid var(--line);
}
.foto-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  /* portretfoto's in een liggend vak: crop vanaf het gezicht, niet het midden */
  object-position: center 28%;
  filter: saturate(0.95);
}
@media (max-width: 1000px) { .foto-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .foto-grid { grid-template-columns: 1fr; } }

/* ---- afsluitende CTA-cel in het dienstengrid --------------------------- */
.dienst--cta {
  background: var(--wash);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
}
.dienst--cta:hover { background: var(--wash); }
.dienst--cta .dienst__title { margin-top: 0; font-size: 22px; font-weight: 800; }
@media (min-width: 1001px) { .dienst--cta { grid-column: span 2; } }

/* ---- plaatsenlijst op de werkgebied-pagina ------------------------------ */
.plaatsen {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 24px;
}
.plaatsen li {
  position: relative;
  padding-left: 20px;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
}
.plaatsen li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 9px;
  height: 9px;
  background: var(--blue);
}
@media (max-width: 640px) { .plaatsen { grid-template-columns: repeat(2, 1fr); } }

/* ---- WhatsApp-knop ------------------------------------------------------ */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(20, 38, 74, 0.3);
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; display: block; }
@media (max-width: 640px) {
  .wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .wa-float svg { width: 27px; height: 27px; }
}

/* ---- merken: vaste rij (dienstpagina's) en doorlopend lint (homepage) --- */
.merken {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.merken .merk {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  padding: 0 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #FFFFFF;
}
.merk {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: #6B7A93;
}
.merk img {
  display: block;
  max-width: 100%;
  height: auto;
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.merk:hover img { filter: none; opacity: 1; }

.lint {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.lint__spoor {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  width: max-content;
  animation: lint-loop 48s linear infinite;
}
/* marge in plaats van gap: zo is het spoor exact twee gelijke helften en loopt de lus naadloos */
.lint__spoor .merk { flex: none; margin-right: 76px; }
.lint__spoor .merk img { max-width: none; }
.lint:hover .lint__spoor { animation-play-state: paused; }
@keyframes lint-loop {
  to { transform: translateX(-50%); }
}
@media (max-width: 640px) {
  .merken { grid-template-columns: repeat(2, 1fr); }
  .merken .merk { height: 76px; }
  .lint { padding: 22px 0; }
  .lint__spoor { animation-duration: 36s; }
  .lint__spoor .merk { margin-right: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .lint { -webkit-mask-image: none; mask-image: none; }
  .lint__spoor { animation: none; width: auto; flex-wrap: wrap; justify-content: center; row-gap: 26px; }
  .lint__spoor .merk[aria-hidden="true"] { display: none; }
}

/* Tablet: naast de monteur is geen ruimte meer voor de tekst, dus de hero
   stapelt hier net als op mobiel: foto boven, tekst eronder. */
@media (min-width: 761px) and (max-width: 1000px) {
  .hero { min-height: 0; }
  .hero__img { position: relative; height: 420px; }
  .hero__scrim {
    top: auto;
    height: 420px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.85) 82%, #fff 100%);
  }
  .hero__content { padding: 40px var(--gutter) 44px; max-width: none; }
}

/* Smalle desktop: de drie vinkjes passen niet meer naast de meterkast op één rij. */
@media (min-width: 1001px) and (max-width: 1200px) {
  .hero__checks { max-width: 420px; }
}

/* Gestapelde hero (tablet en mobiel): het label stond onder de witte waas en was
   daardoor flets. Hier komt het erboven te liggen en krijgt het volle kleur. */
@media (max-width: 1000px) {
  .hero__badge { position: relative; z-index: 2; font-size: 14px; padding: 12px 18px; }
}

/* ---- slim energiemanagement (band onder het dienstenoverzicht) ---------- */
.energie {
  display: flex;
  align-items: stretch;
  background: var(--wash);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.energie__body {
  flex: 1;
  padding: 72px 56px 72px var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.energie__text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  max-width: 500px;
  margin: 20px 0 28px;
}
.energie__media {
  flex: 1.15;
  position: relative;
  min-height: 440px;
}
.energie__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 1000px) {
  .energie { flex-direction: column-reverse; }
  .energie__media { min-height: 300px; }
  .energie__body { padding: 48px var(--gutter); }
}
@media (min-width: 1201px) {
  .energie { padding-inline: calc((100% - var(--page-max)) / 2); }
}
