:root {
  --ink: #111827;
  --muted: #5b6675;
  --line: #d9e1ea;
  --paper: #f5f7f8;
  --white: #ffffff;
  --graphite: #151a1f;
  --green: #28d17c;
  --green-dark: #0d7f4e;
  --blue: #1d7df2;
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 210px;
}

.brand-logo {
  display: block;
  width: 232px;
  height: auto;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: #293241;
  font-size: 14px;
}

.main-nav a {
  padding: 8px 0;
}

.header-cta {
  padding: 10px 16px;
  color: var(--white);
  background: var(--graphite);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--graphite);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 14, 18, 0.92) 0%, rgba(10, 14, 18, 0.72) 38%, rgba(10, 14, 18, 0.28) 72%),
    linear-gradient(0deg, rgba(10, 14, 18, 0.78) 0%, rgba(10, 14, 18, 0) 42%);
}

.hero-content {
  position: relative;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 118px 0 48px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.18;
}

.hero-lead {
  max-width: 720px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.hero-actions,
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 6px;
  font-weight: 800;
}

.btn-primary {
  color: #08110d;
  background: var(--green);
}

.btn-secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary-dark {
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--white);
}

.btn-plain {
  color: var(--ink);
  background: #eef2f5;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 860px;
  margin-top: 64px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
}

.trust-strip span {
  padding: 18px;
  background: rgba(13, 18, 23, 0.72);
  font-size: 14px;
  font-weight: 800;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}

.intro {
  padding-bottom: 40px;
}

.split,
.section-heading,
.fit {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 72px;
}

.text-block p,
.section-heading p,
.fit p {
  color: var(--muted);
  font-size: 18px;
}

.services {
  padding-top: 40px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 38px;
}

.service-card {
  min-height: 250px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service-featured {
  color: var(--white);
  background: var(--graphite);
  border-color: var(--graphite);
}

.service-featured h3 {
  color: var(--white);
}

.service-number {
  display: block;
  margin-bottom: 26px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

.service-featured .service-number,
.service-featured p {
  color: rgba(255, 255, 255, 0.9);
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.brands {
  padding-top: 40px;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 38px;
}

.brand-card {
  display: block;
  min-height: 320px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.brand-card:hover {
  transform: translateY(-2px);
  border-color: rgba(40, 209, 124, 0.55);
  box-shadow: 0 18px 38px rgba(17, 24, 39, 0.09);
}

.brand-card h3 {
  margin-top: 28px;
}

.brand-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.logo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e4eaf1;
  border-radius: 7px;
  color: #16202b;
  font-weight: 900;
  line-height: 1;
}

.logo-image-tile {
  overflow: hidden;
  background: #ffffff;
}

.logo-image-tile img {
  display: block;
  width: 100%;
  max-width: 190px;
  max-height: 50px;
  object-fit: contain;
}

.logo-image-tile .logo-wolf-img {
  max-width: 260px;
  max-height: 92px;
  transform: scale(2.45);
}

.logo-wolf-tile {
  min-height: 92px;
}

.logo-tile small {
  margin-left: 4px;
  font-size: 0.62em;
  font-weight: 800;
}

.logo-loxone {
  color: #ffffff;
  background: #6fbf2c;
  border-color: #6fbf2c;
  font-size: 24px;
}

.logo-deye {
  color: #ffffff;
  background: #d71920;
  border-color: #d71920;
  font-size: 23px;
}

.logo-victron {
  flex-direction: column;
  gap: 3px;
  color: #133f8c;
  background: linear-gradient(180deg, #ffffff 0 54%, #ffd73f 54% 100%);
  border-color: #d8e1f0;
  font-size: 18px;
}

.logo-victron small {
  margin-left: 0;
  color: #133f8c;
  font-size: 12px;
  text-transform: uppercase;
}

.logo-midea {
  color: #1398d5;
  background: #ffffff;
  border: 2px solid #1398d5;
  border-radius: 999px;
  font-size: 24px;
  font-style: italic;
}

.logo-wolf {
  color: #ffffff;
  background: #e30613;
  border-color: #e30613;
  font-size: 23px;
}

.logo-gobel-text {
  color: #ffffff;
  background: #17212b;
  border-color: #17212b;
  font-size: 24px;
}

.projects {
  padding-top: 40px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 38px;
}

.project-card {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  color: var(--white);
  background: var(--graphite);
  border-radius: var(--radius);
}

.project-large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 636px;
}

.project-wide {
  grid-column: span 2;
}

.project-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 220ms ease;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 10, 16, 0.78), rgba(5, 10, 16, 0.04) 62%);
}

.project-card:hover img {
  transform: scale(1.035);
}

.project-card div {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 22px;
}

.project-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.project-card h3 {
  max-width: 460px;
  margin: 0;
  font-size: 20px;
}

.benefits {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100vw - var(--max)) / 2));
  padding-left: max(20px, calc((100vw - var(--max)) / 2));
  color: var(--white);
  background: var(--graphite);
}

.benefits h2 {
  max-width: 760px;
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 36px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
}

.benefit-list p {
  min-height: 160px;
  margin: 0;
  padding: 24px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.04);
  font-size: 17px;
}

.partner-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
  gap: 54px;
  padding: 44px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(40, 209, 124, 0.18), rgba(29, 125, 242, 0.18)),
    #111827;
  border-radius: var(--radius);
}

.partner-panel p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 38px 0 0;
  list-style: none;
  counter-reset: step;
}

.process-list li {
  position: relative;
  min-height: 250px;
  padding: 70px 24px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: step;
}

.process-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 24px;
  left: 24px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

.process-list strong,
.process-list span {
  display: block;
}

.process-list strong {
  margin-bottom: 12px;
  font-size: 19px;
}

.process-list span {
  color: var(--muted);
}

.cta-section {
  padding: 110px max(20px, calc((100vw - var(--max)) / 2));
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(12, 17, 23, 0.95), rgba(12, 17, 23, 0.82)),
    url("energy4life-hero-v2.png") center / cover;
}

.cta-content {
  max-width: 780px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.contact-pill {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.contact-pill span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: var(--ink);
  background: var(--green);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}

.contact-pill:hover {
  background: rgba(255, 255, 255, 0.16);
}

.site-footer {
  padding: 56px max(20px, calc((100vw - var(--max)) / 2));
  color: rgba(255, 255, 255, 0.76);
  background: #0b1117;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.7fr;
  gap: 54px;
}

.footer-logo {
  display: block;
  width: 230px;
  max-width: 100%;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
}

.site-footer h2 {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 17px;
  line-height: 1.2;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer a {
  color: var(--white);
  font-weight: 700;
}

.site-footer nav {
  display: grid;
  gap: 10px;
}

body.modal-open {
  overflow: hidden;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 16, 0.72);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  padding: 34px;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.modal-panel h2 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 44px);
}

.modal-panel h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 19px;
}

.modal-panel p {
  color: var(--muted);
}

.modal-panel a {
  color: var(--green-dark);
  font-weight: 800;
}

.modal-scroll {
  max-height: calc(100vh - 220px);
  padding-right: 8px;
  overflow: auto;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  color: var(--ink);
  background: #eef2f5;
  border: 0;
  border-radius: 6px;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.cookie-option {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.cookie-option input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--green);
}

.cookie-option strong,
.cookie-option small {
  display: block;
}

.cookie-option strong {
  color: var(--ink);
}

.cookie-option small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.cookie-actions,
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cookie-actions {
  margin: 20px 0 18px;
}

.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 45;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.18);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 18px;
}

.cookie-banner p {
  margin-bottom: 0;
  color: var(--muted);
}

.legal-page {
  padding: 80px max(20px, calc((100vw - 900px) / 2));
}

.legal-content {
  padding: 48px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legal-content h1 {
  max-width: 760px;
  margin-bottom: 20px;
  color: var(--ink);
  font-size: clamp(36px, 5vw, 58px);
}

.legal-content h2 {
  margin-top: 36px;
  margin-bottom: 12px;
  font-size: 24px;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 17px;
}

.legal-content a {
  color: var(--green-dark);
  font-weight: 800;
}

.legal-note {
  padding: 16px 18px;
  background: #eefaf3;
  border-left: 4px solid var(--green);
}

@media (max-width: 940px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .hero {
    min-height: 660px;
  }

  .split,
  .section-heading,
  .fit,
  .partner-panel {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .service-grid,
  .brand-grid,
  .project-grid,
  .benefit-list,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-large {
    grid-column: span 2;
    min-height: 480px;
  }

  .project-wide {
    grid-column: span 2;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 12px;
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: 720px;
    align-items: center;
  }

  .hero-content {
    width: calc(100% - 32px);
    padding: 72px 0 32px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .trust-strip,
  .service-grid,
  .brand-grid,
  .project-grid,
  .benefit-list,
  .process-list {
    grid-template-columns: 1fr;
  }

  .project-large {
    grid-column: span 1;
    min-height: 360px;
  }

  .project-wide {
    grid-column: span 1;
  }

  .project-card {
    min-height: 300px;
  }

  .section {
    width: calc(100% - 32px);
    padding: 70px 0;
  }

  .intro {
    padding-bottom: 34px;
  }

  .services {
    padding-top: 34px;
  }

  .partner-panel {
    padding: 28px;
  }

  .cta-section {
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .contact-row {
    align-items: stretch;
  }

  .contact-pill {
    width: 100%;
    justify-content: center;
  }

  .contact-pill {
    overflow-wrap: anywhere;
  }

  .legal-page {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .legal-content {
    padding: 26px;
  }

  .modal {
    padding: 14px;
  }

  .modal-panel {
    padding: 26px;
  }

  .modal-scroll {
    max-height: calc(100vh - 190px);
  }

  .cookie-banner {
    grid-template-columns: 1fr;
    right: 14px;
    bottom: 14px;
    left: 14px;
    width: auto;
  }

  .cookie-banner-actions .btn,
  .cookie-actions .btn {
    width: 100%;
  }
}
