/* ============================================
   SOLARE ENERGIA FOTOVOLTAICA — Styles v6
   Paleta: dourado quente, marrom terroso, creme
   Tipografia: Playfair Display + Inter
   ============================================ */

:root {
  --gold:       #8B6418;
  --gold-2:     #C49A2A;
  --gold-light: #E8C265;
  --gold-pale:  #F5E8C0;
  --brown:      #3D2B0F;
  --brown-2:    #5C3D18;
  --cream:      #FBF6EC;
  --stone:      #F2EBE0;
  --white:      #FFFFFF;
  --text:       #2C1F0E;
  --muted:      #7A6245;
  --dark:       #1A1108;
  --shadow-sm:  0 4px 16px rgba(60,30,0,.10);
  --shadow-md:  0 12px 40px rgba(60,30,0,.14);
  --shadow-lg:  0 24px 64px rgba(60,30,0,.18);
  --radius-sm:  12px;
  --radius-md:  20px;
  --radius-lg:  32px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
}

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
p { margin-top: 0; }

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

/* ==================
   TIPOGRAFIA
   ================== */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
  display: block;
}
.eyebrow.gold-light { color: var(--gold-light); }

h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 82px);
  font-weight: 700;
  line-height: 1.0;
  margin: 0 0 24px;
  color: var(--white);
}
h1 em { font-style: italic; font-weight: 400; color: var(--gold-light); }

h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--brown);
}
h2 em { font-style: italic; font-weight: 400; color: var(--gold); }
h2.white { color: var(--white); }
h2.white em { color: var(--gold-light); }

h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--brown);
}

.body-lg {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 18px;
}

.section-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 640px;
  margin: 0;
  line-height: 1.65;
}
.section-sub.light-muted { color: rgba(255,255,255,.62); }

/* ==================
   BOTÕES
   ================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  transition: all .22s ease;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(139,100,24,.35);
}
.btn-gold:hover { background: var(--gold-2); transform: translateY(-1px); box-shadow: 0 12px 32px rgba(139,100,24,.45); }

.btn-ghost {
  background: rgba(255,255,255,.14);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.38);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,.22); }

.btn-ghost-gold {
  background: transparent;
  color: var(--gold-light);
  border: 1.5px solid var(--gold-light);
}
.btn-ghost-gold:hover { background: rgba(232,194,101,.12); }

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  box-shadow: 0 8px 24px rgba(37,211,102,.3);
}
.btn-whatsapp:hover { background: #1ebe5a; transform: translateY(-1px); }

.btn-full { width: 100%; justify-content: center; border-radius: var(--radius-sm); }

/* ==================
   HEADER / NAV
   ================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,251,243,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139,100,24,.12);
  transition: box-shadow .3s;
}
.topbar.scrolled { box-shadow: 0 4px 20px rgba(60,30,0,.1); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 72px; width: auto; object-fit: contain; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brown);
}
.main-nav a { transition: color .18s; }
.main-nav a:hover { color: var(--gold); }
.main-nav .nav-cta {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--white);
  font-weight: 600;
}
.main-nav .nav-cta:hover { background: var(--gold-2); }

.main-nav .nav-admin {
  padding: 9px 16px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  border: 1.5px solid rgba(139,100,24,.25);
  font-weight: 500;
  font-size: 13px;
}
.main-nav .nav-admin:hover {
  background: var(--cream);
  border-color: var(--gold);
  color: var(--brown);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition: all .25s;
}

/* ==================
   HERO
   ================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.03);
  transition: transform 8s ease;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(20,10,0,.78) 0%,
    rgba(20,10,0,.54) 55%,
    rgba(20,10,0,.18) 100%
  );
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 100px 0 80px;
  max-width: 820px;
}
.hero-sub {
  font-size: clamp(17px, 2.4vw, 22px);
  color: rgba(255,255,255,.88);
  max-width: 660px;
  margin-bottom: 36px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  width: fit-content;
  gap: 0;
}
.stat { padding: 0 24px; }
.stat:first-child { padding-left: 0; }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}
.stat span {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,.68);
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.22);
}
.hero-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll-hint span {
  display: block;
  width: 20px;
  height: 32px;
  border: 2px solid rgba(255,255,255,.42);
  border-radius: 10px;
  position: relative;
}
.hero-scroll-hint span::after {
  content: '';
  display: block;
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,.7);
  border-radius: 2px;
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollHint 1.6s ease infinite;
}
@keyframes scrollHint { 0%,100% { opacity:1; top:5px; } 70% { opacity:0; top:14px; } }

/* ==================
   SECTIONS
   ================== */
.section { padding: 88px 0; }
.section-cream { background: var(--cream); }
.section-stone { background: var(--stone); }
.section-white { background: var(--white); }
.section-dark { background: var(--dark); padding-top: 100px; padding-bottom: 100px; }

.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin: 0 auto; }

/* ==================
   CONFORTO
   ================== */
.comfort-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.comfort-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.comfort-pills span {
  background: var(--white);
  border: 1px solid rgba(139,100,24,.20);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}
.comfort-card-inner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.comfort-card-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.comfort-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20,10,0,.82) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}
.comfort-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--white);
  margin: 0 0 8px;
  line-height: 1.3;
}
.comfort-brand {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* ==================
   SOLUÇÕES
   ================== */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.sol-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(232,194,101,.22);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  transition: all .25s;
}
.sol-card:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(232,194,101,.55);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
}
.sol-icon {
  font-size: 48px;
  margin-bottom: 22px;
  line-height: 1;
}
.sol-card h3 { color: var(--white); font-size: 22px; margin-bottom: 14px; }
.sol-card p { color: rgba(255,255,255,.72); font-size: 16px; margin: 0; line-height: 1.65; }

/* ==================
   PORTFÓLIO
   ================== */
.portfolio-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 40px;
}
.portfolio-grid {
  columns: 3 280px;
  column-gap: 18px;
}
.pf-card {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 18px;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(139,100,24,.08);
  transition: box-shadow .22s, transform .22s;
}
.pf-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pf-btn {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
}
.pf-btn img {
  width: 100%;
  height: auto;
  transition: transform .4s ease;
}
.pf-card:hover .pf-btn img { transform: scale(1.04); }
.pf-hover {
  position: absolute;
  inset: 0;
  background: rgba(20,10,0,.38);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .22s;
}
.pf-card:hover .pf-hover { opacity: 1; }
.pf-hover span {
  background: var(--gold);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
}
.pf-info { padding: 16px 18px; }
.pf-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.pf-info h3 { font-size: 16px; margin-bottom: 4px; color: var(--brown); }
.pf-info p { font-size: 13px; color: var(--muted); margin: 0; }

/* ==================
   PROCESSO
   ================== */
.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 16px;
}
.step {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(139,100,24,.08);
}
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.step-body h3 { font-size: 18px; margin-bottom: 8px; }
.step-body p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }
.step-arrow {
  flex-shrink: 0;
  align-self: center;
  font-size: 22px;
  color: var(--gold-pale);
  padding: 0 6px;
  margin-bottom: 0;
  font-weight: 300;
}

/* ==================
   LEAD / FORMULÁRIO
   ================== */
.lead-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.lead-copy h2 { margin-bottom: 16px; }
.lead-promise {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 22px;
  margin: 28px 0 32px;
}
.lead-promise strong { display: block; color: var(--brown); font-size: 16px; margin-bottom: 6px; }
.lead-promise span { color: var(--muted); font-size: 14px; }

.lead-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(139,100,24,.08);
}
.form-row { margin-bottom: 16px; }
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 0;
}
input, select, textarea {
  width: 100%;
  margin-top: 6px;
  border: 1.5px solid #DDD0B8;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(139,100,24,.12);
}
textarea { resize: vertical; }
.form-msg {
  font-size: 14px;
  margin: 12px 0 0;
  font-weight: 600;
  text-align: center;
}

/* ==================
   CTA FINAL
   ================== */
.final-cta {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
  text-align: center;
}
.final-cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(139,100,24,.22) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(196,154,42,.16) 0%, transparent 40%),
    linear-gradient(160deg, #1A1108 0%, #2C1F0E 100%);
}
.final-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}
.final-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}
.final-logo-wrap img {
  height: 96px;
  width: auto;
}
.final-inner h2 {
  color: var(--white);
  font-size: clamp(28px, 4vw, 46px);
  margin-bottom: 16px;
}
.final-inner p {
  color: rgba(255,255,255,.72);
  font-size: 18px;
  margin-bottom: 36px;
}
.final-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ==================
   FOOTER
   ================== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.82);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,.52);
  margin-top: 16px;
  max-width: 280px;
  line-height: 1.65;
}
.footer-logo {
  height: 64px;
  width: auto;
}
.footer-links, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links strong, .footer-contact strong {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.footer-links a, .footer-contact a, .footer-contact span {
  font-size: 14px;
  color: rgba(255,255,255,.52);
  transition: color .18s;
}
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 12px;
  color: rgba(255,255,255,.32);
}
.footer-crm {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 6px 14px;
  transition: all .18s;
  letter-spacing: .04em;
}
.footer-crm:hover {
  color: var(--white);
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.08);
}

/* ==================
   LIGHTBOX
   ================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.90);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  flex-direction: column;
  gap: 16px;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  border: 0;
  background: rgba(255,255,255,.12);
  color: var(--white);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s;
}
.lightbox-close:hover { background: rgba(255,255,255,.22); }
.lightbox p {
  color: rgba(255,255,255,.72);
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

/* ==================
   WHATSAPP FLUTUANTE
   ================== */
.wpp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  background: #25D366;
  color: var(--white);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(37,211,102,.42);
  transition: all .22s;
}
.wpp-float:hover { transform: scale(1.08); box-shadow: 0 12px 36px rgba(37,211,102,.52); }

/* ==================
   CRM STYLES
   ================== */
.crm-body { background: #f7f4ef; }
.crm-header { background: var(--dark); color: var(--white); padding: 28px 0; }
.crm-header h1 { color: var(--white); font-size: 32px; margin: 0 0 6px; font-family: var(--font-display); }
.crm-layout { padding: 28px 0 70px; }
.crm-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.crm-actions a {
  border: 0; border-radius: var(--radius-sm); padding: 12px 18px;
  font-weight: 600; cursor: pointer; background: var(--gold); color: var(--white); font-size: 14px;
}
.table-wrap {
  overflow-x: auto; background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; min-width: 1040px; }
th, td { padding: 14px 16px; border-bottom: 1px solid #ede8df; text-align: left; vertical-align: top; font-size: 14px; }
th { background: var(--cream); color: var(--brown); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.status { border: 1.5px solid #DDD0B8; border-radius: 8px; padding: 8px; background: var(--white); font-family: var(--font-body); }
.whatsapp-link {
  display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 8px;
  background: #25D366; color: var(--white); font-weight: 600; font-size: 13px;
}
.crm-message { color: var(--muted); font-size: 14px; }

/* ==================
   RESPONSIVO
   ================== */
@media (max-width: 960px) {
  .main-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(255,251,243,.98); border-bottom: 1px solid rgba(139,100,24,.12); padding: 20px 24px 28px; gap: 18px; backdrop-filter: blur(12px); }
  .main-nav.open { display: flex; }
  .nav-wrap { position: relative; }
  .menu-toggle { display: flex; }
  .brand-logo { height: 64px; }

  .comfort-layout { grid-template-columns: 1fr; gap: 40px; }
  .comfort-card-inner { aspect-ratio: 16/9; }

  .solutions-grid { grid-template-columns: 1fr 1fr; }
  .sol-card { padding: 32px 24px; }

  .lead-layout { grid-template-columns: 1fr; gap: 40px; }
  .lead-form { padding: 28px 22px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .process-steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); align-self: center; padding: 4px 0; }
  .step { width: 100%; }

  .portfolio-head-row { flex-direction: column; align-items: flex-start; }

  h2 { font-size: clamp(26px, 5vw, 40px); }
}

@media (max-width: 600px) {
  .solutions-grid { grid-template-columns: 1fr; }
  .hero-stats { padding: 16px 20px; }
  .stat { padding: 0 14px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
  .final-actions { flex-direction: column; align-items: center; }
  .wpp-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
  .portfolio-grid { columns: 2 160px; column-gap: 12px; }
  .pf-card { margin-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ==================
   FLUXO DE ENERGIA
   ================== */
.energy-flow-wrap {
  max-width: 780px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(139,100,24,.10);
  padding: 32px 24px;
}
.energy-svg { display: block; width: 100%; height: auto; }

@keyframes ef-flow-anim  { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
@keyframes ef-flow-down  { from { stroke-dashoffset: 52; } to { stroke-dashoffset: 0; } }
@keyframes ef-sun-pulse  { 0%,100%{opacity:.85} 50%{opacity:1} }
@keyframes ef-panel-glow { 0%,100%{opacity:.7} 50%{opacity:1} }
@keyframes ef-light-glow { 0%,100%{opacity:.6} 50%{opacity:1} }

.ef-flow-r    { stroke-dasharray: 8 5; animation: ef-flow-anim 1.1s linear infinite; }
.ef-flow-d    { stroke-dasharray: 8 5; animation: ef-flow-down 1.4s linear infinite; }
.ef-flow-credit { animation: ef-flow-down 2s linear infinite reverse; }
.ef-sun       { animation: ef-sun-pulse 2.4s ease-in-out infinite; }
.ef-panel     { animation: ef-panel-glow 2s ease-in-out infinite; }
.ef-light     { animation: ef-light-glow 1.8s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .ef-flow-r, .ef-flow-d, .ef-flow-credit,
  .ef-sun, .ef-panel, .ef-light { animation: none; }
}

@media (max-width: 600px) {
  .energy-flow-wrap { padding: 16px 8px; }
}

/* ── BATERIA INTERATIVA ── */
.bat-btn {
  padding: 10px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--color-border, #DDD0B8);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all .22s;
}
.bat-btn-active {
  background: #F5E8C0;
  border-color: #C49A2A;
  color: #5C3D18;
}
.bat-btn-night {
  background: #EDE0F5;
  border-color: #7A3B8C;
  color: #3C3489;
}
@keyframes bat-flow-r { from{stroke-dashoffset:32} to{stroke-dashoffset:0} }
@keyframes bat-flow-d { from{stroke-dashoffset:32} to{stroke-dashoffset:0} }
@keyframes bat-flow-u { from{stroke-dashoffset:0} to{stroke-dashoffset:-32} }
.bat-flow-r { stroke-dasharray:8 6; animation:bat-flow-r 1s linear infinite; }
.bat-flow-d { stroke-dasharray:8 6; animation:bat-flow-d 1.1s linear infinite; }
.bat-flow-u { stroke-dasharray:8 6; animation:bat-flow-u 1.1s linear infinite; }
@media(prefers-reduced-motion:reduce){ .bat-flow-r,.bat-flow-d,.bat-flow-u{animation:none;} }
