/* ==========================================================================
   RESET & LAYOUT GLOBAL - AMORIM ADVOGADOS ASSOCIADOS
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--brand-navy-deep);
  color: var(--brand-text-light);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

/* Scrollbar Personalizado e Minimalista */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--brand-navy-deep);
}

::-webkit-scrollbar-thumb {
  background: rgba(197, 160, 89, 0.4);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-gold);
}

/* Seleção de Texto */
::selection {
  background-color: rgba(197, 160, 89, 0.3);
  color: #FFFFFF;
}

/* Tipografia Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.25;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Contêiner Centralizado */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Seções Base com Respiro e Transições Fluidas */
.section {
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

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

.section-deep {
  background-color: var(--brand-navy-deep);
  color: var(--brand-text-light);
}

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

.section-beige {
  background-color: var(--brand-beige);
  color: var(--brand-text-dark);
}

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

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

.section-beige-light .methodology-card .methodology-title,
.methodology-card .methodology-title,
.section-beige .location-unit-card .location-city,
.location-unit-card .location-city {
  color: #FFFFFF !important;
}

.section-light .section-desc,
.section-beige .section-desc,
.section-beige-light .section-desc {
  color: var(--brand-text-muted);
}

/* Cabeçalhos de Seção (Editorial) */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 64px auto;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--brand-gold);
  margin-bottom: 14px;
}

.kicker::before {
  content: '';
  width: 20px;
  height: 1px;
  background-color: var(--brand-gold);
}

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: -0.015em;
}

.section-title em {
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--brand-gold-light);
  font-weight: 400;
}

.section-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--brand-text-dim);
}

/* Botões Modernos e Nobres */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.btn-gold {
  background: linear-gradient(135deg, var(--brand-gold-light) 0%, var(--brand-gold) 60%, var(--brand-gold-dark) 100%);
  color: var(--brand-navy-deep);
  border: 1px solid var(--brand-gold);
  box-shadow: 0 4px 20px rgba(197, 160, 89, 0.25);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(197, 160, 89, 0.4);
  color: #000000;
}

.btn-outline-gold {
  background: transparent;
  color: var(--brand-gold-light);
  border: 1px solid rgba(197, 160, 89, 0.5);
}

.btn-outline-gold:hover {
  background: rgba(197, 160, 89, 0.1);
  border-color: var(--brand-gold);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: var(--brand-whatsapp);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background-color: var(--brand-whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

/* ==========================================================================
   SISTEMA DE ANIMAÇÃO UNIFICADO SLOW MOTION & CASCATA BIDIRECIONAL
   ========================================================================== */

/* 1. Elementos com animação iniciam com transição suave vertical */
.reveal-item,
.reveal-init,
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--transition-slow-motion), transform var(--transition-slow-motion);
  transition-delay: var(--cascade-delay, 0s);
  will-change: opacity, transform;
}

/* 2. Estado Revelado */
.reveal-item.revealed,
.reveal-init.revealed,
.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* 3. Delays de Cascata Auxiliares */
.stagger-1 { --cascade-delay: 0.08s; }
.stagger-2 { --cascade-delay: 0.16s; }
.stagger-3 { --cascade-delay: 0.24s; }
.stagger-4 { --cascade-delay: 0.32s; }
.stagger-5 { --cascade-delay: 0.40s; }
.stagger-6 { --cascade-delay: 0.48s; }
.stagger-7 { --cascade-delay: 0.56s; }
.stagger-8 { --cascade-delay: 0.64s; }

/* 4. Acessibilidade / Movimento Reduzido */
@media (prefers-reduced-motion: reduce) {
  .reveal-item,
  .reveal-init,
  .reveal-left,
  .reveal-right,
  .reveal-up {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Responsividade Básica de Padding */
@media (max-width: 991px) {
  .section {
    padding: 80px 0;
  }
  .section-header {
    margin-bottom: 48px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 64px 0;
  }
}
