:root {
  --ink: #181d2f;
  --ink-2: #252b3f;
  --gold: #d1b800;
  --gold-2: #f0d821;
  --green: #2ca58d;
  --blue: #3264a8;
  --paper: #ffffff;
  --soft: #f5f7f8;
  --line: #dde2e6;
  --muted: #657080;
  --shadow: 0 18px 55px rgba(24, 29, 47, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

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

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(221, 226, 230, 0.8);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 52px;
  height: auto;
}

.brand::after {
  content: "PEGASUS ENERGY";
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-size: 0;
  cursor: pointer;
}

.nav-toggle::before {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(209, 184, 0, 0.14);
  color: var(--ink);
}

.site-nav a.nav-social {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(24, 119, 242, 0.18);
  color: #1877f2;
  background: rgba(24, 119, 242, 0.08);
}

.site-nav a.nav-social:hover {
  border-color: #1877f2;
  background: #1877f2;
  color: #ffffff;
}

.site-nav a.nav-social svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(209, 184, 0, 0.25);
}

.btn.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--paper);
  box-shadow: none;
}

.btn.outline {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: none;
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(24, 29, 47, 0.92), rgba(24, 29, 47, 0.68) 44%, rgba(24, 29, 47, 0.28)),
    url("../img/hero-solar.jpg") center / cover;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h1 {
  max-width: 760px;
  font-size: clamp(44px, 7vw, 92px);
  font-weight: 900;
}

.hero p {
  max-width: 620px;
  margin: 20px 0 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 780px;
  margin-top: 58px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.14);
}

.proof-item {
  padding: 22px;
  background: rgba(24, 29, 47, 0.5);
}

.proof-item strong {
  display: block;
  color: var(--gold-2);
  font-size: 30px;
  line-height: 1;
}

.proof-item span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.section {
  padding: 92px 0;
}

.section.alt {
  background: var(--soft);
}

.section.dark {
  background: var(--ink);
  color: var(--paper);
}

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

.section-head.center {
  display: block;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  max-width: 780px;
  font-size: clamp(31px, 4vw, 52px);
}

.section-head p {
  max-width: 580px;
  margin: 12px 0 0;
  color: var(--muted);
}

.dark .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 44px;
  align-items: center;
}

.media-frame {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--soft);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.copy p {
  color: var(--muted);
  font-size: 17px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.metric {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.metric strong {
  display: block;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.grid {
  display: grid;
  gap: 22px;
}

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

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.service-card,
.project-card,
.value-card,
.product-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 36px rgba(24, 29, 47, 0.07);
  overflow: hidden;
}

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

.solution-card {
  padding: 0;
}

.solution-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.solution-card-body {
  padding: 24px;
}

.service-card h3,
.project-card h3,
.value-card h3,
.product-card h3 {
  font-size: 22px;
}

.service-card p,
.project-card p,
.value-card p,
.product-card p {
  color: var(--muted);
}

.card-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 50%;
  background: rgba(44, 165, 141, 0.14);
  color: var(--green);
  font-weight: 900;
}

.project-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.product-preview-card img {
  height: 250px;
  padding: 18px;
  object-fit: contain;
  background: radial-gradient(circle at 50% 44%, #ffffff 0%, #f8faf8 58%, #eef2f0 100%);
}

.project-grid {
  align-items: stretch;
}

.project-grid .project-card {
  display: flex;
  flex-direction: column;
}

.project-card .card-body {
  padding: 24px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.project-meta {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-specs {
  display: grid;
  gap: 8px;
  margin: 18px 0 20px;
}

.project-specs div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.project-specs dt,
.project-specs dd {
  margin: 0;
  font-size: 13px;
}

.project-specs dt {
  color: var(--muted);
  font-weight: 800;
}

.project-specs dd {
  color: var(--ink-2);
  font-weight: 700;
}

.text-link {
  margin-top: auto;
  color: var(--blue);
  font-weight: 800;
}

.text-link:hover {
  color: var(--green);
}

.product-hero {
  padding: 86px 0 64px;
  background:
    linear-gradient(135deg, rgba(24, 29, 47, 0.95), rgba(37, 43, 63, 0.88)),
    url("../img/product-pe-lfphv-240.jpg") center / cover;
  color: var(--paper);
}

.product-hero h1 {
  max-width: 880px;
  font-size: clamp(38px, 5.8vw, 76px);
}

.product-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  margin-bottom: 28px;
}

.product-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: contain;
  padding: 22px;
  background: linear-gradient(180deg, #ffffff, #f6f7f5);
}

.product-content {
  padding: 30px;
  min-width: 0;
}

.product-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(209, 184, 0, 0.16);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.spec {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.spec span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.spec strong {
  display: block;
  margin-top: 3px;
  font-size: 16px;
}

.feature-list {
  padding-left: 18px;
  color: var(--muted);
}

.feature-list li + li {
  margin-top: 6px;
}

.page-hero {
  padding: 92px 0 70px;
  background: linear-gradient(135deg, var(--ink), #2d344d);
  color: var(--paper);
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(38px, 5vw, 72px);
}

.page-hero p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

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

.testimonial {
  max-width: 760px;
  margin: 36px auto 0;
  padding: 34px;
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.testimonial blockquote {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
}

.testimonial p {
  margin: 18px 0 0;
  color: var(--muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 30px;
  align-items: start;
}

.form-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

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

.form-field {
  display: grid;
  gap: 7px;
}

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

label {
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfcfd;
  font: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(209, 184, 0, 0.22);
  border-color: var(--gold);
}

.contact-card h3 {
  margin-bottom: 10px;
}

.contact-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.contact-list span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-list strong,
.contact-list a {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-weight: 800;
}

.status {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(44, 165, 141, 0.13);
  color: #136957;
  font-weight: 800;
}

.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: 72px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-inner h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.cta-inner p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.74);
}

.site-footer {
  padding: 32px 0;
  background: #101421;
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--gold-2);
}

@media (max-width: 920px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .nav-cta {
    width: 100%;
  }

  .site-nav a.nav-social {
    width: 100%;
  }

  .hero {
    min-height: 620px;
  }

  .hero-proof,
  .metric-row,
  .grid.three,
  .grid.two,
  .values-grid,
  .split,
  .contact-layout,
  .product-card {
    grid-template-columns: 1fr;
  }

  .section-head,
  .cta-inner,
  .footer-inner {
    display: block;
  }

  .footer-links {
    margin-top: 18px;
  }

  .media-frame img,
  .product-card img {
    height: 330px;
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .brand img {
    width: 46px;
  }

  .brand::after {
    max-width: 98px;
    font-size: 14px;
  }

  .hero {
    min-height: 600px;
  }

  .hero h1 {
    max-width: 8ch;
    font-size: 40px;
  }

  .product-hero h1,
  .page-hero h1 {
    font-size: 34px;
  }

  .product-content h2 {
    overflow-wrap: anywhere;
  }

  .hero p,
  .page-hero p,
  .product-hero p {
    font-size: 16px;
  }

  .section {
    padding: 64px 0;
  }

  .form-grid,
  .spec-grid {
    grid-template-columns: 1fr;
  }

  .product-content,
  .form-card,
  .service-card,
  .value-card,
  .contact-card {
    padding: 22px;
  }

  .solution-card {
    padding: 0;
  }

  .solution-card-body {
    padding: 22px;
  }
}
