/* ============================================================
   YELLOW ENERGY — Home Page Styles
   ============================================================ */

/* ====== HERO ====== */
.hero {
  position: relative;
  height: 100svh; /* safe viewport height — considera barra do browser mobile */
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,.82) 0%,
    rgba(0,0,0,.55) 60%,
    rgba(245,193,14,.12) 100%
  );
}

/* Hero Buttons */
.hero-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px; height: 50px;
  background: rgba(245,193,14,.2);
  border: 1px solid rgba(245,193,14,.3);
  border-radius: 50%;
  color: var(--white);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.hero-btn:hover { background: var(--yellow); color: var(--black); }
.hero-prev { left: 24px; }
.hero-next { right: 24px; }

@media (max-width: 600px) {
  .hero-btn { display: none; } /* esconde setas no mobile */
}

.hero-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.hero-dot.active {
  background: var(--yellow);
  transform: scale(1.3);
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 5;
  color: var(--white);
  max-width: 760px;
  padding-top: 40px; /* espaço do header no desktop */
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,193,14,.15);
  border: 1px solid rgba(245,193,14,.35);
  color: var(--yellow);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.hero-desc {
  font-size: 1.15rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.btn-lg { padding: 16px 36px; font-size: 1rem; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  flex-wrap: wrap;
}
.hero-stat {
  padding: 0 24px;
  text-align: center;
}
.hero-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--yellow);
}
.hero-stat span {
  font-size: .78rem;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.15);
}
.hero-stat-double strong {
  font-size: 1rem !important;
  white-space: nowrap;
}
.hero-stat-double span {
  white-space: nowrap;
}

/* ====== HERO SIDE FLOAT (balão + mascote) ====== */
.hero-side-float {
  position: absolute;
  right: clamp(32px, 5vw, 100px);
  top: 50%;
  transform: translateY(-46%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: heroSideFloat 4s ease-in-out infinite;
}

@keyframes heroSideFloat {
  0%, 100% { transform: translateY(-46%) translateY(0px); }
  50%       { transform: translateY(-46%) translateY(-16px); }
}

/* -- Balão -- */
.hero-balloon {
  position: relative;
}

.hero-balloon-inner {
  background: var(--yellow);
  border-radius: 24px 24px 24px 6px;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 280px;
  position: relative;
  box-shadow: 0 6px 40px rgba(245,193,14,.55), 0 2px 12px rgba(0,0,0,.25);
}

.hero-balloon-inner i {
  font-size: 2.4rem;
  color: var(--dark);
  flex-shrink: 0;
}

.hero-balloon-label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(0,0,0,.55);
  line-height: 1;
  margin-bottom: 6px;
}

.hero-balloon-value {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--dark);
  line-height: 1;
}

/* Cauda do balão apontando para baixo (em direção ao mascote) */
.hero-balloon-tail {
  width: 0; height: 0;
  border-left: 18px solid transparent;
  border-right: 0px solid transparent;
  border-top: 18px solid var(--yellow);
  position: absolute;
  bottom: -18px;
  left: 28px;
}

/* -- Mascote -- */
.hero-mascote {
  margin-top: 6px;
}
.hero-mascote img {
  width: clamp(160px, 14vw, 230px);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.35));
}

/* -- Responsivo -- */
@media (max-width: 1100px) {
  .hero-side-float {
    right: 20px;
  }
  .hero-balloon-inner { min-width: 240px; padding: 18px 24px; }
  .hero-balloon-value { font-size: 1.9rem; }
  .hero-mascote img   { width: 160px; }
}

@media (max-width: 900px) {
  .hero-side-float {
    right: 12px;
    top: auto;
    bottom: 110px;
    transform: none;
    animation: heroSideFloat2 4s ease-in-out infinite;
  }
  @keyframes heroSideFloat2 {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-12px); }
  }
  .hero-balloon-inner { min-width: 200px; padding: 14px 18px; }
  .hero-balloon-value { font-size: 1.6rem; }
  .hero-mascote img   { width: 120px; }
}

@media (max-width: 600px) {
  .hero-side-float { display: none; }
}

/* ====== STRIP ANEEL ====== */
.strip-aneel {
  background: var(--yellow);
  padding: 12px 0;
  overflow: hidden;
}
.strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: nowrap; /* força mesma linha */
}
.strip-inner span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.strip-inner span i { color: var(--dark); }

/* Hover nos itens da strip amarela */
.strip-inner span {
  cursor: default;
  border-radius: 8px;
  padding: 6px 12px;
  transition: background .25s ease, transform .25s ease, color .25s ease;
}
.strip-inner span:hover {
  background: rgba(0,0,0,.12);
  transform: translateY(-3px) scale(1.04);
  color: var(--dark);
}
.strip-inner span:hover i {
  animation: spinOnce .4s ease;
}
@keyframes spinOnce {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(20deg) scale(1.2); }
  100% { transform: rotate(0deg) scale(1); }
}

@media (max-width: 768px) {
  .strip-inner { gap: 14px; flex-wrap: wrap; }
  .strip-inner span { font-size: .7rem; }
}

/* ====== COMO FUNCIONA ====== */
.how-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.how-step {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  flex: 1;
  min-width: 240px;
  max-width: 300px;
  box-shadow: var(--shadow);
  position: relative;
  transition: var(--transition);
}
.how-step:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.how-icon {
  width: 72px; height: 72px;
  background: var(--yellow-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
  color: var(--yellow-dark);
}
.how-num {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(0,0,0,.08);
  line-height: 1;
  pointer-events: none;
}
.how-step h3 { margin-bottom: 12px; font-size: 1.15rem; }
.how-step p  { font-size: .9rem; }

.how-arrow {
  color: var(--yellow);
  font-size: 1.5rem;
  margin-top: 60px;
  opacity: .6;
}

/* ====== SOBRE ====== */
.about-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 56px;
  align-items: center;
}
.about-image { position: relative; }
.about-img-main {
  border-radius: var(--radius-lg);
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

/* Vídeo na seção sobre — player sem corte */
.about-video-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  background: #000;
  width: 100%;
  /* altura automática baseada no conteúdo real do vídeo */
  position: relative;
  aspect-ratio: 9/16; /* vídeo vertical — ajusta à proporção real */
  max-height: 600px;
}
.about-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* mostra o vídeo inteiro, sem cortar */
  display: block;
  border-radius: var(--radius-lg);
  background: #000;
}
.about-badge-float {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--yellow);
  color: var(--black);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 160px;
}
.about-badge-float i { font-size: 2rem; }
.about-badge-float strong { display: block; font-size: 1.4rem; font-weight: 900; }
.about-badge-float span { font-size: .8rem; font-weight: 500; opacity: .8; }

.about-text .tag { margin-bottom: 16px; }
.about-text h2 { margin-bottom: 20px; }
.about-list {
  margin: 24px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.about-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  color: var(--dark);
  font-weight: 500;
}
.about-list li i { color: var(--yellow-dark); font-size: 1rem; }

/* ====== STATS ====== */
.stats-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245,193,14,.08) 0%, transparent 70%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat-item {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  transition: var(--transition);
}
.stat-item:hover {
  background: rgba(245,193,14,.08);
  border-color: rgba(245,193,14,.2);
  transform: translateY(-4px);
}
.stat-icon {
  width: 52px; height: 52px;
  background: rgba(245,193,14,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  color: var(--yellow);
  font-size: 1.3rem;
}
.stat-item strong {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--yellow);
  margin-bottom: 6px;
}
.stat-item span {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
}

/* ====== SOLUÇÕES ====== */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.solution-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: block;
  position: relative;
}
.solution-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.solution-card.featured {
  border: 2px solid var(--yellow);
}
.solution-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--yellow);
  color: var(--black);
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .05em;
  z-index: 2;
}
.solution-img {
  height: 280px;
  overflow: hidden;
  background: var(--yellow-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.solution-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .5s ease;
}
.solution-card:hover .solution-img img { transform: scale(1.05); }
.solution-body {
  padding: 24px;
}
.solution-tag {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--yellow-dark);
  margin-bottom: 8px;
}
.solution-body h3 { margin-bottom: 10px; font-size: 1.3rem; }
.solution-body p  { font-size: .9rem; margin-bottom: 16px; }
.solution-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--yellow-dark);
  font-weight: 600;
  font-size: .9rem;
  transition: gap .2s ease;
}
.solution-card:hover .solution-cta { gap: 10px; }

/* ====== SIMULADOR ====== */
.simulator-section {
  background: var(--white);
  position: relative;
  overflow: hidden;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}
.simulator-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.1);
  border: 1px solid rgba(245,193,14,.2);
  position: relative;
}
.simulator-iframe {
  width: calc(100% + 18px); /* compensa a scrollbar interna */
  margin-right: -18px;
  height: 860px;
  border: none;
  display: block;
  overflow: hidden;
}

/* Esconde qualquer scrollbar visível no container do simulador */
.simulator-container::-webkit-scrollbar { display: none; }
.simulator-container { scrollbar-width: none; -ms-overflow-style: none; }

/* ====== USINAS ====== */
.usinas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.usina-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  transition: var(--transition);
}
.usina-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.usina-img-wrap {
  height: 200px;
  overflow: hidden;
}
.usina-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.usina-card:hover .usina-img-wrap img { transform: scale(1.06); }
.usina-info {
  padding: 20px;
}
.usina-info h4 { margin-bottom: 4px; }
.usina-info p { font-size: .88rem; }

/* ====== VANTAGENS (mantido para compatibilidade) ====== */
.vantagens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.vantagem-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}
.vantagem-item:hover {
  border-bottom-color: var(--yellow);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.vantagem-icon {
  width: 64px; height: 64px;
  background: var(--yellow-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
  color: var(--yellow-dark);
  transition: var(--transition);
}
.vantagem-item:hover .vantagem-icon {
  background: var(--yellow);
  color: var(--black);
}
.vantagem-item h4 { margin-bottom: 10px; }
.vantagem-item p  { font-size: .9rem; }

/* ====== COMPARATIVO — Placas Solares vs Yellow Energy ====== */
.comp-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 48px rgba(0,0,0,.14);
  margin-bottom: 0;
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: .97rem;
}

/* Cabeçalho */
.comp-table thead tr {
  background: var(--dark);
}
.comp-table th {
  padding: 20px 24px;
  text-align: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  vertical-align: middle;
}
.comp-th-feature {
  text-align: left !important;
  width: 38%;
  color: rgba(255,255,255,.7) !important;
  font-size: .9rem !important;
}
.comp-th-solar {
  background: #2d2d2d;
  width: 28%;
}
.comp-th-yellow {
  background: var(--yellow) !important;
  color: var(--black) !important;
  width: 34%;
}
.comp-th-icon {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 6px;
}
.comp-th-sub {
  display: block;
  font-size: .75rem;
  font-weight: 400;
  opacity: .75;
  margin-top: 4px;
}
.comp-logo {
  display: block;
  height: 36px;
  width: auto;
  margin: 0 auto 8px;
  filter: brightness(0);
}
.comp-th-badge {
  display: inline-block;
  background: rgba(0,0,0,.15);
  color: var(--black);
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  letter-spacing: .04em;
  margin-top: 6px;
}

/* Linhas */
.comp-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background .2s ease;
}
.comp-table tbody tr:hover {
  background: var(--yellow-light);
}
.comp-row-alt { background: #fafafa; }
.comp-row-alt:hover { background: var(--yellow-light) !important; }

.comp-feature {
  padding: 16px 24px;
  font-weight: 500;
  color: var(--dark);
  text-align: left;
  font-size: .95rem;
  display: table-cell;
  vertical-align: middle;
}
.comp-feat-icon {
  color: var(--yellow-dark);
  margin-right: 10px;
  width: 18px;
}
.comp-cell {
  padding: 16px 20px;
  text-align: center;
  vertical-align: middle;
  font-weight: 500;
  font-size: .9rem;
}
.comp-cell i {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.comp-yes {
  color: #15803d;
  background: rgba(21,128,61,.04);
}
.comp-yes i { color: #16a34a; }
.comp-no {
  color: #b91c1c;
  background: rgba(185,28,28,.04);
}
.comp-no i { color: #dc2626; }
.comp-neutral {
  color: #92400e;
  background: rgba(146,64,14,.04);
}
.comp-neutral i { color: #d97706; }

/* Rodapé da tabela */
.comp-table tfoot tr { background: var(--white); border-top: 2px solid #e5e7eb; }
.comp-table tfoot td { padding: 20px 24px; text-align: center; }
.comp-foot-bad {
  color: var(--gray);
  font-size: .9rem;
  font-style: italic;
}
.comp-foot-bad span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #f3f4f6;
  border-radius: 8px;
  color: #9ca3af;
  font-weight: 500;
}
.comp-foot-good { vertical-align: middle; }

/* Cards mobile (visível apenas em telas pequenas) */
.comp-cards-mobile { display: none; }

@media (max-width: 768px) {
  .comp-table-wrap { display: none; }
  .comp-cards-mobile {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .comp-card-m {
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow);
  }
  .comp-card-m h4 {
    font-size: 1.15rem;
    margin-bottom: 16px;
    font-weight: 700;
  }
  .comp-card-m ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
  .comp-card-m li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .95rem;
    font-weight: 500;
  }
  .comp-card-bad {
    background: #fff5f5;
    border: 1px solid #fecaca;
  }
  .comp-card-bad h4 { color: #b91c1c; }
  .comp-card-bad li { color: #b91c1c; }
  .comp-card-bad li i { color: #dc2626; }
  .comp-card-good {
    background: #f0fdf4;
    border: 2px solid var(--yellow);
  }
  .comp-card-good h4 { color: #15803d; }
  .comp-card-good li { color: #15803d; }
  .comp-card-good li i { color: #16a34a; }
  .comp-vs {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--yellow-dark);
    letter-spacing: .1em;
  }
}

/* ====== FAQ ====== */
.faq-wrap {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.open { border-color: var(--yellow); }
.faq-q {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
  background: var(--white);
  transition: var(--transition);
}
.faq-q:hover { background: var(--yellow-light); }
.faq-item.open .faq-q { background: var(--yellow-light); color: var(--yellow-dark); }
.faq-icon { transition: transform .3s ease; flex-shrink: 0; color: var(--yellow-dark); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
}
.faq-a p {
  padding: 0 24px 20px;
  font-size: .95rem;
  line-height: 1.7;
  color: var(--gray);
}
.faq-item.open .faq-a { max-height: 400px; }

/* ====== YELLOW NEWS — CARROSSEL ====== */
.yn-carousel-wrap {
  position: relative;
  overflow: hidden;
  padding: 32px 0 16px;
}

/* Track que desliza */
.yn-track {
  display: flex;
  gap: 28px;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
  align-items: center;
}

/* Card lateral (não ativo) */
.yn-card {
  flex: 0 0 calc(33.333% - 19px);
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .55s cubic-bezier(.4,0,.2,1),
              box-shadow .55s cubic-bezier(.4,0,.2,1),
              opacity .55s ease;
  opacity: .55;
  transform: scale(.88);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

/* Card central (ativo / destaque) */
.yn-card.yn-active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  border: 2px solid var(--yellow);
  cursor: default;
}

.yn-card-img {
  height: 300px;
  overflow: hidden;
  background: var(--yellow-light);
  position: relative;
}
.yn-card.yn-active .yn-card-img {
  height: 340px;
}
.yn-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.yn-card.yn-active .yn-card-img img { transform: scale(1.03); }
.yn-card-img .yn-no-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  color: var(--yellow-dark);
}

/* Badge de categoria */
.yn-cat {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--yellow);
  color: var(--dark);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
}

.yn-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.yn-card-date {
  font-size: .78rem;
  color: var(--gray);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.yn-card-date i { color: var(--yellow-dark); }
.yn-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.yn-card.yn-active .yn-card-title { font-size: 1.15rem; -webkit-line-clamp: 3; }
.yn-card-excerpt {
  font-size: .88rem;
  color: var(--gray);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 18px;
}
.yn-card.yn-active .yn-card-excerpt { -webkit-line-clamp: 4; }
.yn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--yellow-dark);
  font-weight: 700;
  font-size: .9rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.yn-card.yn-active .yn-read-more {
  opacity: 1;
  transform: translateY(0);
}

/* Controles */
.yn-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}
.yn-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(245,193,14,.4);
  transition: var(--transition);
}
.yn-btn:hover { background: var(--yellow-dark); color: var(--white); transform: scale(1.1); }
.yn-btn:active { transform: scale(.95); }
.yn-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.yn-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,.15);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.yn-dot.yn-dot-active {
  background: var(--yellow);
  width: 24px;
  border-radius: 4px;
}

/* Skeletons de loading */
.yn-skeleton-wrap {
  display: flex;
  gap: 28px;
  align-items: center;
  padding: 32px 0;
}
.yn-skeleton {
  flex: 0 0 calc(33.333% - 19px);
  height: 340px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
  opacity: .55;
  transform: scale(.88);
}
.yn-skeleton--center {
  opacity: 1;
  transform: scale(1);
  height: 380px;
}
@keyframes skeleton {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Responsive */
@media (max-width: 900px) {
  .yn-card { flex: 0 0 80%; }
  .yn-card.yn-active { transform: scale(1); }
  .yn-track { gap: 20px; }
  .yn-skeleton { flex: 0 0 80%; }
  .yn-skeleton--center { display: none; }
  .yn-skeleton:first-child { display: none; }
}
@media (max-width: 480px) {
  .yn-card { flex: 0 0 90%; }
}

/* ====== BLOG GRID ====== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-card-img {
  height: 200px;
  overflow: hidden;
  background: var(--yellow-light);
  position: relative;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-img .no-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  color: var(--yellow-dark);
}
.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-cat {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--yellow-dark);
  margin-bottom: 10px;
}
.blog-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-excerpt {
  font-size: .88rem;
  color: var(--gray);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}
.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--gray);
  border-top: 1px solid #f0f0f0;
  padding-top: 14px;
}
.blog-card-footer a {
  color: var(--yellow-dark);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.blog-card-footer a:hover { color: var(--yellow-dark); text-decoration: underline; }

/* Skeleton */
.blog-skeleton {
  height: 340px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
}
@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ====== CTA ====== */
.cta-section {
  background: linear-gradient(135deg, var(--dark) 0%, #1a1a2e 100%);
}
.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(245,193,14,.2);
  border-radius: var(--radius-lg);
  padding: 56px 64px;
  flex-wrap: wrap;
}
/* Variante centralizada */
.cta-box--centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}
.cta-box--centered .cta-content p { max-width: 640px; margin: 0 auto; }
.cta-box--centered .cta-actions   { justify-content: center; }
.cta-content h2 { color: var(--white); margin-bottom: 12px; }
.cta-content p  { color: rgba(255,255,255,.7); max-width: 500px; }
.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .stats-grid      { grid-template-columns: repeat(2, 1fr); }
  .solutions-grid  { grid-template-columns: repeat(2, 1fr); }
  .vantagens-grid  { grid-template-columns: repeat(2, 1fr); }
  .usinas-grid     { grid-template-columns: repeat(2, 1fr); }
  .blog-grid       { grid-template-columns: repeat(2, 1fr); }
  .about-grid      { grid-template-columns: 1fr; gap: 40px; }
  .about-badge-float { right: 0; }
}

@media (max-width: 768px) {
  /* ---- Hero mobile ---- */
  .hero {
    align-items: flex-start;
    min-height: 100svh;
  }
  .hero-content {
    text-align: center;
    padding-top: 100px;  /* header ≈56px + espaço ≈44px */
    padding-bottom: 48px;
    max-width: 100%;
  }
  .hero-cta     { justify-content: center; }
  .hero-stats   { justify-content: center; }
  .hero-stat    { padding: 0 14px; }
  .hero-stat strong { font-size: 1.2rem; }
  .strip-inner  { gap: 20px; }
  .how-steps    { flex-direction: column; align-items: center; }
  .how-arrow    { transform: rotate(90deg); margin: -8px 0; }
  .stats-grid   { grid-template-columns: repeat(2, 1fr); }
  .solutions-grid  { grid-template-columns: 1fr; }
  .vantagens-grid  { grid-template-columns: 1fr; }
  .usinas-grid     { grid-template-columns: 1fr; }
  .blog-grid       { grid-template-columns: 1fr; }
  .cta-box { flex-direction: column; text-align: center; padding: 40px 28px; }
  .cta-actions { justify-content: center; }
  .simulator-iframe { height: 780px; } /* aumentado para mobile */
}

@media (max-width: 480px) {
  /* ---- Hero mobile pequeno ---- */
  .hero {
    align-items: flex-start;
    min-height: 100svh;
  }
  .hero-content {
    padding-top: 110px;  /* abaixo da header fixa no celular */
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 40px;
    max-width: 100%;
  }
  .hero-title { font-size: 1.9rem; }
  .hero-desc  { font-size: .95rem; margin-bottom: 24px; }
  .hero-badge { font-size: .72rem; padding: 6px 14px; }
  .hero-stats {
    flex-direction: column;
    gap: 14px;
    padding: 16px 20px;
    width: 100%;
  }
  .hero-stat-divider { width: 60px; height: 1px; }
  .hero-stat { padding: 0; }
  .hero-stat strong { font-size: 1.3rem; }
  .btn-lg     { padding: 14px 20px; font-size: .92rem; }
  .hero-cta   { flex-direction: column; gap: 10px; width: 100%; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  /* Seção sobre no mobile */
  .about-video-wrap { aspect-ratio: 4/5; max-height: 380px; }

  /* Simulador no mobile pequeno */
  .simulator-iframe { height: 900px; }

  /* Yellow News no mobile */
  .yn-controls { gap: 14px; }
  .yn-btn      { width: 40px; height: 40px; font-size: .9rem; }
}
