:root {
  --primary: #0f172a; /* Azul Noturno - Autoridade */
  --accent: #d4af37; /* Dourado Sutil - Premium */
  --text: #334155;
  --bg-hero: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  --glass: rgba(255, 255, 255, 0.95);
  --shadow: 0 10px 30px -10px rgba(0,0,0,0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.6; color: var(--text); background: #fff; }

/* Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.grid2 { display: grid; gap: 50px; grid-template-columns: 1fr; }
@media(min-width: 900px) { .grid2 { grid-template-columns: 1.3fr 1fr; align-items: start; } }

/* Header Glassmorphism */
header { background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(0,0,0,0.05); }
.navbar { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.brand { text-decoration: none; color: var(--primary); display: flex; flex-direction: column; line-height: 1.2; }
.brand b { font-size: 1.2rem; letter-spacing: -0.5px; }
.brand span { font-size: 0.75rem; color: #64748b; font-weight: 500; }

/* Menu */
.menu { display: none; gap: 24px; }
.menu a { text-decoration: none; color: var(--text); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.menu a:hover { color: var(--primary); font-weight: 600; }
.hamb { background: none; border: none; font-size: 1.2rem; cursor: pointer; display: block; }
@media(min-width: 800px) { .menu { display: flex; } .hamb { display: none; } }

/* Hero Section & Tipografia */
.hero { background: var(--bg-hero); padding: 60px 0 80px; }
h1, .h1 { font-size: 2.5rem; line-height: 1.1; color: var(--primary); margin-bottom: 20px; font-weight: 800; letter-spacing: -1px; }
.h2 { font-size: 2rem; color: var(--primary); margin-bottom: 40px; text-align: center; font-weight: 700; letter-spacing: -0.5px; }
h3 { font-size: 1.2rem; margin-bottom: 15px; color: var(--primary); }
.lead { font-size: 1.1rem; color: #475569; margin-bottom: 30px; font-weight: 400; max-width: 600px; }
.kicker { text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; color: var(--accent); font-weight: 700; margin-bottom: 15px; display: block; }

/* Badges & Pills */
.badge { display: inline-flex; align-items: center; background: #f0f9ff; color: #0369a1; padding: 6px 12px; border-radius: 50px; font-size: 0.8rem; font-weight: 600; margin-bottom: 25px; border: 1px solid #e0f2fe; }
.dot { width: 8px; height: 8px; background: #0ea5e9; border-radius: 50%; margin-right: 8px; animation: pulse 2s infinite; }

/* Botões Modernos */
.ctaRow { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; margin-bottom: 25px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; font-size: 0.95rem; cursor: pointer; border:none; }
.btn.primary { background: var(--primary); color: #fff; box-shadow: 0 4px 15px rgba(15, 23, 42, 0.2); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(15, 23, 42, 0.3); }
.btn.gold { background: #fff; border: 1px solid #e2e8f0; color: var(--text); }
.btn.gold:hover { border-color: var(--accent); color: var(--accent); background: #fffcf0; }

/* Cards Sofisticados */
.card { background: #fff; padding: 35px; border-radius: 20px; border: 1px solid #f1f5f9; box-shadow: var(--shadow); transition: transform 0.3s ease, border-color 0.3s ease; }
.card:hover { transform: translateY(-4px); border-color: #cbd5e1; }
.side { background: #fff; border: 1px solid #e2e8f0; }
.checklist p { margin-bottom: 12px; display: flex; align-items: flex-start; font-size: 0.95rem; color: #475569; }
.check-icon { color: var(--accent); margin-right: 12px; font-weight: bold; font-size: 1.1rem; }

/* Seção de Tiles (Grid 3 colunas) */
.cols3 { display: grid; grid-template-columns: 1fr; gap: 25px; }
@media(min-width: 768px) { .cols3 { grid-template-columns: repeat(3, 1fr); } }
.tile { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; align-items: flex-start; }
.emoji-icon { font-size: 2.5rem; margin-bottom: 15px; display: block; }
.tile b { display: block; margin-bottom: 10px; font-size: 1.1rem; color: var(--primary); }
.tile p { font-size: 0.95rem; flex-grow: 1; color: #64748b; line-height: 1.5; }
.tile small { color: var(--accent); font-weight: 600; margin-top: 20px; display: block; font-size: 0.9rem; }

/* FAQ Accordion */
details { border-bottom: 1px solid #e2e8f0; padding: 20px 0; }
summary { font-weight: 600; color: var(--primary); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 1.05rem; }
summary::after { content: '+'; color: var(--accent); font-size: 1.5rem; font-weight: 300; }
details[open] summary::after { content: '-'; }
details p { margin-top: 15px; color: #475569; font-size: 1rem; line-height: 1.7; }

/* Forms */
.form { display: grid; gap: 15px; }
.inp { width: 100%; padding: 15px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 1rem; background: #f8fafc; font-family: inherit; }
.inp:focus { outline: none; border-color: var(--primary); background: #fff; }
textarea.inp { min-height: 120px; resize: vertical; }

/* Footer Clean */
.footer { background: var(--primary); color: #94a3b8; padding: 70px 0; font-size: 0.9rem; margin-top: 60px; }
.footer b { color: #fff; display: block; margin-bottom: 15px; font-size: 1.1rem; }
.footerGrid { display: grid; gap: 40px; }
@media(min-width: 768px) { .footerGrid { grid-template-columns: 1fr 1fr; } }
.mini { margin-bottom: 8px; font-size: 0.85rem; }

/* Botão Flutuante WhatsApp */
.wp { position: fixed; bottom: 30px; right: 30px; background: #25D366; color: #fff; padding: 12px 24px; border-radius: 50px; text-decoration: none; box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4); display: flex; align-items: center; gap: 10px; transition: transform 0.3s; z-index: 9999; font-weight: 600; font-size: 1rem; }
.wp:hover { transform: scale(1.05); }

/* Utilitários e Animações */
.hr { height: 1px; background: #e2e8f0; margin: 30px 0; opacity: 0.6; }
.note { font-size: 0.8rem; color: #94a3b8; margin-top: 15px; }
.callout { background: #f8fafc; padding: 25px; border-radius: 12px; border-left: 4px solid var(--accent); }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }

/* Mobile Menu Simples */
#mobileMenu { padding: 20px; background: #fff; border-bottom: 1px solid #eee; position: absolute; width: 100%; top: 70px; left: 0; box-shadow: 0 10px 20px rgba(0,0,0,0.05); z-index: 999; }
#mobileMenu a { display: block; padding: 12px 0; color: var(--text); text-decoration: none; border-bottom: 1px solid #f8fafc; }


/* --- CSS RESET (CORREÇÃO DE HERANÇA DO BLOG ANTIGO) --- */
/* Isso conserta o alinhamento dos artigos antigos */
.content-body {
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}

/* Reseta caixas antigas que tenham largura fixa */
.content-body div, 
.content-body table, 
.content-body p, 
.content-body ul {
  max-width: 100% !important;
  width: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
  float: none !important;
}

/* Garante que imagens antigas não estourem */
.content-body img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 10px auto;
}

/* Arruma listas que ficam espremidas */
.content-body ul, 
.content-body ol {
  padding-left: 20px !important;
}

/* Remove estilos inline que estragam o texto */
.content-body span {
  font-size: 1.1rem !important;
  line-height: 1.8 !important;
  font-family: inherit !important;
  background-color: transparent !important;
}

/* --- SOLUÇÃO NUCLEAR PARA TABELAS ANTIGAS --- */
/* Desmonta tabelas e empilha tudo verticalmente no mobile */
.content-body table, 
.content-body thead, 
.content-body tbody, 
.content-body th, 
.content-body tr, 
.content-body td { 
    display: block !important; 
    width: 100% !important; 
    height: auto !important;
    float: none !important;
    clear: both !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.content-body td:empty { display: none !important; }
.content-body img, 
.content-body iframe,
.content-body video {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important; 
}


/* --- ACABAMENTO FINAL (STICKY BAR MOBILE) --- */
.mobile-sticky-bar { display: none; }
@media(max-width: 768px) {
  .mobile-sticky-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 15px 20px;
    z-index: 9998;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  }
  
  .mobile-sticky-bar span {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
  }
  
  .mobile-sticky-bar .btn-sticky {
    background: var(--primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
    transition: transform 0.2s;
  }
  .mobile-sticky-bar .btn-sticky:active { transform: scale(0.95); }

  /* Ajuste para não cobrir o rodapé */
  .footer { padding-bottom: 100px; }
  /* Ajuste para o botão do WhatsApp subir um pouco */
  .wp { bottom: 90px; } 
}

/* --- CORREÇÃO DE ESTRUTURAS ANINHADAS (EFEITO BONECA RUSSA) --- */
/* Isso faz o texto expandir ocupando todo o espaço do card novo */

.content-body main,
.content-body .container,
.content-body article,
.content-body .card,
.content-body .heroCard {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* Remove aquele cabeçalho repetido "Dr. Caio... CRM..." que veio no texto antigo */
.content-body p strong:first-child {
    /* Tenta esconder o nome repetido no inicio, se estiver em negrito sozinho */
}

/* =========================================================
   GOOGLE REVIEWS — CARROSSEL PREMIUM
   ========================================================= */

.grHeader{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom: 18px;
}
.grActions{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.grNav{ padding:10px 14px; }

.grCarousel{
  display:flex;
  gap:18px;
  overflow-x:auto;
  padding: 8px 4px 18px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling: touch;
}
.grCarousel::-webkit-scrollbar{ height: 10px; }
.grCarousel::-webkit-scrollbar-thumb{ background:#e2e8f0; border-radius: 999px; }

.grCard{
  min-width: 320px;
  max-width: 420px;
  scroll-snap-align: start;
  position:relative;
}
@media(max-width: 420px){
  .grCard{ min-width: 86vw; }
}

/* Topo do card: avatar + nome + tempo */
.grTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
}
.grUser{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 0;
}
.grAvatar{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  overflow:hidden;
  background: #f1f5f9;
  border:1px solid #e2e8f0;
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
}
.grAvatar img{ width:100%; height:100%; object-fit:cover; display:block; }

.grName{
  font-weight:800;
  color: var(--primary);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 220px;
}
.grTime{ color:#94a3b8; font-size:0.85rem; white-space:nowrap; }

/* Estrelas + selo */
.grStarsRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:12px;
}
.grStars{
  color: var(--accent);
  font-weight:900;
  letter-spacing: 1px;
}
.grGBadge{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:0.85rem;
  color:#64748b;
  border:1px solid #e2e8f0;
  padding:6px 10px;
  border-radius:999px;
  background:#fff;
}
.grGIcon{
  width:18px;
  height:18px;
  border-radius:4px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  font-size:0.9rem;
  background: linear-gradient(135deg, #4285F4, #34A853, #FBBC05, #EA4335);
  color:#fff;
}

/* Texto */
.grText{
  color:#475569;
  font-size:0.98rem;
  line-height:1.65;
}

/* Botão ler mais (compacto) */
.grMore{
  margin-top:14px;
  padding:10px 14px;
  border-radius: 10px;
}

/* =========================================================
   GOOGLE REVIEWS — AJUSTE MOBILE + NAV EMBAIXO
   ========================================================= */
.grHeader{
  align-items:flex-start;
}
.grHeader .btn{
  white-space: nowrap;
}

.grFooterNav{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 14px;
}
.grFooterNav .btn{
  padding: 12px 16px;
  border-radius: 12px;
}
.grFooterNav .grNav{
  min-width: 52px;
  justify-content:center;
}

@media(max-width: 768px){
  .grHeader{
    flex-direction: column;
    align-items:flex-start;
    gap: 12px;
  }
  .grActions{
    width:100%;
    justify-content:flex-start;
  }
  .grFooterNav{
    justify-content:flex-start;
  }
}
