/* =========================================================================
   ANTIGRAVIT CERTIFICADOS DIGITAIS - DESIGN SYSTEM
   ========================================================================= */

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

:root {
  /* Cores Principais */
  --primary-color: #007BFF;
  --primary-dark: #0056b3;
  --primary-light: #e6f2ff;
  
  --success-color: #28A745;
  --success-dark: #1e7e34;
  --success-light: #e9fbf0;
  
  --accent-color: #FFC107; /* Opcional para destaques */
  
  /* Cores Neutras */
  --bg-color: #f8f9fa;
  --bg-white: #ffffff;
  --text-main: #212529;
  --text-muted: #6c757d;
  --border-color: #e9ecef;
  
  /* Sombras (Premium Feel) */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-glow-primary: 0 8px 24px rgba(0, 123, 255, 0.25);
  --shadow-glow-success: 0 8px 24px rgba(40, 167, 69, 0.3);
  
  /* Raios e Transições */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition-fast: 0.2s ease-in-out;
  --transition-smooth: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================================================
   BASE
   ========================================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color var(--transition-fast);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* =========================================================================
   TIPOGRAFIA & UTILITÁRIOS
   ========================================================================= */

.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.text-success { color: var(--success-color); }
.text-muted { color: var(--text-muted); }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

/* =========================================================================
   BOTÕES (CTAs de Alta Conversão)
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: all var(--transition-smooth);
  text-align: center;
  gap: 8px;
}

.btn:active {
  transform: translateY(2px);
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
  box-shadow: var(--shadow-glow-primary);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 12px 28px rgba(0, 123, 255, 0.35);
  transform: translateY(-2px);
  color: #fff; /* Garantindo contraste no hover se for tag de link */
}

.btn-success {
  background-color: var(--success-color);
  color: #fff;
  box-shadow: var(--shadow-glow-success);
}

.btn-success:hover {
  background-color: var(--success-dark);
  box-shadow: 0 12px 28px rgba(40, 167, 69, 0.35);
  transform: translateY(-2px);
  color: #fff;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-light);
}

/* =========================================================================
   HEADER & NAVBAR (Glassmorphism)
   ========================================================================= */

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition-smooth);
}

header.scrolled {
  box-shadow: var(--shadow-sm);
  padding: 5px 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
}

.logo img {
  height: 38px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links li a {
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--primary-color);
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  transition: width var(--transition-smooth);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

/* =========================================================================
   HERO SECTIONS
   ========================================================================= */

.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, var(--primary-light) 0%, rgba(255,255,255,1) 100%);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-content h1 span {
  color: var(--primary-color);
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-trust img {
  height: 24px;
  opacity: 0.7;
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform var(--transition-smooth);
}

.hero-image:hover img {
  transform: perspective(1000px) rotateY(0) rotateX(0);
}

/* Bolha Flutuante Hero */
.floating-badge {
  position: absolute;
  background: white;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  bottom: -20px;
  left: -30px;
  animation: float 4s ease-in-out infinite;
}

.floating-badge span.icon {
  background: var(--success-light);
  color: var(--success-color);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.2rem;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* =========================================================================
   SEÇÕES GERAIS
   ========================================================================= */

section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Cards (Benefícios / features) */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.card {
  background: var(--bg-white);
  padding: 40px 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.card-icon.blue { background: var(--primary-light); color: var(--primary-color); }
.card-icon.green { background: var(--success-light); color: var(--success-color); }

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

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

/* =========================================================================
   PREÇOS
   ========================================================================= */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  align-items: center;
}

.pricing-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  position: relative;
  transition: var(--transition-smooth);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border: 2px solid var(--primary-color);
  box-shadow: var(--shadow-glow-primary);
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pricing-title {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.pricing-price {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: baseline;
}

.pricing-price span {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  margin-bottom: 40px;
  text-align: left;
}

.pricing-features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
}

.pricing-features li i {
  color: var(--success-color);
}

.btn-full {
  width: 100%;
}

/* =========================================================================
   FAQ ACCORDION
   ========================================================================= */

.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  background: var(--bg-white);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 24px;
  font-size: 1.1rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
}

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

.faq-icon {
  transition: transform var(--transition-fast);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth);
}

.faq-answer p {
  padding: 0 24px 24px;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  max-height: 300px; /* Suficiente para texto */
}

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

/* =========================================================================
   WHATSAPP FLOATING BUTTON
   ========================================================================= */

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  animation: pulse-green 2s infinite;
  transition: transform var(--transition-fast);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #FFF;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =========================================================================
   FOOTER
   ========================================================================= */

footer {
  background-color: var(--text-main);
  color: white;
  padding: 80px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-about h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.footer-about p {
  color: #adb5bd;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.social-links a:hover {
  background: var(--primary-color);
}

.footer-links h4 {
  color: white;
  margin-bottom: 24px;
  font-size: 1.1rem;
}

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

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: #adb5bd;
  transition: color var(--transition-fast);
}

.footer-links ul li a:hover {
  color: white;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #adb5bd;
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

/* =========================================================================
   FORMS
   ========================================================================= */

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* =========================================================================
   TIMELINE (Passo a Passo)
   ========================================================================= */

.timeline {
  display: flex;
  gap: 24px;
  counter-reset: timeline-step;
}

.timeline-step {
  flex: 1;
  position: relative;
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

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

.timeline-step h3 {
  margin-bottom: 12px;
}

.timeline-step p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* =========================================================================
   RESPONSIVIDADE (MOBILE FIRST adjustments na verdade são desktop first aqui, 
   vamos adequar ao mobile abaixo)
   ========================================================================= */

@media (max-width: 991px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .hero-content p {
    margin: 0 auto 30px;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-trust {
    justify-content: center;
  }

  .timeline {
    flex-direction: column;
    gap: 48px;
  }

  .pricing-card.featured {
    transform: none;
  }
  
  .pricing-card.featured:hover {
    transform: translateY(-8px);
  }

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

@media (max-width: 768px) {
  .nav-links, .nav-actions {
    display: none; /* Escondido para mobile, acionado via menu toggler */
  }

  .menu-toggle {
    display: block;
  }
  
  /* Menu Mobile Activo */
  .nav-mobile-active .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 24px;
    box-shadow: var(--shadow-md);
    gap: 16px;
  }
  
  .nav-mobile-active .nav-actions {
    display: flex;
    position: absolute;
    top: calc(100% + 200px); /* Aproximadamente abaixo dos links */
    left: 0;
    width: 100%;
    background: white;
    padding: 24px;
    justify-content: center;
    box-shadow: 0 10px 10px rgba(0,0,0,0.1);
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
  }
}

/* =========================================================================
   CAROUSEL SIMPLES (Depoimentos)
   ========================================================================= */

.testimonials {
  background: var(--bg-color);
  overflow: hidden;
  position: relative;
}

.testimonial-track {
  display: flex;
  gap: 32px;
  padding: 20px 0;
  width: calc(400px * 8); /* ex de largura */
  animation: scroll-testimonial 40s linear infinite;
}

.testimonial-track:hover {
  animation-play-state: paused;
}

.testimonial-card {
  width: 400px;
  flex-shrink: 0;
  background: white;
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.stars {
  color: #FFC107;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 24px;
  color: var(--text-main);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 1rem;
}

.author-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@keyframes scroll-testimonial {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-400px * 4 - 32px * 4)); }
}