:root {
  --ink: #17211b;
  --muted: #5d6a61;
  --line: #dfe6df;
  --soft: #f5f8f2;
  --green: #176c43;
  --green-dark: #0f4f32;
  --sun: #f5b631;
  --blue: #245b8f;
  --white: #fff;
  --shadow: 0 18px 42px rgba(23, 33, 27, .12);
}

* { box-sizing: border-box; }

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

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

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

.topbar {
  background: var(--green-dark);
  color: var(--white);
  font-size: 14px;
  padding: 8px 0;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img { width: 168px; height: auto; }

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
  font-weight: 700;
}

.desktop-nav a:not(.btn):hover,
.desktop-nav .active { color: var(--green); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(23, 108, 67, .22);
}

.btn:hover { background: var(--green-dark); }
.btn.secondary { background: var(--blue); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  font-size: 24px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 14px 0 20px;
}

.mobile-nav.show { display: block; }
.mobile-nav a { display: block; padding: 10px 0; font-weight: 700; }

.hero {
  min-height: 600px;
  display: flex;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(15,79,50,.9) 0%, rgba(23,108,67,.68) 46%, rgba(23,33,27,.18) 78%),
    url("https://images.unsplash.com/photo-1509391366360-2e959784a276?auto=format&fit=crop&w=1800&q=84") center/cover;
}

.hero-copy { max-width: 680px; padding: 80px 0; }
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--ink);
  background: var(--sun);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 900;
}

h1, h2, h3 { line-height: 1.12; margin: 0 0 14px; }
h1 { font-size: 52px; max-width: 780px; }
h2 { font-size: 34px; }
h3 { font-size: 20px; }
p { margin: 0 0 16px; }

.sub {
  max-width: 640px;
  margin-bottom: 26px;
  font-size: 20px;
}

.std { padding: 72px 0; }
.std.soft { background: var(--soft); }

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

.section-title { margin-bottom: 0; }
.intro {
  color: var(--muted);
  font-size: 19px;
  max-width: 760px;
}

.benefits-grid,
.brands-grid,
.projects,
.product-grid,
.service-grid,
.trust-grid {
  display: grid;
  gap: 18px;
}

.benefits-grid { grid-template-columns: repeat(4, 1fr); }
.brands-grid { grid-template-columns: repeat(4, 1fr); }
.projects, .service-grid { grid-template-columns: repeat(3, 1fr); }
.product-grid { grid-template-columns: repeat(3, 1fr); }
.trust-grid { grid-template-columns: repeat(4, 1fr); }

.benefit-card,
.brand,
.card,
.product-card,
.service-card,
.trust-card,
form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(23,33,27,.06);
}

.benefit-card,
.brand,
.product-card,
.service-card,
.trust-card { padding: 22px; }

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 210px;
}

.product-card p { flex: 1; }

.benefit-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.benefit-card h3 { margin: 0; }
.benefit-card p { display: none; }

.icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff3cf;
  color: var(--green-dark);
  font-size: 25px;
  font-weight: 900;
}

.brand {
  min-height: 118px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 16px;
}

.brand img {
  width: 100%;
  max-width: 160px;
  height: 76px;
  object-fit: contain;
  transform: scale(1.42);
  transform-origin: center;
}

.brand img[src*="sunfer"] {
  max-width: 160px;
  height: 76px;
  transform: scale(1.08);
}

.brand img[src*="deye"] {
  max-width: 160px;
  height: 76px;
  transform: scale(1.28);
}

.brand img[src*="solax"],
.brand img[src*="gsl"] {
  transform: scale(1.76);
}

.brand img[src*="goodwe"],
.brand img[src*="dmegc"] {
  transform: scale(1.55);
}

.brand img[src*="canadiansolar"] {
  transform: scale(1.48);
}

.brand img[src*="jasolar"] {
  transform: scale(1.34);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 42px;
  align-items: center;
}

.split-media img,
.card-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.about-photo img {
  aspect-ratio: 4 / 5;
  object-position: center 20%;
}

.card { overflow: hidden; }
.card-body { padding: 22px; }
.price { color: var(--green); font-size: 22px; font-weight: 900; }

.composite-media {
  position: relative;
  overflow: hidden;
  background: var(--soft);
}

.composite-media .main-project-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.composite-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23,33,27,0) 45%, rgba(23,33,27,.24));
  pointer-events: none;
}

.inset-project-img {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  width: 34%;
  max-width: 150px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border: 4px solid var(--white);
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(23, 33, 27, .28);
}

.dual-project-media {
  display: grid;
  grid-template-rows: 68% 32%;
  gap: 4px;
  aspect-ratio: 4 / 3;
  padding: 4px;
  background: var(--white);
}

.dual-project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dual-main-img {
  border-radius: 6px 6px 2px 2px;
  object-position: center 14%;
}

.dual-detail-img {
  border-radius: 2px 2px 6px 6px;
  object-position: center 42%;
}

.project-placeholder .card-media {
  aspect-ratio: 4 / 3;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(23,108,67,.12), rgba(245,182,49,.18)),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(23,108,67,.08) 12px 14px);
}

.project-list {
  display: grid;
  gap: 22px;
}

.installation-row {
  display: grid;
  grid-template-columns: 1.05fr 1.45fr 1.45fr 1fr;
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(23,33,27,.06);
}

.installation-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
  border-radius: 6px;
  background: var(--soft);
}

.installation-copy span {
  margin-bottom: 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.installation-copy h2 {
  margin-bottom: 12px;
  font-size: 25px;
}

.installation-copy p {
  margin: 0;
  color: var(--muted);
}

.project-shot {
  position: relative;
  min-height: 250px;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(23,108,67,.12), rgba(245,182,49,.18)),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(23,108,67,.08) 12px 14px);
}

.project-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-shot-full {
  background: #f6f8f4;
}

.project-shot-full img {
  object-fit: contain;
}

.project-shot-wide img {
  object-fit: cover;
  object-position: center;
}

.project-shot figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 6px 9px;
  border-radius: 4px;
  color: var(--white);
  background: rgba(15,79,50,.88);
  font-size: 12px;
  font-weight: 800;
}

.project-shot-empty {
  display: grid;
  place-items: center;
}

.project-shot-empty figcaption {
  position: static;
  color: var(--green-dark);
  background: var(--white);
}

.page-hero {
  padding: 74px 0;
  background:
    linear-gradient(90deg, rgba(15,79,50,.9), rgba(36,91,143,.55)),
    url("https://images.unsplash.com/photo-1497440001374-f26997328c1b?auto=format&fit=crop&w=1800&q=82") center/cover;
  color: var(--white);
}

.two-col {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 36px;
  align-items: start;
}

.contact-box {
  padding: 26px;
  border-left: 4px solid var(--sun);
  background: var(--soft);
}

form { padding: 24px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.full { grid-column: 1 / -1; }

input, select, textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd7cc;
  border-radius: 6px;
  padding: 12px;
  font: inherit;
}
textarea { min-height: 130px; resize: vertical; }
.small { color: var(--muted); font-size: 13px; margin-top: 12px; }

.footer {
  padding: 34px 0;
  color: var(--white);
  background: var(--ink);
}

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

.footer-logo img { width: 150px; filter: brightness(0) invert(1); }

.footer-proposal-box {
  width: 250px;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 2px;
  background: var(--white);
  color: var(--green-dark);
  font-weight: 900;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}

.footer-proposal-box:hover {
  background: #eef6ef;
}

.footer-content {
  display: grid;
  gap: 12px;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-actions .btn {
  min-height: 40px;
  padding: 10px 14px;
  box-shadow: none;
}

.footer-actions .btn.secondary {
  background: var(--white);
  color: var(--green-dark);
  border: 1px solid rgba(255,255,255,.32);
}

.footer-actions .btn.secondary:hover {
  background: #eef6ef;
}

.whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 25;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  font-size: 28px;
  font-weight: 900;
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  .hero {
    min-height: 560px;
    background-position: 54% center;
  }
  .benefits-grid, .projects, .product-grid, .service-grid, .trust-grid, .split, .two-col, .installation-row {
    grid-template-columns: 1fr;
  }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head, .footer-inner { align-items: start; flex-direction: column; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, 1120px); }
  .topbar { font-size: 13px; }
  .header-inner { min-height: 88px; }
  .logo img { width: 150px; }
  .footer-proposal-box { width: 100%; }
  h1 { font-size: 32px; }
  .sub { font-size: 17px; }
  .hero-copy { padding: 58px 0 64px; }
  .btn { width: 100%; text-align: center; }
  .footer-actions { width: auto; }
  .desktop-nav .btn,
  .whatsapp {
    width: 50px;
    height: 50px;
  }
  .whatsapp {
    right: 14px;
    bottom: 14px;
    font-size: 24px;
  }
  .std { padding: 54px 0; }
  .form-grid { grid-template-columns: 1fr; }
}
