/* ==========================================================================
   JOSIAS ADVOCACIA CRIMINAL - LANDING PAGE MOBILE-FIRST CRO
   Cores: Azul Noturno (#080E18), Ouro Nobre (#C5A059), Verde WhatsApp (#25D366)
   ========================================================================== */

:root {
  --bg-main: #080e18;
  --bg-card: #0f1a2e;
  --bg-card-hover: #16243f;
  --bg-glass: rgba(15, 26, 46, 0.85);
  
  --gold-primary: #c5a059;
  --gold-light: #e2c889;
  --gold-glow: rgba(197, 160, 89, 0.25);
  
  --whatsapp-green: #25d366;
  --whatsapp-hover: #1ebe5d;
  --whatsapp-glow: rgba(37, 211, 102, 0.4);
  
  --text-white: #ffffff;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  
  --border-subtle: rgba(197, 160, 89, 0.2);
  --border-strong: rgba(197, 160, 89, 0.45);
  
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-btn: 0 8px 25px rgba(37, 211, 102, 0.35);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --font-heading: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* Reset Básico & Box-Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-main);
  color: var(--text-white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Top Sticky Bar - Plantão Ativo */
.top-notice-bar {
  background: linear-gradient(90deg, #111a2e 0%, #1a2845 50%, #111a2e 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 12px;
  font-size: 0.8125rem;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.pulse-dot {
  width: 9px;
  height: 9px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 1.8s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Container Universal */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Header & Logo */
.site-header {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 14, 24, 0.95);
  backdrop-filter: blur(8px);
}

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

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  max-width: 260px;
}

.logo-img {
  width: 100%;
  height: auto;
  max-height: 52px;
}

.header-cta-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.header-cta-btn:hover {
  background: var(--gold-primary);
  color: var(--bg-main);
}

/* HERO SECTION (Above the fold Mobile) */
.hero-section {
  padding: 30px 0 45px 0;
  position: relative;
  background: radial-gradient(circle at 50% 20%, rgba(22, 36, 63, 0.6) 0%, rgba(8, 14, 24, 0) 70%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid var(--border-subtle);
  color: var(--gold-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.hero-title {
  font-size: 1.85rem;
  line-height: 1.25;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 16px;
}

.hero-title .highlight-gold {
  color: var(--gold-light);
  background: linear-gradient(135deg, #ffffff 0%, #e2c889 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 22px;
}

/* Quick Trust Pills */
.trust-pills {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 26, 46, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--text-white);
}

.trust-pill svg {
  flex-shrink: 0;
  color: var(--gold-light);
}

/* BOTÃO DE ALTA CONVERSÃO WHATSAPP */
.btn-whatsapp-cro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  background: linear-gradient(180deg, #2ae06c 0%, #1ebe5d 100%);
  color: #051b11;
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: 0.3px;
  text-decoration: none;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  border: 1px solid #48f186;
  box-shadow: 0 10px 25px -4px var(--whatsapp-glow), 0 0 15px 0 rgba(37, 211, 102, 0.2);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  min-height: 60px;
  text-align: center;
}

.btn-whatsapp-cro:hover, .btn-whatsapp-cro:focus {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(37, 211, 102, 0.6), 0 0 20px 2px rgba(37, 211, 102, 0.3);
  background: linear-gradient(180deg, #32eb75 0%, #20ce66 100%);
}

.btn-whatsapp-cro:active {
  transform: translateY(1px);
}

.btn-whatsapp-cro .wa-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  fill: #051b11;
}

/* Efeito de brilho dinâmico */
.btn-whatsapp-cro::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(25deg);
  animation: shimmer 3.5s infinite;
}

@keyframes shimmer {
  0% { left: -60%; }
  25% { left: 140%; }
  100% { left: 140%; }
}

.cro-microcopy {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--text-dim);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cro-microcopy span {
  color: var(--gold-light);
}

/* SEÇÃO: ATUAÇÃO EM SITUAÇÕES CRÍTICAS */
.section {
  padding: 50px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-tag {
  color: var(--gold-light);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  text-align: center;
  margin-bottom: 8px;
}

.section-title {
  font-size: 1.6rem;
  line-height: 1.3;
  text-align: center;
  color: var(--text-white);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 650px;
  margin: 0 auto 32px auto;
}

/* Grid de Cards de Emergência */
.emergency-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.emergency-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.emergency-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-light);
  background: var(--bg-card-hover);
}

.card-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--gold-light);
}

.emergency-card h3 {
  font-size: 1.2rem;
  color: var(--text-white);
  margin-bottom: 8px;
  line-height: 1.35;
}

.emergency-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.card-action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-light);
  font-size: 0.875rem;
  font-weight: 700;
  margin-top: 14px;
  text-decoration: none;
}

/* SEÇÃO: O FATOR TEMPO (URGÊNCIA CONSCIENTE) */
.time-factor-box {
  background: linear-gradient(145deg, #152035 0%, #0d1524 100%);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.time-factor-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: #ef4444;
}

.time-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f87171;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.time-factor-box h3 {
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.time-factor-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.time-check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0;
}

.time-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9125rem;
  color: #f1f5f9;
}

.time-check-list svg {
  color: #25d366;
  flex-shrink: 0;
  margin-top: 2px;
}

/* SEÇÃO: SOBRE O ADVOGADO & AUTORIDADE */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  box-shadow: var(--shadow-card);
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 22px;
}

.profile-avatar-wrap {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--gold-light);
  box-shadow: 0 0 20px rgba(197, 160, 89, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111b2d;
  margin-bottom: 16px;
  color: var(--gold-light);
}

.profile-header h3 {
  font-size: 1.45rem;
  color: #ffffff;
}

.profile-header .spec {
  color: var(--gold-light);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.profile-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-item .f-icon {
  color: var(--gold-light);
  background: rgba(197, 160, 89, 0.12);
  padding: 8px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.feature-item h4 {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 2px;
}

.feature-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* SEÇÃO: PASSO A PASSO DO ATENDIMENTO */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
  color: #080e18;
  font-weight: 800;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(197, 160, 89, 0.3);
}

.step-content h4 {
  font-size: 1.08rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.step-content p {
  font-size: 0.8875rem;
  color: var(--text-muted);
}

/* FAQ ACCORDION (CRO ANTI-OBJEÇÕES) */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.active {
  border-color: var(--gold-light);
}

.faq-question {
  width: 100%;
  padding: 18px 20px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: inherit;
  gap: 12px;
}

.faq-toggle-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
  color: var(--gold-light);
  flex-shrink: 0;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 0 20px 20px 20px;
}

/* CTA FINAL DE ALTA URGÊNCIA */
.final-cta-section {
  background: linear-gradient(180deg, var(--bg-main) 0%, #101c31 100%);
  padding: 60px 0;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}

.final-cta-box {
  background: rgba(15, 26, 46, 0.9);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 34px 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.final-cta-box h2 {
  font-size: 1.7rem;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.3;
}

.final-cta-box p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 26px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* RODAPÉ INSTITUCIONAL */
.site-footer {
  background: #050910;
  padding: 40px 0 95px 0; /* Espaço para não cobrir o floating button */
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  color: var(--text-dim);
  text-align: center;
}

.footer-logo {
  max-width: 220px;
  margin: 0 auto 16px auto;
}

.footer-region {
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-legal-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 16px 0;
}

.footer-legal-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: var(--gold-light);
}

.footer-oab-notice {
  font-size: 0.75rem;
  color: #64748b;
  max-width: 700px;
  margin: 14px auto 0 auto;
  line-height: 1.5;
}

/* FLOATING WHATSAPP BUTTON (ÁREA DO POLEGAR - THUMB ZONE) */
.floating-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 18px;
  z-index: 999;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.fab-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #1ebe5d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  position: relative;
  transition: transform 0.2s ease;
}

.fab-btn:hover {
  transform: scale(1.08);
}

.fab-btn svg {
  width: 34px;
  height: 34px;
  fill: #ffffff;
}

/* Badge de Notificação "1" */
.fab-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #080e18;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
  60% { transform: translateY(-3px); }
}

/* Radar Wave no Botão Flutuante */
.fab-btn::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid #25d366;
  opacity: 0.8;
  animation: radar-wave 2s infinite;
}

@keyframes radar-wave {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Tooltip do WhatsApp Mobile */
.fab-tooltip {
  display: none;
  background: #0f1a2e;
  border: 1px solid var(--gold-light);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  margin-right: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* RESPONSIVIDADE DESKTOP / TABLET (MIN-WIDTH: 768PX) */
@media (min-width: 768px) {
  .top-notice-bar {
    font-size: 0.875rem;
    padding: 10px 16px;
  }
  
  .header-cta-btn {
    display: inline-block;
  }
  
  .hero-section {
    padding: 60px 0 80px 0;
  }
  
  .hero-title {
    font-size: 2.85rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
  }
  
  .trust-pills {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .btn-whatsapp-cro {
    max-width: 480px;
    font-size: 1.15rem;
  }
  
  .emergency-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  
  .step-card {
    flex-direction: column;
  }
  
  .profile-card {
    padding: 40px;
  }
  
  .fab-tooltip {
    display: block;
  }
  
  .site-footer {
    padding-bottom: 50px;
  }
}

@media (min-width: 1024px) {
  .emergency-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
