/* ============================================================
   EON Energia Solar — Site Institucional
   Complementos sobre o design system da LP (styles.css).
   Sem Pixel de conversão. Reaproveita marca, cores e tipografia.
   ============================================================ */

/* ---------- Navegação mobile ---------- */
.nav-toggle {
  display: none; background: none; border: 0; color: var(--ink);
  cursor: pointer; padding: 6px; line-height: 0;
}
.nav-toggle svg { width: 26px; height: 26px; }
.mobile-nav { display: none; flex-direction: column; background: #fff; border-top: 1px solid var(--line); padding: 6px 24px 14px; }
.mobile-nav a { padding: 13px 2px; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav a.cta { color: var(--green-700); }
.mobile-nav.open { display: flex; }
.header-nav a.navlink[aria-current="page"] { color: var(--ink); font-weight: 700; }
@media (max-width: 900px) { .nav-toggle { display: inline-flex; } }

/* ---------- Hero institucional ---------- */
.inst-hero-img {
  width: 100%; height: 100%; min-height: 320px; border-radius: 24px;
  object-fit: cover; display: block; box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.hero .eyebrow { color: rgba(255,255,255,0.6); }
.hero .eyebrow .dot { background: var(--green); }

/* ---------- Page hero (páginas internas) ---------- */
.page-hero { background: var(--black); color: #fff; position: relative; overflow: hidden; }
.page-hero .inner { padding-block: clamp(48px, 7vw, 92px); position: relative; z-index: 2; }
.page-hero .eyebrow { color: rgba(255,255,255,0.55); }
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.04; max-width: 20ch; margin-top: 14px; }
.page-hero p { margin-top: 18px; color: rgba(255,255,255,0.65); font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; max-width: 56ch; }

/* ---------- Faixa de números ---------- */
.stats { background: var(--black); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 6px; }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3.1rem); color: var(--green); line-height: 1; letter-spacing: -0.03em; }
.stat .lbl { margin-top: 8px; color: rgba(255,255,255,0.6); font-size: 0.95rem; line-height: 1.4; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; } }

/* ---------- Conteúdo em duas colunas ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split .media-img { width: 100%; border-radius: 24px; object-fit: cover; aspect-ratio: 4/3; display: block; box-shadow: var(--shadow-soft); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: -1; }
}

/* ---------- Cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
@media (max-width: 860px) { .cards-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .cards-2 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: #dadcdd; }
.card .ico { width: 50px; height: 50px; border-radius: 14px; background: rgba(0,220,93,0.12); color: var(--green-700); display: grid; place-items: center; margin-bottom: 18px; }
.card .ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; line-height: 1.2; }
.card p { color: var(--muted); font-size: 0.97rem; line-height: 1.55; }
.card.dark { background: var(--black); border-color: var(--black); }
.card.dark h3 { color: #fff; }
.card.dark p { color: rgba(255,255,255,0.62); }
.card.dark .ico { background: rgba(0,220,93,0.16); color: var(--green); }

/* ---------- Galeria de projetos ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; border-radius: 18px; overflow: hidden; position: relative; background: #000; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .45s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 16px; background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0)); color: #fff; font-weight: 700; font-size: 1rem; }
.gallery figcaption small { display: block; font-weight: 500; opacity: 0.82; font-size: 0.82rem; margin-top: 2px; }

/* ---------- Listas com check ---------- */
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); line-height: 1.5; }
.checklist li svg { flex: none; width: 22px; height: 22px; color: var(--green-700); margin-top: 1px; }
.checklist li b { color: var(--ink); }

/* ---------- Contato ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.contact-line { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.contact-line:last-child { margin-bottom: 0; }
.contact-line .ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(0,220,93,0.12); color: var(--green-700); display: grid; place-items: center; flex: none; }
.contact-line .ico svg { width: 22px; height: 22px; }
.contact-line .t small { display: block; color: var(--muted); font-size: 0.85rem; }
.contact-line .t a, .contact-line .t span { font-weight: 600; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.contact-line .t a:hover { color: var(--green-700); }

/* ---------- Helpers ---------- */
.bg-dark { background: var(--black); color: #fff; }
.bg-dark .h-section { color: #fff; }
.bg-dark .lead { color: rgba(255,255,255,0.62); }
.bg-gray { background: var(--gray); }
.head-center { text-align: center; max-width: 62ch; margin-inline: auto; }
.head-center .lead { margin-inline: auto; }
.mt-12 { margin-top: 12px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.section-cta { background: var(--green); color: var(--black); }
.section-cta .h-section { color: var(--black); }
.section-cta p { color: rgba(5,5,5,0.7); }

/* ============================================================
   Ajustes institucionais v2
   ============================================================ */

/* Cabeçalho com identidade da marca: fundo preto + logo verde */
.site-header { background: var(--black); border-bottom: 1px solid rgba(255,255,255,0.08); }
.site-header.scrolled { background: var(--black); border-color: rgba(255,255,255,0.16); }
.site-header .header-nav a.navlink { color: rgba(255,255,255,0.72); }
.site-header .header-nav a.navlink:hover,
.site-header .header-nav a.navlink[aria-current="page"] { color: #fff; }
.nav-toggle { color: #fff; }
.mobile-nav { background: var(--black); border-top-color: rgba(255,255,255,0.1); }
.mobile-nav a { color: #fff; border-bottom-color: rgba(255,255,255,0.08); }
.mobile-nav a.cta { color: var(--green); }

/* Slogan "Energia sem limites" */
.hero-slogan { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; color: var(--green); font-size: 1.1rem; letter-spacing: -0.01em; margin: 20px 0 0; }
.footer-slogan { color: var(--green); font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin: 2px 0 16px; }

/* Banner promocional (imagem da campanha do mês) */
.promo { padding-block: clamp(26px, 4vw, 44px); }
.promo .eyebrow { justify-content: center; display: flex; margin-bottom: 18px; }
.promo-link { display: block; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid var(--line); transition: transform .18s ease, box-shadow .18s ease; }
.promo-link:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(5,5,5,0.14); }
.promo-link img { width: 100%; height: auto; display: block; }

/* Sustentabilidade */
.sustain { background: var(--black); color: #fff; position: relative; overflow: hidden; }
.sustain-glyph { position: absolute; left: -6%; bottom: -25%; height: 150%; color: var(--green); opacity: 0.06; pointer-events: none; z-index: 1; }
.sustain .container { position: relative; z-index: 2; }
.sustain .eyebrow { color: rgba(255,255,255,0.55); }
.sustain h2 { color: #fff; }
.sustain .lead { color: rgba(255,255,255,0.62); }
.sustain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
@media (max-width: 860px) { .sustain-grid { grid-template-columns: 1fr; } }
.sustain-card .ico { width: 52px; height: 52px; border-radius: 14px; background: rgba(0,220,93,0.16); color: var(--green); display: grid; place-items: center; margin-bottom: 16px; }
.sustain-card .ico svg { width: 26px; height: 26px; }
.sustain-card h3 { color: #fff; font-size: 1.18rem; margin-bottom: 8px; }
.sustain-card p { color: rgba(255,255,255,0.6); font-size: 0.96rem; line-height: 1.55; }

/* Endereço */
.footer-address { font-style: normal; }
.map-card { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.map-card:hover { border-color: var(--green); box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.map-card .ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(0,220,93,0.12); color: var(--green-700); display: grid; place-items: center; flex: none; }
.map-card .ico svg { width: 22px; height: 22px; }
.map-card-t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.map-card-t strong { font-weight: 700; }
.map-card-t small { color: var(--muted); font-size: 0.88rem; margin-top: 2px; }
.map-card .arrow { width: 20px; height: 20px; color: var(--green-700); flex: none; }

/* Revelação ao rolar — bem perceptível (sobrepõe o translate base) */
.reveal { opacity: 0; transform: translateY(38px) scale(0.97); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal.in { transform: none; transition: none; } }
