:root {
  --ink: #071624;
  --ink-2: #173047;
  --muted: #667a8d;
  --line: rgba(17, 52, 78, 0.12);
  --panel: rgba(255, 255, 255, 0.84);
  --white: #fff;
  --navy: #06182a;
  --blue: #0b4f7c;
  --cyan: #1bc6d1;
  --green: #39c27b;
  --soft: #f5f9fb;
  --shadow: 0 24px 70px rgba(7, 22, 36, 0.12);
  --radius: 8px;
  --max: 1180px;
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f7fbfc;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(5, 19, 34, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(5, 19, 34, 0.94);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.18);
}

.nav-wrap {
  max-width: var(--max);
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  min-width: 220px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  display: block;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 700;
}

.brand-sub {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.nav-links a {
  position: relative;
  padding: 24px 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-cta {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 9px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-cta:hover {
  background: rgba(27, 198, 209, 0.18);
  border-color: rgba(27, 198, 209, 0.46);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: transparent;
  color: var(--white);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background: url("../img/solar-farm-aerial.jpg") center / cover no-repeat;
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 68% 26%, rgba(27, 198, 209, 0.2), transparent 30%),
    linear-gradient(105deg, rgba(2, 12, 24, 0.96) 0%, rgba(4, 22, 40, 0.78) 43%, rgba(4, 22, 40, 0.42) 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 82%);
}

.container {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
}

.hero-inner {
  padding: 118px 0 76px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #9af5ee;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
}

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

.hero h1 {
  max-width: 820px;
  margin: 22px 0 22px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #041522;
  background: linear-gradient(135deg, #44e0da, #5de28f);
  box-shadow: 0 16px 38px rgba(27, 198, 209, 0.25);
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 960px;
  margin-top: 72px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
  overflow: hidden;
}

.metric {
  padding: 24px;
  background: rgba(4, 22, 40, 0.38);
}

.metric strong {
  display: block;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.section {
  padding: 96px 0;
  background: #fff;
}

.section.alt {
  background:
    radial-gradient(circle at 8% 12%, rgba(27, 198, 209, 0.08), transparent 28%),
    linear-gradient(180deg, #f6fafb, #edf5f7);
}

.section.dark {
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(5, 21, 37, 0.96), rgba(7, 54, 70, 0.88)),
    url("../img/utility-solar.jpg") center / cover no-repeat;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 42px;
}

.section-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dark .section-kicker {
  color: #87f0e6;
}

.section-title {
  max-width: 720px;
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
}

.section-desc {
  max-width: 500px;
  color: var(--muted);
}

.dark .section-desc {
  color: rgba(255, 255, 255, 0.7);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 54px;
  align-items: center;
}

.glass-panel {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-list {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  color: var(--ink-2);
}

.check {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(57, 194, 123, 0.12);
  color: #0d9652;
  font-weight: 900;
}

.image-frame {
  position: relative;
  min-height: 470px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.image-frame img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5, 21, 37, 0.46));
}

.floating-card {
  position: absolute;
  left: 24px;
  bottom: 24px;
  width: min(78%, 300px);
  padding: 18px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(5, 21, 37, 0.68);
  backdrop-filter: blur(14px);
  z-index: 2;
}

.grid-3,
.grid-4 {
  display: grid;
  gap: 22px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.case-card,
.news-card,
.value-card,
.cert-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-card:hover,
.case-card:hover,
.news-card:hover,
.value-card:hover,
.cert-card:hover {
  transform: translateY(-4px);
  border-color: rgba(27, 198, 209, 0.32);
  box-shadow: 0 20px 54px rgba(7, 22, 36, 0.1);
}

.service-card,
.value-card,
.cert-card {
  padding: 28px;
}

.service-icon,
.value-icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: #063247;
  background: linear-gradient(135deg, rgba(27, 198, 209, 0.18), rgba(57, 194, 123, 0.18));
}

.service-icon svg,
.value-icon svg {
  width: 25px;
  height: 25px;
}

.service-card h3,
.case-card h3,
.news-card h3,
.value-card h3,
.cert-card h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.35;
}

.service-card p,
.case-card p,
.news-card p,
.value-card p,
.cert-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: #0b5f65;
  background: rgba(27, 198, 209, 0.1);
  font-size: 12px;
  font-weight: 700;
}

.case-img {
  aspect-ratio: 4 / 3;
  background: #d9e8ed;
  overflow: hidden;
}

.case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.case-card:hover .case-img img {
  transform: scale(1.04);
}

.case-body,
.news-body {
  padding: 24px;
}

.case-meta,
.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.flow-step {
  position: relative;
  padding: 24px 18px;
  min-height: 176px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.flow-step::after {
  content: "";
  position: absolute;
  right: -15px;
  top: 50%;
  width: 15px;
  height: 1px;
  background: rgba(135, 240, 230, 0.42);
}

.flow-step:last-child::after {
  display: none;
}

.flow-num {
  display: block;
  margin-bottom: 18px;
  color: #87f0e6;
  font-weight: 900;
}

.flow-step h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.flow-step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
}

.stats-band strong {
  display: block;
  font-size: 34px;
}

.stats-band span {
  color: rgba(255, 255, 255, 0.64);
}

.page-hero {
  padding: 154px 0 74px;
  color: var(--white);
  background:
    linear-gradient(112deg, rgba(4, 18, 32, 0.96), rgba(6, 45, 59, 0.74)),
    url("../img/solar-field.jpg") center / cover no-repeat;
}

.page-hero h1 {
  max-width: 820px;
  margin: 14px 0 16px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 22px;
  padding-left: 22px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(var(--cyan), var(--green));
}

.timeline-item {
  position: relative;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 28px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 0 6px rgba(27, 198, 209, 0.12);
}

.timeline-item strong {
  display: block;
  color: var(--blue);
  font-size: 20px;
}

.cert-card {
  min-height: 240px;
  background:
    linear-gradient(135deg, rgba(27, 198, 209, 0.08), transparent 42%),
    #fff;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #063247;
  background: radial-gradient(circle, rgba(57, 194, 123, 0.22), rgba(27, 198, 209, 0.08));
  border: 1px solid rgba(27, 198, 209, 0.24);
}

.contact-grid {
  display: block;
}

.contact-panel {
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  box-shadow: none;
}

.contact-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.contact-head h2 {
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.18;
}

.contact-head p {
  color: var(--muted);
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.contact-item {
  min-height: 132px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 50px rgba(7, 22, 36, 0.07);
}

.contact-item strong {
  display: block;
  margin-bottom: 6px;
}

.contact-item span,
.contact-item a {
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--ink-2);
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(17, 52, 78, 0.16);
  border-radius: 6px;
  padding: 12px 13px;
  background: #f8fbfc;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 136px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(27, 198, 209, 0.74);
  box-shadow: 0 0 0 4px rgba(27, 198, 209, 0.12);
}

.map-box {
  min-height: 300px;
  margin-top: 22px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(rgba(6, 24, 42, 0.84), rgba(6, 24, 42, 0.62)),
    url("../img/bipv-facade.jpg") center / cover no-repeat;
  display: grid;
  place-items: center;
  color: var(--white);
  text-align: center;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 38px;
}

.pagination a {
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-2);
  background: #fff;
}

.pagination a.is-current {
  color: #041522;
  border-color: transparent;
  background: linear-gradient(135deg, #44e0da, #5de28f);
}

.site-footer {
  color: rgba(255, 255, 255, 0.72);
  background: #041522;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 38px;
  padding: 60px 0 34px;
}

.footer-main h3,
.footer-main h4 {
  margin: 0 0 16px;
  color: var(--white);
}

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

.footer-links a:hover {
  color: #87f0e6;
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links.is-open {
    position: fixed;
    display: grid;
    align-content: start;
    gap: 0;
    inset: 72px 0 0 0;
    padding: 18px 24px 32px;
    background: rgba(5, 19, 34, 0.98);
  }

  .nav-links.is-open a {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
  }

  .nav-links a::after {
    display: none;
  }

  .hero-metrics,
  .grid-4,
  .flow,
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-step::after {
    display: none;
  }

  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 32px, var(--max));
  }

  .brand {
    min-width: 0;
  }

  .brand-sub {
    display: none;
  }

  .nav-wrap {
    height: 66px;
    padding: 0 16px;
  }

  .nav-links.is-open {
    inset: 66px 0 0 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 118px 0 46px;
  }

  .hero h1 {
    font-size: clamp(36px, 11vw, 52px);
  }

  .hero-actions,
  .section-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-metrics,
  .grid-3,
  .grid-4,
  .stats-band,
  .flow,
  .form-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .metric,
  .service-card,
  .value-card,
  .cert-card,
  .case-body,
  .news-body,
  .glass-panel {
    padding: 22px;
  }

  .contact-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 66px 0;
  }

  .section-head {
    display: grid;
    gap: 18px;
    margin-bottom: 30px;
  }

  .image-frame {
    min-height: 360px;
  }

  .page-hero {
    padding: 124px 0 54px;
  }
}
