/* ============================================================
   ETERNITY ENERGIA — Design System
   ============================================================ */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@700&family=Manrope:wght@700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;600&display=swap');

/* Variables */
:root {
  --amarelo:    #fab900;
  --escuro:     #1a2228;
  --carvao:     #0d1318;
  --cinza-txt:  #4a5568;
  --off-white:  #f8f7f3;
  --branco:     #ffffff;
  --borda:      rgba(255,255,255,0.08);

  --font-display: 'Manrope', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius:  8px;
  --radius-lg: 16px;
  --shadow:  0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.2);

  --max-w: 1200px;
  --gap: clamp(1rem, 3vw, 2rem);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--escuro);
  background: var(--branco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26, 34, 40, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--borda);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav__logo img { height: 36px; width: auto; }
.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav__links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--amarelo); }
.nav__cta {
  background: var(--amarelo);
  color: var(--escuro) !important;
  font-weight: 600 !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  transition: opacity 0.2s !important;
}
.nav__cta:hover { opacity: 0.9; }
.nav__burger { display: none; cursor: pointer; }

/* Mobile nav */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; flex-direction: column; gap: 5px; }
  .nav__burger span {
    display: block; width: 24px; height: 2px;
    background: var(--branco); border-radius: 2px;
    transition: transform 0.3s;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  background: var(--escuro);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 68px;
}

/* Raios animados em CSS */
.hero__rays {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.06;
}
.hero__rays::before,
.hero__rays::after {
  content: '';
  position: absolute;
  width: 200vmax;
  height: 200vmax;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  background: repeating-conic-gradient(
    var(--amarelo) 0deg 4deg,
    transparent 4deg 16deg
  );
  border-radius: 50%;
  animation: rays-spin 40s linear infinite;
}
.hero__rays::after {
  animation-duration: 60s;
  animation-direction: reverse;
  opacity: 0.5;
}
@keyframes rays-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amarelo);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--branco);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero__title em {
  font-style: normal;
  color: var(--amarelo);
}
.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, opacity 0.2s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--amarelo); color: var(--escuro); }
.btn--ghost {
  background: transparent;
  color: var(--branco);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn--ghost:hover { border-color: var(--amarelo); color: var(--amarelo); }
.btn--whatsapp { background: #25d366; color: var(--branco); }

/* ============================================================
   NÚMEROS (faixa amarela)
   ============================================================ */
.numbers {
  background: var(--amarelo);
  padding: 3rem 0;
}
.numbers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
@media (max-width: 768px) {
  .numbers__grid { grid-template-columns: repeat(2, 1fr); }
}
.numbers__item-value {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--escuro);
  line-height: 1;
}
.numbers__item-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--escuro);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.5rem;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how {
  padding: 6rem 0;
  background: var(--off-white);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-title em { font-style: normal; color: var(--amarelo); }
.section-subtitle {
  color: var(--cinza-txt);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 3.5rem;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}
@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  background: var(--branco);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
}
.step__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amarelo);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.step__icon {
  width: 48px; height: 48px;
  background: rgba(250,185,0,0.12);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.step__icon svg { width: 24px; height: 24px; color: var(--amarelo); }
.step__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.step__text { color: var(--cinza-txt); font-size: 0.95rem; line-height: 1.7; }

/* ============================================================
   UNIDADES (cidades)
   ============================================================ */
.cities {
  padding: 6rem 0;
  background: var(--branco);
}
.cities__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}
.city-card {
  border: 1.5px solid rgba(26,34,40,0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}
.city-card:hover {
  border-color: var(--amarelo);
  box-shadow: 0 4px 16px rgba(250,185,0,0.15);
  transform: translateY(-3px);
}
.city-card__state {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--amarelo);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.city-card__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.city-card__irradiacao {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cinza-txt);
}
.city-card__arrow {
  margin-top: 1rem;
  color: var(--amarelo);
  font-size: 1.25rem;
}

/* ============================================================
   DEPOIMENTOS
   ============================================================ */
.testimonials {
  padding: 6rem 0;
  background: var(--carvao);
}
.testimonials .section-title { color: var(--branco); }
.testimonials .section-subtitle { color: rgba(255,255,255,0.5); }
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (max-width: 900px) {
  .testimonials__grid { grid-template-columns: 1fr; }
}
.testimonial {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--borda);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.testimonial__quote {
  font-size: 2rem;
  color: var(--amarelo);
  line-height: 1;
  margin-bottom: 1rem;
  font-family: Georgia, serif;
}
.testimonial__text {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.testimonial__author { font-weight: 600; color: var(--branco); font-size: 0.9rem; }
.testimonial__city { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin-top: 0.25rem; }

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--escuro) 0%, #2a3a28 100%);
  text-align: center;
}
.cta-final .section-title { color: var(--branco); }
.cta-final__sub { color: rgba(255,255,255,0.6); margin: 1rem auto 2.5rem; max-width: 500px; }

/* ============================================================
   FORM
   ============================================================ */
.form {
  background: var(--branco);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.form__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.form__group {
  margin-bottom: 1.25rem;
  position: relative;
}
.form__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cinza-txt);
  margin-bottom: 0.4rem;
}
.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(26,34,40,0.15);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--escuro);
  background: var(--branco);
  transition: border-color 0.2s;
  appearance: none;
}
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--amarelo);
}
.form__textarea { min-height: 100px; resize: vertical; }
.form__submit {
  width: 100%;
  padding: 1rem;
  background: var(--amarelo);
  color: var(--escuro);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.form__submit:hover { opacity: 0.9; transform: translateY(-1px); }
.form__error {
  font-size: 0.78rem;
  color: #e53e3e;
  margin-top: 0.3rem;
  display: none;
}
.form__error.visible { display: block; }
.form__autocomplete {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 20;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  max-height: 220px;
  overflow-y: auto;
  padding: 0.35rem;
}
.form__autocomplete-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--escuro);
  text-align: left;
  font: inherit;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  cursor: pointer;
}
.form__autocomplete-item:hover,
.form__autocomplete-item:focus {
  background: rgba(255, 199, 0, 0.12);
  outline: none;
}

/* ============================================================
   CHAT WIDGET
   ============================================================ */
.cw-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.cw-bubble.is-visible { display: flex; }
.cw-bubble__hint {
  background: var(--escuro);
  color: var(--branco);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: var(--shadow);
  animation: hintIn 0.3s ease;
}
@keyframes hintIn {
  from { opacity:0; transform: translateX(8px); }
  to   { opacity:1; transform: translateX(0); }
}
.cw-bubble__btn {
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  border: none;
  transition: transform 0.15s;
}
.cw-bubble__btn:hover { transform: scale(1.08); }
.cw-bubble__btn svg { width: 32px; height: 32px; fill: #fff; }
.cw-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: var(--branco);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.cw-panel.is-open { display: flex; }
.cw-panel__header {
  background: #075E54;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cw-panel__header-info { display: flex; align-items: center; gap: 0.75rem; }
.cw-panel__avatar {
  width: 40px;
  height: 40px;
  background: var(--amarelo);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cw-panel__avatar svg { width: 22px; height: 22px; fill: var(--escuro); }
.cw-panel__name {
  font-weight: 700;
  color: #fff;
  font-size: 0.9rem;
}
.cw-panel__status {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
}
.cw-panel__close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.2rem;
}
.cw-panel__messages {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 180px;
  max-height: 280px;
  overflow-y: auto;
  background: #ECE5DD;
}
.cw-msg {
  max-width: 86%;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.5;
  animation: msgIn 0.2s ease;
}
@keyframes msgIn {
  from { opacity:0; transform: translateY(6px); }
  to   { opacity:1; transform: translateY(0); }
}
.cw-msg--bot {
  background: #fff;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  color: var(--escuro);
}
.cw-msg--user {
  background: #DCF8C6;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
  color: var(--escuro);
}
.cw-panel__input-area {
  padding: 0.75rem 1rem;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}
.cw-panel__input-area input,
.cw-panel__input-area select {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--escuro);
  background: var(--branco);
}
.cw-panel__input-area input:focus,
.cw-panel__input-area select:focus {
  outline: none;
  border-color: #25D366;
}
.cw-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cw-option-btn {
  width: 100%;
  padding: 0.55rem 0.9rem;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius);
  background: var(--branco);
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--escuro);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.cw-option-btn:hover {
  border-color: #25D366;
  background: #f0fdf4;
}
.cw-send-btn {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.65rem;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.15s;
}
.cw-send-btn:hover { opacity: 0.9; }
.cw-city-picker {
  position: relative;
}
.cw-city-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 20;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  max-height: 220px;
  overflow-y: auto;
  padding: 0.35rem;
}
.cw-city-result {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--escuro);
  text-align: left;
  font: inherit;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  cursor: pointer;
}
.cw-city-result:hover,
.cw-city-result:focus {
  background: #f0fdf4;
  outline: none;
}
.cw-wa-btn {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--escuro);
  padding: 4rem 0 2rem;
  color: rgba(255,255,255,0.6);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}
.footer__logo { height: 32px; margin-bottom: 1rem; }
.footer__tagline { font-size: 0.9rem; line-height: 1.6; max-width: 260px; }
.footer__heading {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amarelo);
  margin-bottom: 1rem;
}
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer__links a { font-size: 0.875rem; transition: color 0.2s; }
.footer__links a:hover { color: var(--branco); }
.footer__bottom {
  border-top: 1px solid var(--borda);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  width: 56px; height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform 0.2s;
  border: none;
  cursor: pointer;
  padding: 0;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: 5rem 0; background: var(--off-white); }
.faq__list { max-width: 720px; display: flex; flex-direction: column; gap: 1rem; margin-top: 2.5rem; }
.faq__item {
  background: var(--branco);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(26,34,40,0.08);
}
.faq__question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--escuro);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq__question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--amarelo);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq__item.open .faq__question::after { transform: rotate(45deg); }
.faq__answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  color: var(--cinza-txt);
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq__item.open .faq__answer { display: block; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
