/*
Theme Name: WattBalans Onepage
Theme URI: https://wattbalans.nl
Author: Virtruvian / WattBalans
Description: Uploadbare WordPress onepage theme voor WattBalans met aparte online energiescan pagina.
Version: 0.1.5
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: Proprietary
Text Domain: wattbalans-onepage
*/

:root {
  --wb-blue: #003b7a;
  --wb-blue-2: #008eb3;
  --wb-green: #54b900;
  --wb-teal: #00a88f;
  --wb-ink: #092033;
  --wb-muted: #5f7180;
  --wb-bg: #f4f9fb;
  --wb-card: #ffffff;
  --wb-border: rgba(9, 32, 51, .11);
  --wb-shadow: 0 24px 70px rgba(0, 59, 122, .12);
  --wb-radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--wb-ink);
  background: linear-gradient(180deg, #fff 0%, var(--wb-bg) 58%, #fff 100%);
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }

.wb-page { min-height: 100vh; overflow-x: hidden; }
.wb-wrap { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }

.wb-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--wb-border);
}
.wb-nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wb-logo img { display: block; width: min(260px, 58vw); height: auto; }
.wb-menu { display: flex; align-items: center; gap: 18px; font-size: 15px; font-weight: 700; }
.wb-menu a { text-decoration: none; color: var(--wb-blue); }
.wb-menu a:hover { color: var(--wb-teal); }

.wb-button,
.wb-button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--wb-blue), var(--wb-blue-2));
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 16px 32px rgba(0, 59, 122, .20);
  border: 0;
}
.wb-button.wb-button-light {
  background: #fff;
  color: var(--wb-blue);
  box-shadow: none;
}
.wb-button.wb-button-ghost {
  background: transparent;
  color: var(--wb-blue);
  border: 1px solid var(--wb-border);
  box-shadow: none;
}

.wb-hero {
  position: relative;
  padding: 86px 0 72px;
}
.wb-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 52%;
  width: 640px;
  height: 640px;
  transform: translateY(-16%);
  background:
    radial-gradient(circle at 25% 25%, rgba(84,185,0,.22), transparent 32%),
    radial-gradient(circle at 70% 55%, rgba(0,142,179,.18), transparent 38%);
  filter: blur(8px);
  z-index: -1;
}
.wb-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  gap: 48px;
  align-items: center;
}
.wb-kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(84,185,0,.11);
  color: var(--wb-blue);
  font-weight: 800;
  font-size: 14px;
}
.wb-kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--wb-green);
}
.wb-hero h1 {
  margin: 22px 0 16px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: .98;
  letter-spacing: -0.055em;
  color: var(--wb-blue);
}
.wb-hero h1 span { color: var(--wb-teal); }
.wb-lead {
  margin: 0 0 28px;
  max-width: 650px;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--wb-muted);
}
.wb-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.wb-trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.wb-pill {
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--wb-border);
  border-radius: 999px;
  font-size: 14px;
  color: var(--wb-muted);
}
.wb-visual {
  position: relative;
  border-radius: 36px;
  background: linear-gradient(145deg, #fff, #eef8fa);
  box-shadow: var(--wb-shadow);
  padding: 28px;
  border: 1px solid rgba(255,255,255,.72);
}
.wb-visual-card {
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--wb-border);
  padding: 26px;
}
.wb-meter {
  height: 210px;
  border-radius: 24px;
  background:
    linear-gradient(130deg, rgba(84,185,0,.18), rgba(0,142,179,.18)),
    #f7fbfc;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.wb-meter img { width: 190px; height: auto; }
.wb-stat-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.wb-stat {
  padding: 16px;
  border-radius: 18px;
  background: var(--wb-bg);
  border: 1px solid var(--wb-border);
}
.wb-stat strong { display:block; font-size: 24px; color: var(--wb-blue); line-height: 1.1; }
.wb-stat span { font-size: 13px; color: var(--wb-muted); }

.wb-section { padding: 76px 0; }
.wb-section h2 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -.04em;
  color: var(--wb-blue);
}
.wb-section-intro { max-width: 760px; margin: 0 0 34px; color: var(--wb-muted); font-size: 18px; }
.wb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.wb-card {
  background: var(--wb-card);
  border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius);
  padding: 26px;
  box-shadow: 0 16px 44px rgba(0, 59, 122, .07);
}
.wb-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--wb-green), var(--wb-teal));
  font-weight: 900;
  margin-bottom: 18px;
}
.wb-card h3 { margin: 0 0 10px; color: var(--wb-blue); font-size: 22px; line-height: 1.2; }
.wb-card p { margin: 0; color: var(--wb-muted); }

.wb-band {
  background: linear-gradient(135deg, var(--wb-blue), var(--wb-blue-2));
  color: #fff;
  border-radius: 38px;
  padding: 46px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  box-shadow: var(--wb-shadow);
}
.wb-band h2 { color: #fff; margin-bottom: 10px; }
.wb-band p { margin: 0; color: rgba(255,255,255,.86); max-width: 700px; }

.wb-process { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.wb-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--wb-border);
  border-radius: 24px;
  padding: 24px;
}
.wb-step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(0,168,143,.12);
  color: var(--wb-teal);
  font-weight: 900;
}
.wb-step h3 { margin: 0 0 8px; font-size: 18px; color: var(--wb-blue); }
.wb-step p { margin: 0; color: var(--wb-muted); font-size: 15px; }

.wb-scan-page { padding: 64px 0 86px; }
.wb-scan-shell {
  background: #fff;
  border: 1px solid var(--wb-border);
  border-radius: 36px;
  padding: clamp(22px, 4vw, 44px);
  box-shadow: var(--wb-shadow);
}
.wb-shortcode-missing {
  padding: 18px;
  border: 1px solid rgba(0,142,179,.25);
  background: rgba(0,142,179,.07);
  border-radius: 18px;
  color: var(--wb-blue);
}
.wb-footer {
  padding: 34px 0;
  border-top: 1px solid var(--wb-border);
  color: var(--wb-muted);
}
.wb-footer-inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .wb-hero-grid, .wb-band { grid-template-columns: 1fr; }
  .wb-cards, .wb-process { grid-template-columns: 1fr 1fr; }
  .wb-menu { display: none; }
}
@media (max-width: 620px) {
  .wb-wrap { width: min(100% - 26px, 1120px); }
  .wb-hero { padding-top: 54px; }
  .wb-cards, .wb-process, .wb-stat-grid { grid-template-columns: 1fr; }
  .wb-band { padding: 28px; border-radius: 28px; }
}
