/* ============================================================
   VARIÁVEIS GLOBAIS
   ============================================================ */
:root {
  /* Urgência — somente na borda estrutural dos cards */
  --red:              #DC2626;
  --red-border:       rgba(220, 38, 38, 0.38);
  /* Ícones — neutros, informativos, não competem com CTA */
  --red-icon:         rgba(255, 255, 255, 0.45);
  --red-check:        rgba(255, 255, 255, 0.40);
  /* Ação — foco único */
  --orange:           #1D4ED8;
  --orange-hover:     #1E40AF;
  /* Marca WhatsApp */
  --wa-green:         #25D366;
  /* Estrelas */
  --gold:             #FFB81C;
  /* Estrutura */
  --navy:             #0D1B2A;
  --navy-dark:        #050D16;
  --card-bg:          #13181F;
  --card-border:      rgba(255, 255, 255, 0.07);
  --reviews-bg:       #F1F5F9;
  --white:            #FFFFFF;
  --text-sub:         #CBD5E1;
  --text-muted:       #94A3B8;
  /* Eyebrows — fundo escuro */
  --eyebrow-bg:       rgba(255, 255, 255, 0.08);
  --eyebrow-text:     rgba(255, 255, 255, 0.65);
  --eyebrow-border:   rgba(255, 255, 255, 0.12);
  /* Eyebrow — fundo claro */
  --eyebrow-light-bg:     rgba(0, 0, 0, 0.07);
  --eyebrow-light-text:   #555555;
  --eyebrow-light-border: rgba(0, 0, 0, 0.12);
  /* Tipografia */
  --font-h:      'Montserrat', sans-serif;
  --font-b:      'Roboto', sans-serif;
  --radius:      10px;
  --max-w:       1120px;
  --nav-h:       56px;
}

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

/* ============================================================
   UTILITÁRIOS
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-h);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  margin-bottom: 24px;
}

.section-header h2 {
  font-family: var(--font-h);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0;
}

/* ============================================================
   BOTÕES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  border: none;
  padding: 16px 28px;
  width: 100%;
  text-align: center;
}

.btn:active { transform: scale(0.98); }

.btn-orange {
  background: var(--orange);
  color: var(--white);
}
.btn-orange:hover { background: var(--orange-hover); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--navy);
  z-index: 1000;
  transition: box-shadow 0.3s;
}

.navbar.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.45); }

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img { height: 36px; width: auto; }

.nav-links {
  display: none;
}

.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  outline: none;
  -webkit-appearance: none;
}

.nav-cta { display: none; }

.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--navy);
  flex-direction: column;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.nav-mobile.active { display: flex; }

.nav-mobile a {
  padding: 16px 24px;
  font-family: var(--font-h);
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--text-sub);
}

.nav-mobile a:hover { color: var(--white); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 32px) 0 72px;
  background: url('images/ctx-algemas2.jpg') center/cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 42, 0.78);
}

.hero .container { position: relative; }

.hero-eyebrow {
  background: var(--eyebrow-bg);
  color: var(--eyebrow-text);
  border: 1px solid var(--eyebrow-border);
}

.hero h1 {
  font-family: var(--font-h);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-proof {
  font-family: var(--font-b);
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-bottom: 20px;
}

.hero-proof .stars { color: var(--gold); letter-spacing: 2px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-h);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.hero-trust span i {
  font-size: 0.75rem;
  color: var(--orange);
}

.cta-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
  margin-top: -4px;
  margin-bottom: 12px;
}

/* ============================================================
   SEÇÃO SITUAÇÕES
   ============================================================ */
.situacoes {
  position: relative;
  padding: 72px 0;
  background: url('images/ctx-delegacia.jpg') center/cover no-repeat;
}

.situacoes::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 19, 0.92);
}

.situacoes .container { position: relative; }

.situacoes .section-eyebrow {
  background: var(--eyebrow-bg);
  color: var(--eyebrow-text);
  border: 1px solid var(--eyebrow-border);
}

.situacoes .section-header h2 { color: var(--white); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s, transform 0.4s;
}

.card.fadeIn { opacity: 1; transform: translateY(0); }

.card-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.card:hover .card-img img { transform: scale(1.04); }

.card-body {
  padding: 14px 14px 16px;
}

.card-title {
  font-family: var(--font-h);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.card-desc {
  font-size: 0.78rem;
  color: var(--text-sub);
  line-height: 1.45;
}

.situacoes-cta { text-align: center; }

/* ============================================================
   SEÇÃO SOBRE
   ============================================================ */
.sobre {
  position: relative;
  padding: 72px 0;
  background: url('images/ctx-tribunal.jpg') center/cover no-repeat;
}

.sobre::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 42, 0.88);
}

.sobre .container { position: relative; }

.sobre .section-eyebrow {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.15);
}

.sobre-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.sobre-photo {
  width: 100%;
  max-width: 340px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.sobre-photo img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center top;
}

.sobre-text h2 {
  font-family: var(--font-h);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.sobre-quote {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-sub);
  line-height: 1.6;
  border-left: 3px solid var(--orange);
  padding-left: 14px;
  margin-bottom: 24px;
}

.oab-badge {
  display: inline-block;
  font-family: var(--font-h);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.about-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.5;
}

.about-list li i {
  color: var(--red-check);
  font-size: 1rem;
  flex-shrink: 0;
  padding-top: 2px;
}

/* ============================================================
   SEÇÃO AVALIAÇÕES
   ============================================================ */
.avaliacoes {
  padding: 72px 0;
  background: var(--reviews-bg);
}

.avaliacoes .section-eyebrow {
  background: var(--eyebrow-light-bg);
  color: var(--eyebrow-light-text);
  border: 1px solid var(--eyebrow-light-border);
}

.avaliacoes .section-header h2 { color: var(--navy); }

.google-main {
  display: block;
  margin: 0 auto 32px;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.reviews-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.reviews-scroll::-webkit-scrollbar { height: 4px; }
.reviews-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 4px; }

.review-img {
  flex: 0 0 85%;
  scroll-snap-align: start;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  overflow: hidden;
}

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

.avaliacoes-cta { text-align: center; margin-top: 36px; }
.avaliacoes-cta .btn-orange { max-width: 360px; margin: 0 auto; }

/* ============================================================
   SEÇÃO CONTATO
   ============================================================ */
.contato {
  position: relative;
  padding: 80px 0;
  text-align: center;
  background: url('images/ctx-algemas2.jpg') center/cover no-repeat;
}

.contato::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 13, 22, 0.88);
}

.contato .container { position: relative; }

.contato .section-eyebrow {
  background: var(--eyebrow-bg);
  color: var(--eyebrow-text);
  border: 1px solid var(--eyebrow-border);
}

.contato h2 {
  font-family: var(--font-h);
  font-size: 1.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 36px;
}

.contato-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-dark);
  padding: 40px 0 32px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-logo { height: 32px; width: auto; margin: 0 auto 20px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
  margin-bottom: 20px;
}

.footer-links a {
  font-family: var(--font-h);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-links a:hover { color: var(--white); }

.footer-info {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding-top: 24px;
  margin-bottom: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 14px 24px;
  min-width: 130px;
}

.footer-info-label {
  font-family: var(--font-h);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-info-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-sub);
}

a.footer-info-value:hover { color: var(--white); }

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   FLOAT WHATSAPP
   ============================================================ */
.float-wa {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  background: var(--wa-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  animation: pulse-wa 2.5s infinite;
  transition: transform 0.2s;
}

.float-wa:hover { transform: scale(1.08); }

.float-wa i {
  font-size: 1.6rem;
  color: var(--white);
}

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
  50%       { box-shadow: 0 4px 28px rgba(37, 211, 102, 0.65); }
}

/* ============================================================
   CARD FADE-IN
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   TABLET — 768px+
   ============================================================ */
@media (min-width: 768px) {
  .section-header h2 { font-size: 2.2rem; }

  /* Navbar */
  .nav-hamburger { display: none; }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
  }
  .nav-links a {
    font-family: var(--font-h);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-sub);
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--white); }
  .nav-cta { display: flex; }

  /* Hero */
  .hero { min-height: 85vh; }
  .hero h1 { font-size: 2.5rem; }
  .hero-ctas {
    flex-direction: row;
    justify-content: center;
    max-width: 480px;
    margin: 0 auto 28px;
  }
  .btn { width: auto; min-width: 200px; }

  /* Cards */
  .cards-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }

  /* Sobre */
  .sobre-content {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }
  .sobre-photo { max-width: 300px; }

  /* Avaliações */
  .reviews-scroll { overflow-x: visible; }
  .review-img { flex: 1; }
}

/* ============================================================
   DESKTOP — 1024px+
   ============================================================ */
@media (min-width: 1024px) {
  .hero h1 { font-size: 3rem; }

  .sobre-photo { max-width: 360px; }
  .sobre-text h2 { font-size: 2.2rem; }

  .contato h2 { font-size: 2.4rem; }
}

/* Botão de WhatsApp em cada cartão de situação (09/10/2026) */
.card-wa {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; padding: 10px 16px; border-radius: 8px;
  background: var(--orange); color: #fff; font-weight: 700; font-size: 0.95rem;
  text-decoration: none;
}
.card-wa:hover { background: var(--orange-hover); color: #fff; }

/* Subtítulo do topo (15/10/2026) */
.hero-sub { max-width: 34rem; margin: 14px auto 22px; font-size: 1.05rem; line-height: 1.5; opacity: .9; }

/* ============================================================
   QUESTIONÁRIO (modal do topo) — cartão claro, letra grande
   ============================================================ */
body.q-aberto { overflow: hidden; }
body.q-aberto .float-wa { display: none; }

.q-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(5, 13, 22, 0.7);
}
.q-modal[hidden] { display: none; }

.q-caixa {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 92svh;
  overflow-y: auto;
  background: var(--white);
  color: #0F172A;
  border-radius: 18px 18px 0 0;
  padding: 26px 20px 22px;
}

.q-fechar {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: 0;
  color: #64748B;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.q-passo {
  font-family: var(--font-h);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 4px;
}

.q-caixa h2 {
  font-family: var(--font-h);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}

.q-pergunta {
  display: block;
  font-family: var(--font-h);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 16px 0 10px;
}

.q-opcoes { display: flex; flex-direction: column; gap: 10px; }
.q-opcoes-lado { flex-direction: row; }
.q-opcoes-lado .q-opcao { flex: 1; text-align: center; padding-left: 8px; padding-right: 8px; }

.q-opcao {
  width: 100%;
  padding: 16px;
  text-align: left;
  font-family: var(--font-h);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0F172A;
  background: #F1F5F9;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  cursor: pointer;
}
.q-opcao:hover { border-color: #94A3B8; }
.q-opcao.marcada { border-color: var(--orange); background: #DBEAFE; }

.q-campo {
  width: 100%;
  padding: 15px 14px;
  font-family: var(--font-b);
  font-size: 1.05rem;
  color: #0F172A;
  background: #F8FAFC;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
}
.q-campo:focus { outline: none; border-color: var(--orange); }

.q-erro { margin-top: 12px; font-size: 0.95rem; font-weight: 700; color: var(--red); }

.btn-wa { background: var(--wa-green); color: #062A14; }
.btn-wa:hover { filter: brightness(0.95); }
.q-enviar { width: 100%; margin-top: 20px; padding-top: 18px; padding-bottom: 18px; font-size: 1rem; }

.q-voltar {
  display: block;
  margin: 12px auto 0;
  background: none;
  border: 0;
  color: #475569;
  font-size: 0.95rem;
  text-decoration: underline;
  cursor: pointer;
}

.q-nota { margin-top: 12px; font-size: 0.85rem; color: #475569; text-align: center; }

@media (min-width: 768px) {
  .q-modal { align-items: center; }
  .q-caixa { border-radius: 18px; padding: 32px 28px 26px; }
}

.hero-gancho { font-family: var(--font-h); font-size: 1.3rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.hero-gancho + .hero-sub { margin-top: 0; }

/* Botões de contato viram <button> que abrem o questionário (18/11/2026) */
button.card-wa { border: none; cursor: pointer; font-family: inherit; }
button.float-wa { border: none; cursor: pointer; padding: 0; }
