/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-900: #0c1a3a;
  --blue-800: #1e3a6e;
  --blue-700: #1e40af;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-100: #dbeafe;
  --yellow-500: #F59E0B;
  --yellow-400: #FBBF24;
  --yellow-300: #FDE68A;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-400: #9ca3af;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section--dark { background: var(--blue-900); }
.section--gray { background: var(--gray-100); }

/* ===== TYPOGRAPHY HELPERS ===== */
.section-badge {
  display: inline-block;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-badge--light {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-title--light { color: var(--white); }

.section-desc { color: var(--gray-600); font-size: 1.05rem; max-width: 540px; }
.section-desc--light { color: rgba(255,255,255,0.75); }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-desc { margin: 0 auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--lg { padding: 16px 32px; font-size: 1.05rem; }
.btn--full { width: 100%; justify-content: center; }

.btn--primary {
  background: var(--green-500);
  color: var(--white);
  border-color: var(--green-500);
}
.btn--primary:hover {
  background: var(--green-600);
  border-color: var(--green-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(34,197,94,.35);
}

.btn--whatsapp {
  background: #25d366;
  color: var(--white);
  border-color: #25d366;
  font-size: 0.88rem;
  padding: 10px 20px;
}
.btn--whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.header__logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.footer__logo-img {
  height: 56px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  margin-bottom: 14px;
}

.logo-mark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 1px;
}
.logo-mr {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--blue-700);
  letter-spacing: -0.02em;
}
.logo-eng {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--gray-700);
  letter-spacing: 0.12em;
}
.logo-sol {
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--yellow-500);
  letter-spacing: 0.08em;
}
.logo-mark--white .logo-eng { color: rgba(255,255,255,0.8); }
.logo-mark--white .logo-sol { color: var(--yellow-400); }
.logo-mark--white .logo-mr { color: var(--white); }

.header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  margin-right: 16px;
}
.header__nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  transition: color var(--transition);
}
.header__nav a:hover { color: var(--blue-600); }

.header__cta { flex-shrink: 0; }

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.header__burger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--gray-800);
  border-radius: 3px;
  transition: all var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background-color: var(--blue-900);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0;
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12,26,58,0.92) 0%, rgba(30,58,110,0.85) 50%, rgba(15,45,110,0.88) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.3);
  color: var(--yellow-400);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero__title span { color: var(--yellow-400); }

.hero__sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  max-width: 560px;
  line-height: 1.7;
}
.hero__sub strong { color: var(--yellow-400); }

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero__stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 40px;
}
.hero__stat { text-align: left; }
.hero__stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--yellow-400);
  line-height: 1;
}
.hero__stat span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

.hero__solar-icon {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: min(500px, 40vw);
  opacity: 0.07;
  pointer-events: none;
}

/* ===== SOBRE ===== */
.sobre__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.sobre__text p {
  color: var(--gray-600);
  margin-bottom: 16px;
  font-size: 1.02rem;
  line-height: 1.75;
}
.sobre__lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}
.sobre__lista li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--gray-700);
}
.sobre__lista li svg {
  width: 18px;
  height: 18px;
  color: var(--green-500);
  flex-shrink: 0;
}

.sobre__cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sobre__card {
  padding: 28px;
  border-radius: var(--radius);
  border-left: 4px solid transparent;
  background: var(--gray-100);
  transition: transform var(--transition), box-shadow var(--transition);
}
.sobre__card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}
.sobre__card--solar { border-left-color: var(--yellow-500); }
.sobre__card--eletrico { border-left-color: var(--blue-500); }
.sobre__card--construcao { border-left-color: var(--green-500); }

.sobre__card-icon { font-size: 2rem; margin-bottom: 10px; }
.sobre__card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; color: var(--gray-900); }
.sobre__card p { font-size: 0.9rem; color: var(--gray-600); }

/* ===== SERVIÇOS ===== */
.servicos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.servico-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.servico-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(59,130,246,0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
}
.servico-card__icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
}
.servico-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.servico-card p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  flex: 1;
}
.servico-card__link {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--yellow-400);
  transition: gap var(--transition);
}
.servico-card__link:hover { color: var(--yellow-300); }

/* ===== BENEFÍCIOS ===== */
.beneficios__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.beneficio-item {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.beneficio-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--yellow-500));
  transform: scaleX(0);
  transition: transform var(--transition);
}
.beneficio-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.beneficio-item:hover::before { transform: scaleX(1); }

.beneficio-item__number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--blue-100);
  line-height: 1;
  margin-bottom: 16px;
}
.beneficio-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.beneficio-item p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.65;
}
.beneficio-item strong { color: var(--blue-700); }

/* ===== COMO FUNCIONA ===== */
.passos {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
}

.passo {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
}
.passo__num {
  width: 56px;
  height: 56px;
  background: var(--blue-700);
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(37,99,235,.4);
}
.passo__content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.passo__content p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.6;
}
.passo__arrow {
  font-size: 1.8rem;
  color: var(--blue-300);
  padding-top: 16px;
  flex-shrink: 0;
  align-self: flex-start;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-900) 100%);
  padding: 80px 0;
}
.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-banner__text h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}
.cta-banner__text p { color: rgba(255,255,255,0.75); font-size: 1rem; }
.cta-banner__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== CONTATO ===== */
.contato__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contato__info .section-title { margin-bottom: 12px; }
.contato__info > p { color: var(--gray-600); margin-bottom: 32px; }

.contato__opcoes {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contato__opcao {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  cursor: pointer;
}
.contato__opcao:hover {
  border-color: var(--blue-400);
  box-shadow: var(--shadow);
  transform: translateX(4px);
}
.contato__opcao--whatsapp {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.contato__opcao--whatsapp:hover { border-color: var(--green-500); }

.contato__opcao-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contato__opcao-icon--blue { background: var(--blue-600); }
.contato__opcao-icon--gray { background: var(--gray-600); }
.contato__opcao-icon--orange { background: #f97316; }

.contato__opcao div strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-900);
}
.contato__opcao div span {
  display: block;
  font-size: 0.88rem;
  color: var(--gray-700);
}
.contato__opcao div small {
  display: block;
  font-size: 0.78rem;
  color: var(--gray-400);
}

.contato__form-wrap {
  background: var(--gray-100);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}
.contato__form-wrap h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 28px;
}

.contato__form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-700);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.form-group textarea { resize: vertical; }

/* ===== FOOTER ===== */
.footer { background: var(--gray-900); color: var(--white); padding: 72px 0 0; }

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  margin-top: 16px;
  margin-bottom: 16px;
  max-width: 280px;
  line-height: 1.6;
}
.footer__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yellow-400);
  font-weight: 700;
  font-size: 1.05rem;
}
.footer__phone:hover { color: var(--yellow-300); }

.footer__links h4,
.footer__services h4,
.footer__contact h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.footer__links ul,
.footer__services ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links a,
.footer__services a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.footer__links a:hover,
.footer__services a:hover { color: var(--yellow-400); }

.footer__contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
}
.footer__contact svg { flex-shrink: 0; opacity: 0.6; }
.footer__site {
  display: block;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--blue-400);
  font-weight: 600;
}
.footer__site:hover { color: var(--yellow-400); }

.footer__bottom {
  padding: 20px 0;
  background: rgba(0,0,0,0.3);
}
.footer__bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ===== GALERIA ===== */
.galeria__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

.galeria__item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.galeria__item--destaque {
  grid-row: 1 / 3;
}

.galeria__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.galeria__item--destaque img { max-height: 520px; }
.galeria__item:not(.galeria__item--destaque) img { max-height: 250px; }

.galeria__item:hover img { transform: scale(1.03); }

@media (max-width: 768px) {
  .galeria__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .galeria__item--destaque { grid-row: auto; }
  .galeria__item--destaque img,
  .galeria__item:not(.galeria__item--destaque) img { max-height: 260px; }
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition: all var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.65);
}
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,.4);
  animation: pulse-ring 2s infinite;
}

.whatsapp-float__tooltip {
  position: absolute;
  right: 72px;
  background: var(--gray-900);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.whatsapp-float:hover .whatsapp-float__tooltip { opacity: 1; }

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  70% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .servicos__grid { grid-template-columns: repeat(2, 1fr); }
  .beneficios__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .header__nav { display: none; }
  .header__cta { display: none; }
  .header__burger { display: flex; }

  .header__nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    gap: 16px;
    z-index: 999;
  }

  .hero { min-height: 90vh; padding: 60px 0; }
  .hero__solar-icon { display: none; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { text-align: center; justify-content: center; }
  .hero__stats { gap: 28px; }

  .sobre__inner { grid-template-columns: 1fr; gap: 40px; }

  .servicos__grid { grid-template-columns: 1fr; }
  .beneficios__grid { grid-template-columns: 1fr; }

  .passos { flex-direction: column; gap: 24px; }
  .passo__arrow { display: none; }
  .passo { align-items: flex-start; text-align: left; flex-direction: row; gap: 20px; padding: 0; }
  .passo__num { flex-shrink: 0; margin-bottom: 0; }

  .cta-banner__inner { flex-direction: column; text-align: center; }
  .cta-banner__actions { justify-content: center; }

  .contato__inner { grid-template-columns: 1fr; gap: 48px; }
  .contato__form-wrap { padding: 28px 20px; }

  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__bottom .container { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 2rem; }
  .hero__stats { flex-direction: column; gap: 20px; }
  .contato__opcao { padding: 14px 16px; }
  .contato__opcao-icon { width: 44px; height: 44px; }
}
