/* Danny Goris, elektricien in Duffel sinds 1993. "Alle elektriciteitswerken (privé en industrie)".
   Stijl: Minimalism & Swiss Style (ui-ux-pro-max), palet "industrial slate + stock green":
   antraciet van een schakelkast, lichtgrijs van de kastdeur, groen van de startknop.
   Letter: Overpass (afgeleid van de Highway Gothic van verkeersborden), voor koppen en tekst. */

@font-face { font-family: "Overpass"; src: url("../fonts/overpass-var.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --ground: #eef0ef;
  --surface: #e1e4e2;
  --surface-2: #d2d6d4;
  --ink: #16191b;
  --ink-2: #454b4f;
  --slate: #2a3034;
  --slate-2: #353c40;
  --slate-3: #414a4f;
  --on-slate: #eef0ef;
  --on-slate-2: #b8c0c3;
  --green: #1f7a45;
  --green-press: #18663a;
  --lamp: #3bb273;
  --plate: #d7d9d6;

  --font: "Overpass", "Segoe UI", Arial, sans-serif;
  --display: clamp(3rem, 1.3rem + 7vw, 7.5rem);
  --h2: clamp(2rem, 1.2rem + 3.4vw, 4rem);
  --h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --lead: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem);
  --body: 1.125rem;
  --small: 1rem;

  --margin: clamp(16px, 4vw, 52px);
  --gap: clamp(20px, 3vw, 48px);
  --section: clamp(84px, 11vw, 168px);
  --header: 70px;
  --ease: cubic-bezier(0.22, 0.68, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-size: var(--body); line-height: 1.55; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-weight: 850; letter-spacing: -0.03em; line-height: 0.98; text-wrap: balance; }
h1 { font-size: var(--display); font-weight: 900; letter-spacing: -0.045em; line-height: 0.9; }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); font-weight: 800; line-height: 1.15; letter-spacing: -0.015em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--green); color: #fff; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.on-slate :focus-visible { outline-color: var(--lamp); }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--margin); }
.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; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: var(--ground); padding: 12px 18px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 3px 24px 0; border: 3px solid transparent; border-radius: 4px;
  font-size: var(--body); font-weight: 800; line-height: 1.1; text-decoration: none; cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease);
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:active { transform: translateY(2px); }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-press); }
.btn--slate { background: var(--slate); color: var(--on-slate); }
.btn--slate:hover { background: var(--slate-3); }
.btn--line { border-color: currentColor; background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.on-slate .btn--line:hover { background: var(--on-slate); color: var(--slate); border-color: var(--on-slate); }
.icon { width: 24px; height: 24px; flex: none; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ground); transition: background-color .2s; }
.site-header.is-scrolled { background: var(--surface); }
.bar { display: flex; align-items: center; gap: 10px; min-height: var(--header); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; min-height: 44px; padding: 0 14px 0 12px; background: var(--slate); color: var(--on-slate); border-radius: 4px; text-decoration: none; }
.wordmark i { width: 12px; height: 12px; border-radius: 50%; background: var(--lamp); flex: none; }
.wordmark b { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.02em; white-space: nowrap; line-height: 1; padding-top: 3px; }
.wordmark small { font-size: 1rem; font-weight: 500; color: var(--on-slate-2); white-space: nowrap; padding-top: 3px; }
.nav { display: none; gap: 2px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 4px; font-weight: 700; text-decoration: none; }
.nav a:hover { background: var(--surface-2); }
.nav a { position: relative; }
.nav a[aria-current="page"] { background: var(--plate); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 3px; background: var(--green); }
.bar-actions { display: flex; align-items: center; gap: 6px; }
.bar-actions .btn { min-height: 44px; padding: 3px 14px 0; font-size: 1rem; border-width: 2px; }
.bar-actions .btn svg { width: 20px; height: 20px; }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 4px; background: var(--surface); border: 0; cursor: pointer; }
.js .menu-btn { display: inline-flex; }
.mobile-nav { display: flex; flex-wrap: wrap; gap: 0 4px; padding: 0 var(--margin) 10px; }
.mobile-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-weight: 700; text-decoration: none; }
.js .mobile-nav { display: none; }
.js .mobile-nav.is-open { display: grid; padding: 6px var(--margin) 20px; background: var(--surface); }
.js .mobile-nav.is-open a { min-height: 56px; padding: 0; font-size: var(--h3); font-weight: 800; }
.phone-word { display: none; }
@media (max-width: 719px) { .wordmark small { display: none; } }
@media (min-width: 1100px) and (max-width: 1299px) { .wordmark small { display: none; } }
@media (max-width: 480px) { .bar-actions .btn--green { width: 44px; padding: 0; } .bar-actions .btn--green span { display: none; } }
@media (max-width: 400px) { .wordmark { padding: 0 10px; gap: 8px; } .wordmark b { font-size: 1.125rem; } .bar-actions .btn { padding: 0 11px; } .bar-actions .btn--green { width: 44px; padding: 0; } .bar-actions .btn--green span { display: none; } }
@media (min-width: 640px) { .phone-word { display: inline; } }
@media (min-width: 1100px) {
  .nav { display: flex; }
  .js .menu-btn, .mobile-nav, .js .mobile-nav.is-open { display: none; }
}

/* ---------- hero ---------- */
.hero { padding-top: clamp(16px, 3vw, 44px); padding-bottom: var(--section); }
.hero-grid { display: grid; gap: 30px; }
.hero .lead { font-size: var(--lead); line-height: 1.45; margin-top: 20px; max-width: 26em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.actions .btn { flex: 1 1 220px; }
.facts { display: grid; gap: 8px; margin-top: 26px; }
.facts li { display: flex; align-items: flex-start; gap: 12px; }
.facts svg { width: 26px; height: 26px; flex: none; color: var(--green); margin-top: 1px; }
figure { margin: 0; }
figcaption { margin-top: 10px; font-size: var(--small); color: var(--ink-2); }
.on-slate figcaption { color: var(--on-slate-2); }
.hero-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-duo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.hero-duo figure:last-child { margin-top: 48px; }
@media (min-width: 940px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: center; }
  .actions .btn { flex: 0 1 auto; }
  .hero-duo { gap: 16px; }
  .hero-duo figure:last-child { margin-top: 96px; }
}

/* ---------- secties ---------- */
.section { padding-block: var(--section); }
.field-slate { background: var(--slate); color: var(--on-slate); }
.field-tone { background: var(--surface); }
.head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 64px); }
.head p { font-size: var(--lead); line-height: 1.45; max-width: 32em; }
@media (min-width: 900px) { .head { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--gap); align-items: end; } }

/* ---------- de schakelaar (live) ---------- */
.switch { display: grid; gap: 30px; }
.switch-control { display: grid; gap: 18px; justify-items: start; }
.cam { width: min(300px, 78vw); height: auto; }
.cam .knob { transform-origin: 150px 150px; transition: transform .45s cubic-bezier(.34, 1.4, .64, 1); }
.cam[data-pos="bedrijf"] .knob { transform: rotate(90deg); }
.cam .lamp-thuis, .cam .lamp-bedrijf { transition: fill .3s var(--ease); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; max-width: 420px; }
.seg label { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 14px; border-radius: 4px; background: var(--slate-2); font-weight: 800; cursor: pointer; transition: background-color .18s var(--ease), color .18s var(--ease); }
.seg label:hover { background: var(--slate-3); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label:has(input:checked) { background: var(--green); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--lamp); outline-offset: 6px; }
.modes { display: grid; gap: 40px; }
.mode { display: grid; gap: 22px; }
.mode h3 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
.mode img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mode .keur { padding: 18px 20px; background: var(--slate-2); }
.js .mode { display: none; }
.js .mode.is-on { display: grid; animation: rise .45s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (min-width: 980px) {
  .switch { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: var(--gap); align-items: start; }
  .switch-control { position: sticky; top: calc(var(--header) + 24px); }
  .mode { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
  .mode figure { grid-row: span 3; }
}
.plain-list li { position: relative; padding: 7px 0 7px 30px; }
.plain-list li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 14px; height: 14px; border-radius: 50%; background: var(--green); }
.on-slate .plain-list li::before { background: var(--lamp); }

/* ---------- sinds 1993 ---------- */
.since { display: grid; gap: 30px; }
.since .year { font-size: clamp(5rem, 2rem + 14vw, 15rem); font-weight: 900; letter-spacing: -0.06em; line-height: 0.82; color: var(--slate); margin: 0; }
.since .lead { font-size: var(--lead); line-height: 1.45; max-width: 30em; }
.since img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 960px) { .since { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: end; } }

/* ---------- keuring: grote cijfers ---------- */
.periods { display: grid; gap: 30px; }
.period-list li { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr); gap: 18px; align-items: baseline; padding: 22px 0; }
.period-list li + li { border-top: 3px solid var(--surface-2); }
.period-list b { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.5rem); font-weight: 900; letter-spacing: -0.04em; line-height: 0.95; color: var(--green); }
.period-list strong { display: block; font-size: var(--h3); font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; }
.periods figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 960px) { .periods { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: var(--gap); align-items: center; } }

/* ---------- vakwerk + film ---------- */
.craft { display: grid; gap: 34px; }
.craft video, .craft img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #111; }
.steps { display: grid; gap: 24px; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 4px 16px; align-items: start; }
.steps svg { width: 52px; height: 52px; grid-row: span 2; }
.steps h3 { padding-top: 6px; }
.steps p { grid-column: 2; max-width: 34em; }
@media (min-width: 960px) { .craft { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: start; } .craft figure { position: sticky; top: calc(var(--header) + 24px); } }

/* ---------- regio ---------- */
.local { display: grid; gap: 30px; }
.local img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.towns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.towns li { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 4px; background: var(--surface); font-weight: 700; }
.on-slate .towns li { background: var(--slate-2); }
.towns li.home { background: var(--green); color: #fff; }
@media (min-width: 960px) { .local { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: center; } }

/* ---------- vragen ---------- */
.faq-grid { display: grid; gap: 32px; }
.faq details { background: var(--ground); margin-bottom: 8px; border-radius: 4px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 20px; font-size: var(--h3); font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--surface-2); transition: background-color .2s var(--ease), transform .2s var(--ease); }
.faq details[open] summary i { background: var(--lamp); transform: scale(1.2); }
.faq .answer { padding: 0 20px 20px; }
.faq .answer p { max-width: 60ch; }
.faq-aside img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-top: 28px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--gap); align-items: start; } .faq-aside { position: sticky; top: calc(var(--header) + 20px); } }

/* ---------- slot ---------- */
.cta { padding-block: clamp(64px, 9vw, 128px); }
.cta-grid { display: grid; gap: 26px; }
.cta p { font-size: var(--lead); line-height: 1.45; max-width: 30em; margin-top: 16px; }
.cta .actions { margin-top: 0; }
@media (min-width: 960px) { .cta-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: end; gap: var(--gap); } }

/* ---------- binnenpagina's ---------- */
.page-hero { padding-top: clamp(16px, 3vw, 44px); padding-bottom: clamp(56px, 8vw, 120px); }
.page-hero h1 { font-size: clamp(2.75rem, 1.3rem + 5.6vw, 6rem); }
.page-hero .lead { font-size: var(--lead); line-height: 1.45; margin-top: 18px; max-width: 30em; }
.split { display: grid; gap: 30px; }
.split img, .split video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split .copy h2 { margin-bottom: 18px; }
.split .copy h3 { margin: 26px 0 8px; }
.split .copy p { max-width: 60ch; }
@media (min-width: 940px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: center; }
  .split.img-left > figure, .split.img-left > .duo { order: -1; }
  .split img { aspect-ratio: 4 / 5; }
}
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.duo img { aspect-ratio: 3 / 4; }
.jobs { display: grid; gap: 26px; }
.jobs li { display: grid; grid-template-columns: 52px 1fr; gap: 4px 16px; align-items: start; }
.jobs svg { width: 52px; height: 52px; grid-row: span 2; }
.jobs h3 { padding-top: 6px; }
.jobs p { grid-column: 2; max-width: 32em; }
@media (min-width: 820px) { .jobs { grid-template-columns: 1fr 1fr; gap: 36px var(--gap); } }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 40px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; }
.contact-list svg { width: 26px; height: 26px; flex: none; margin-top: 2px; color: var(--green); }
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; }
.form { display: grid; gap: 18px; padding: clamp(20px, 3vw, 36px); background: var(--surface); border-radius: 4px; }
.form h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; min-height: 54px; padding: 12px 14px; font-size: 1.0625rem; background: #fff; border: 2px solid #8a9397; border-radius: 4px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--green); outline-offset: 1px; border-color: var(--ink); }
.field input[type="checkbox"], .field input[type="radio"] { width: 22px; height: 22px; min-height: 0; padding: 0; border: 0; flex: none; accent-color: var(--green); }
fieldset.field { margin: 0; padding: 0; border: 0; }
.checks { display: grid; gap: 6px; margin-top: 6px; }
.checks label { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 4px 12px; border-radius: 4px; background: #fff; font-weight: 500; cursor: pointer; }
.two { display: grid; gap: 18px; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } .checks { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -5000px; top: auto; }
.form .btn { width: 100%; }
.form-note { font-size: var(--small); color: var(--ink-2); }
.done { padding: 20px; background: var(--slate); color: var(--on-slate); border-radius: 4px; }
.done:focus { outline: 3px solid var(--lamp); }
.done a { font-weight: 800; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--gap); align-items: start; } }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shots img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.shots figcaption, .form-note { color: var(--ink); }
@media (min-width: 900px) { .shots { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- footer ---------- */
.site-footer { background: var(--slate); color: var(--on-slate); padding-top: clamp(56px, 8vw, 104px); padding-bottom: 32px; }
.footer-name { font-size: clamp(3.25rem, 1rem + 11vw, 11rem); font-weight: 900; letter-spacing: -0.055em; line-height: 0.86; margin: 0 0 clamp(32px, 5vw, 64px); }
.footer-name span { color: var(--lamp); }
.footer-grid { display: grid; gap: 28px; }
.footer-grid h2 { font-size: 1.125rem; letter-spacing: -0.01em; margin-bottom: 10px; }
.footer-grid a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.footer-grid address { font-style: normal; }
.legal { margin-top: 40px; font-size: 1rem; color: var(--on-slate-2); line-height: 1.5; }
.legal p { margin-bottom: 8px; max-width: 60ch; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); } }

/* ---------- beweging ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-rise].is-in { opacity: 1; transform: none; }
  .js .drift { animation: drift 18s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.08) translate(-1%, -1%); } }
}
.media-crop { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.seg label.is-on { background: var(--green); color: #fff; }
