/* Topo discreto JAM */
.jam-topbar {
  width: 100%;
  background: #fff7ef;
  color: #7a3a00;
  font-size: 0.78rem;
  line-height: 1.4;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  padding: 0.35rem 1rem;
  border-bottom: 1px solid rgba(255, 106, 0, 0.18);
  flex-wrap: wrap;
}

.jam-topbar a {
  color: #7a3a00;
  text-decoration: none;
  font-weight: 600;
}

.jam-topbar a:hover {
  color: var(--laranja-primary);
  text-decoration: underline;
}

.jam-topbar span {
  opacity: 0.82;
}

@media (max-width: 640px) {
  .jam-topbar {
    font-size: 0.72rem;
    gap: 0.45rem;
    padding: 0.3rem 0.6rem;
  }
}

/* ConectAmapá - Plataforma MDB Amapá */
/* Identidade visual: Laranja #FF6A00 como cor primária */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --laranja-primary: #FF6A00;
  --laranja-escuro: #E55A00;
  --laranja-claro: #FFE5D0;
  --grafite: #1A1A1A;
  --cinza: #5A5A5A;
  --verde-amapa: #2BB673;
  --amarelo-amapa: #FFC400;
  --branco: #FFFFFF;
  --cinza-bg: #F8F9FA;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--grafite);
  line-height: 1.6;
  background: var(--cinza-bg);
}

/* Header fixo */
header {
  background: var(--branco);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--laranja-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--laranja-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--grafite);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--laranja-primary);
}

.cta-button {
  background: var(--laranja-primary);
  color: white !important;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: var(--laranja-escuro);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 106, 0, 0.3);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--laranja-primary);
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, var(--laranja-primary) 0%, var(--laranja-escuro) 100%);
  color: white;
  padding: 5rem 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  opacity: 0.95;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  font-size: 1rem;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: white;
  color: var(--laranja-primary);
}

.btn-primary:hover {
  background: var(--cinza-bg);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--laranja-primary);
}

.btn-large {
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.container-narrow {
  max-width: 900px;
}

/* Section */
section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--grafite);
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.2rem;
  color: var(--cinza);
  max-width: 700px;
  margin: 0 auto;
}

/* Grid system */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Cards */
.card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border-color: var(--laranja-claro);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--laranja-claro);
  color: var(--laranja-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--grafite);
}

.card p {
  color: var(--cinza);
  line-height: 1.7;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--laranja-primary);
  font-weight: 600;
  margin-top: 1rem;
  text-decoration: none;
  transition: gap 0.3s ease;
}

.card-link:hover {
  gap: 1rem;
}

/* Núcleos grid */
.nucleos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.nucleo-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--grafite);
  border: 3px solid transparent;
}

.nucleo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(255, 106, 0, 0.15);
  border-color: var(--laranja-primary);
}

.nucleo-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.nucleo-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--laranja-primary);
  margin-bottom: 0.5rem;
}

.nucleo-card p {
  color: var(--cinza);
  font-size: 0.95rem;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border-left: 4px solid var(--laranja-primary);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--laranja-primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--cinza);
  font-size: 1.1rem;
  font-weight: 500;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--grafite);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 2px solid #E5E5E5;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--laranja-primary);
  box-shadow: 0 0 0 3px var(--laranja-claro);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-help {
  font-size: 0.9rem;
  color: var(--cinza);
  margin-top: 0.5rem;
}

.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.suggestion-card {
  background: var(--laranja-claro);
  padding: 1rem;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.suggestion-card:hover {
  border-color: var(--laranja-primary);
  background: white;
}

.suggestion-card.active {
  border-color: var(--laranja-primary);
  background: white;
}

/* Progress bar */
.progress-bar {
  width: 100%;
  height: 6px;
  background: #E5E5E5;
  border-radius: 10px;
  margin: 2rem 0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--laranja-primary) 0%, var(--laranja-escuro) 100%);
  transition: width 0.5s ease;
  border-radius: 10px;
}

.step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.step {
  flex: 1;
  text-align: center;
  padding: 1rem;
  position: relative;
}

.step::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #E5E5E5;
  z-index: -1;
}

.step:last-child::after {
  display: none;
}

.step-number {
  width: 40px;
  height: 40px;
  background: #E5E5E5;
  color: var(--cinza);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.step.active .step-number,
.step.completed .step-number {
  background: var(--laranja-primary);
  color: white;
}

.step-title {
  font-size: 0.9rem;
  color: var(--cinza);
  font-weight: 500;
}

.step.active .step-title {
  color: var(--laranja-primary);
  font-weight: 600;
}

/* Painel */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.dashboard-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border-top: 4px solid var(--laranja-primary);
}

.dashboard-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--grafite);
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.table th,
.table td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid #E5E5E5;
}

.table th {
  background: var(--cinza-bg);
  font-weight: 600;
  color: var(--grafite);
  font-size: 0.9rem;
}

.table td {
  color: var(--cinza);
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-orange {
  background: var(--laranja-claro);
  color: var(--laranja-primary);
}

.badge-green {
  background: #D4F4E2;
  color: var(--verde-amapa);
}

/* Alert */
.alert {
  padding: 1.2rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border-left: 4px solid;
}

.alert-info {
  background: var(--laranja-claro);
  border-color: var(--laranja-primary);
  color: var(--grafite);
}

.alert-success {
  background: #D4F4E2;
  border-color: var(--verde-amapa);
  color: var(--grafite);
}

/* Roteiros */
.roteiro-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 2px solid #E5E5E5;
  margin-bottom: 2rem;
}

.roteiro-header {
  border-bottom: 2px solid var(--laranja-claro);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.roteiro-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.roteiro-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--laranja-claro);
  color: var(--laranja-primary);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.roteiro-section {
  margin: 1.5rem 0;
}

.roteiro-section h4 {
  color: var(--laranja-primary);
  font-weight: 700;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.roteiro-section ul {
  list-style: none;
  padding-left: 0;
}

.roteiro-section li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.roteiro-section li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--laranja-primary);
  font-weight: 700;
}

.inspiracao-box {
  background: var(--laranja-claro);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--laranja-primary);
  margin-top: 1.5rem;
}

.inspiracao-selo {
  display: inline-block;
  background: var(--laranja-primary);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background: var(--grafite);
  color: white;
  padding: 3rem 2rem 1.5rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--laranja-primary);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.7rem;
}

.footer-section a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--laranja-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
}

/* Accordion/FAQ */
.faq-item {
  background: white;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--grafite);
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: var(--laranja-claro);
  color: var(--laranja-primary);
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }

  nav ul.active {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .suggestions-grid {
    grid-template-columns: 1fr;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .container {
    padding: 2rem 1rem;
  }

  .hero-cta {
    flex-direction: column;
  }
}

/* Animações */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.hidden { display: none; }
