/* ============================================================
   CERTPEB.BE — SHARED DESIGN SYSTEM
   Extracted from site.html — use on all sub-pages
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: #fff;
  color: #111;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --green:     #5CB929;
  --green-dk:  #408C1F;
  --green-xdk: #1A3A08;
  --orange:    #E8511C;
  --white:     #FFFFFF;
  --gray-50:   #F8FAF6;
  --gray-100:  #F0F4EC;
  --gray-200:  #E2EAD8;
  --gray-400:  #8FA67A;
  --gray-600:  #4A5E38;
  --dark:      #111811;
  --grad-logo: linear-gradient(to right, #DD1515 0%, #F05A00 25%, #FF9F00 50%, #AACA00 75%, #009B48 100%);
  --grad-green: linear-gradient(135deg, #5CB929, #408C1F);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.13);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 56px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.07);
  box-shadow: 0 2px 16px rgba(0,0,0,.05);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-text {
  font-family: 'DM Serif Display', serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .07em;
  color: var(--green-dk);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: #555;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}

.nav-links a:hover { color: var(--green); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  letter-spacing: .02em;
}

.nav-cta:hover {
  background: var(--green-dk);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(92,185,41,.35);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--green);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  box-shadow: 0 4px 16px rgba(92,185,41,.3);
}

.btn-primary:hover {
  background: var(--green-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(92,185,41,.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: white;
  color: #333;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
}

.btn-secondary:hover {
  border-color: var(--green);
  color: var(--green-dk);
  background: rgba(92,185,41,.04);
}

/* ============================================================
   SECTION UTILITIES
   ============================================================ */
section { padding: 100px 56px; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--green);
  border-radius: 2px;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--dark);
  margin-bottom: 16px;
}

.section-title em {
  font-style: normal;
  color: var(--green);
}

.section-subtitle {
  font-size: 17px;
  color: #666;
  line-height: 1.65;
  max-width: 560px;
}

/* ============================================================
   HERO STAT
   ============================================================ */
.hero-stats {
  display: flex;
  gap: 0;
}

.hero-stat {
  padding-right: 32px;
  margin-right: 32px;
  border-right: 1px solid #e0e0e0;
}

.hero-stat:last-child { border-right: none; padding-right: 0; margin-right: 0; }

.hero-stat-value {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 500;
}

/* ============================================================
   ZONE TAGS
   ============================================================ */
.zone-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zone-tag {
  padding: 6px 14px;
  background: var(--gray-50);
  border: 1.5px solid #e0e0e0;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  transition: all .2s;
}

.zone-tag:hover { border-color: var(--green); color: var(--green-dk); }
.zone-tag.star { background: rgba(92,185,41,.08); border-color: rgba(92,185,41,.3); color: var(--green-dk); }
.zone-tag.periphery { background: rgba(232,81,28,.06); border-color: rgba(232,81,28,.2); color: #8a2c0a; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section { background: var(--dark); padding: 80px 56px; }

.cta-box {
  background: linear-gradient(145deg, rgba(92,185,41,.12), rgba(232,81,28,.05));
  border: 1px solid rgba(92,185,41,.2);
  border-radius: 32px;
  padding: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(92,185,41,.1) 0%, transparent 70%);
}

.cta-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 16px;
  position: relative;
}

.cta-title .acc {
  background: var(--grad-logo);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,.45);
  margin-bottom: 40px;
  line-height: 1.6;
  position: relative;
}

.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

.btn-cta-g {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px;
  background: var(--green); color: white;
  border: none; border-radius: 12px;
  font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: all .2s;
  box-shadow: 0 4px 20px rgba(92,185,41,.4);
}

.btn-cta-g:hover { background: #70d432; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(92,185,41,.5); }

.btn-cta-w {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.15); border-radius: 12px;
  font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: all .2s;
}

.btn-cta-w:hover { border-color: rgba(92,185,41,.4); background: rgba(92,185,41,.08); color: white; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #0d110d;
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 72px 56px 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand-name { font-family: 'DM Serif Display', serif; font-size: 18px; font-weight: 800; color: var(--green); letter-spacing: .06em; }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,.3); line-height: 1.7; max-width: 260px; margin-bottom: 24px; }

.footer-socials { display: flex; gap: 8px; }

.social-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  text-decoration: none; color: rgba(255,255,255,.45);
  transition: all .2s; cursor: pointer;
}

.social-btn:hover { background: rgba(92,185,41,.15); border-color: rgba(92,185,41,.3); color: var(--green); }

.footer-col-title { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 18px; }

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,.45); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--green); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,.2); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: rgba(255,255,255,.2); text-decoration: none; transition: color .2s; }
.footer-legal a:hover { color: rgba(255,255,255,.5); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fd1 { transition-delay: .1s; }
.fd2 { transition-delay: .2s; }
.fd3 { transition-delay: .3s; }

@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.4; transform:scale(.7); }
}

/* ============================================================
   PEB CLASSES (shared between site.html + peb.html)
   ============================================================ */
.peb-classes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.peb-class {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.4,0,.2,1), box-shadow .2s;
}

.peb-class.peb-row-visible {
  opacity: 1;
  transform: translateX(0);
}

.peb-class.peb-row-visible:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
}

.peb-class::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transform: translateX(-130%);
  pointer-events: none;
  z-index: 6;
}
.peb-class.peb-row-visible:hover::before {
  animation: pebSweep .55s ease forwards;
}

@keyframes pebSweep {
  from { transform: translateX(-130%); }
  to   { transform: translateX(230%); }
}

.peb-letter {
  width: 56px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  transform: scale(0.55);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  position: relative;
  z-index: 2;
}
.peb-row-visible .peb-letter { transform: scale(1); }

.peb-bar-wrap {
  flex: 1;
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: relative;
  overflow: hidden;
}

.peb-bar-wrap::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: var(--bar-pct, 30%);
  background: rgba(255,255,255,.08);
  border-radius: 0 5px 5px 0;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.1s cubic-bezier(.22,1,.36,1);
}
.peb-bar-wrap.bar-filled::after { transform: scaleX(1); }

.peb-bar-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  letter-spacing: .04em;
  position: relative;
  z-index: 2;
}

.peb-bar-kwh {
  margin-left: auto;
  font-size: 11px;
  color: rgba(255,255,255,.5);
  font-weight: 500;
  position: relative;
  z-index: 2;
}

.peb-a    { background: #009B48; }
.peb-a .peb-bar-wrap    { background: rgba(0,155,72,.22); }
.peb-b    { background: #52B82A; }
.peb-b .peb-bar-wrap    { background: rgba(82,184,42,.2); }
.peb-c    { background: #AACA00; }
.peb-c .peb-letter      { color: #2a3a00; }
.peb-c .peb-bar-wrap    { background: rgba(170,202,0,.15); }
.peb-d    { background: #FFE400; }
.peb-d .peb-letter      { color: #5a4a00; }
.peb-d .peb-bar-wrap    { background: rgba(255,228,0,.10); }
.peb-d .peb-bar-label   { color: rgba(255,255,255,.75); }
.peb-e    { background: #FF9F00; }
.peb-e .peb-bar-wrap    { background: rgba(255,159,0,.18); }
.peb-f    { background: #F05A00; }
.peb-f .peb-bar-wrap    { background: rgba(240,90,0,.18); }
.peb-g    { background: #DD1515; }
.peb-g .peb-bar-wrap    { background: rgba(221,21,21,.18); }

.peb-zone-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(92,185,41,.15);
  border: 1px solid rgba(92,185,41,.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: 16px;
}

/* ============================================================
   RESPONSIVE MOBILE
   ============================================================ */
@media (max-width: 768px) {
  section { padding: 50px 24px; }

  .nav { padding: 0 24px; height: 64px; }
  .nav-logo-text { font-size: 16px; }
  .nav-links { display: none; }
  .nav-cta { padding: 8px 16px; font-size: 13px; }

  .section-title { font-size: clamp(26px, 5vw, 40px); }
  .section-subtitle { font-size: 15px; }

  .footer { padding: 50px 24px 0; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; margin-bottom: 40px; }
  .footer-tagline { font-size: 13px; }
  .footer-col-title { font-size: 10px; margin-bottom: 12px; }
  .footer-links { gap: 8px; }
  .footer-links a { font-size: 13px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 20px; }
  .footer-copy { font-size: 12px; }
  .footer-legal { flex-wrap: wrap; gap: 12px; }
  .footer-legal a { font-size: 11px; }

  .cta-section { padding: 50px 24px; }
  .cta-box { padding: 40px 24px; border-radius: 20px; }
  .cta-title { font-size: clamp(24px, 5vw, 36px); }
  .cta-subtitle { font-size: 14px; margin-bottom: 24px; }
  .cta-actions { gap: 12px; }
  .btn-cta-g, .btn-cta-w { padding: 12px 20px; font-size: 14px; }
}

@media (max-width: 480px) {
  section { padding: 40px 16px; }

  .nav { padding: 0 16px; height: 56px; }
  .nav-logo-text { font-size: 14px; }
  .nav-cta { padding: 6px 12px; font-size: 12px; }

  .section-title { font-size: clamp(22px, 5.5vw, 32px); }
  .section-subtitle { font-size: 14px; }

  .footer { padding: 40px 16px 0; }
  .footer-tagline { font-size: 12px; }
  .footer-links a { font-size: 12px; }
  .footer-copy { font-size: 11px; }
  .footer-legal a { font-size: 10px; }

  .cta-box { padding: 30px 20px; }
  .cta-title { font-size: clamp(20px, 5.5vw, 28px); }
  .btn-cta-g, .btn-cta-w { padding: 10px 16px; font-size: 13px; }
}

@media (max-width: 375px) {
  section { padding: 35px 14px; }
  .footer { padding: 35px 14px 0; }
  .cta-section { padding: 35px 14px; }
}
