/* ============================================
   CONCONTABIL - Base CSS
   Reset, Layout, Components & Responsivity
   ============================================ */

/* RESET & DEFAULTS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary);
}

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

/* LISTS */
ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

/* FORMS */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background-color: var(--bg-light);
  color: var(--text-dark);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.logo-section {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-img {
  width: 40px;
  height: 40px;
}

.logo-text {
  display: none;
}

/* NAVIGATION */
.nav-main {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  position: relative;
  transition: color 0.3s ease;
}

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

.nav-link:hover::after {
  width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--text-dark);
  max-width: 800px;
  padding: 2rem;
}

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

.hero-title .highlight {
  color: var(--secondary);
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-medium);
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 0.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

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

section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-medium);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* DIAGNÓSTICO */
.diagnostico {
  background-color: var(--bg-light);
}

.diagnostico-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.diagnostico-card {
  background: white;
  padding: 2rem;
  border-radius: 0.75rem;
  border-left: 4px solid var(--secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.diagnostico-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.diagnostico-card h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* PILARES */
.pilares {
  background: linear-gradient(135deg, var(--bg-light), #f0f4ff);
}

.pilares-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.pilar {
  background: white;
  padding: 2.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-top: 4px solid var(--primary);
  transition: all 0.3s ease;
}

.pilar:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.pilar-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--secondary);
  opacity: 0.2;
  margin-bottom: 0.5rem;
}

.pilar h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.pilar-list {
  list-style: none;
  margin-left: 0;
}

.pilar-list li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.75rem;
  color: var(--text-medium);
}

.pilar-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

/* EDUCAÇÃO */
.educacao {
  background-color: white;
}

.educacao-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.educacao-text h3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

.educacao-text h4 {
  color: var(--secondary);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.educacao-list {
  list-style: none;
  margin-left: 0;
}

.educacao-list li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.educacao-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

/* TABELA */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.comparison-table thead {
  background-color: var(--primary);
  color: white;
}

.comparison-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 700;
}

.comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.comparison-table tbody tr:hover {
  background-color: #f9f9f9;
}

/* TABS */
.tabs-container {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tabs-buttons {
  display: flex;
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
}

.tab-button {
  flex: 1;
  min-width: 150px;
  padding: 1.25rem 1rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-medium);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.tab-button:hover {
  color: var(--primary);
  background-color: #f9f9f9;
}

.tab-button.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tabs-content {
  padding: 2rem;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.tab-item h4 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.tab-item ul {
  list-style: none;
  margin-left: 0;
}

.tab-item li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.75rem;
}

.tab-item li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

/* CHECKLIST */
.checklist {
  background: linear-gradient(135deg, #f0f4ff, white);
}

.checklist-container {
  max-width: 600px;
  margin: 0 auto;
}

.checklist-items {
  background: white;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

.checklist-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.checklist-item:hover {
  background-color: #f9f9f9;
}

.checklist-input {
  width: 20px;
  height: 20px;
  margin-right: 1rem;
  cursor: pointer;
  accent-color: var(--secondary);
}

.checklist-label {
  font-size: 1rem;
  color: var(--text-dark);
}

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

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

/* CREDIBILIDADE */
.credibilidade {
  background-color: white;
}

.credibilidade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.credibilidade-card {
  background: linear-gradient(135deg, #f0f4ff, white);
  padding: 2rem;
  border-radius: 0.75rem;
  border-left: 4px solid var(--secondary);
  text-align: center;
}

.credibilidade-card h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.credential {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.metodo-section {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 3rem;
  border-radius: 0.75rem;
}

.metodo-section h3 {
  color: white;
  text-align: center;
  margin-bottom: 2rem;
}

.metodo-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

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

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.metodo-step h4 {
  color: white;
  margin-bottom: 0.5rem;
}

/* FAQ */
.faq {
  background-color: var(--bg-light);
}

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

.faq-item {
  background: white;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  border-left: 4px solid var(--primary);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
  display: block;
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
  user-select: none;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #f9f9f9;
}

.faq-question::marker {
  color: var(--secondary);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-medium);
  line-height: 1.8;
}

.faq-answer p {
  margin-bottom: 1rem;
}

/* CONTATO */
.contato {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.contato .section-title {
  color: white;
}

.contato .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.contato-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contato-form {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 0.75rem;
  backdrop-filter: blur(10px);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: white;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: white;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.submit-button {
  width: 100%;
  padding: 1rem;
  background-color: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.form-feedback {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
  display: none;
}

.form-feedback.success {
  display: block;
  background-color: rgba(5, 150, 105, 0.2);
  color: white;
  border: 1px solid rgba(5, 150, 105, 0.5);
}

.form-feedback.error {
  display: block;
  background-color: rgba(220, 38, 38, 0.2);
  color: white;
  border: 1px solid rgba(220, 38, 38, 0.5);
}

.contato-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contato-info h3 {
  color: white;
  margin-bottom: 2rem;
}

.info-item {
  margin-bottom: 2rem;
}

.info-item h4 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.info-item p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.info-item a {
  color: var(--accent);
  font-weight: 600;
}

/* FOOTER */
.footer {
  background-color: var(--text-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1rem;
}

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

.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
}

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

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  font-size: 0.9rem;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .header-container {
    padding: 1rem;
  }

  .logo-text {
    display: inline;
    font-size: 1.1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background-color: white;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-list.active {
    max-height: 400px;
  }

  .nav-list li {
    border-bottom: 1px solid var(--border);
  }

  .nav-link {
    display: block;
    padding: 1rem 1.5rem;
  }

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

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

  section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .diagnostico-grid,
  .pilares-grid,
  .credibilidade-grid {
    grid-template-columns: 1fr;
  }

  .educacao-content {
    grid-template-columns: 1fr;
  }

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

  .tabs-buttons {
    flex-wrap: wrap;
  }

  .tab-button {
    min-width: 120px;
    padding: 1rem;
    font-size: 0.9rem;
  }

  .contato-wrapper {
    grid-template-columns: 1fr;
  }

  .metodo-steps {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .hero {
    min-height: 400px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .cta-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  section {
    padding: 2rem 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .pilar,
  .diagnostico-card,
  .credibilidade-card {
    padding: 1.5rem;
  }

  .comparison-table {
    font-size: 0.85rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem;
  }

  .contato-form,
  .metodo-section {
    padding: 1.5rem;
  }
}
