/* =========================
   VARIÁVEIS E BASE
========================= */
:root {
    --purple: #667eea;
    --purple-dark: #764ba2;
    --bg: #f3f4f6;
    --text: #111827;
    --muted: #6b7280;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: 'Poppins', system-ui, "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* =========================
   HEADER PRINCIPAL
========================= */

header {
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: #ffffff;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Marca / logo */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 1.5rem;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle 30% 30%, #ffffff, #e5e7eb);
    color: var(--purple-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/* Menu superior */
nav {
    display: flex;
    gap: 20px;
    margin-right: 1.5rem;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

nav a:hover {
    border-bottom-color: #ffffff;
    opacity: 0.9;
}

/* =========================
   HERO
========================= */
.hero {
  padding: 20px 20px; /* diminui a altura */
  max-width: 1100px;  /* aumenta a largura */
  margin: 0 auto;     /* centraliza */
}


.split {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
}

/* Cards gerais */
.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    margin: 0 auto 1.5rem auto;
}

/* Botões gerais */
.btn {
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    background: #1d4ed8;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.5);
}

.btn-outline {
    background: transparent;
    color: #e5e7ff;
    border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.12);
}

/* Selo */
.selo {
    background: #f8fafc;
    padding: 0.4rem;
    border-radius: 999px;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.1);
}

.small {
    font-size: 0.85rem;
    color: #e5e7ff;
}

/* =========================
   SEÇÃO "COMO FUNCIONA"
========================= */

#como {
    width: 90%;
    max-width: 900px;
    margin: 1.5rem auto 0 auto;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.75rem;
}

.step {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.step-icon {
    background: var(--purple);
    color: #ffffff;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(102, 126, 234, 0.4);
}

.step-title {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.step-desc {
    font-size: 0.88rem;
    color: var(--muted);
}

/* =========================
   RANKING
========================= */

#ranking {
    width: 90%;
    max-width: 900px;
    margin: 2rem auto 0 auto;
}

.ranking {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.rank-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.badge {
    background: #eef2ff;
    color: #4338ca;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.company {
    font-weight: 600;
}

.meta {
    color: var(--muted);
    font-size: 0.78rem;
}

/* =========================
   EMPRESAS RECONHECIDAS
========================= */

#empresas {
    width: 90%;
    max-width: 900px;
    margin: 2rem auto 0 auto;
}

/* =========================
   BOTÃO E SEÇÃO ELOGIÔMETRO
=========================.elogiometro-button {
    background: #28a745;
    color: #ffffff;
    border: none;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
    margin: 2rem auto 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 10px 24px rgba(40,167,69,0.45);
}

.elogiometro-button:hover {
    background: #218838;
    box-shadow: 0 12px 30px rgba(40,167,69,0.6);
    transform: translateY(-1px);
}

/* Seção começa escondida; o JS adiciona .active */
.elogiometro-section {
    display: none;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
    margin: 2rem auto;
    padding: 1.8rem 1.75rem 2rem 1.75rem;
    max-width: 900px;
}

.elogiometro-section.active {
    display: block;
}

/* Cabeçalho interno do Elogiômetro */
.elogiometro-section .header {
    text-align: center;
    margin-bottom: 1.4rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    padding: 1rem;
    border-radius: 12px;
}

/* Nav / Abas */
.elogiometro-section .nav-bar {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1rem;
    margin-top: 0.6rem;
}

.elogiometro-section .nav-btn {
    flex: 1;
    padding: 0.7rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: #6b7280;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.elogiometro-section .nav-btn:hover {
    background: #e5e7ff;
    color: #4f46e5;
}

.elogiometro-section .nav-btn.active {
    background: #4f46e5;
    color: #ffffff;
    border-bottom-color: #312e81;
}

/* Seções internas (aba ativa/inativa) */
.section {
    display: none;
    margin-top: 1rem;
}

.section.active {
    display: block;
}

/* =========================
   FORMULÁRIOS
========================= */

.form-group {
    margin-bottom: 0.9rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.35);
}

/* Campo WhatsApp */
.whatsapp-field {
    border-color: #25d366;
}

.whatsapp-field:focus {
    box-shadow: 0 0 0 2px rgba(37,211,102,0.35);
}

/* =========================
   ESTRELAS
========================= */

/* Container de estrelas */
.stars {
    display: flex;
    gap: 0.4rem;
    cursor: pointer;
}

/* Estrela “vazia” com truque de sombra */
.star {
    font-size: 1.8rem;
    color: transparent;
    text-shadow: 0 0 0 #d0d7e2; /* cinza claro */
    transition: transform 0.2s ease, text-shadow 0.2s ease;
}

/* Hover geral: amarelo claro */
.stars:hover .star {
    text-shadow: 0 0 0 #ffed4a;
}

/* Selecionada: dourado + animação */
.star.selected {
    text-shadow: 0 0 0 #ffd700;
    animation: starBounce 0.35s ease-out;
}

/* Animação de “pulo” */
@keyframes starBounce {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.25) translateY(-2px); }
    100% { transform: scale(1); }
}

/* =========================
   FEEDBACK (emoji 3D fake)
========================= */

.rating-feedback {
    margin-top: 4px;
    min-height: 1.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rating-feedback span.emoji {
    font-size: 1.3rem;
    transform: perspective(500px) rotateY(12deg);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.35);
}

.rating-feedback span.texto {
    font-size: 0.9rem;
}

/* =========================
   MENSAGEM DE SUCESSO
========================= */

.success-message {
    display: none;
    margin-top: 0.8rem;
    padding: 10px;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}

/* =========================
   FOOTER
========================= */

footer {
    background: #f9fafb;
    padding: 1.8rem 0;
    margin-top: 2.5rem;
    font-size: 0.9rem;
    color: var(--text);
}/* ===== ANIMAÇÕES GERAIS ===== */

/* Logo */
.logo {
  transition: transform 0.4s ease, color 0.4s ease;
}
.logo:hover {
  transform: rotate(10deg) scale(1.2);
  color: #ff00cc;
}

/* Slogan */
.brand div:last-child {
  transition: color 0.4s ease, text-shadow 0.4s ease;
}
.brand div:last-child:hover {
  color: #ffe600;
  text-shadow: 0 0 8px #ffe600;
}

/* Navegação */
nav a {
  color: #fff;
  text-decoration: none;
  margin-right: 20px;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}
nav a:hover {
  color: #ff00cc;
  border-bottom: 2px solid #ff00cc;
}

/* Hero */
.hero h1 {
  transition: transform 0.4s ease, color 0.4s ease;
}
.hero h1:hover {
  transform: scale(1.05);
  color: #ff00cc;
}
.hero p {
  transition: color 0.4s ease, text-shadow 0.4s ease;
}
.hero p:hover {
  color: #ffe600;
  text-shadow: 0 0 8px #ffe600;
}

/* Botões */
.btn, .btn-primary, .elogiometro-button {
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.btn:hover, .btn-primary:hover, .elogiometro-button:hover {
  transform: scale(1.05);
  background: linear-gradient(45deg, #6a00ff, #ff00cc);
  color: #fff;
  box-shadow: 0 0 12px #ff00cc;
}

/* Selos */
.selo {
  transition: transform 0.3s ease;
}
.selo:hover {
  transform: scale(1.2) rotate(-5deg);
}

/* Ranking */
.ranking .card, #empresas .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ranking .card:hover, #empresas .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.rank-list li {
  transition: background 0.3s ease, transform 0.3s ease;
}
.rank-list li:hover {
  background: rgba(106, 0, 255, 0.05);
  transform: scale(1.02);
}

/* Estrelas */
.stars .star {
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
  color: #ccc;
}
.stars .star:hover {
  transform: scale(1.2);
  color: #ffcc00;
}

/* Feedback */
.rating-feedback {
  margin-top: 4px;
  font-size: 0.9em;
  color: #6a00ff;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.rating-feedback.active {
  opacity: 1;
}

/* Mensagem de sucesso */
.success-message {
  margin-top: 12px;
  font-size: 1em;
  color: #28a745;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.success-message.active {
  opacity: 1;
}

/* Footer */
footer .logo {
  transition: transform 0.3s ease, color 0.3s ease;
}
footer .logo:hover {
  transform: rotate(10deg) scale(1.1);
  color: #ff00cc;
}
footer div[style*="font-size:13px"] {
  transition: color 0.3s ease;
}
footer div[style*="font-size:13px"]:hover {
  color: #6a00ff;
}

.logo {
  transition: transform 0.4s ease, color 0.4s ease;
  color: #fff;
  display: inline-block;
}
.logo:hover {
  transform: rotate(10deg) scale(1.2);
  color: #ff00cc;
}

.btn-primary {
  padding: 12px 24px;
  font-size: 1.1em;
  background: #6a00ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px #ff00cc;
}
/* ===== ANIMAÇÕES DE ENTRADA ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
  animation: fadeUp 0.6s ease forwards;
}

/* ===== EFEITO FLUTUANTE EM EMOJIS ===== */
.selo {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

/* ===== BRILHO SUAVE EM TÍTULOS ===== */
h1, h2, h3 {
  position: relative;
  z-index: 1;
}
h1::after, h2::after, h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ff00cc, #6a00ff);
  opacity: 0.3;
  border-radius: 2px;
}
/* ===== AJUSTE DA ÁREA ROXA ===== */
.hero {
  background-color: #6a00ff;
  padding: 10px 10px;
  display: flex;
  justify-content: center;
}

.hero .container {
  max-width: 700px;
  width: 100%;
  text-align: center;
  color: #fff;
}

.hero .card {
  background: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
}

/* Responsivo */
@media (max-width: 768px) {
  .hero .card {
    padding: 24px;
  }
}
.wp-block-group.alignwide.is-layout-flex {
  background: linear-gradient(135deg, #6a00ff, #4b0082) !important;
  padding: 40px 20px !important;
  justify-content: center;
  display: flex;
}
.botao-elogio {
  animation: destaqueBotao 1.2s ease-out;
}

@keyframes destaqueBotao {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@media (max-width: 768px) {
  .menu-principal {
    flex-wrap: wrap;
    justify-content: center;
  }

  .menu-principal a {
    flex: 1 1 45%;
    margin: 5px;
    text-align: center;
  }
}
.botao-fazer,
.botao-cadastrar {
  background-color: #6a00ff;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  display: inline-block;
  margin: 10px 0;
  transition: background 0.3s ease;
}

.botao-fazer:hover,
.botao-cadastrar:hover {
  background-color: #4b0082;
}

.emoji-3d {
  width: 40px;
  height: auto;
  margin: 5px;
}
