/* ==========================================================
   BB Advocacia — Theme (extraído da logo)
   Uso: importar este arquivo em site e sistema.
   ========================================================== */

:root{
  /* Brand */
  --bb-ink: #020305;          /* preto/tinta principal */
  --bb-gold: #B68128;         /* dourado principal */
  --bb-gold-dark: #8B5D23;    /* dourado escuro */
  --bb-brown: #563A15;        /* marrom de apoio */

  /* Neutros (UI) */
  --bb-bg: #FFFFFF;
  --bb-surface: #FFFFFF;
  --bb-surface-2: #F7F7F8;
  --bb-border: #E7E7EA;
  --bb-muted: #6B7280;        /* texto secundário */
  --bb-text: #0B0C10;         /* texto principal (próximo do ink, mas mais legível) */

  /* Feedback */
  --bb-success: #16A34A;
  --bb-warning: #D97706;
  --bb-danger:  #DC2626;
  --bb-info:    #2563EB;

  /* UX */
  --bb-radius: 14px;
  --bb-radius-sm: 10px;
  --bb-shadow: 0 10px 30px rgba(2,3,5,.10);
  --bb-shadow-sm: 0 6px 18px rgba(2,3,5,.10);

  /* Focus ring (dourado) */
  --bb-focus: 0 0 0 4px rgba(182,129,40,.22);

  /* Typo */
  --bb-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
}

/* Base */
*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: var(--bb-font);
  color: var(--bb-text);
  background: var(--bb-bg);
}

/* Links */
a{
  color: var(--bb-gold-dark);
  text-decoration: none;
}
a:hover{ text-decoration: underline; }

/* Layout helpers */
.bb-container{
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.bb-card{
  background: var(--bb-surface);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  box-shadow: var(--bb-shadow-sm);
}
.bb-card__pad{ padding: 18px; }

.bb-divider{
  height: 1px;
  background: var(--bb-border);
  border: 0;
}

/* Typography */
.bb-h1{ font-size: 34px; line-height: 1.15; margin: 0 0 10px; }
.bb-h2{ font-size: 26px; line-height: 1.2; margin: 0 0 10px; }
.bb-h3{ font-size: 20px; line-height: 1.25; margin: 0 0 10px; }
.bb-muted{ color: var(--bb-muted); }

/* Buttons */
.bb-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform .05s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  user-select: none;
}
.bb-btn:active{ transform: translateY(1px); }

.bb-btn--primary{
  background: var(--bb-ink);
  color: #fff;
  box-shadow: var(--bb-shadow-sm);
}
.bb-btn--primary:hover{ filter: brightness(1.06); }

.bb-btn--gold{
  background: var(--bb-gold);
  color: #1a1207;
  box-shadow: var(--bb-shadow-sm);
}
.bb-btn--gold:hover{ filter: brightness(1.05); }

.bb-btn--outline{
  background: transparent;
  color: var(--bb-ink);
  border-color: rgba(2,3,5,.18);
}
.bb-btn--outline:hover{
  border-color: rgba(182,129,40,.55);
  box-shadow: 0 0 0 4px rgba(182,129,40,.14);
}

.bb-btn--danger{
  background: var(--bb-danger);
  color: #fff;
}
.bb-btn--danger:hover{ filter: brightness(1.05); }

/* Forms */
.bb-field{ display: grid; gap: 8px; }
.bb-label{ font-weight: 700; font-size: 13px; color: rgba(2,3,5,.78); }

.bb-input, .bb-select, .bb-textarea{
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--bb-border);
  background: var(--bb-surface);
  color: var(--bb-text);
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.bb-input:focus, .bb-select:focus, .bb-textarea:focus{
  border-color: rgba(182,129,40,.70);
  box-shadow: var(--bb-focus);
}
.bb-textarea{ min-height: 110px; resize: vertical; }

/* Badges */
.bb-badge{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  border: 1px solid var(--bb-border);
  background: var(--bb-surface-2);
}
.bb-badge--gold{
  border-color: rgba(182,129,40,.35);
  background: rgba(182,129,40,.10);
  color: var(--bb-gold-dark);
}

/* Alerts */
.bb-alert{
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--bb-border);
  background: var(--bb-surface-2);
}
.bb-alert--success{ border-color: rgba(22,163,74,.25); background: rgba(22,163,74,.08); }
.bb-alert--warning{ border-color: rgba(217,119,6,.28); background: rgba(217,119,6,.10); }
.bb-alert--danger { border-color: rgba(220,38,38,.25); background: rgba(220,38,38,.08); }
.bb-alert--info   { border-color: rgba(37,99,235,.25); background: rgba(37,99,235,.08); }

/* Topbar (exemplo) */
.bb-topbar{
  background: var(--bb-ink);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.bb-topbar a{ color: rgba(255,255,255,.90); }
.bb-topbar a:hover{ color: #fff; }

/* Footer (exemplo) */
.bb-footer{
  border-top: 1px solid var(--bb-border);
  color: var(--bb-muted);
  padding: 18px 0;
}
/* ==========================
   BB Advocacia — Responsivo
   Cole no FINAL do theme.css
   ========================== */

/* Base: garantir que nada estoure */
* { box-sizing: border-box; }
img, svg, video { max-width: 100%; height: auto; }
.bb-container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

/* Header/menu: quebra bem em telas pequenas */
@media (max-width: 900px){
  .bb-topbar .bb-container{
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 10px 0 !important;
  }
  .bb-topbar nav{
    width: 100%;
    justify-content: flex-start !important;
  }
}

/* Tipografia: títulos adaptáveis */
@media (max-width: 700px){
  h1{ font-size: 34px !important; line-height: 1.08 !important; }
  .bb-h1{ font-size: 34px !important; line-height: 1.08 !important; }
  .bb-h2{ font-size: 24px !important; }
  .bb-h3{ font-size: 18px !important; }
}

/* GRIDS: transformar em 1 coluna no mobile, 2 no tablet */
@media (max-width: 980px){
  /* qualquer grid com 2 colunas vira 1 */
  [style*="grid-template-columns:1fr 1fr"]{ grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1.05fr .95fr"]{ grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1.15fr .85fr"]{ grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1.2fr .8fr"]{ grid-template-columns: 1fr !important; }
}

/* Cards: 3 colunas -> 2 colunas em tablets */
@media (max-width: 980px){
  [style*="grid-template-columns:repeat(3,1fr)"]{ grid-template-columns: repeat(2, 1fr) !important; }
  [style*="grid-template-columns:repeat(4,1fr)"]{ grid-template-columns: repeat(2, 1fr) !important; }
}

/* Cards: 2 colunas -> 1 coluna em celulares */
@media (max-width: 620px){
  [style*="grid-template-columns:repeat(2, 1fr)"]{ grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:repeat(3,1fr)"]{ grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:repeat(4,1fr)"]{ grid-template-columns: 1fr !important; }

  /* Botões ocuparem largura total quando necessário */
  .bb-btn{ width: 100%; justify-content: center; }
}

/* Forms e inputs */
.bb-input, .bb-textarea{ width: 100%; }

/* WhatsApp flutuante: menor no mobile */
@media (max-width: 620px){
  #whatsFloat{
    right: 12px !important;
    bottom: 12px !important;
    padding: 10px 12px !important;
  }
  #whatsFloat span:last-child{ display: none; } /* some o texto, fica só o ícone */
}