/* 1. CONFIGURAÃ‡Ã•ES GERAIS */
:root {
  --azul-zunga: #0056b3;
  --verde-zunga: #28a745;
  --amarelo-detalhe: #ffc107;
  --dark: #1a1a1a;
  --light: #f8f9fa;
  --gray: #6c757d;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
   --bg-dark: #0d0d0d;
    --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", "Segoe UI", sans-serif;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--light);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
}

/* 2. HEADER & LOGO */
header {
  position: fixed;
  width: 100%;
  top: 0;
  padding: 15px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 2000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

header .logo img {
  height: 80px;
  width: auto;
  transition: 0.3s;
}

nav a {
  text-decoration: none;
  color: var(--dark);
  margin-left: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.3s;
}
nav a:hover {
  color: var(--azul-zunga);
}
nav a.cta {
  background: var(--verde-zunga);
  color: white;
  padding: 12px 25px;
  border-radius: 50px;
}
nav a.cta:hover {
  background: #218838;
  transform: scale(1.05);
}

/* 3. HERO SECTION */
.hero {
  height: 90vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 5%;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0.4)
  );
  z-index: -1;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-content h1 span {
  color: var(--verde-zunga);
}
.hero-content p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

.btn-main,
.btn-sec {
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  margin: 10px;
  display: inline-block;
  transition: 0.3s;
  border: none;
  cursor: pointer;
}
.btn-main {
  background: var(--azul-zunga);
  color: white;
}
.btn-sec {
  background: white;
  color: var(--dark);
}
.btn-main:hover,
.btn-sec:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 4. SOBRE NÃ“S (MVE GRID) */
.about-section {
  padding: 100px 10%;
  background: white;
  text-align: center;
}
.about-section h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--azul-zunga);
}
.mve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.mve-card {
  padding: 40px;
  border-radius: 20px;
  background: var(--light);
  transition: 0.3s;
}
.mve-card i {
  font-size: 2.5rem;
  color: var(--verde-zunga);
  margin-bottom: 20px;
}
.mve-card h4 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

/* 5. SECCÃ‡ÃƒO PROBLEMA/SOLUÃ‡ÃƒO */
.split-section {
  padding: 80px 10%;
  background: #fdfdfd;
}
.container {
  display: flex;
  gap: 40px;
}
.problem-box,
.solution-box {
  flex: 1;
  padding: 40px;
  border-radius: 20px;
}
.problem-box {
  background: #fff5f5;
  border-left: 5px solid #ff4d4d;
}
.solution-box {
  background: #f5fff7;
  border-left: 5px solid var(--verde-zunga);
}

/* 6. FEATURES (MODALIDADES) */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 80px 10%;
  background: white;
}
.f-card {
  background: white;
  padding: 50px 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: 0.3s;
  border: 1px solid #eee;
}
.f-card:hover {
  transform: translateY(-10px);
  border-bottom: 5px solid var(--azul-zunga);
}
.f-card i {
  font-size: 3rem;
  color: var(--azul-zunga);
  margin-bottom: 20px;
}

/* SECÃ‡ÃƒO DE IMPACTO (STATS) */
.stats-counter {
  padding: 100px 10%;
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.stats-title {
  text-align: center;
  margin-bottom: 60px;
  font-size: 2.2rem;
  color: var(--verde-zunga);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 40px 30px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  text-align: center;
  transition: 0.4s;
}

.stat-card:hover {
  transform: translateY(-10px);
  border-color: var(--verde-zunga);
}
.stat-card.highlight {
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid var(--verde-zunga);
}

.stat-icon {
  font-size: 2.5rem;
  color: var(--verde-zunga);
  margin-bottom: 20px;
}

.stat-card .number {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}
.suffix {
  font-size: 1.5rem;
  color: var(--verde-zunga);
  font-weight: bold;
}
.stat-card .label {
  display: block;
  margin-top: 10px;
  color: var(--gray);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.stat-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-top: 10px;
}
.stat-progress .bar {
  height: 100%;
  background: var(--verde-zunga);
  box-shadow: 0 0 15px var(--verde-zunga);
}

/* 8. FORMULÃRIO */
.form-box {
  background: white;
  padding: 40px;
  border-radius: 25px;
  box-shadow: var(--shadow);
  max-width: 600px;
  margin: 60px auto;
}
.form-box h3 {
  margin-bottom: 10px;
  color: var(--azul-zunga);
  text-align: center;
  font-size: 1.8rem;
}
.form-box input,
.form-box select {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
  background: white;
}

/* 9. FOOTER */

.main-footer {
    background-color: black;
    color: #ffffff;
    padding: 80px 8% 20px;
    font-family: 'Inter', sans-serif; /* Ou sua fonte principal */
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr 1.2fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

/* Tipografia e Títulos */
.footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
}

.footer-logo {
    height: 100px; 
    width: 150px; 
    max-width: 100%; 
    filter: brightness(0) invert(1); 
    display: block; 
}

.footer-col h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--verde-zunga);
    margin-top: 8px;
}

/* Descrição e Links */
.footer-description {
    line-height: 1.6;
    color: white;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--verde-zunga);
    padding-left: 5px; 
}

/* Ícones Sociais */
.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 38px;
    height: 38px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px; /* Formato quadrado arredondado é mais moderno que círculo total */
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--verde-zunga);
    transform: translateY(-3px);
}

/* Contacto */
.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: white;
}

.contact-item i {
    color: var(--verde-zunga);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 30px;
    text-align: center;
}

.bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 0.85rem;
}


/* 10. WHATSAPP FLOAT */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  z-index: 10000;
  display: flex;
  align-items: center;
 padding: 15px 30px;
  text-decoration: none;
  transition: 0.3s;
  animation: pulse-whatsapp 2s infinite;
  font-weight: 600;
  gap: 5px;
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ==========================================================================
   ELEMENTOS DA RESPONSIVIDADE CORRIGIDOS (MANTENDO O RESTO)
   ========================================================================== */

.menu-toggle {
  display: none;
} /* Escondido por padrÃ£o no Desktop */

@media (max-width: 992px) {
  .menu-toggle {
    display: block;
    font-size: 2rem;
    color: var(--azul-zunga);
    cursor: pointer;
    z-index: 3000;
  }

  nav {
    display: none; /* JS controla com a classe .active */
    flex-direction: column;
    position: absolute;
    top: 100%; /* Abre exatamente abaixo do header */
    left: 0;
    width: 100%;
    background: white;
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 2500;
  }

  nav.active {
    display: flex;
  } /* Esta classe Ã© essencial para o JS */

  nav a {
    margin: 15px 0;
    display: block;
    font-size: 1.1rem;
  }

  nav a.cta {
    display: inline-block;
    width: auto;
  }

  /* Ajustes de Grid para Mobile */
  .mve-grid,
  .features,
  .stats-grid,
  .footer-container,
  .container {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
    gap: 30px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }
  header .logo img {
    height: 60px;
  }
}

@media (max-width: 768px) {
  .whatsapp-float span {
    display: none;
  }
  .whatsapp-float {
    padding: 15px;
    border-radius: 50%;
  }
}
/* Área do Utilizador */
.user-area {
  margin-left: 20px;
}

.login-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(45deg, #0088cc, #00aaff);
  color: white;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

.login-btn i {
  font-size: 1.2rem;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 136, 204, 0.3);
}

/* Modal de Login */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 400px;
  position: relative;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #666;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 20px 0;
}

.login-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.login-form label {
  font-weight: 500;
  color: #333;
}

.login-form input,
.login-form select {
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
}

.btn-login {
  padding: 14px;
  background: linear-gradient(45deg, #0088cc, #00aaff);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 136, 204, 0.3);
}

.login-help {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.login-help a {
  color: #0088cc;
  text-decoration: none;
  font-size: 0.9rem;
}

.demo-info {
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #666;
}

/* Área Restrita */
.restricted-area {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 60px 0;
  margin-top: 40px;
  color: white;
}

.restricted-area .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.dashboard-header h2 {
  font-size: 2rem;
  margin: 0;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 10px;
}

.logout-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid white;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
}

.logout-btn:hover {
  background: white;
  color: #764ba2;
}

/* Abas */
.dashboard-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 10px;
}

.tab-btn {
  padding: 12px 24px;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 5px;
  transition: all 0.3s;
  font-weight: 500;
}

.tab-btn.active,
.tab-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.tab-content {
  display: none;
  background: white;
  padding: 30px;
  border-radius: 15px;
  color: #333;
}

.tab-content.active {
  display: block;
}

/* Formulário de Métricas */
.metricas-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.form-group {
  flex: 1 1 calc(50% - 10px);
  min-width: 250px;
}

.form-group.full-width {
  flex: 1 1 100%;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #0088cc;
  outline: none;
}

.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.btn-submit,
.btn-preview {
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.btn-submit {
  background: linear-gradient(45deg, #00b09b, #96c93d);
  color: white;
}

.btn-preview {
  background: #6c757d;
  color: white;
}

.btn-submit:hover,
.btn-preview:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Tabela de Métricas */
.recent-metrics {
  margin-top: 40px;
}

.recent-metrics h4 {
  margin-bottom: 20px;
  color: #333;
}

.table-responsive {
  overflow-x: auto;
}

.metrics-table {
  width: 100%;
  border-collapse: collapse;
  background: #f8f9fa;
  border-radius: 10px;
  overflow: hidden;
}

.metrics-table th {
  background: #0088cc;
  color: white;
  padding: 12px;
  text-align: left;
}

.metrics-table td {
  padding: 12px;
  border-bottom: 1px solid #e0e0e0;
}

.metrics-table tr:hover {
  background: #f1f1f1;
}

.text-center {
  text-align: center;
}

/* Responsivo */
@media (max-width: 768px) {
  .user-area {
    margin: 10px 0;
  }

  .dashboard-header {
    flex-direction: column;
    text-align: center;
  }

  .user-info {
    width: 100%;
    justify-content: center;
  }

  .form-row {
    flex-direction: column;
  }

  .form-group {
    flex: 1 1 100%;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn-submit,
  .btn-preview {
    width: 100%;
    justify-content: center;
  }
}
