/* ============================================================
   BORELLI ADVOCACIA — Base: reset escopado, tipografia, utilitários
   Tudo sob .bs-root para não vazar no WordPress/Elementor.
   ============================================================ */

html, body {
  margin: 0;
  padding: 0;
  background-color: #172b3d;
}

.bs-root *,
.bs-root *::before,
.bs-root *::after { box-sizing: border-box; }

.bs-root {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--offwhite);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* trava overflow horizontal do parallax sem quebrar sticky */
}

.bs-root img { max-width: 100%; height: auto; display: block; }
.bs-root a { color: var(--blue-action); text-decoration: none; }
.bs-root a:hover { text-decoration: underline; }
.bs-root button { font-family: inherit; cursor: pointer; }
.bs-root :focus-visible {
  outline: 3px solid var(--blue-action);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Tipografia ---- */
.bs-root h1, .bs-root h2, .bs-root h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--navy-deep);
  margin: 0;
}
.bs-root h1 { font-size: var(--h1); line-height: var(--lh-tight); letter-spacing: var(--track-h1); }
.bs-root h2 { font-size: var(--h2); line-height: var(--lh-h2); letter-spacing: -0.01em; }
.bs-root h3 { font-family: var(--font-ui); font-size: var(--h3); font-weight: 600; letter-spacing: -0.005em; }
.bs-root p { margin: 0; }
.bs-root .lead { font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem); color: var(--ink); }

.bs-root .eyebrow {
  font-family: var(--font-ui);
  font-size: var(--eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track-eyebrow);
  color: var(--gold-text);
  margin: 0 0 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.bs-root .eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--gold);
  display: inline-block;
}
.bs-root .on-dark .eyebrow { color: var(--gold); }

.bs-root .quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--quote);
  line-height: 1.45;
}

/* ---- Layout ---- */
.bs-root .wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.bs-root .section { padding-block: var(--space-section); position: relative; }
.bs-root .section > .wrap > .head { max-width: var(--maxw-text); margin-bottom: var(--space-block); }
.bs-root .section .head p { margin-top: 0.75rem; color: var(--gray); }

.bs-root .on-dark { background: var(--navy-deep); color: #dfe7ee; }
.bs-root .on-dark h1, .bs-root .on-dark h2, .bs-root .on-dark h3 { color: #fff; }
.bs-root .on-dark .head p { color: #b7c4d0; }
.bs-root .on-mist { background: var(--mist); }

/* ---- Botões ---- */
.bs-root .btn {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0.95rem 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease);
  text-decoration: none;
  line-height: 1;
}
.bs-root .btn:hover { text-decoration: none; transform: translateY(-2px); }
.bs-root .btn:active { transform: translateY(0); }

/* CTA primário: fundo dourado + texto azul profundo (6,0:1) */
.bs-root .btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-gold);
}
.bs-root .btn-primary:hover { background: #d4b264; box-shadow: 0 14px 36px rgba(201,162,77,0.30); }

/* Secundário sobre claro */
.bs-root .btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--line-on-light);
}
.bs-root .btn-secondary:hover { border-color: var(--navy); background: rgba(36,68,96,0.04); }

/* Secundário sobre escuro (contorno dourado) */
.bs-root .on-dark .btn-secondary {
  color: #fff;
  border-color: var(--line-on-dark);
}
.bs-root .on-dark .btn-secondary:hover { border-color: var(--gold); background: rgba(201,162,77,0.08); }

.bs-root .btn-lg { padding: 1.1rem 2rem; font-size: 1.0625rem; }

/* Seta do botão */
.bs-root .btn .arw { transition: transform 0.2s var(--ease); }
.bs-root .btn:hover .arw { transform: translateX(3px); }

/* ---- Utilitários ---- */
.bs-root .center { text-align: center; margin-inline: auto; }
.bs-root .micro {
  font-family: var(--font-ui);
  font-size: var(--small);
  color: var(--gray);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.bs-root .on-dark .micro { color: #9fb0bf; }
.bs-root .micro .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }

.bs-root .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- Reveal no scroll (só opacity/transform) ---- */
.bs-root [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.bs-root [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .bs-root *,
  .bs-root *::before,
  .bs-root *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .bs-root [data-reveal] { opacity: 1; transform: none; }
}
