/* ==========================================================================
   MAIN.CSS - RESET, LAYOUT GLOBAL, TYPOGRAPHY & UTILITIES
   ========================================================================== */

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

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

html {
  scroll-behavior: smooth;
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

/* Escala Responsiva Fluida para Telas de Computador */
@media (min-width: 768px) {
  html {
    font-size: 15.5px;
  }
}

@media (min-width: 1280px) {
  html {
    font-size: 16px;
  }
}

@media (min-width: 1921px) {
  html {
    font-size: 16.5px;
  }
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar Minimalista Personalizada */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: var(--radius-base);
  border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--copper-primary);
}

/* Estrutura Container Responsivo */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 2.5vw, 2.5rem);
}

/* Tipografia Global - Escala Harmoniosa e Equilibrada */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
  color: var(--text-light);
  font-weight: 700;
}

h1 {
  font-size: clamp(2.1rem, 3.2vw, 3.1rem);
  line-height: 1.15;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  line-height: 1.22;
  font-weight: 700;
}

h3 {
  font-size: clamp(1.2rem, 1.6vw, 1.55rem);
  line-height: 1.3;
  font-weight: 600;
}

h4 {
  font-size: clamp(1.05rem, 1.25vw, 1.25rem);
  line-height: 1.38;
  font-weight: 600;
}

p {
  font-size: clamp(0.92rem, 0.98vw, 1.05rem);
  color: var(--text-light-muted);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Botões de CTA Genéricos Responsivos */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: var(--radius-base);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-copper {
  background-color: var(--copper-primary);
  color: #FFFFFF;
  box-shadow: none;
}

.btn-copper:hover {
  background-color: var(--copper-hover);
  transform: translateY(-2px);
  box-shadow: none;
}

.btn-outline {
  background: transparent;
  border-color: var(--border-dark);
  color: var(--text-light);
}

.btn-outline:hover {
  border-color: var(--copper-primary);
  color: var(--copper-primary);
  background-color: rgba(0, 102, 204, 0.08);
  transform: translateY(-2px);
}

/* ==========================================================================
   ANIMAÇÕES BIDIRECIONAIS EM CASCATA & SLOW MOTION (2.5s)
   ========================================================================== */
.reveal-drop,
.reveal-line,
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-fade,
.reveal-cascade > *,
.dor-card,
.service-card,
.contrato-card,
.step-card,
.testimonial-card,
.client-logo-item,
.showcase-stage,
.showcase-item,
.faq-item {
  opacity: 0;
  transform: translateY(-28px);
  will-change: transform, opacity;
  transition: opacity 2.5s var(--ease-premium), transform 2.5s var(--ease-premium);
}

/* Estados Ativados (Bidirecional) */
.reveal-drop.revealed,
.reveal-line.revealed,
.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed,
.reveal-fade.revealed,
.reveal-cascade.revealed > *,
.dor-card.revealed,
.service-card.revealed,
.contrato-card.revealed,
.step-card.revealed,
.testimonial-card.revealed,
.client-logo-item.revealed,
.showcase-stage.revealed,
.showcase-item.revealed,
.faq-item.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Estados Prontos Pós-Animação (Hover em tempo real 0.25s sem qualquer atraso) */
.revealed.reveal-ready,
.reveal-ready {
  transition: transform 0.25s var(--ease-premium), box-shadow 0.25s var(--ease-premium), border-color 0.25s var(--ease-premium), background-color 0.25s var(--ease-premium), opacity 2.5s var(--ease-premium) !important;
  transition-delay: 0s !important;
}

/* Hover Imediato em Tempo Real para Todos os Elementos Interativos */
.reveal-drop:hover,
.dor-card:hover,
.service-card:hover,
.contrato-card:hover,
.step-card:hover,
.testimonial-card:hover,
.client-logo-item:hover,
.showcase-item:hover,
.btn:hover,
.nav-link:hover,
.logo-brand:hover,
a:hover {
  transition-delay: 0s !important;
}

/* Cascata Automática para Filhos */
.reveal-cascade > *:nth-child(1) { transition-delay: 0.08s; }
.reveal-cascade > *:nth-child(2) { transition-delay: 0.22s; }
.reveal-cascade > *:nth-child(3) { transition-delay: 0.36s; }
.reveal-cascade > *:nth-child(4) { transition-delay: 0.50s; }
.reveal-cascade > *:nth-child(5) { transition-delay: 0.64s; }
.reveal-cascade > *:nth-child(6) { transition-delay: 0.78s; }
.reveal-cascade > *:nth-child(7) { transition-delay: 0.92s; }
.reveal-cascade > *:nth-child(8) { transition-delay: 1.06s; }

/* Delays manuais utilitários */
.delay-1 { transition-delay: 0.12s !important; }
.delay-2 { transition-delay: 0.24s !important; }
.delay-3 { transition-delay: 0.38s !important; }
.delay-4 { transition-delay: 0.52s !important; }
.delay-5 { transition-delay: 0.66s !important; }
.delay-6 { transition-delay: 0.80s !important; }

/* Seções Globais Responsivas */
.section {
  padding: clamp(3.2rem, 5vw, 5.2rem) 0;
  position: relative;
}

.section-light {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.section-light h2, .section-light h3, .section-light h4 {
  color: var(--text-dark);
}

.section-light p {
  color: var(--text-muted);
}

.tag-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper-primary);
  margin-bottom: 16px;
  position: relative;
  padding-left: 24px;
}

.tag-badge::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 1px;
  background-color: var(--copper-primary);
}
