/* ============================================
   Reset básico e configurações globais
   ============================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: #2b2b2b;
  background-color: #ffffff;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.25;
}

h2 {
  font-size: 1.9rem;
  margin-bottom: 1.5rem;
  color: #12181f;
  text-align: center;
}

p {
  margin-bottom: 1rem;
  color: #444444;
}

/* ============================================
   Header / Navegação
   ============================================ */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  position: relative;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: #12181f;
  margin: 0;
}

.main-nav ul {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: #333333;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus {
  color: #0a58ff;
}

.menu-toggle {
  display: none;
}

.menu-button {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #12181f;
  border-radius: 1px;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  background-color: #0d1117;
  color: #ffffff;
  padding: 5.5rem 0;
  text-align: center;
}

.eyebrow {
  color: #7fa8ff;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2.75rem;
  max-width: 44rem;
  margin: 0 auto 1.25rem auto;
  color: #ffffff;
}

.hero-tagline {
  font-size: 1.15rem;
  max-width: 38rem;
  margin: 0 auto 2rem auto;
  color: #c3c9d1;
}

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

.btn {
  display: inline-block;
  padding: 0.85rem 1.85rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background-color: #0a58ff;
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #0a46cc;
}

.btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover,
.btn-secondary:focus {
  border-color: #ffffff;
}

/* ============================================
   Seções gerais
   ============================================ */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background-color: #f5f7fa;
}

.lead-text {
  max-width: 42rem;
  margin: 0 auto 1rem auto;
  text-align: center;
  font-size: 1.05rem;
}

.lead-text-center {
  margin-top: 2.5rem;
  font-weight: 600;
  color: #12181f;
}

/* ============================================
   Fluxo (problema / antes-depois)
   ============================================ */
.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0;
}

.flow-step {
  background-color: #ffffff;
  border: 1px solid #d8dee6;
  border-radius: 999px;
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #12181f;
}

.flow-arrow {
  color: #9aa4b2;
  font-size: 1.1rem;
}

.flow-diagram-vertical {
  flex-direction: column;
  align-items: stretch;
  margin: 0;
}

.flow-diagram-vertical .flow-step {
  border-radius: 6px;
  text-align: center;
}

.flow-step-highlight {
  background-color: #0a58ff;
  border-color: #0a58ff;
  color: #ffffff;
}

.before-after-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.before-after-label {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #6b7280;
}

.before-after-label-highlight {
  color: #0a58ff;
}

/* ============================================
   Pilares / Áreas (grids de cards)
   ============================================ */
.pillars-grid,
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.pillar-card,
.area-card {
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 1.75rem;
}

.section-alt .pillar-card,
.section-alt .area-card {
  background-color: #ffffff;
}

.pillar-index {
  display: block;
  font-weight: 800;
  font-size: 1rem;
  color: #0a58ff;
  margin-bottom: 0.75rem;
}

.pillar-card h3,
.area-card h3 {
  font-size: 1.1rem;
  color: #12181f;
  margin-bottom: 0.5rem;
}

.pillar-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.area-card ul {
  margin-top: 0.5rem;
}

.area-card li {
  font-size: 0.9rem;
  color: #444444;
  padding: 0.25rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.area-card li:last-child {
  border-bottom: none;
}

/* ============================================
   Metodologia
   ============================================ */
.methodology-list {
  max-width: 40rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.methodology-step {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.methodology-index {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: #0a58ff;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
}

.methodology-step h3 {
  font-size: 1.05rem;
  color: #12181f;
  margin-bottom: 0.25rem;
}

.methodology-step p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ============================================
   Critério de priorização / IA fórmulas
   ============================================ */
.priority-formula,
.ai-formula {
  text-align: center;
  font-weight: 700;
  font-size: 1.15rem;
  color: #0a58ff;
  max-width: 40rem;
  margin: 0 auto 1.5rem auto;
}

/* ============================================
   Automação + IA
   ============================================ */
.ai-compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.ai-compare-col {
  background-color: #f5f7fa;
  border-radius: 8px;
  padding: 1.75rem;
  text-align: center;
}

.ai-compare-col h3 {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.ai-compare-col-highlight {
  background-color: #0d1117;
}

.ai-compare-col-highlight h3 {
  color: #7fa8ff;
}

.ai-compare-col-highlight .ai-formula {
  color: #ffffff;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.tag-list li {
  background-color: #ffffff;
  border: 1px solid #d8dee6;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  color: #333333;
}

.section-alt .tag-list li {
  background-color: #ffffff;
}

/* ============================================
   Oferta principal (Diagnóstico)
   ============================================ */
.offer-section {
  background-color: #0d1117;
}

.offer-box {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.offer-box h2 {
  color: #ffffff;
}

.offer-box .lead-text {
  color: #c3c9d1;
}

.offer-list {
  display: inline-grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem 2rem;
  text-align: left;
  margin: 0 auto 2rem auto;
}

.offer-list li {
  color: #c3c9d1;
  font-size: 0.95rem;
  padding-left: 1.25rem;
  position: relative;
}

.offer-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #7fa8ff;
}

/* ============================================
   Contato / Formulário
   ============================================ */
.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 42rem;
  margin: 2rem auto;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row-full {
  grid-column: 1 / -1;
}

.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #12181f;
}

.form-row input,
.form-row textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #d8dee6;
  border-radius: 4px;
  color: #12181f;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #0a58ff;
}

.contact-form button {
  grid-column: 1 / -1;
  justify-self: center;
}

.contact-list {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.contact-list li {
  margin-bottom: 0.6rem;
  color: #444444;
}

/* ============================================
   Redes sociais
   ============================================ */
.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #2b2b2b;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: lowercase;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.social-link:hover,
.social-link:focus-visible {
  background-color: #0a58ff;
  border-color: #0a58ff;
  color: #ffffff;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background-color: #0d1117;
  color: #dddddd;
  padding: 2rem 0;
  text-align: center;
}

.site-footer p {
  color: #9aa4b2;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
}

.site-footer .social-links {
  margin: 1rem 0;
}

.site-footer .social-link {
  border-color: rgba(255, 255, 255, 0.25);
  color: #dddddd;
}

/* ============================================
   Navegação por seção (nav.js): foco acessível ao
   pular para uma seção via menu, CTA ou deep link
   ============================================ */
main section:focus-visible {
  outline: 3px solid #0a58ff;
  outline-offset: -3px;
}

/* ============================================
   Responsividade
   ============================================ */
@media (max-width: 640px) {
  .menu-button {
    display: flex;
    z-index: 200;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem 1rem;
  }

  .main-nav a {
    display: block;
    padding: 0.75rem 0;
  }

  .menu-toggle:checked ~ .main-nav {
    max-height: 400px;
  }

  .hero {
    padding: 3.5rem 0;
  }

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

  .hero-tagline {
    font-size: 1rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .section {
    padding: 3rem 0;
  }

  .before-after-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .ai-compare {
    grid-template-columns: 1fr;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form button {
    width: 100%;
  }
}

/* Telas grandes (desktop) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}
