/* ENHA Elektrotechniek, demo-homepage */

@font-face {
  font-family: "Saira";
  src: url("../assets/fonts/saira-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Saira";
  src: url("../assets/fonts/saira-italic-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/jetbrainsmono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --navy: #1d3448;
  --navy-deep: #15273a;
  --navy-line: #2d4a62;
  --steel: #859fad;
  --steel-soft: #b9c9d2;
  --kast: #e6ecef;
  --paper: #f5f7f8;
  --ink: #15212c;
  --muted: #4c5f6d;
  --volt: #f2c230;
  --volt-deep: #dcaa12;
  --white: #fdfefe;
  --radius: 4px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sans: "Saira", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
a, button, input, label { touch-action: manipulation; -webkit-tap-highlight-color: rgba(242, 194, 48, .25); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--volt); color: var(--navy); padding: 10px 16px; font-weight: 700; border-radius: var(--radius);
}
.skip:focus { top: 12px; }

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

/* ---------- type ---------- */
.display {
  font-style: italic;
  font-weight: 760;
  font-stretch: 105%;
  font-size: clamp(2.3rem, 4.3vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--white);
}
.display .line { display: block; overflow: hidden; padding-bottom: .06em; white-space: nowrap; }
.display .line > span { display: inline-block; }
.h2 {
  font-style: italic;
  font-weight: 740;
  font-stretch: 105%;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  letter-spacing: -0.015em;
  color: var(--navy);
  max-width: 18ch;
  padding-bottom: .05em;
}
.on-dark { color: var(--white); }
.volt { color: var(--volt); }
.steel { color: #627d8c; }
.sub { margin-top: 14px; max-width: 52ch; color: var(--muted); font-size: 1.1rem; }
.sub.on-dark { color: var(--steel-soft); }
.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  font: 650 1.02rem/1 var(--sans);
  text-decoration: none; white-space: nowrap;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: .95rem; }
.btn-volt { background: var(--volt); color: var(--navy); }
.btn-volt:hover { background: #ffd23f; }
.btn-ghost { border-color: rgba(253,254,254,.45); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--white); background: rgba(253,254,254,.06); }
.btn-block { width: 100%; }
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover .ico[src*="arrow"] { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(29, 52, 72, .94);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid rgba(133, 159, 173, .18);
}
.header-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand img { width: 132px; height: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 26px; }
.nav a {
  text-decoration: none; color: var(--steel-soft); font-weight: 550; font-size: .98rem;
  padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.nav a:hover { color: var(--white); border-color: var(--volt); }
.header-cta { display: flex; gap: 10px; }

/* ---------- hero ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
.lead { margin-top: 22px; max-width: 40ch; font-size: 1.18rem; color: var(--steel-soft); }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-frame {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  background: #0d1824;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 7% 100%, 0 89%);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero-frame .dim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 15, 24, .86), rgba(8, 15, 24, .9));
  opacity: 0;
  pointer-events: none;
}
.legend {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 18px;
  margin-top: 14px; padding: 12px 14px;
  border: 1px solid var(--navy-line);
  font-family: var(--mono); font-size: .76rem; line-height: 1.5;
  color: var(--steel-soft);
}
.legend span:nth-child(odd) { text-transform: uppercase; letter-spacing: .12em; color: var(--steel); }

/* ---------- groepen (diensten) ---------- */
.groepen { padding: clamp(72px, 9vw, 128px) 0; background: var(--paper); }
.kast {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  padding: 2px;
  background: var(--steel-soft);
  border-radius: var(--radius);
}
.groep {
  position: relative;
  background: var(--white);
  padding: 22px 24px 28px;
  display: flex; flex-direction: column; gap: 10px;
  transition: background-color .3s;
}
.groep-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tag {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy); background: var(--volt); padding: 4px 8px; border-radius: 2px;
  transition: background-color .35s;
}
.js .groep:not(.is-on) .tag { background: var(--kast); }
.schakelaar {
  width: 22px; height: 36px; border-radius: 3px;
  background: var(--kast); border: 1px solid var(--steel-soft);
  position: relative;
}
.schakelaar span {
  position: absolute; left: 3px; right: 3px; height: 14px; border-radius: 2px;
  top: 3px; background: var(--volt); box-shadow: inset 0 0 0 1px var(--volt-deep);
  transition: top .35s var(--ease), background-color .35s;
}
.js .groep:not(.is-on) .schakelaar span { top: 17px; background: var(--navy); box-shadow: none; }
.ico-lg { width: 30px; height: 30px; }
.groep h3 { font-style: italic; font-weight: 720; font-size: 1.4rem; color: var(--navy); }
.groep p { color: var(--muted); font-size: 1rem; }
.groep-volt { background: #fff8de; }

/* ---------- zonnepanelen ---------- */
.zon {
  background: var(--navy-deep);
  padding: clamp(72px, 9vw, 128px) 0;
  color: var(--white);
}
.zon-in {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
.zon .h2 { max-width: 16ch; }
.werkwijze {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  counter-reset: w;
}
.werkwijze li { border-top: 2px solid var(--navy-line); padding-top: 16px; position: relative; }
.werkwijze li::before {
  content: ""; position: absolute; top: -2px; left: 0; width: 36px; height: 2px; background: var(--volt);
}
.werkwijze h3 { font-weight: 680; font-size: 1.12rem; color: var(--white); }
.werkwijze p { margin-top: 6px; font-size: .97rem; color: var(--steel-soft); }

.zon-fotos {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
}
.zf img { width: 100%; object-fit: cover; border-radius: var(--radius); }
.zf figcaption { margin-top: 8px; font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.zf-1 { grid-row: 1 / 3; display: flex; flex-direction: column; }
.zf-1 img { flex: 1; min-height: 0; height: 100%; }
.zf-2 img { aspect-ratio: 4 / 3; }
.zf-3 img { aspect-ratio: 4 / 3; object-position: 50% 30%; }

.offerte { position: sticky; top: 96px; }
.form {
  background: var(--white); color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
}
.form-title { font-style: italic; font-weight: 740; font-size: 1.7rem; color: var(--navy); }
.form-intro { margin-top: 6px; color: var(--muted); }
.form fieldset { border: 0; margin: 22px 0 0; padding: 0; }
.form legend { font-weight: 650; color: var(--ink); margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1.5px solid #9fb2bd; border-radius: var(--radius);
  font-weight: 560; color: var(--navy);
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--volt); outline-offset: 2px; }
.chip:hover span { border-color: var(--navy); }
.field { margin-top: 18px; display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .97rem; }
.opt { font-weight: 400; color: var(--muted); }
.field input {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: 400 1rem var(--sans); color: var(--ink);
  background: var(--paper); border: 1.5px solid #8ea3af; border-radius: var(--radius);
}
.field input:focus { outline: 3px solid var(--volt); outline-offset: 1px; border-color: var(--navy); }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.err { color: #b3261e; font-size: .9rem; font-weight: 550; margin-top: 4px; }
.form .btn-block { margin-top: 26px; }
.form-alt { margin-top: 14px; font-size: .95rem; color: var(--muted); text-align: center; }
.form-alt a { color: var(--navy); font-weight: 650; }
.form-done {
  margin-top: 16px; padding: 14px 16px; background: #fff3c4; border-radius: var(--radius);
  color: var(--ink); font-size: .97rem;
}

/* ---------- projecten ---------- */
.projecten { padding: clamp(72px, 9vw, 128px) 0; }
.proj-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 36px 24px;
}
.proj { text-decoration: none; color: inherit; display: block; }
.proj-img { overflow: hidden; border-radius: var(--radius); background: var(--kast); }
.proj-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.proj:hover .proj-img img { transform: scale(1.04); }
.proj h3 { margin-top: 14px; font-weight: 680; font-size: 1.2rem; color: var(--navy); }
.proj p { margin-top: 4px; color: var(--muted); font-size: .98rem; max-width: 46ch; }
.plaats {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--navy); background: var(--kast); padding: 2px 6px; margin-right: 6px; border-radius: 2px;
}
.p-a { grid-column: 1 / 5; grid-row: 1 / 3; }
.p-a .proj-img { aspect-ratio: 3 / 4.1; }
.p-b { grid-column: 5 / 13; }
.p-b .proj-img { aspect-ratio: 2 / 1; }
.p-c { grid-column: 5 / 9; }
.p-e { grid-column: 9 / 13; }
.p-c .proj-img, .p-e .proj-img { aspect-ratio: 1 / 1; }
.link-arrow {
  margin-top: 40px; display: inline-flex; align-items: center; gap: 10px;
  font-weight: 650; color: var(--navy); text-decoration: none;
  border-bottom: 2px solid var(--volt); padding-bottom: 4px;
}
.link-arrow:hover .ico { transform: translateX(3px); }
.link-arrow .ico { transition: transform .25s var(--ease); }

/* ---------- over ---------- */
.over { background: var(--white); padding-bottom: clamp(72px, 9vw, 120px); }
.over-bus { overflow: hidden; max-height: 420px; }
.over-bus img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.over-in {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(32px, 5vw, 80px);
}
.over-text p + p { margin-top: 14px; }
.over-text p { color: var(--muted); font-size: 1.08rem; max-width: 56ch; }
.plaatsen {
  grid-column: 1 / -1; margin-top: 24px;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.plaatsen span {
  font-style: italic; font-weight: 680; font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--navy); padding: 6px 16px; border: 1.5px solid var(--steel-soft); border-radius: 999px;
}

/* ---------- recensie ---------- */
.recensie { background: var(--volt); padding: clamp(56px, 7vw, 96px) 0; }
.rec-in blockquote { margin: 0; }
.rec-in blockquote p { max-width: 34ch; }
.rec-in blockquote p {
  font-style: italic; font-weight: 720; font-stretch: 102%;
  font-size: clamp(1.6rem, 3.3vw, 2.6rem); line-height: 1.15; color: var(--navy);
}
.rec-in footer { margin-top: 18px; color: var(--navy); font-size: 1.02rem; }

/* ---------- contact ---------- */
.contact { background: var(--navy); padding: clamp(64px, 8vw, 112px) 0; }
.contact-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 80px); align-items: end; }
.contact-lijst { display: grid; gap: 14px; }
.c-big {
  display: flex; align-items: center; gap: 14px;
  font-style: italic; font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 2rem);
  color: var(--white); text-decoration: none;
  padding: 14px 0; border-bottom: 1px solid var(--navy-line);
  overflow-wrap: anywhere;
}
.c-big:hover span { color: var(--volt); }
.c-adres { display: flex; gap: 14px; color: var(--steel-soft); margin-top: 8px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--steel-soft); padding: 32px 0; font-size: .95rem; }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.footer-in nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-in nav a { text-decoration: none; }
.footer-in nav a:hover { color: var(--white); }
.footer-in p { margin-left: auto; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80;
  transform: translateX(-50%);
  background: var(--ink); color: var(--white);
  padding: 12px 18px; border-radius: var(--radius); font-size: .97rem;
  box-shadow: 0 12px 30px rgba(21, 33, 44, .3);
  max-width: calc(100vw - 32px);
}

/* ---------- intro (vangnet: class verdwijnt na 3 s) ---------- */
.intro .display .line > span { transform: translateY(105%); }
.intro .hero .lead, .intro .hero-actions, .intro .legend { opacity: 0; }
.intro .hero-frame .dim { opacity: 1; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
}
@media (max-width: 1023px) {
  .hero-in { grid-template-columns: 1fr; }
  .zon-in { grid-template-columns: 1fr; }
  .offerte { position: static; }
  .kast { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-a, .p-b, .p-c, .p-e { grid-column: auto; grid-row: auto; }
  .p-b { grid-column: 1 / -1; order: -1; }
  .p-a .proj-img { aspect-ratio: 4 / 3; }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .display .line { white-space: normal; }
  .hide-sm { display: none; }
  .header-in { height: 64px; gap: 12px; }
  .brand img { width: 112px; }
  .hero { padding-top: 32px; }
  .hero-actions .btn { width: 100%; }
  .hero-frame { clip-path: polygon(0 0, 100% 0, 100% 100%, 10% 100%, 0 88%); }
  .kast { grid-template-columns: 1fr; }
  .werkwijze { grid-template-columns: 1fr; gap: 18px; }
  .zon-fotos { grid-template-columns: 1fr 1fr; }
  .zf-1 { grid-column: 1 / -1; grid-row: auto; }
  .zf-1 img { aspect-ratio: 4 / 3; }
  .field-row { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: 1fr; gap: 32px; }
  .over-in, .contact-in { grid-template-columns: 1fr; }
  .over-bus { max-height: 220px; }
  .over-bus img { object-position: 22% 50%; min-height: 180px; }
  .footer-in p { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
