/* ==========================================================================
   ADNA CONTABILIDADE - DESIGN SYSTEM EXECUTIVO GOURMET & MOBILE POLISH
   Paleta Sóbria: Midnight Navy (#061122), Adna Navy (#0B2545), 
   Sapphire CTA (#134074) & Lux Off-White (#F8F9FA)
   ========================================================================== */

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

:root {
  /* Midnight Navy (Fundo Dark & Header) */
  --midnight-950: #030812;
  --midnight-900: #061122;
  --midnight-850: #091830;
  --midnight-800: #0c2040;
  --midnight-700: #112b55;

  /* Adna Navy Institucional (Títulos & Identidade) */
  --adna-900: #07182d;
  --adna-800: #0B2545;
  --adna-700: #10335e;
  --adna-600: #154177;

  /* Sapphire CTA (Botões & Destaques) */
  --sapphire-900: #0a213b;
  --sapphire-800: #0E2C52;
  --sapphire-700: #134074;
  --sapphire-600: #184f8f;
  --sapphire-500: #1f63b3;
  --sapphire-300: #8DA9C4;
  --sapphire-100: #D9E6F2;
  --sapphire-50:  #EEF4F8;

  /* Lux Off-White & Superfícies */
  --lux-50:  #FAFBFC;
  --lux-100: #F8F9FA;
  --lux-200: #EEF0F2;
  --lux-300: #E4E7EB;

  /* Slate Neutros */
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-600: #475569;
  --slate-400: #94A3B8;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
}

/* Reset & Smooth Scrolling */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--slate-800);
  background-color: #ffffff;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.025em;
}

/* Custom Scrollbar Sóbria */
::-webkit-scrollbar {
  width: 8px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--midnight-900);
}
::-webkit-scrollbar-thumb {
  background: var(--sapphire-700);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--sapphire-600);
}

/* Utilitário para ocultar scrollbar em carrosséis horizontais touch */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Seamless Glassmorphic Dark Header */
.seamless-header {
  background: rgba(6, 17, 34, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.seamless-header.scrolled {
  background: rgba(4, 10, 20, 0.97);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Clean White Cards */
.clean-card {
  background: #ffffff;
  border: 1px solid var(--lux-300);
  border-radius: 1.25rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02), 0 1px 2px -1px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.clean-card:hover {
  transform: translateY(-4px);
  border-color: var(--sapphire-300);
  box-shadow: 0 20px 35px -10px rgba(11, 37, 69, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
}

.glass-card-dark {
  background: rgba(12, 32, 64, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Interactive Accordion */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease;
  opacity: 0;
}

.accordion-item.active .accordion-content {
  max-height: 600px;
  transition: max-height 0.4s cubic-bezier(1, 0, 1, 0), opacity 0.35s ease;
  opacity: 1;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

/* Ambient Hero Mesh */
.ambient-deep-mesh {
  background-color: var(--midnight-900);
  background-image: 
    radial-gradient(at 15% 15%, rgba(19, 64, 116, 0.28) 0px, transparent 55%),
    radial-gradient(at 85% 75%, rgba(11, 37, 69, 0.45) 0px, transparent 55%),
    radial-gradient(at 50% 50%, rgba(6, 17, 34, 0.5) 0px, transparent 50%);
}

/* Video Frame Luxury Look */
.video-container-frame {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.5rem;
  padding: 0.75rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), 0 0 40px -10px rgba(19, 64, 116, 0.2);
}

/* Accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--sapphire-500);
  outline-offset: 2px;
}

/* Animations */
@keyframes pulse-subtle {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

.animate-pulse-subtle {
  animation: pulse-subtle 3s ease-in-out infinite;
}

/* Active tab filters & Funnel tabs */
.tab-btn.active,
.niche-tab-btn.active,
.funnel-tab-btn.active {
  background-color: var(--adna-800);
  color: #ffffff;
  border-color: var(--adna-800);
}

/* ==========================================================================
   CARROSSEL EDITORIAL DE DEPOIMENTOS (3 CARDS DESKTOP / 2 TABLET / 1 MOBILE)
   ========================================================================== */
.testimonials-track {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.testimonial-slide {
  flex: 0 0 100%;
  width: 100%;
}

@media (min-width: 768px) {
  .testimonial-slide {
    flex: 0 0 calc((100% - 1.5rem) / 2);
    width: calc((100% - 1.5rem) / 2);
  }
}

@media (min-width: 1024px) {
  .testimonial-slide {
    flex: 0 0 calc((100% - 3rem) / 3);
    width: calc((100% - 3rem) / 3);
  }
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.35);
  transition: all 0.25s ease;
  cursor: pointer;
  border: 0;
  padding: 0;
}

.testimonial-dot.active {
  width: 24px;
  background: var(--sapphire-300);
}

/* ==========================================================================
   OTIMIZAÇÕES RESPONSIVAS & MOBILE FIRST (SMARTPHONES)
   ========================================================================== */

/* Regra de Ouro iOS: inputs com no mínimo 16px no mobile para evitar auto-zoom indesejado */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }

  .video-container-frame {
    padding: 0.4rem;
    border-radius: 1rem;
  }

  /* Safe Area Padding para iPhone notch/home indicator */
  body {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}
