/* Paleta de cores inspiradas no Brasil */
:root {
  --primary: #009c3b;       /* Verde brasileiro */
  --secondary: #002776;     /* Azul brasileiro */
  --accent: #ffdf00;        /* Amarelo brasileiro */
  --light: #f8f8f8;         /* Fundo claro */
  --dark: #212121;          /* Texto escuro */
  --white: #ffffff;         /* Branco */
  --gradient-green: linear-gradient(135deg, #009c3b, #006129);
}

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

body {
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Tipografia */
h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  margin-bottom: 0.8em;
  color: var(--dark);
}

h1 {
  font-size: 2.8rem;
  line-height: 1.2;
}

h2 {
  font-size: 2.2rem;
  position: relative;
  margin-bottom: 1.5rem;
}

h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary);
  margin-top: 0.8rem;
}

.text-center {
  text-align: center;
}

.text-center h2::after {
  margin-left: auto;
  margin-right: auto;
}

p {
  margin-bottom: 1rem;
}

/* Header */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

header.scrolled {
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--primary);
}

.logo svg {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.logo-text {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--secondary);
}

/* Navegação */
nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding: 5px 0;
}

nav a::before {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

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

nav a:hover::before {
  width: 100%;
}

/* Menu móvel */
.menu-toggle {
  display: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background: var(--dark);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  padding-top: 120px;
  padding-bottom: 80px;
  position: relative;
  background: var(--secondary);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, var(--secondary), transparent 70%),
              radial-gradient(circle at 70% 20%, var(--primary), transparent 70%);
  opacity: 0.8;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* Botões */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--dark);
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid var(--accent);
  cursor: pointer;
}

.btn:hover {
  background-color: transparent;
  color: var(--accent);
}

.btn-secondary {
  background: var(--white);
  border-color: var(--white);
  color: var(--secondary);
}

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

/* Seções */
.section {
  padding: 80px 0;
}

.section:nth-child(even) {
  background-color: rgba(0, 39, 118, 0.03);
}

/* Cards de recursos */
.recursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.recurso-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recurso-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.recurso-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  background: linear-gradient(135deg, rgba(0,156,59,0.1), rgba(0,39,118,0.1));
  margin-bottom: 1rem;
}

.recurso-icon svg {
  width: 50px;
  height: 50px;
}

.recurso-content {
  padding: 20px;
}

.recurso-card h3 {
  margin-top: 0;
}

/* Como funciona */
.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 40px;
  gap: 20px;
}

.step {
  flex: 1;
  min-width: 280px;
  background: var(--white);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

/* FAQ */
.faq {
  max-width: 800px;
  margin: 40px auto 0;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  position: relative;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  padding: 0 20px;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 20px 20px;
}

/* CTA Central */
.cta-center {
  margin-top: 40px;
  text-align: center;
}

/* Rodapé */
footer {
  background: var(--secondary);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo svg {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.footer-links {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}

.footer-links a {
  color: var(--white);
  opacity: 0.8;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-keywords {
  opacity: 0.7;
  font-size: 0.9rem;
  margin-top: 20px;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Animações */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Responsividade */
@media (max-width: 992px) {
  h1 {
    font-size: 2.4rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  nav.show {
    max-height: 300px;
  }
  
  nav ul {
    flex-direction: column;
    padding: 20px;
    gap: 15px;
  }
  
  .hero {
    padding-top: 100px;
    padding-bottom: 60px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
  
  .footer-content {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 1.8rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .hero {
    padding-top: 80px;
    padding-bottom: 50px;
  }
}
