:root {
  --green-dark: #0d4f33;
  --green: #2b8a3e;
  --green-light: #9ed83c;
  --text: #10243e;
  --muted: #5f6f7f;
  --bg: #ffffff;
  --surface: #f5f8f7;
  --border: rgba(16, 36, 62, 0.12);
  --shadow: 0 20px 50px rgba(10, 25, 47, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: padding 0.4s ease;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}
.brand img, .footer-brand img {
  width: auto;
  max-width: 240px;
  height: 56px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a, .nav-cta, .btn, .btn-light, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 700;
  transition: 0.2s ease;
}
.nav-links a.active, .nav-links a:hover, .nav-cta, .btn {
  background: var(--green);
  color: #fff;
}
.site-header .navbar,
.site-header-home .navbar-home {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: blur(0);
}
.site-header.is-scrolled .navbar,
.site-header-home.is-scrolled .navbar-home {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--border);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(14px);
}
.site-header.is-scrolled .navbar {
  padding-top: 10px;
  padding-bottom: 10px;
}
.site-header .nav-link-home,
.site-header-home .nav-link-home {
  color: #fff;
}
.site-header.is-scrolled .nav-link-home,
.site-header-home.is-scrolled .nav-link-home {
  color: var(--text);
}
.site-header .nav-link-home:hover,
.site-header .nav-link-home.active,
.site-header-home .nav-link-home:hover,
.site-header-home .nav-link-home.active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.site-header.is-scrolled .nav-link-home:hover,
.site-header.is-scrolled .nav-link-home.active,
.site-header-home.is-scrolled .nav-link-home:hover,
.site-header-home.is-scrolled .nav-link-home.active {
  background: var(--green);
  color: #fff;
}
.site-header .nav-cta-home,
.site-header-home .nav-cta-home {
  background: #fff;
  color: var(--text);
}
.site-header.is-scrolled .nav-cta-home,
.site-header-home.is-scrolled .nav-cta-home {
  background: var(--green);
  color: #fff;
}
.site-header .menu-toggle-home span,
.site-header-home .menu-toggle-home span {
  background: #fff;
}
.site-header.is-scrolled .menu-toggle-home span,
.site-header-home.is-scrolled .menu-toggle-home span {
  background: var(--text);
}
.btn-light {
  background: #fff;
  color: var(--text);
}
.btn-outline {
  border: 2px solid var(--green);
  color: var(--green);
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span { width: 22px; height: 2px; background: var(--text); }
.mobile-menu {
  display: none;
  margin-top: 10px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}
.mobile-menu .nav-links { flex-direction: column; align-items: stretch; }
.mobile-menu .nav-links a, .mobile-menu .nav-cta { width: 100%; }

.hero, .page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
}
.hero-media,
.page-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero-media {
  object-position: center 32%;
}
.hero::before, .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 31, 27, 0.55);
}
.hero-content, .page-hero .container { position: relative; z-index: 1; }
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
}
.page-hero {
  min-height: 420px;
  display: flex;
  align-items: flex-end;
}
.hero .container, .page-hero .container { padding: 130px 0 100px; }
.hero h1 { max-width: 720px; margin: 0 0 22px; font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: 1.05; }
.page-hero h1 { margin: 0 0 12px; font-size: clamp(2.4rem, 4vw, 4rem); }
.hero p, .page-hero p { max-width: 720px; font-size: 1.1rem; line-height: 1.7; }
.hero-home .btn { width: auto; }

.section { padding: 88px 0; }
.section-muted { background: var(--surface); }
.section-dark { background: linear-gradient(135deg, var(--green-dark), var(--green)); color: #fff; }
.section-title { margin: 0 0 18px; font-size: clamp(2rem, 3.6vw, 3rem); }
.section-subtitle { color: var(--muted); font-size: 1.06rem; line-height: 1.8; }
.section-copy { text-align: left; }
.section-grid { align-items: center; }
.text-gradient {
  background: linear-gradient(135deg, var(--green-light), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.market-highlight {
  color: #5ea81f;
  font-weight: 700;
}

.grid-2, .grid-3, .grid-4, .grid-6, .grid-7 { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }

.card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}
.media-card {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.media-card img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}
.logo-bar img {
  max-height: 48px;
  margin: 0 auto;
  object-fit: contain;
  opacity: 0.8;
}
.cover-block {
  text-align: center;
  background: linear-gradient(rgba(12, 31, 27, 0.55), rgba(12, 31, 27, 0.55)), url("assets/solar-cover.avif") center/cover fixed;
  color: #fff;
}
.solar-cover-html .container {
  text-align: center;
}
.cta-grid .cta-card {
  min-height: 320px;
  padding: 48px 28px;
  text-align: center;
  color: #fff;
  background: linear-gradient(145deg, var(--green-dark), var(--green));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.cta-grid {
  gap: 0;
}
.cta-grid .cta-card + .cta-card {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.cta-grid-html .btn-light {
  width: auto;
  min-width: 240px;
}
.gallery-grid { columns: 3; column-gap: 18px; }
.gallery-item {
  break-inside: avoid;
  margin-bottom: 18px;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-fade {
  margin-top: 36px;
  padding: 40px 24px;
  text-align: center;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(94,168,31,0.08) 50%, rgba(255,255,255,0) 100%);
}
.gallery-fade-text {
  margin: 0;
  color: #5ea81f;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  opacity: 0;
  transform: translateY(18px);
}
.gallery-fade-text.is-visible {
  animation: projectsFadeIn 1s ease-out both;
}
@keyframes projectsFadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-fade-text,
  .gallery-fade-text.is-visible {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
.testimonial { text-align: center; color: #fff; }
.testimonial p { font-size: 1.24rem; line-height: 1.8; }
.testimonial-gallery {
  position: relative;
  margin-top: 24px;
}
.testimonial-slide {
  display: none;
  border-radius: 28px;
  backdrop-filter: blur(8px);
}
.testimonial-slide.is-active {
  display: block;
}
.testimonial-controls {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.testimonial-arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}
.testimonial-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}
.testimonial-dot.is-active {
  background: #fff;
}
.market-bullets {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}
.market-bullets li {
  padding: 14px 16px;
  border: 1px solid rgba(94, 168, 31, 0.25);
  border-radius: 18px;
  background: rgba(94, 168, 31, 0.12);
  color: #5ea81f;
}
.contact-list { display: grid; gap: 20px; }
.contact-item strong { display: block; margin-bottom: 6px; }

form { display: grid; gap: 16px; }
label { display: block; margin-bottom: 8px; font-size: 0.95rem; font-weight: 700; }
input, textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font: inherit;
  background: #fff;
}
input:focus, textarea:focus {
  outline: 2px solid rgba(43, 138, 62, 0.25);
  border-color: var(--green);
}
.form-feedback { padding: 14px 16px; border-radius: 14px; font-weight: 600; }
.form-feedback.success { background: #e7f8eb; color: #176133; }
.form-feedback.error { background: #fdecec; color: #a12c2c; }

.site-footer { color: #fff; background: #0f2240; }
.footer-grid {
  display: grid;
  gap: 24px;
  align-items: center;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 48px 0;
  text-align: center;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.footer-social a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
}
.footer-social svg { width: 22px; height: 22px; fill: currentColor; }
.footer-contact { justify-self: end; }
.footer-bottom {
  padding: 16px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.74);
}
.floating-whatsapp {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 20px 36px rgba(10, 25, 47, 0.22);
  transform: translateX(-50%);
}

.sr-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.sr-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .nav-desktop, .desktop-only { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-menu.is-open { display: block; }
  .grid-2, .grid-3, .footer-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-6, .grid-7 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-contact { justify-self: center; }
  .gallery-grid { columns: 2; }
  .hero .container, .page-hero .container,
  .section-dark .container,
  .section .container {
    text-align: center;
  }
  .section-copy {
    text-align: center;
  }
  .hero p, .page-hero p {
    margin-left: auto;
    margin-right: auto;
  }
  .btn, .btn-light, .btn-outline, .nav-cta {
    width: 100%;
    max-width: 340px;
  }
  .navbar {
    padding: 12px 18px;
  }
  .brand img, .footer-brand img {
    max-width: 220px;
    height: 52px;
  }
  .media-card img {
    min-height: 280px;
  }
  .contact-section-html .btn,
  .cta-grid-html .btn-light,
  .hero-home .btn {
    width: 100%;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
  .floating-whatsapp {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .hero .container, .page-hero .container { padding: 110px 0 86px; }
  .page-hero {
    min-height: 360px;
  }
  .page-hero-media {
    object-position: center 30%;
  }
  .gallery-grid { columns: 1; }
  .container { width: min(100% - 24px, 1160px); }
  .section { padding: 72px 0; }
  .hero h1, .page-hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.6rem);
  }
  .hero p, .page-hero p, .section-subtitle {
    font-size: 1rem;
  }
  .grid-4, .grid-6, .grid-7 { grid-template-columns: 1fr; }
  .cta-grid .cta-card {
    min-height: 260px;
    padding: 40px 22px;
  }
  .cta-grid .cta-card + .cta-card {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .logo-bar img {
    max-height: 40px;
  }
  .footer-grid {
    padding: 40px 0;
  }
}

@media (max-width: 560px) {
  .navbar {
    border-radius: 24px;
  }
  .brand img, .footer-brand img {
    max-width: 180px;
    height: 46px;
  }
  .hero .container, .page-hero .container {
    padding: 100px 0 72px;
  }
  .page-hero {
    min-height: 320px;
  }
  .page-hero-media {
    object-position: center 28%;
  }
  .media-card img {
    min-height: 220px;
  }
  .card {
    padding: 22px;
  }
}
