/* HAP Elektro · publieke site (2026). Het CMS gebruikt zijn eigen stylesheet. */
@font-face { font-family: "Manrope"; src: url(fonts/manrope.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --navy: #14213d;
  --navy-2: #1d2f57;
  --blauw: #1f6feb;
  --geel: #ffc531;
  --geel-2: #f5b400;
  --ink: #142033;
  --ink-2: #4b5870;
  --lijn: #e3e8f0;
  --bg: #ffffff;
  --bg-2: #f4f7fb;
  --radius: 18px;
  --schaduw: 0 24px 50px -28px rgba(20, 33, 61, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: var(--blauw); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; color: var(--navy); }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; margin-bottom: 18px; text-wrap: balance; }
h3 { font-weight: 700; }
svg { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 99; border-radius: 8px; }
.skip:focus { left: 8px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--blauw); }
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--geel); }

/* knoppen */
.knop { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 12px; background: var(--geel); color: var(--navy); font-weight: 800; font-size: 15px; text-decoration: none; border: 2px solid var(--geel); cursor: pointer; transition: transform .2s, background-color .2s, box-shadow .2s, color .2s; font-family: inherit; }
.knop:hover { transform: translateY(-2px); background: var(--geel-2); border-color: var(--geel-2); box-shadow: 0 14px 26px -14px rgba(245, 180, 0, .8); }
.knop-licht { background: transparent; color: var(--navy); border-color: var(--lijn); }
.knop-licht:hover { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: none; }
.knop-klein { padding: 10px 16px; font-size: 14px; }
.knop-vol { width: 100%; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* kop */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--lijn); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.merk { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.merk-icoon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: var(--geel); }
.merk-icoon svg { width: 22px; height: 22px; }
.merk-tekst { font-size: 21px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.merk-tekst b { color: var(--blauw); }
#menu { display: flex; align-items: center; gap: 26px; }
#menu ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
#menu ul a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
#menu ul a:hover, #menu ul a.actief { border-color: var(--geel); }
.menu-knop { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--navy); }
.hamburger, .hamburger::before, .hamburger::after { display: block; width: 24px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.hamburger::before, .hamburger::after { content: ""; position: absolute; left: 0; }
.hamburger::before { top: -7px; } .hamburger::after { top: 7px; }
.menu-knop[aria-expanded="true"] .hamburger { background: transparent; }
.menu-knop[aria-expanded="true"] .hamburger::before { transform: translateY(7px) rotate(45deg); }
.menu-knop[aria-expanded="true"] .hamburger::after { transform: translateY(-7px) rotate(-45deg); }

/* hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(70% 90% at 100% 0%, rgba(31, 111, 235, .12), transparent 70%), radial-gradient(50% 60% at 0% 100%, rgba(255, 197, 49, .16), transparent 70%), var(--bg-2); }
.hero-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(48px, 7vw, 96px) 0; }
h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 800; letter-spacing: -.035em; }
h1 span { position: relative; white-space: nowrap; color: var(--blauw); }
h1 span::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .22em; background: var(--geel); opacity: .55; z-index: -1; border-radius: 4px; }
.hero-lede { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); max-width: 540px; margin: 22px 0 0; }
.kenmerken { display: flex; flex-wrap: wrap; gap: 28px; list-style: none; padding: 26px 0 0; margin: 32px 0 0; border-top: 1px solid var(--lijn); }
.kenmerken strong { display: block; font-size: 22px; font-weight: 800; color: var(--navy); }
.kenmerken span { font-size: 14px; color: var(--ink-2); }
.hero-beeld { position: relative; }
.hero-beeld::before { content: ""; position: absolute; inset: auto -18px -18px auto; width: 60%; height: 70%; border-radius: var(--radius); background: var(--geel); z-index: 0; }
.hero-beeld .carrousel { position: relative; z-index: 1; box-shadow: var(--schaduw); }
.hero-beeld .dia img { aspect-ratio: 8 / 3; }

/* carrousel (hero en diensten) */
.carrousel { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy); }
.dia-rij { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.dia-rij::-webkit-scrollbar { display: none; }
.dia { flex: 0 0 100%; margin: 0; scroll-snap-align: start; position: relative; }
.dia img { width: 100%; height: 100%; object-fit: cover; }
.dia figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(20, 33, 61, .78); color: #fff; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.pijl { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--navy); display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5); transition: background-color .2s; }
.pijl:hover { background: var(--geel); }
.pijl svg { width: 24px; height: 24px; }
.vorige { left: 12px; } .volgende { right: 12px; }
.stippen { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 6px; }
.stippen span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .55); transition: width .25s, background-color .25s; }
.stippen span.aan { width: 22px; border-radius: 4px; background: var(--geel); }

/* secties */
.sectie { padding: clamp(64px, 9vw, 112px) 0; }
.kop { max-width: 720px; margin-bottom: 40px; }
.kop-midden { margin-inline: auto; text-align: center; }
.kop-midden .eyebrow { justify-content: center; }
.rijke-tekst { color: var(--ink-2); }
.rijke-tekst p { margin: 0 0 14px; }
.rijke-tekst p:empty { display: none; }

.over-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.over-beeld { margin: 0; position: relative; }
.over-beeld img { border-radius: var(--radius); box-shadow: var(--schaduw); width: 100%; aspect-ratio: 720 / 425; object-fit: cover; }
.over-beeld::after { content: ""; position: absolute; left: -16px; top: -16px; width: 90px; height: 90px; border-radius: 16px; background: radial-gradient(var(--blauw) 2px, transparent 2.5px) 0 0 / 14px 14px; opacity: .35; z-index: -1; }

/* team: horizontaal, 1 of 2 rijen */
.team { background: var(--bg-2); }
.team-lijst { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.lid { width: 150px; text-align: center; }
.lid img { width: 132px; height: 132px; object-fit: cover; border-radius: 50%; margin: 0 auto 14px; border: 4px solid #fff; box-shadow: 0 14px 30px -18px rgba(20, 33, 61, .6); background: #fff; transition: transform .25s; }
.lid:hover img { transform: translateY(-4px) scale(1.03); }
.lid h3 { font-size: 16px; }
.lid p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }

/* diensten */
.dienst-kaarten { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.dienst-kaarten a { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--lijn); text-decoration: none; color: var(--navy); transition: transform .25s, box-shadow .25s, border-color .25s; }
.dienst-kaarten a:hover { transform: translateY(-4px); box-shadow: var(--schaduw); border-color: transparent; }
.dienst-kaarten img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.dk-titel { padding: 16px 18px 4px; font-weight: 800; font-size: 18px; }
.dk-meer { display: inline-flex; align-items: center; gap: 6px; padding: 0 18px 18px; margin-top: auto; color: var(--blauw); font-weight: 700; font-size: 14px; }
.dienst { padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--lijn); }
.dienst-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.dienst-omgekeerd .dienst-beeld { order: 2; }
.dienst-beeld .dia img { aspect-ratio: 720 / 425; }
.dienst-beeld .carrousel { box-shadow: var(--schaduw); }
.dienst-tekst .knop { margin-top: 8px; }

/* contact */
.contact { background: var(--navy); color: #dfe6f3; }
.contact h2, .contact h3 { color: #fff; }
.contact .eyebrow { color: var(--geel); }
.contact-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact-lede { color: #b9c4d8; margin: 0 0 26px; }
.gegevens { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 14px; }
.gegevens li { display: flex; gap: 12px; align-items: flex-start; }
.gegevens svg { color: var(--geel); margin-top: 4px; }
.gegevens a { color: #fff; text-decoration: none; font-weight: 700; }
.gegevens a:hover { color: var(--geel); }
.gegevens b { color: #fff; }
.kaart-kader { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255, 255, 255, .15); }
.kaart-kader iframe { display: block; width: 100%; height: 260px; border: 0; filter: saturate(.85); }
.kaart-link { position: absolute; right: 12px; bottom: 12px; background: var(--geel); color: var(--navy); font-weight: 800; font-size: 14px; padding: 8px 14px; border-radius: 10px; text-decoration: none; }
.formulier-kaart { background: #fff; color: var(--ink); border-radius: calc(var(--radius) + 4px); padding: clamp(24px, 4vw, 40px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.formulier-kaart h3 { color: var(--navy); font-size: 24px; margin-bottom: 20px; }
.veld { margin-bottom: 16px; }
.veld label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--navy); }
.veld input, .veld textarea { width: 100%; padding: 13px 15px; border: 1.5px solid var(--lijn); border-radius: 12px; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg-2); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.veld textarea { resize: vertical; min-height: 140px; }
.veld input:focus, .veld textarea:focus { outline: none; border-color: var(--blauw); background: #fff; box-shadow: 0 0 0 4px rgba(31, 111, 235, .15); }
.veld ul { list-style: none; margin: 6px 0 0; padding: 0; color: #c62828; font-size: 14px; font-weight: 600; }
.melding { padding: 12px 16px; border-radius: 12px; font-weight: 700; margin: 0 0 18px; }
.melding-ok { background: #e7f6ec; color: #1b6b35; }
.melding-fout { background: #fdecec; color: #b42318; }

.voet { background: #0d172b; color: #93a0b8; font-size: 14px; padding: 26px 0 30px; }
.voet-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; }
.voet p { margin: 0; } .voet b { color: #dfe6f3; }
.voet a { color: #dfe6f3; text-decoration: none; }

@media (max-width: 980px) {
  .hero-in, .over-in, .dienst-in, .contact-in { grid-template-columns: 1fr; }
  .dienst-omgekeerd .dienst-beeld { order: 0; }
  .hero-beeld::before { inset: auto -10px -10px auto; }
}
@media (max-width: 860px) {
  .menu-knop { display: block; }
  #menu { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--lijn); padding: 6px 20px 20px; box-shadow: 0 20px 30px -24px rgba(0, 0, 0, .4); }
  #menu.open { display: flex; }
  #menu ul { flex-direction: column; gap: 0; }
  #menu ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--lijn); font-size: 17px; }
  #menu .knop { margin-top: 14px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cta .knop { width: 100%; }
  .kenmerken { gap: 18px; }
  .team-lijst { gap: 14px 8px; }
  .lid { width: calc(33.33% - 6px); }
  .lid img { width: 92px; height: 92px; }
  .lid h3 { font-size: 14px; }
  .lid p { font-size: 12px; }
  .pijl { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
