/* ════════════════════════════════════════════════════════════════
   TAVIREX CONTABILIDADE - ESTILO EDITORIAL REFINADO
   ════════════════════════════════════════════════════════════════ */

:root {
  /* Paleta Exclusiva - Editorial Sofisticado */
  --navy-deep: #1a3a52;
  --navy-mid: #2d5f7f;
  --emerald: #1e7a5f;
  --emerald-light: #2d9b73;
  --gold-accent: #c9a961;
  --gray-dark: #2a2a2a;
  --gray-mid: #5a5a5a;
  --gray-light: #e8e8e8;
  --white: #ffffff;
  --cream: #faf9f7;
  
  /* Tipografia */
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Espaçamento */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  
  /* Timing */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray-dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ════════════════════════════════════════════════════════════════
   HEADER ELEGANTE
   ════════════════════════════════════════════════════════════════ */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(250, 249, 247, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(42, 42, 42, 0.08);
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  box-shadow: 0 2px 20px rgba(26, 58, 82, 0.08);
}

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

.logo {
  height: 45px;
  width: auto;
  transition: var(--transition);
}

.logo:hover {
  opacity: 0.8;
}

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

.nav-links a {
  color: var(--navy-deep);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  position: relative;
  transition: var(--transition);
}

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

.nav-links a:hover {
  color: var(--emerald);
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--navy-deep);
  margin: 5px 0;
  transition: var(--transition);
}

/* ════════════════════════════════════════════════════════════════
   SEÇÕES BASE
   ════════════════════════════════════════════════════════════════ */

section {
  padding: var(--space-xl) 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--navy-deep);
  margin-bottom: var(--space-md);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--gray-mid);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
  max-width: 800px;
}

/* ════════════════════════════════════════════════════════════════
   ABERTURA CONCEITUAL
   ════════════════════════════════════════════════════════════════ */

.hero-opening {
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--cream) 0%, #f5f4f2 100%);
  position: relative;
  overflow: hidden;
  margin-top: 70px;
}

.hero-opening::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('../assets/hero.svg') no-repeat center / contain;
  opacity: 0.6;
  animation: heroFloat 20s ease-in-out infinite;
}

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

.hero-content {
  max-width: 700px;
  z-index: 1;
  animation: fadeInUp 1s ease-out;
}

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

.hero-content h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--navy-deep);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-content .lead {
  font-size: 1.35rem;
  color: var(--gray-mid);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(26, 58, 82, 0.15);
}

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

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--emerald);
  font-weight: 300;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray-mid);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ════════════════════════════════════════════════════════════════
   SEÇÃO RISCOS - DESIGN IMPACTANTE
   ════════════════════════════════════════════════════════════════ */

.risks-section {
  background: var(--navy-deep);
  color: var(--white);
  padding: var(--space-xl) 2rem;
}

.risks-section .section-title {
  color: var(--white);
}

.risks-section .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.risks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: var(--space-lg);
}

.risk-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 2rem;
  transition: var(--transition);
}

.risk-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.risk-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.risk-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--gold-accent);
}

.risk-card p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

/* ════════════════════════════════════════════════════════════════
   SEÇÃO EDUCATIVA - LAYOUT MAGAZINE
   ════════════════════════════════════════════════════════════════ */

.education-section {
  background: var(--white);
}

.content-blocks {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--gray-light);
}

.content-block:last-child {
  border-bottom: none;
}

.content-block:nth-child(even) {
  direction: rtl;
}

.content-block:nth-child(even) > * {
  direction: ltr;
}

.block-visual {
  background: linear-gradient(135deg, var(--navy-mid), var(--emerald));
  border-radius: 8px;
  padding: 3rem;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
}

.block-visual h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.block-number {
  font-size: 4rem;
  font-weight: 700;
  opacity: 0.3;
  line-height: 1;
}

.block-text h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--navy-deep);
  margin-bottom: 1rem;
  font-weight: 400;
}

.block-text p {
  color: var(--gray-mid);
  margin-bottom: 1rem;
}

.block-text ul {
  list-style: none;
  margin-top: 1.5rem;
}

.block-text li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.8rem;
  color: var(--gray-dark);
}

.block-text li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: bold;
}

/* ════════════════════════════════════════════════════════════════
   TABELAS E QUADROS EXPLICATIVOS
   ════════════════════════════════════════════════════════════════ */

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26, 58, 82, 0.08);
}

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

.comparison-table th {
  padding: 1.2rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

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

.comparison-table tbody tr {
  background: var(--white);
  transition: var(--transition);
}

.comparison-table tbody tr:hover {
  background: rgba(30, 122, 95, 0.03);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

/* ════════════════════════════════════════════════════════════════
   FAQ INTERATIVO
   ════════════════════════════════════════════════════════════════ */

.faq-section {
  background: var(--cream);
}

.faq-container {
  max-width: 900px;
  margin: var(--space-lg) auto 0;
}

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

.faq-item:hover {
  box-shadow: 0 4px 20px rgba(26, 58, 82, 0.1);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem 2rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy-deep);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

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

.faq-icon {
  font-size: 1.5rem;
  color: var(--emerald);
  transition: var(--transition);
}

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

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

.faq-answer-content {
  padding: 0 2rem 1.5rem;
  color: var(--gray-mid);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* ════════════════════════════════════════════════════════════════
   FORMULÁRIO DE CONTATO ELEGANTE
   ════════════════════════════════════════════════════════════════ */

.contact-section {
  background: var(--white);
}

.contact-wrapper {
  max-width: 800px;
  margin: var(--space-lg) auto 0;
  background: var(--cream);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 4px 30px rgba(26, 58, 82, 0.08);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 500;
  color: var(--navy-deep);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(26, 58, 82, 0.2);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(30, 122, 95, 0.1);
}

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

.submit-btn {
  background: var(--navy-deep);
  color: var(--white);
  border: none;
  padding: 1.2rem 3rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.submit-btn:hover {
  background: var(--emerald);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 122, 95, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 6px;
  display: none;
}

.form-message.success {
  background: rgba(30, 122, 95, 0.1);
  color: var(--emerald);
  border: 1px solid var(--emerald);
  display: block;
}

.form-message.error {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid #dc3545;
  display: block;
}

/* ════════════════════════════════════════════════════════════════
   CREDIBILIDADE INSTITUCIONAL
   ════════════════════════════════════════════════════════════════ */

.credentials-section {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  color: var(--white);
}

.credentials-section .section-title {
  color: var(--white);
}

.credentials-section .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: var(--space-lg);
}

.credential-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.credential-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-5px);
}

.credential-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--gold-accent);
}

.credential-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  font-weight: 400;
}

.credential-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ════════════════════════════════════════════════════════════════
   RODAPÉ PROFISSIONAL
   ════════════════════════════════════════════════════════════════ */

footer {
  background: var(--gray-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 2rem 2rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
}

.footer-section p,
.footer-section a {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--emerald-light);
}

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

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.5;
}

.company-data {
  font-size: 0.8rem;
  line-height: 1.6;
  opacity: 0.6;
  margin-top: 1rem;
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVIDADE
   ════════════════════════════════════════════════════════════════ */

@media (max-width: 968px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background: rgba(250, 249, 247, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(26, 58, 82, 0.1);
    transition: var(--transition);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
  }
  
  .content-block {
    grid-template-columns: 1fr;
  }
  
  .content-block:nth-child(even) {
    direction: ltr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 640px) {
  section {
    padding: var(--space-lg) 1.5rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content .lead {
    font-size: 1.1rem;
  }
  
  .risks-grid {
    grid-template-columns: 1fr;
  }
  
  .credentials-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-wrapper {
    padding: 2rem 1.5rem;
  }
}

/* ════════════════════════════════════════════════════════════════
   ANIMAÇÕES E MICROINTERAÇÕES
   ════════════════════════════════════════════════════════════════ */

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-in {
  animation: slideIn 0.6s ease-out;
}

/* Pattern de fundo sutil */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/pattern.svg');
  opacity: 0.03;
  z-index: -1;
  pointer-events: none;
}
