/* TecEnergyCG Energia Solar — estilos globais
   Paleta: azul-petróleo + verde-solar + branco, acento amarelo-sol */

:root {
  --petrol: #0e4d5c;
  --petrol-dark: #073640;
  --petrol-light: #12697e;
  --green: #2fa86b;
  --green-dark: #1f7d4e;
  --yellow: #ffc531;
  --yellow-soft: #ffe9a8;
  --ink: #16242a;
  --body: #41545c;
  --muted: #6b7c84;
  --line: #e3ebed;
  --bg: #ffffff;
  --bg-soft: #f3f8f8;
  --bg-petrol-grad: linear-gradient(135deg, #0e4d5c 0%, #12697e 60%, #1f8a72 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(14, 77, 92, 0.10);
  --shadow-sm: 0 4px 14px rgba(14, 77, 92, 0.08);
  --maxw: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 700; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.section { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--green-dark);
  background: #e3f3ea;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-bottom: 12px; }
.section .lead { max-width: 620px; color: var(--muted); margin-bottom: 36px; font-size: 1.05rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--yellow); color: var(--petrol-dark); box-shadow: 0 8px 20px rgba(255,197,49,.35); }
.btn--primary:hover { background: #ffd35a; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-dark); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; color: var(--ink); font-size: 1.12rem; }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--bg-petrol-grad);
  display: grid; place-items: center; flex: none;
}
.brand small { display: block; font-size: .68rem; font-weight: 600; color: var(--green-dark); letter-spacing: .04em; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  color: var(--body); font-weight: 600; font-size: .96rem;
  padding: 9px 14px; border-radius: 8px;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--petrol); text-decoration: none; }
.nav-links a.active { color: var(--petrol); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: .2s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px; box-shadow: var(--shadow-sm);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin: 8px 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--bg-petrol-grad);
  color: #eaf6f6; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,197,49,.35), transparent 65%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 70px; padding-bottom: 78px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.1rem); margin-bottom: 18px; max-width: 16ch; }
.hero p { font-size: 1.15rem; max-width: 56ch; color: #d6ebec; margin-bottom: 30px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .badges { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 40px; }
.hero .badge { display: flex; align-items: center; gap: 9px; font-size: .92rem; color: #cfe7e8; }
.hero .badge svg { flex: none; }

/* ---------- Grids / Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ico {
  width: 52px; height: 52px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: #e3f3ea; color: var(--green-dark);
}
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { font-size: .97rem; color: var(--body); }

/* passos */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step .num {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  background: var(--yellow); color: var(--petrol-dark);
  font-weight: 800; font-size: 1.2rem; display: grid; place-items: center;
  margin-bottom: 14px;
}

/* benefícios (lista com check) */
.benefits { list-style: none; display: grid; gap: 16px; }
.benefits li { display: flex; gap: 13px; align-items: flex-start; }
.benefits .chk {
  width: 26px; height: 26px; border-radius: 50%; flex: none; margin-top: 2px;
  background: #e3f3ea; color: var(--green-dark); display: grid; place-items: center;
}
.benefits strong { color: var(--ink); display: block; }

/* split */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.panel {
  background: var(--bg-petrol-grad); color: #eaf6f6;
  border-radius: var(--radius); padding: 40px 34px;
}
.panel h3 { color: #fff; font-size: 1.4rem; margin-bottom: 10px; }
.panel p { color: #d6ebec; }
.stat-row { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 26px; }
.stat b { font-size: 2rem; color: var(--yellow); display: block; line-height: 1; }
.stat span { font-size: .85rem; color: #cfe7e8; }

/* FAQ */
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 22px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--ink);
  padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; color: var(--body); }

/* CTA faixa */
.cta-band { background: var(--bg-petrol-grad); color: #fff; border-radius: var(--radius); padding: 48px 40px; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem,3.5vw,2rem); margin-bottom: 10px; }
.cta-band p { color: #d6ebec; max-width: 50ch; margin: 0 auto 26px; }

/* ---------- Conteúdo (páginas internas) ---------- */
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 48px 0; }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-head p { color: var(--muted); max-width: 60ch; margin-top: 10px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--green-dark); }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin: 34px 0 12px; }
.prose h3 { font-size: 1.12rem; margin: 26px 0 8px; }
.prose p { margin-bottom: 16px; }
.prose ul { margin: 0 0 16px 20px; }
.prose li { margin-bottom: 8px; }

/* ---------- Formulário ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; color: var(--ink); font-size: .92rem; }
.field input, .field select, .field textarea {
  font-family: var(--font); font-size: 1rem; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; background: #fff; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(47,168,107,.15);
}
.field textarea { min-height: 130px; resize: vertical; }

.info-list { list-style: none; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ico { width: 44px; height: 44px; border-radius: 11px; background: #e3f3ea; color: var(--green-dark); display: grid; place-items: center; flex: none; }
.info-list b { color: var(--ink); display: block; }
.info-list a { color: var(--body); }

.map-embed { border: 0; width: 100%; height: 320px; border-radius: var(--radius); }

/* ---------- Footer ---------- */
.site-footer { background: var(--petrol-dark); color: #b9d2d6; padding: 56px 0 26px; font-size: .92rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand { display: flex; align-items: center; gap: 11px; font-weight: 800; color: #fff; font-size: 1.1rem; margin-bottom: 12px; }
.footer-brand .logo { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, var(--green), var(--yellow)); display: grid; place-items: center; flex: none; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a { color: #b9d2d6; }
.site-footer a:hover { color: #fff; }
.legal-data { line-height: 1.7; }
.legal-data b { color: #dcebef; color: #e8f1f2; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; color: #8fb0b5; font-size: .85rem; }

.note { background: var(--yellow-soft); border: 1px solid #f3d98a; color: #6b5414; border-radius: var(--radius-sm); padding: 12px 16px; font-size: .9rem; }
