/* ===================================
   CM Law — Design Clean Azul & Branco
   =================================== */

:root {
  --blue-900: #1A3A5C;
  --blue-700: #1E4E8C;
  --blue-500: #2B6CB0;
  --blue-400: #3182CE;
  --blue-100: #EBF4FF;
  --blue-50:  #F0F7FF;
  --white:    #FFFFFF;
  --gray-900: #1A202C;
  --gray-700: #2D3748;
  --gray-500: #4A5568;
  --gray-300: #CBD5E0;
  --gray-100: #F7FAFC;
  --green-wa: #25D366;
  --green-wa-dark: #1DA851;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.10);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.12);
  --radius:   12px;
  --radius-sm: 8px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--gray-700);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section-alt { background: var(--blue-50); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-header h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--blue-900);
  margin-bottom: 12px;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--gray-500);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo-text {
  display: flex;
  align-items: baseline;
  gap: 2px;
  text-decoration: none;
  line-height: 1;
}
.logo-cm {
  font-family: 'Inter', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--blue-900);
}
.logo-law {
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: .12em;
  color: var(--blue-500);
  text-transform: uppercase;
  padding-left: 3px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-menu a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray-700);
  letter-spacing: .02em;
  transition: color .2s;
}
.nav-menu a:hover { color: var(--blue-500); }

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-wa);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: .875rem;
  font-weight: 600;
  transition: background .2s, transform .2s;
}
.btn-header-cta:hover {
  background: var(--green-wa-dark);
  transform: translateY(-1px);
}
.btn-header-cta i { font-size: 1rem; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: .3s;
}

/* ===== HERO ===== */
.hero {
  padding-top: 68px;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 48px;
}

.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hero-text h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -.01em;
}
.hero-text h1 .highlight {
  color: var(--white);
  font-weight: 400;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  display: block;
  margin-top: 8px;
  opacity: .85;
}

.hero-text p {
  font-size: 1rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 36px;
  max-width: 480px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.btn-whatsapp-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green-wa);
  color: var(--white);
  padding: 16px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-whatsapp-hero:hover {
  background: var(--green-wa-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(37,211,102,.5);
}
.btn-whatsapp-hero i { font-size: 1.2rem; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.85);
  border: 1.5px solid rgba(255,255,255,.35);
  padding: 15px 24px;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 500;
  transition: background .2s, border-color .2s;
}
.btn-ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.75);
  font-size: .875rem;
}
.trust-item i { color: var(--green-wa); }

/* Logo destaque no hero */
.hero-logo-destaque {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.hero-logo-destaque img {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  box-shadow: 0 0 0 16px rgba(255,255,255,.08), 0 0 0 32px rgba(255,255,255,.04);
  animation: pulse-ring 3s ease-in-out infinite;
}
@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 16px rgba(255,255,255,.08), 0 0 0 32px rgba(255,255,255,.04); }
  50% { box-shadow: 0 0 0 20px rgba(255,255,255,.12), 0 0 0 40px rgba(255,255,255,.06); }
}
.hero-logo-slogan {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  text-align: center;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.6;
}

/* ===== SITUAÇÕES ===== */
.situacoes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.situacao-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow .3s, transform .3s, border-color .3s;
}
.situacao-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--blue-400);
}

.situacao-icon {
  width: 52px;
  height: 52px;
  background: var(--blue-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.situacao-icon i {
  font-size: 1.4rem;
  color: var(--blue-500);
}

.situacao-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-900);
  line-height: 1.35;
}

.situacao-card > p {
  font-size: .925rem;
  color: var(--gray-500);
  line-height: 1.65;
}

.situacao-lista {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.situacao-lista li {
  font-size: .875rem;
  color: var(--gray-700);
  padding-left: 20px;
  position: relative;
}
.situacao-lista li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue-400);
  font-weight: 600;
}

.btn-situacao {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-wa);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 50px;
  font-size: .875rem;
  font-weight: 600;
  margin-top: auto;
  align-self: flex-start;
  transition: background .2s, transform .2s;
}
.btn-situacao:hover {
  background: var(--green-wa-dark);
  transform: translateY(-1px);
}
.btn-situacao i { font-size: 1rem; }

/* ===== BANNER CTA ===== */
.banner-cta {
  background: var(--blue-900);
  padding: 56px 0;
}
.banner-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.banner-cta h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.75rem;
  color: var(--white);
  margin-bottom: 8px;
}
.banner-cta p {
  color: rgba(255,255,255,.75);
  font-size: 1rem;
}
.btn-whatsapp-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green-wa);
  color: var(--white);
  padding: 16px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background .2s, transform .2s;
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
}
.btn-whatsapp-banner:hover {
  background: var(--green-wa-dark);
  transform: translateY(-2px);
}
.btn-whatsapp-banner i { font-size: 1.2rem; }

/* ===== COMO FUNCIONA ===== */
.passos-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.passo {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}
.passo-numero {
  width: 64px;
  height: 64px;
  background: var(--blue-500);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.passo h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 10px;
  line-height: 1.35;
}
.passo p {
  font-size: .9rem;
  color: var(--gray-500);
  line-height: 1.65;
}
.passo-seta {
  display: flex;
  align-items: center;
  padding-top: 32px;
  color: var(--gray-300);
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ===== EQUIPE ===== */
.equipe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.membro-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-300);
  transition: box-shadow .3s;
}
.membro-card:hover { box-shadow: var(--shadow-lg); }
/* Avatar dos membros da equipe */
.membro-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0 0;
}
.avatar-iniciais {
  width: 88px;
  height: 88px;
  background: var(--blue-900);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow: 0 4px 16px rgba(26,58,92,.25);
}
.membro-info {
  padding: 32px 28px;
}
.membro-info h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--blue-900);
  margin-bottom: 4px;
}
.membro-cargo {
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue-500);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.membro-info p {
  color: var(--gray-500);
  font-size: .925rem;
  margin-bottom: 16px;
  line-height: 1.65;
}
.membro-formacao {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-300);
}
.formacao-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .82rem;
  color: var(--gray-700);
}
.formacao-item i {
  color: var(--blue-400);
  margin-top: 3px;
  flex-shrink: 0;
}
.equipe-cta {
  text-align: center;
}
.btn-sobre {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green-wa);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  transition: background .2s, transform .2s;
}
.btn-sobre:hover {
  background: var(--green-wa-dark);
  transform: translateY(-2px);
}

/* ===== DEPOIMENTOS ===== */
.depoimentos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.depoimento {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.depoimento-estrelas {
  color: #F6AD55;
  font-size: 1.1rem;
  letter-spacing: 2px;
}
.depoimento p {
  font-size: .925rem;
  color: var(--gray-700);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}
.depoimento-autor {
  display: flex;
  align-items: center;
  gap: 12px;
}
.autor-inicial {
  width: 40px;
  height: 40px;
  background: var(--blue-100);
  color: var(--blue-700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.depoimento-autor strong {
  display: block;
  font-size: .875rem;
  color: var(--gray-900);
}
.depoimento-autor span {
  font-size: .8rem;
  color: var(--gray-500);
}

/* ===== FAQ ===== */
.faq-lista {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-pergunta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: .975rem;
  font-weight: 600;
  color: var(--blue-900);
  transition: background .2s;
}
.faq-pergunta:hover { background: var(--blue-50); }
.faq-pergunta i {
  color: var(--blue-400);
  font-size: .875rem;
  flex-shrink: 0;
  transition: transform .3s;
}
.faq-item.open .faq-pergunta i { transform: rotate(45deg); }
.faq-resposta {
  display: none;
  padding: 0 24px 20px;
}
.faq-item.open .faq-resposta { display: block; }
.faq-resposta p {
  font-size: .925rem;
  color: var(--gray-500);
  line-height: 1.7;
}
.faq-cta {
  text-align: center;
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.faq-cta p {
  color: var(--gray-500);
  font-size: .95rem;
}
.btn-whatsapp-faq {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-wa);
  color: var(--white);
  padding: 13px 24px;
  border-radius: 50px;
  font-size: .925rem;
  font-weight: 600;
  transition: background .2s, transform .2s;
}
.btn-whatsapp-faq:hover {
  background: var(--green-wa-dark);
  transform: translateY(-1px);
}

/* ===== CTA FINAL ===== */
.cta-final {
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-900) 100%);
  padding: 96px 0;
  text-align: center;
}
.cta-final-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.cta-final h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--white);
}
.cta-final p {
  color: rgba(255,255,255,.75);
  font-size: 1.05rem;
  max-width: 500px;
}
.btn-whatsapp-final {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--green-wa);
  color: var(--white);
  padding: 18px 36px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 8px;
  box-shadow: 0 6px 28px rgba(37,211,102,.4);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-whatsapp-final:hover {
  background: var(--green-wa-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 36px rgba(37,211,102,.5);
}
.btn-whatsapp-final i { font-size: 1.3rem; }
.cta-contatos {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  margin-top: 16px;
}
.cta-contatos a, .cta-contatos span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  transition: color .2s;
}
.cta-contatos a:hover { color: var(--white); }
.cta-contatos i { font-size: 1rem; }

/* ===== FOOTER ===== */
.footer {
  background: var(--gray-900);
  padding: 48px 0 0;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}
.footer-logo img { margin-bottom: 10px; filter: brightness(0) invert(1); }
.footer-logo p {
  font-size: .85rem;
  color: rgba(255,255,255,.45);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.footer-links a:hover { color: var(--white); }
.footer-social {
  display: flex;
  gap: 14px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 1rem;
  transition: background .2s, color .2s;
}
.footer-social a:hover {
  background: var(--blue-500);
  color: var(--white);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
}
.footer-bottom p {
  font-size: .8rem;
  color: rgba(255,255,255,.35);
  text-align: center;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 58px;
  height: 58px;
  background: var(--green-wa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform .3s, box-shadow .3s;
}
.whatsapp-float i {
  font-size: 28px;
  color: var(--white);
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(37,211,102,.6);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-image { max-width: 480px; margin: 0 auto; aspect-ratio: 16/9; }
  .situacoes-grid { grid-template-columns: 1fr; }
  .equipe-grid { grid-template-columns: 1fr; gap: 32px; }
  .depoimentos-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }

  /* Header mobile */
  .nav-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--gray-300);
    box-shadow: var(--shadow-md);
  }
  .nav-menu.active { display: flex; }
  .mobile-toggle { display: flex; }

  .hero-text h1 { font-size: 1.75rem; }
  .hero-actions { flex-direction: column; }
  .btn-whatsapp-hero, .btn-ghost { width: 100%; justify-content: center; }

  .passos-grid { flex-direction: column; gap: 32px; }
  .passo-seta { display: none; }
  .passo { padding: 0; }

  .banner-cta-inner { flex-direction: column; text-align: center; }
  .btn-whatsapp-banner { width: 100%; justify-content: center; }

  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { flex-direction: row; flex-wrap: wrap; gap: 14px 24px; }

  .whatsapp-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
  .whatsapp-float i { font-size: 24px; }
}
