/* ============================================
   FLUX CONTÁBIL - Custom Bootstrap Styles
   Migrado de Tailwind CSS para Bootstrap 5
   ============================================ */

/* ============================================
   1. VARIÁVEIS CUSTOMIZADAS DO PROJETO
   ============================================ */

:root {
  /* Cores principais do projeto (migradas do tailwind.config.js) */
  --violet-brand: #8D53FF;      /* Roxo principal, vivo */
  --green-accent: #01E676;      /* Verde neon/vibrante */
  --violet-soft: #8C53FF;       /* Roxo um pouco mais escuro */
  --violet-deep: #8C52FF;       /* Roxo mais profundo */
  --violet-dark: #7A2EBF;       /* Roxo escuro */
  --teal-bright: #05C79A;       /* Verde água claro */
  --violet-muted: #8034C4;      /* Roxo arroxeado mais fechado */
  
  /* Sobrescrevendo variáveis Bootstrap com cores do projeto */
  --bs-primary: #7c3aed;
  --bs-primary-rgb: 124, 58, 237;
  --bs-primary-text-emphasis: #4c1d95;
  --bs-primary-bg-subtle: #ede9fe;
  --bs-primary-border-subtle: #c4b5fd;
  
  --bs-success: #01E676;
  --bs-success-rgb: 1, 230, 118;
  
  --bs-secondary: #8C53FF;
  --bs-secondary-rgb: 140, 83, 255;
  
  --bs-info: #05C79A;
  --bs-info-rgb: 5, 199, 154;
  
  --bs-dark: #7A2EBF;
  --bs-dark-rgb: 122, 46, 191;
  
  /* Cores de fundo e texto para modo claro/escuro */
  --bg-body-light: #ffffff;
  --bg-body-dark: #1f2937;
  --text-body-light: #374151;
  --text-body-dark: #e5e7eb;
}

/* ============================================
   2. ESTILOS GLOBAIS
   ============================================ */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

/* Modo Escuro */
html[data-web-theme="dark"] {
  --bs-body-bg: var(--bg-body-dark);
  --bs-body-color: var(--text-body-dark);
}

html[data-web-theme="dark"] body {
  background-color: var(--bg-body-dark);
  color: var(--text-body-dark);
}

/* ============================================
   3. NAVBAR CUSTOMIZADA
   ============================================ */

/* Navbar - Fundo roxo na posição inicial */
.ic-navbar {
  background-color: #8B5CF6 !important;
  transition: all 0.3s ease !important;
}

/* Textos brancos no menu inicial */
.ic-navbar a,
.ic-navbar .ic-navbar-link,
.ic-navbar .ic-navbar-toggler {
  color: white !important;
}

/* Ícones navbar (theme switcher e user) - Estado inicial (fundo roxo) */
.ic-navbar .navbar-icon {
  color: white !important;
}

.ic-navbar .navbar-icon:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Navbar toggler (hamburguer) */
.ic-navbar .navbar-toggler {
  color: white !important;
  border-color: transparent !important;
}

/* Logo no topo da página - Branco exceto logoQuinary */
.ic-navbar .logoPrimary,
.ic-navbar .logoSecondary,
.ic-navbar .logoTertiary,
.ic-navbar .logoQuartenary,
.ic-navbar .logoSenary,
.ic-navbar .logoSeptenary {
  fill: white !important;
}

/* logoQuinary sempre mantém a cor roxa */
.logoQuinary {
  fill: #7a2ebf !important;
}

/* Navbar Sticky - Transparência quando rolando */
.ic-navbar.sticky {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  backdrop-filter: blur(10px) !important;
  background-color: rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
  transition: all 0.3s ease !important;
}

/* Textos escuros no menu sticky */
.ic-navbar.sticky a,
.ic-navbar.sticky .ic-navbar-link,
.ic-navbar.sticky .ic-navbar-toggler {
  color: #1f2937 !important;
}

/* Ícones navbar sticky - Modo claro (fundo branco transparente) - PRETO */
.ic-navbar.sticky .navbar-icon {
  color: #000000 !important;
}

.ic-navbar.sticky .navbar-icon:hover {
  color: var(--bs-primary) !important;
}

.ic-navbar.sticky .navbar-toggler {
  color: #000000 !important;
}

/* Logo colorido no menu sticky - Cores oficiais FLUX */
.ic-navbar.sticky .logoPrimary {
  fill: #8d53ff !important;
}
.ic-navbar.sticky .logoSecondary {
  fill: #01e676 !important;
}
.ic-navbar.sticky .logoTertiary {
  fill: #8c53ff !important;
}
.ic-navbar.sticky .logoQuartenary {
  fill: #8c52ff !important;
}
.ic-navbar.sticky .logoQuinary {
  fill: #7a2ebf !important;
}
.ic-navbar.sticky .logoSenary {
  fill: #05c79a !important;
}
.ic-navbar.sticky .logoSeptenary {
  fill: #8034c4 !important;
}

/* Modo escuro - Navbar sticky */
html[data-web-theme="dark"] .ic-navbar.sticky {
  background-color: rgba(17, 24, 39, 0.8) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Ícones navbar em modo escuro sticky - BRANCOS */
html[data-web-theme="dark"] .ic-navbar.sticky .navbar-icon {
  color: #ffffff !important;
}

html[data-web-theme="dark"] .ic-navbar.sticky .navbar-icon:hover {
  color: var(--green-accent) !important;
}

html[data-web-theme="dark"] .ic-navbar.sticky .navbar-toggler {
  color: #ffffff !important;
}

/* Ícones navbar em modo escuro inicial - BRANCOS */
html[data-web-theme="dark"] .ic-navbar .navbar-icon {
  color: #ffffff !important;
}

html[data-web-theme="dark"] .ic-navbar .navbar-toggler {
  color: #ffffff !important;
}

/* Links do menu navbar em modo escuro - BRANCOS */
html[data-web-theme="dark"] .ic-navbar .nav-link {
  color: #ffffff !important;
}

html[data-web-theme="dark"] .ic-navbar .nav-link:hover {
  color: rgba(255, 255, 255, 0.8) !important;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Links do menu navbar sticky em modo escuro - BRANCOS */
html[data-web-theme="dark"] .ic-navbar.sticky .nav-link {
  color: #ffffff !important;
}

html[data-web-theme="dark"] .ic-navbar.sticky .nav-link:hover {
  color: var(--green-accent) !important;
  background-color: rgba(1, 230, 118, 0.1);
}

/* ============================================
   4. BOTÃO CTA "VAMOS COMEÇAR"
   ============================================ */

/* Botão CTA - Estado inicial (navbar no topo com fundo roxo) */
.btn-navbar-cta {
  margin-left: 1.25rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-weight: 500;
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-navbar-cta:hover {
  background-color: #ffffff;
  color: #7c3aed !important;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Botão CTA quando navbar está sticky (rolado) */
.ic-navbar.sticky .btn-navbar-cta {
  background-color: #7c3aed;
  color: #ffffff !important;
  border: 2px solid #7c3aed;
}

.ic-navbar.sticky .btn-navbar-cta:hover {
  background-color: #6d28d9;
  color: #ffffff !important;
  border-color: #6d28d9;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(124, 58, 237, 0.3);
}

/* Modo escuro - Botão CTA */
html[data-web-theme="dark"] .btn-navbar-cta {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3);
}

html[data-web-theme="dark"] .btn-navbar-cta:hover {
  background-color: #01e676;
  color: #1f2937 !important;
  border-color: #01e676;
}

html[data-web-theme="dark"] .ic-navbar.sticky .btn-navbar-cta {
  background-color: #7c3aed;
  color: #ffffff !important;
  border-color: #7c3aed;
}

html[data-web-theme="dark"] .ic-navbar.sticky .btn-navbar-cta:hover {
  background-color: #01e676;
  color: #1f2937 !important;
  border-color: #01e676;
}

/* ============================================
   5. HERO SECTION COM GRADIENTE
   ============================================ */

.hero-gradient {
  background: linear-gradient(135deg, #8B5CF6 0%, #7c3aed 100%);
  color: white;
}

.hero-gradient h1,
.hero-gradient h2,
.hero-gradient h3,
.hero-gradient p {
  color: white !important;
}

/* ============================================
   6. MENUS E NAVEGAÇÃO
   ============================================ */

/* Estilos para menus de navegação (Portfolio, etc) */
.portfolio-menu .btn-outline-primary {
  border: 2px solid #6366f1;
  color: #6366f1;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  transition: all 0.3s ease;
}

.portfolio-menu .btn-outline-primary:hover,
.portfolio-menu .btn-outline-primary.active {
  background-color: #6366f1;
  color: #ffffff;
  border-color: #6366f1;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(99, 102, 241, 0.3);
}

/* Estilo para nav-pills da seção sobre */
.nav-pills .nav-link {
  color: #6b7280;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  transition: all 0.3s ease;
  border-radius: 0.5rem;
}

.nav-pills .nav-link:hover {
  background-color: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
}

.nav-pills .nav-link.active {
  background-color: #7c3aed !important;
  color: #ffffff !important;
}

.nav-pills .nav-link:focus,
.nav-pills .nav-link:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(124, 58, 237, 0.25);
}

/* Garantir que o conteúdo das tabs tenha padding adequado */
.tab-content {
  padding: 1.5rem;
  background-color: #f9fafb;
  border-radius: 0.5rem;
  min-height: 150px;
}

.tab-pane p {
  color: #374151;
  line-height: 1.7;
}

/* ============================================
   7. CARDS CUSTOMIZADOS
   ============================================ */

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ============================================
   8. BOTÕES CUSTOMIZADOS
   ============================================ */

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #7c3aed;
  --bs-btn-border-color: #7c3aed;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #6d28d9;
  --bs-btn-hover-border-color: #6d28d9;
  --bs-btn-focus-shadow-rgb: 147, 89, 245;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #5b21b6;
  --bs-btn-active-border-color: #5b21b6;
}

.btn-success {
  --bs-btn-color: #1f2937;
  --bs-btn-bg: #01E676;
  --bs-btn-border-color: #01E676;
  --bs-btn-hover-color: #1f2937;
  --bs-btn-hover-bg: #00d666;
  --bs-btn-hover-border-color: #00d666;
}

/* ============================================
   9. FORMULÁRIOS
   ============================================ */

.form-control:focus,
.form-select:focus {
  border-color: #c4b5fd;
  box-shadow: 0 0 0 0.25rem rgba(124, 58, 237, 0.25);
}

.input-group-text {
  color: #7c3aed;
}

/* Formulários floating labels com validação */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: #7c3aed;
}

/* Estados de validação */
.form-control.is-valid {
  border-color: #01E676;
}

.form-control.is-invalid {
  border-color: #dc3545;
}

.form-control:focus.is-valid {
  border-color: #01E676;
  box-shadow: 0 0 0 0.25rem rgba(1, 230, 118, 0.25);
}

/* ============================================
   10. ALERTS CUSTOMIZADOS
   ============================================ */

.alert-info {
  --bs-alert-color: #4c1d95;
  --bs-alert-bg: #ede9fe;
  --bs-alert-border-color: #c4b5fd;
}

/* ============================================
   11. ANIMAÇÕES E TRANSIÇÕES
   ============================================ */

/* Estado inicial dos elementos scroll-revealed */
.scroll-revealed {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Estado revelado quando entra na viewport */
.scroll-revealed.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Diferentes delays para efeito cascata */
.scroll-revealed:nth-child(1) { transition-delay: 0s; }
.scroll-revealed:nth-child(2) { transition-delay: 0.1s; }
.scroll-revealed:nth-child(3) { transition-delay: 0.2s; }
.scroll-revealed:nth-child(4) { transition-delay: 0.3s; }
.scroll-revealed:nth-child(5) { transition-delay: 0.4s; }
.scroll-revealed:nth-child(6) { transition-delay: 0.5s; }

/* Animação de fade-in para elementos ao rolar */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   12. UTILITÁRIOS CUSTOMIZADOS
   ============================================ */

/* Cores de texto customizadas */
.text-violet-brand {
  color: var(--violet-brand) !important;
}

.text-green-accent {
  color: var(--green-accent) !important;
}

/* Cores de fundo customizadas */
.bg-violet-brand {
  background-color: var(--violet-brand) !important;
}

.bg-green-accent {
  background-color: var(--green-accent) !important;
}

.bg-light-purple {
  background-color: #f3f4f6;
}

/* Sombras customizadas */
.shadow-custom {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-custom-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ============================================
   13. RESPONSIVIDADE
   ============================================ */

/* Mobile First - Ajustes para mobile */
@media (max-width: 767.98px) {
  .hero-gradient {
    padding-top: 100px !important;
    padding-bottom: 60px !important;
  }
  
  .btn-navbar-cta {
    margin-left: 0;
    margin-top: 1rem;
    width: 100%;
  }
  
  .portfolio-menu .btn-outline-primary {
    margin: 0.25rem !important;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-gradient {
    padding-top: 130px !important;
  }
}

/* Desktop */
@media (min-width: 992px) {
  .hero-gradient {
    padding-top: 160px !important;
  }
}

/* ============================================
   14. SEÇÕES E ESPAÇAMENTO
   ============================================ */

.section-area {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section-area {
    padding: 6rem 0;
  }
}

/* ============================================
   15. FOOTER
   ============================================ */

footer {
  background-color: #1f2937;
  color: #e5e7eb;
}

footer a {
  color: #e5e7eb;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--green-accent);
}

/* ============================================
   16. COMPATIBILIDADE COM MODO ESCURO
   ============================================ */

html[data-web-theme="dark"] .card {
  background-color: #374151;
  color: #e5e7eb;
  border-color: #4b5563;
}

html[data-web-theme="dark"] .bg-light-purple {
  background-color: #374151;
}

html[data-web-theme="dark"] .tab-content {
  background-color: #374151;
}

html[data-web-theme="dark"] .tab-pane p {
  color: #e5e7eb;
}

html[data-web-theme="dark"] .nav-pills .nav-link {
  color: #e5e7eb;
}

html[data-web-theme="dark"] .nav-pills .nav-link:hover {
  background-color: rgba(124, 58, 237, 0.2);
  color: #ffffff;
}

html[data-web-theme="dark"] .nav-pills .nav-link.active {
  background-color: #7c3aed !important;
  color: #ffffff !important;
}

/* ============================================
   17. DROPDOWN HOVER NO NAVBAR
   ============================================ */

/* Dropdown aparece ao passar o mouse */
.navbar .dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
}

/* Transição suave para o dropdown */
.navbar .dropdown-menu {
  display: none;
  transition: all 0.3s ease;
  animation: fadeInDown 0.3s ease-out;
}

/* Garantir que itens do dropdown sejam sempre escuros */
.navbar .dropdown-item {
  color: #212529 !important;
}

.navbar .dropdown-item:hover {
  color: #ffffff !important;
  background-color: var(--bs-primary) !important;
}

.navbar .dropdown-item i {
  color: inherit !important;
}

/* Animação de fade in */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   18. FAQ SECTION
   ============================================ */

/* Garantir que as colunas do FAQ fiquem lado a lado */
#faq .row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

#faq .col-12.col-lg-6 {
  display: flex;
  flex-direction: column;
}

/* Espaçamento entre perguntas dentro da coluna */
#faq .d-flex.flex-column {
  gap: 1.5rem;
}

/* Item FAQ */
#faq .d-flex:not(.flex-column) {
  margin-bottom: 0;
}

/* ============================================
   18.5. TYPED.JS HERO SECTION
   ============================================ */

/* Garantir que o cursor do typed.js apareça corretamente */
.typed-cursor {
  opacity: 1;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ============================================
   19. FOOTER
   ============================================ */

.hover-text-primary {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.hover-text-primary:hover {
  color: var(--bs-primary) !important;
  background-color: rgba(124, 58, 237, 0.1);
  transform: translateX(5px);
}

/* ============================================
   20. MELHORIAS DE HOVER GERAIS
   ============================================ */

/* Nav links com mais área de hover */
.navbar .nav-link {
  padding: 0.75rem 1rem;
  margin: 0 0.25rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}

.navbar .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.ic-navbar.sticky .nav-link:hover {
  background-color: rgba(124, 58, 237, 0.1);
}

/* Botões com hover melhorado */
.btn {
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

/* Remover cor azul padrão do focus - usar roxo do projeto */
.btn:focus,
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.25rem rgba(124, 58, 237, 0.25) !important;
}

.btn-primary:focus,
.btn-primary:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(124, 58, 237, 0.5) !important;
}

.btn-outline-primary {
  border-color: var(--bs-primary) !important;
  color: var(--bs-primary) !important;
}

.btn-outline-primary:hover {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: #ffffff !important;
}

.btn-outline-primary:focus,
.btn-outline-primary:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(124, 58, 237, 0.25) !important;
}

.btn-outline-primary:active {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: #ffffff !important;
}

/* Cards com hover suave */
.card-hover {
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 1.5rem;
}

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

/* Cards de serviços com padding específico */
#services .card-hover {
  padding: 2rem;
  border-radius: 1rem;
  background-color: transparent;
  border: none;
}

/* Links de menu do footer com mais espaço */
footer .list-unstyled li a {
  padding: 0.5rem;
  display: inline-block;
  transition: all 0.3s ease;
}

footer .list-unstyled li a:hover {
  transform: translateX(5px);
  color: var(--bs-primary) !important;
}

/* Ícones sociais com mais área de hover */
footer .d-flex a {
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

footer .d-flex a:hover {
  background-color: rgba(124, 58, 237, 0.2);
  transform: scale(1.1);
}

/* ============================================
   18. BLOG CUSTOM STYLES
   ============================================ */

/* Hover link roxo para títulos de artigos */
.hover-primary:hover {
  color: var(--bs-primary) !important;
}

/* Espaçamento de artigos do blog */
.blog-article {
  transition: transform 0.2s ease;
}

.blog-article:hover {
  transform: translateY(-2px);
}

/* Imagens do blog com hover suave */
.blog-article img {
  transition: transform 0.3s ease;
}

.blog-article:hover img {
  transform: scale(1.02);
}

