@font-face{font-family:'Libre Caslon Text';font-style:italic;font-weight:400;font-display:swap;src:url('../fonts/librecaslontext-400-italic.woff2') format('woff2');}
@font-face{font-family:'Libre Caslon Text';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/librecaslontext-400.woff2') format('woff2');}
@font-face{font-family:'Libre Caslon Text';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/librecaslontext-700.woff2') format('woff2');}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/manrope-400.woff2') format('woff2');}
@font-face{font-family:'Manrope';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/manrope-600.woff2') format('woff2');}
@font-face{font-family:'Manrope';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/manrope-700.woff2') format('woff2');}

/* ============================================================
   Juliano Bertoldi Advocacia — v2 TEMÁVEL (claro ↔ escuro)
   CLARO (padrão): institucional INSS/Previdência — azul gov + verde
   + amarelo, fundo claro. ESCURO: navy royal "all blue" (eco da v1).
   Padrão segue prefers-color-scheme; toggle no header salva no localStorage.
   Layout herda a geometria da v1. Cores INSPIRADAS na identidade
   previdenciária; SEM brasão/marca oficial. CSS puro. Contraste AA.
   ============================================================ */
:root {
  /* ---- Superfícies (CLARO) ---- */
  --bg:        #f3f7fc;
  --bg-2:      #e9f1fb;
  --bg-mid:    #ffffff;   /* meio do gradiente do body/hero */
  --surface:   #ffffff;   /* cards, chat, selo (sólido) */
  --surface-tint: #f6faff;
  --glass:     rgba(255, 255, 255, 0.86);
  --header-bg:   rgba(255, 255, 255, 0.82);
  --header-bg-2: rgba(255, 255, 255, 0.94);
  --nav-bg:      rgba(255, 255, 255, 0.98);
  --field-bg:    #ffffff;
  --scroll-track:#dbe6f5;

  /* ---- Azul institucional ---- */
  --blue:      #1351b4;   /* acento (ícones/borda/links) */
  --blue-600:  #1a5fd0;
  --blue-700:  #0c326f;   /* acento forte / texto sobre claro */
  --blue-900:  #0a2550;   /* footer (fixo nos 2 temas) */
  --blue-05:   rgba(19, 81, 180, 0.05);
  --blue-10:   rgba(19, 81, 180, 0.10);
  --blue-20:   rgba(19, 81, 180, 0.20);
  --blue-30:   rgba(19, 81, 180, 0.32);

  /* ---- Verde Previdência ---- */
  --green:     #168821;
  --green-ink: #0f7a1a;
  --green-700: #0d5f18;
  --green-10:  rgba(22, 136, 33, 0.10);
  --green-20:  rgba(22, 136, 33, 0.22);

  /* ---- Amarelo (acento/detalhe) ---- */
  --yellow:    #ffcd07;
  --yellow-600:#e6b400;

  /* ---- Botão primário (tokens próprios p/ contraste nos 2 temas) ---- */
  --btn-from:  #1a5fd0;
  --btn-to:    #0c326f;
  --on-primary:#ffffff;

  /* ---- WhatsApp ---- */
  --whats:     #25d366;
  --whats-700: #128c3e;

  /* ---- Tinta ---- */
  --ink:       #13233f;
  --body:      #3a4a63;
  --muted:     #5b6b85;

  /* ---- Linhas / raio ---- */
  --line:      rgba(19, 81, 180, 0.14);
  --line-2:    rgba(19, 81, 180, 0.26);
  --radius:    0.35rem;
  --radius-lg: 0.85rem;
  --container: 1200px;
  --ribbon-h:  54px;

  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans:  "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --sh-sm: 0 1px 2px rgba(16, 42, 80, 0.06), 0 2px 6px rgba(16, 42, 80, 0.06);
  --sh-md: 0 2px 6px rgba(16, 42, 80, 0.07), 0 12px 28px rgba(16, 42, 80, 0.10);
  --sh-lg: 0 8px 20px rgba(16, 42, 80, 0.10), 0 28px 56px rgba(16, 42, 80, 0.14);

  /* aliases legados */
  --gold: var(--yellow); --gold-soft: var(--blue); --gold-30: var(--blue-30);
  --heading: var(--ink); --navy-dark: var(--blue-700);

  color-scheme: light;
}

/* ============================================================
   TEMA ESCURO — navy royal "all blue" (eco da v1)
   Aplicado quando <html data-theme="dark"> (script pré-paint).
   ============================================================ */
:root[data-theme="dark"] {
  --bg:        #0e0e4b;
  --bg-2:      #141461;
  --bg-mid:    #0b0b38;
  --surface:   #15156e;
  --surface-tint: #101052;
  --glass:     rgba(16, 16, 74, 0.72);
  --header-bg:   rgba(12, 12, 58, 0.82);
  --header-bg-2: rgba(12, 12, 58, 0.95);
  --nav-bg:      rgba(10, 10, 54, 0.98);
  --field-bg:    rgba(6, 6, 40, 0.6);
  --scroll-track:#0a0a33;

  --blue:      #5b93ee;   /* acento claro sobre navy */
  --blue-600:  #7aa8f2;
  --blue-700:  #a7c6f7;   /* texto de acento sobre escuro */
  --blue-05:   rgba(91, 147, 238, 0.08);
  --blue-10:   rgba(91, 147, 238, 0.14);
  --blue-20:   rgba(91, 147, 238, 0.24);
  --blue-30:   rgba(91, 147, 238, 0.38);

  --green:     #3fb45a;
  --green-ink: #6fd884;
  --green-700: #2f9147;
  --green-10:  rgba(63, 180, 90, 0.14);
  --green-20:  rgba(63, 180, 90, 0.26);

  --btn-from:  #2f6fd6;
  --btn-to:    #173f9c;
  --on-primary:#ffffff;

  --ink:       #ffffff;
  --body:      #dfe6f2;
  --muted:     #9fb0cc;

  --line:      rgba(167, 198, 247, 0.14);
  --line-2:    rgba(167, 198, 247, 0.26);

  --sh-sm: 0 1px 2px rgba(0, 0, 0, 0.30), 0 2px 8px rgba(0, 0, 0, 0.34);
  --sh-md: 0 2px 8px rgba(0, 0, 0, 0.34), 0 14px 30px rgba(0, 0, 0, 0.42);
  --sh-lg: 0 10px 26px rgba(0, 0, 0, 0.42), 0 30px 60px rgba(0, 0, 0, 0.52);

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; max-width: 100%; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background:
    radial-gradient(60% 50% at 85% -5%, rgba(22, 136, 33, 0.06), transparent 60%),
    radial-gradient(70% 55% at 5% 0%, rgba(19, 81, 180, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-mid) 40%, var(--bg) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  transition: color 0.3s ease, background-color 0.3s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.16; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 820px; }
.center { text-align: center; }

/* ---------- Scrollbar ---------- */
html { scrollbar-color: var(--blue) var(--scroll-track); scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--scroll-track); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--blue-600), var(--blue-700));
  border-radius: 8px; border: 2px solid var(--scroll-track);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--green), var(--green-700)); }

/* ---------- Utilitários ---------- */
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); display: block; margin-bottom: 1rem; }
.eyebrow::before { content: "◆ "; font-size: 8px; vertical-align: 2px; color: var(--green); }
.gold-rule { width: 54px; height: 3px; background: linear-gradient(90deg, var(--blue), var(--green)); margin: 1.25rem 0 2rem; border-radius: 2px; }
.gold-rule--center { margin-left: auto; margin-right: auto; }
.glass-panel {
  background: var(--glass);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border: 1px solid var(--line);
}
.logo { display: block; height: 46px; width: auto; color: var(--blue-700); }

/* ---------- Botões ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 1rem 2.1rem; border-radius: var(--radius); border: 1.5px solid transparent;
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; transition: background 0.25s ease, color 0.25s ease, transform 0.18s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn--primary { background: linear-gradient(135deg, var(--btn-from), var(--btn-to)); color: var(--on-primary); box-shadow: 0 8px 22px rgba(19, 81, 180, 0.28); }
.btn--primary:hover { box-shadow: 0 12px 30px rgba(19, 81, 180, 0.42); }
.btn--primary::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg); transition: left 0.5s ease;
}
.btn--primary:hover::after { left: 130%; }
.btn--ghost { border-color: var(--blue-30); color: var(--blue-700); background: var(--blue-05); }
.btn--ghost:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn--sm { padding: 0.65rem 1.5rem; }
.btn--block { width: 100%; }
@media (prefers-reduced-motion: reduce) { .btn--primary::after { display: none; } }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 100; background: var(--header-bg); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: box-shadow 0.25s ease, background 0.25s ease; }
.header.is-scrolled { box-shadow: var(--sh-md); background: var(--header-bg-2); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.header__nav { display: flex; align-items: center; gap: 1.7rem; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-left: auto; }
.header__nav a { position: relative; color: var(--blue-700); padding: 4px 0; transition: color 0.22s ease; }
.header__nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: linear-gradient(90deg, var(--blue), var(--green)); transform: scaleX(0); transform-origin: right; transition: transform 0.28s ease; }
.header__nav a:hover { color: var(--blue); }
.header__nav a:hover::after, .header__nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.header__nav a.is-active { color: var(--blue); }
.header__toggle { display: none; background: none; border: none; color: var(--blue-700); cursor: pointer; line-height: 1; padding: 6px; }

/* Botão de alternar tema */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--line-2); background: var(--glass); color: var(--blue-700);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.theme-toggle:hover { transform: translateY(-2px); color: var(--blue); border-color: var(--blue-30); }
.theme-toggle .ico-sun { display: none; }
.theme-toggle .ico-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: none; }

/* ---------- HERO ---------- */
.hero {
  position: relative; z-index: 1;
  padding: 8.5rem 0 0;
  background:
    radial-gradient(38% 40% at 82% 18%, rgba(22, 136, 33, 0.10), transparent 70%),
    radial-gradient(46% 48% at 12% 8%, rgba(19, 81, 180, 0.13), transparent 72%),
    linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-2) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(rgba(19, 81, 180, 0.10) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
          mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 2rem; align-items: end; }
.hero__content { padding: 1.5rem 0 5.5rem; }
.hero__content h1 { margin-bottom: 1.4rem; text-wrap: balance; }
.hero__sub { font-size: 17.5px; line-height: 1.65; max-width: 38rem; margin-bottom: 2.2rem; color: var(--body); }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__figure { --arc-w: min(470px, 94%); position: relative; align-self: end; display: flex; justify-content: center; z-index: 1; width: min(500px, 100%); margin-left: auto; margin-right: auto; }
.hero__figure::before {
  content: ""; position: absolute; bottom: -40px; left: 0; right: 0; margin-inline: auto;
  width: 128%; height: 76%;
  background: radial-gradient(50% 60% at 50% 80%, rgba(19, 81, 180, 0.16), transparent 68%);
  filter: blur(10px); pointer-events: none;
}
.hero__figure::after {
  content: ""; position: absolute; bottom: -8px; left: 0; right: 0; margin-inline: auto;
  width: var(--arc-w); aspect-ratio: 1; border-radius: 50%;
  border: 2px solid var(--blue-20);
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.35), transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 88%);
          mask-image: linear-gradient(180deg, #000 62%, transparent 88%);
  pointer-events: none;
}
.hero__figure img {
  position: relative; z-index: 1;
  width: min(500px, 100%); height: auto;
  margin-bottom: calc(8px - var(--ribbon-h));
  filter: drop-shadow(0 18px 26px rgba(16, 42, 80, 0.28)) drop-shadow(0 4px 10px rgba(16, 42, 80, 0.18));
}
.selo-oab {
  position: absolute; z-index: 2;
  left: calc(50% - var(--arc-w) / 2);
  bottom: calc(var(--arc-w) / 2 - 8px);
  transform: translate(-50%, 50%);
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.75rem 1.05rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: var(--sh-md); border-top: 3px solid var(--green);
}
.selo-oab__icon { color: var(--blue); display: flex; }
.selo-oab__label { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.selo-oab__num { font-size: 15px; font-weight: 800; color: var(--ink); }

/* ---------- FAIXA ROLANTE (cores fixas — legível nos 2 temas) ---------- */
.ribbon {
  position: relative; z-index: 3; overflow: hidden;
  height: var(--ribbon-h);
  display: flex; align-items: center;
  background: linear-gradient(90deg, #0c326f 0%, #1351b4 48%, #168821 100%);
  color: #fff;
  box-shadow: 0 -10px 30px rgba(16, 42, 80, 0.18), 0 12px 30px rgba(16, 42, 80, 0.18);
}
.ribbon::before, .ribbon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}
.ribbon::before { top: 5px; } .ribbon::after { bottom: 5px; }
.ribbon__track { display: flex; width: max-content; animation: ribbon-scroll 40s linear infinite; }
.ribbon:hover .ribbon__track { animation-play-state: paused; }
.ribbon__group { display: flex; align-items: center; white-space: nowrap; }
.ribbon__item { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; }
.ribbon__item::after { content: "◆"; font-size: 9px; color: var(--yellow); margin: 0 2.8rem; }
@keyframes ribbon-scroll { to { transform: translateX(-50%); } }
/* Faixa rolante anima em TODAS as telas (pedido do cliente) — mantém o movimento
   mesmo com "reduzir animações" do sistema ligado (era o que parava no desktop). */

.gold-em { font-style: italic; color: var(--green-ink); font-weight: 400; }

.hero__stats {
  display: flex; gap: 3.2rem; flex-wrap: wrap;
  margin-top: 2.6rem; padding-top: 1.8rem;
  border-top: 1px solid var(--line-2);
  max-width: 34rem;
}
.hero__stats .stat__num { font-size: 2.3rem; color: var(--blue); }
@media (max-width: 980px) {
  .hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem 0.6rem; margin-left: auto; margin-right: auto; max-width: 30rem; }
  .hero__stats .stat__num { font-size: 2rem; }
}

/* ---------- Seções ---------- */
.section { position: relative; padding: 6.2rem 0; }
.section--glass { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-tint), var(--bg-2)); }
.section__head { text-align: center; margin-bottom: 3.6rem; }
.section__head p { max-width: 620px; margin: 0 auto; color: var(--body); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.sobre__text { font-size: 17px; line-height: 1.72; color: var(--body); }
.sobre__text + .sobre__text { margin-top: 1rem; }
.stat__num { font-family: var(--serif); font-size: 2.1rem; font-weight: 700; color: var(--blue); line-height: 1; }
.stat__num small { font-size: 1.2rem; }
.stat__label { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 0.4rem; font-weight: 700; }
.sobre__media { position: relative; }
.sobre__media img { border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--sh-lg); }
.sobre__media::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 2px solid var(--green-20); border-radius: var(--radius-lg); z-index: -1; }

/* ---------- Seção do Advogado (foto CENTRALIZADA no quadro) ---------- */
.adv { overflow: clip; }
.adv__inner { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 3.5rem; align-items: center; }
.adv__portrait { position: relative; display: flex; justify-content: center; align-items: flex-end; padding: 1.4rem 0 0; }
.adv__portrait::before {
  content: ""; position: absolute; inset: 10% 12% 0 12%;
  background: linear-gradient(165deg, var(--surface), var(--bg-2)), radial-gradient(80% 60% at 50% 15%, var(--blue-10), transparent);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--sh-md);
}
.adv__portrait::after { /* moldura verde simétrica ao redor do quadro */
  content: ""; position: absolute; inset: 6% 10% -2% 10%;
  border: 2px solid var(--green-20); border-radius: var(--radius-lg);
  pointer-events: none;
}
.adv__portrait img { position: relative; z-index: 1; width: min(360px, 78%); margin-left: auto; margin-right: auto; filter: drop-shadow(0 22px 34px rgba(16, 42, 80, 0.26)); }
.adv__quote { position: relative; font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.45rem); font-style: italic; color: var(--ink); line-height: 1.5; margin: 1.4rem 0 1.6rem; padding-left: 1.6rem; border-left: 3px solid var(--green); }
.adv__quote::before { content: "“"; position: absolute; left: 0.4rem; top: -1.4rem; font-size: 3.4rem; color: var(--blue-20); font-style: normal; }
.adv__bio { font-size: 16.5px; line-height: 1.72; color: var(--body); }
.adv__chips { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.8rem 0 2rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1.05rem; border-radius: 100px;
  border: 1px solid var(--blue-20); background: var(--blue-05);
  font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-700);
  transition: background 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
}
.chip:hover { background: var(--blue-10); border-color: var(--blue-30); transform: translateY(-2px); }
.chip svg { color: var(--green); }

/* ---------- Áreas (cor por área) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.card {
  position: relative; border-radius: var(--radius-lg); padding: 2.1rem; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-top: 3px solid var(--blue); box-shadow: var(--sh-sm);
  transition: transform 0.32s ease, box-shadow 0.32s ease;
  --accent: var(--blue); --accent-ink: var(--blue-700);
}
.card::before {
  content: ""; position: absolute; top: -3px; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.32s ease;
}
.card:hover { transform: translateY(-10px); box-shadow: var(--sh-lg); }
.card:hover::before { opacity: 1; }
.card__icon {
  width: 58px; height: 58px; border-radius: 14px; margin-bottom: 1.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--surface)); color: var(--accent-ink);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover .card__icon { transform: scale(1.08) rotate(-4deg); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 10%, transparent); }
.card h3 { margin-bottom: 0.9rem; color: var(--ink); }
.card p { flex-grow: 1; font-size: 15px; color: var(--body); }
.card__list { list-style: none; margin-top: 1.2rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.card__list li { position: relative; padding-left: 1.3rem; margin-bottom: 0.45rem; font-size: 13.8px; color: var(--body); }
.card__list li::before { content: "›"; position: absolute; left: 0; color: var(--accent-ink); font-weight: 800; }

.card--inss { border-top-color: var(--green); --accent: var(--green); --accent-ink: var(--green-ink); }
.card--inss::after {
  content: ""; position: absolute; top: 0; right: 0; width: 130px; height: 130px;
  background: repeating-linear-gradient(45deg, var(--green-10) 0 7px, transparent 7px 15px);
  -webkit-mask-image: radial-gradient(circle at top right, #000 20%, transparent 72%);
          mask-image: radial-gradient(circle at top right, #000 20%, transparent 72%);
  border-top-right-radius: var(--radius-lg); pointer-events: none;
}
.card--civel { border-top-color: var(--blue-600); --accent: var(--blue-600); --accent-ink: var(--blue-700); }

.card__tag {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: linear-gradient(135deg, #168821, #0d5f18);
  color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.4rem 0.75rem; border-radius: 100px;
  box-shadow: 0 6px 16px rgba(22, 136, 33, 0.35);
}
.card__tag::before { content: "◆"; font-size: 7px; }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem 1.4rem; margin-bottom: 0.8rem; background: var(--surface); box-shadow: var(--sh-sm); transition: border-color 0.25s ease, box-shadow 0.25s ease; }
.faq:hover { border-color: var(--blue-20); }
.faq[open] { border-color: var(--blue-30); box-shadow: var(--sh-md); }
.faq summary { font-family: var(--serif); font-size: 1.06rem; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; position: relative; padding-right: 2.2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -0.2rem; color: var(--blue); font-size: 1.5rem; font-family: var(--sans); transition: transform 0.25s ease; }
.faq[open] summary::after { content: "–"; color: var(--green-ink); }
.faq p { margin-top: 0.8rem; font-size: 15px; line-height: 1.65; color: var(--body); }

/* ---------- Formulário ---------- */
.form { display: grid; gap: 1.2rem; margin-top: 1rem; }
.form--card { padding: 2.4rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-lg); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form__field { display: grid; gap: 0.4rem; }
.form__field label { font-size: 13.5px; font-weight: 700; color: var(--blue-700); letter-spacing: 0.01em; }
.form__error { font-size: 12.5px; color: #e05a52; }
.form input, .form select, .form textarea {
  width: 100%; padding: 0.9rem 1.05rem; border-radius: var(--radius);
  background: var(--field-bg); border: 1.5px solid var(--line-2);
  color: var(--ink); font-family: var(--sans); font-size: 1rem;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
.form input::placeholder, .form textarea::placeholder { color: var(--muted); opacity: 0.8; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: var(--blue-30); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-10); }
.form select { color: var(--ink); }
.form select option { color: #13233f; background: #fff; }
.form input.is-invalid, .form select.is-invalid, .form textarea.is-invalid { border-color: #e53935; box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.18); }
.form button[disabled] { opacity: 0.6; cursor: wait; }
.form__consent { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.form__consent input { width: 1.05rem; height: 1.05rem; margin-top: 0.15rem; accent-color: var(--blue); }
.form__consent a { color: var(--blue); }
.form__status { min-height: 1.4rem; font-size: 14px; color: var(--green-ink); font-weight: 600; }
.contact__alt { text-align: center; margin-top: 1.6rem; font-size: 14px; color: var(--muted); }
.contact__alt a { color: var(--blue); font-weight: 700; border-bottom: 1px solid var(--blue-30); padding-bottom: 1px; transition: color 0.2s ease, border-color 0.2s ease; }
.contact__alt a:hover { color: var(--blue-700); border-color: var(--blue); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---------- Footer (azul institucional — fixo nos 2 temas) ---------- */
.footer { background: linear-gradient(180deg, var(--blue-900), #071a3a); border-top: 4px solid var(--green); color: #cdd9ee; padding: 3.2rem 0 2.6rem; }
.footer .logo { color: #fff; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; }
.footer__brand { display: flex; flex-direction: column; gap: 0.9rem; }
.footer__brand p { font-size: 14px; max-width: 30rem; color: #b7c6e0; }
.footer__legal { font-size: 12px; opacity: 0.75; }
.footer__links { display: flex; flex-direction: column; gap: 0.6rem; font-size: 14px; }
.footer__links a { position: relative; width: fit-content; color: #cdd9ee; }
.footer__links a::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 1px; background: var(--yellow); transform: scaleX(0); transform-origin: right; transition: transform 0.25s ease; }
.footer__links a:hover { color: #fff; }
.footer__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer__contacts { display: flex; flex-direction: column; gap: 0.55rem; }
.footer__social { display: inline-flex; align-items: center; gap: 0.5rem; width: fit-content; font-size: 13.5px; font-weight: 600; color: #dbe6f8; transition: color 0.2s ease, transform 0.2s ease; }
.footer__social svg { color: var(--yellow); }
.footer__social:hover { color: #fff; transform: translateY(-1px); }
.footer__credit { margin-top: 2.4rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.12); text-align: center; }
.footer__credit p { font-size: 11px; letter-spacing: 0.03em; color: rgba(205, 217, 238, 0.55); }
.footer__credit a { color: rgba(255, 205, 7, 0.75); font-weight: 600; transition: color 0.2s ease; }
.footer__credit a:hover { color: var(--yellow); }

/* ---------- CHATBOT ---------- */
.chatbot { position: fixed; bottom: 20px; right: 20px; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chatbot__greeting { position: relative; width: min(258px, 70vw); padding: 0.9rem 2rem 0.9rem 1rem; border-radius: var(--radius-lg); font-size: 13.5px; line-height: 1.45; cursor: pointer; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--sh-md); color: var(--body); animation: rise-in 0.35s ease; }
.chatbot__greeting strong { color: var(--ink); }
.chatbot__greeting-close { position: absolute; top: 6px; right: 8px; background: none; border: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; line-height: 1; padding: 4px; }
.chatbot__greeting-close:hover { color: var(--blue); }

.chat {
  width: min(360px, calc(100vw - 40px));
  border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: var(--sh-lg);
  animation: rise-in 0.3s ease;
}
.chat__head { display: flex; align-items: center; gap: 0.75rem; padding: 0.95rem 1.1rem; background: linear-gradient(135deg, var(--btn-from), var(--btn-to)); }
.chat__avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.4); display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.chat__title { font-family: var(--serif); font-size: 14.5px; color: #fff; line-height: 1.2; }
.chat__status { font-size: 11px; color: rgba(255, 255, 255, 0.85); display: flex; align-items: center; gap: 5px; }
.chat__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--whats); box-shadow: 0 0 8px var(--whats); }
.chat__close { margin-left: auto; background: none; border: none; color: rgba(255, 255, 255, 0.8); cursor: pointer; padding: 6px; line-height: 1; font-size: 1.15rem; }
.chat__close:hover { color: #fff; }
.chat__msgs { max-height: min(340px, 46vh); overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; scrollbar-width: thin; background: var(--surface-tint); }
.msg { max-width: 86%; padding: 0.65rem 0.9rem; border-radius: 12px; font-size: 13.8px; line-height: 1.5; animation: rise-in 0.28s ease; }
.msg--bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); color: var(--body); border-bottom-left-radius: 4px; box-shadow: var(--sh-sm); }
.msg--user { align-self: flex-end; background: linear-gradient(135deg, var(--btn-from), var(--btn-to)); color: var(--on-primary); font-weight: 600; border-bottom-right-radius: 4px; }
.msg--typing { display: inline-flex; gap: 5px; align-items: center; padding: 0.8rem 1rem; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: blink 1.1s infinite; }
.msg--typing i:nth-child(2) { animation-delay: 0.18s; }
.msg--typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink { 0%, 70%, 100% { opacity: 0.25; } 35% { opacity: 1; } }
.chat__quick { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0 1rem 0.6rem; background: var(--surface-tint); }
.chat__quick button {
  border: 1px solid var(--blue-30); background: var(--blue-05); color: var(--blue-700);
  border-radius: 100px; padding: 0.5rem 0.95rem; font-size: 12.5px; font-weight: 700; cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.chat__quick button:hover { background: var(--blue-10); transform: translateY(-1px); }
.chat__inputbar { display: flex; gap: 0.5rem; padding: 0.75rem; border-top: 1px solid var(--line); background: var(--surface); }
.chat__inputbar input {
  flex: 1; padding: 0.7rem 0.9rem; border-radius: 100px; border: 1.5px solid var(--line-2);
  background: var(--field-bg); color: var(--ink); font-size: 14px; font-family: inherit;
}
.chat__inputbar input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-10); }
.chat__send {
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer; flex-shrink: 0;
  background: linear-gradient(135deg, var(--btn-from), var(--btn-to)); color: var(--on-primary);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.chat__send:hover { transform: scale(1.06); box-shadow: 0 6px 18px rgba(19, 81, 180, 0.45); }
.chat__send[disabled] { opacity: 0.45; cursor: not-allowed; }
.chat__cta { margin: 0.2rem 1rem 0.9rem; }
.chat__note { font-size: 11px; color: var(--muted); text-align: center; padding: 0 1rem 0.75rem; }

.chatbot__toggle {
  width: 62px; height: 62px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--whats); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.chatbot__toggle:hover { transform: scale(1.08); box-shadow: 0 14px 32px rgba(37, 211, 102, 0.6); }
.chatbot__toggle .ico-close { display: none; }
.chatbot__toggle.is-open { background: var(--btn-to); }
.chatbot__toggle.is-open .ico-chat { display: none; }
.chatbot__toggle.is-open .ico-close { display: block; }
@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .chat, .msg, .chatbot__greeting { animation: none; } }

/* ---------- Thank you ---------- */
.thanks { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; }
.thanks__card { max-width: 640px; width: 100%; text-align: center; padding: 3.4rem 2.5rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--green); box-shadow: var(--sh-lg); }
.thanks__card .logo { height: 52px; margin: 0 auto 1.6rem; color: var(--blue-700); }
.thanks__card h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 1rem; }
.thanks__card p { font-size: 16.5px; line-height: 1.65; color: var(--body); }
.thanks__card .btn { margin-top: 1.9rem; }
.thanks__back { margin-top: 1.5rem; font-size: 14px; }
.thanks__back a { color: var(--blue); }
.thanks__back a:hover { color: var(--blue-700); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.65s ease, transform 0.65s ease; transition-delay: var(--rv, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Página legal ---------- */
.legal { padding-top: 8.5rem; }
.legal h1 { margin-bottom: 0.6rem; }
.legal h2 { font-size: 1.25rem; margin: 2.2rem 0 0.8rem; color: var(--blue-700); }
.legal p, .legal li { font-size: 15.5px; line-height: 1.7; color: var(--body); }
.legal p + p { margin-top: 0.8rem; }
.legal ul { margin: 0.6rem 0 0 1.2rem; }
.legal li { margin-bottom: 0.45rem; }
.legal a { color: var(--blue); border-bottom: 1px solid var(--blue-30); }
.legal a:hover { color: var(--blue-700); border-color: var(--blue); }
.legal .updated { font-size: 12.5px; color: var(--muted); margin-bottom: 2rem; }
.legal strong { color: var(--ink); }

/* ---------- Notebooks ---------- */
@media (min-width: 981px) and (max-height: 860px) {
  .hero { padding-top: 6.6rem; }
  .hero__content { padding-bottom: 3rem; }
  .hero__content h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 1.1rem; }
  .hero__content .eyebrow { margin-bottom: 0.7rem; }
  .hero__sub { font-size: 16px; margin-bottom: 1.7rem; max-width: 34rem; }
  .hero__cta .btn { padding: 0.85rem 1.7rem; }
  .hero__stats { margin-top: 1.8rem; padding-top: 1.3rem; gap: 2.4rem; }
  .hero__stats .stat__num { font-size: 1.85rem; }
  .hero__figure { --arc-w: min(400px, 92%); width: min(430px, 100%); }
  .hero__figure img { width: min(430px, 100%); }
}

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .hero { padding-top: 7rem; }
  .hero__inner { grid-template-columns: 1fr; gap: 0; }
  .hero__content { padding: 0.5rem 0 3rem; text-align: center; }
  .hero__sub, .hero__content h1 { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
  .hero__figure { order: 1; width: min(340px, 82%); margin: 0.5rem auto 0; --arc-w: 95%; }
  /* Sobreposição da faixa proporcional (mesma fração do desktop ~9%): a mão aparece igual em mobile/tablet/TV */
  .hero__figure img { width: 100%; margin-bottom: -9%; }
  .selo-oab { left: auto; bottom: auto; top: 0.6rem; right: -0.5rem; transform: none; gap: 0.5rem; padding: 0.55rem 0.8rem; }
  .selo-oab__icon svg { width: 18px; height: 18px; }
  .selo-oab__label { font-size: 9.5px; }
  .selo-oab__num { font-size: 13px; }
  .grid-2, .adv__inner { grid-template-columns: 1fr; gap: 2.6rem; }
  .sobre__media { max-width: 560px; margin: 0 auto; }
  .cards { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .form__row { grid-template-columns: 1fr; }
  .section { padding: 4.4rem 0; }
  .footer__inner { flex-direction: column; }
  .header__nav {
    position: fixed; top: 64px; left: 0; right: 0; display: none;
    flex-direction: column; gap: 1.2rem; padding: 1.6rem; margin-left: 0;
    background: var(--nav-bg); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-2); box-shadow: var(--sh-md);
  }
  .header__nav.is-open { display: flex; }
  .header__toggle { display: block; }
  .header__cta { display: none; }
  .logo { height: 40px; }
  .adv__portrait img { width: min(300px, 78%); margin-left: auto; margin-right: auto; }
  .adv__portrait::before { inset: 8% 13% 0 13%; }
  .adv__portrait::after { inset: 5% 11% -3% 11%; }
}
@media (max-width: 480px) {
  .ribbon__item { font-size: 11px; letter-spacing: 0.12em; }
  .form--card { padding: 1.6rem; }
  .theme-toggle { width: 36px; height: 36px; }
}

/* Legenda abaixo do retrato (O Advogado) — pedido do cliente */
.adv__portrait { flex-wrap: wrap; }
.adv__caption { position: relative; z-index: 2; flex-basis: 100%; width: 100%; text-align: center; margin-top: 1.2rem; font-size: 14.5px; color: var(--body); }
.adv__caption strong { display: block; font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--heading); margin-bottom: 2px; }

/* ===== Header 2 linhas (v3 — pedido do cliente): logo destacada + contato + menu âncora ===== */
.header__top { display: flex; align-items: center; gap: 1.6rem; padding-top: .85rem; padding-bottom: .7rem; }
.header__logo { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.header .logo { height: 56px; color: var(--blue-700); }
.header__oab { font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); padding-left: 3px; }
:root[data-theme="dark"] .header .logo { color: #ffffff; }
:root[data-theme="dark"] .header__oab { color: rgba(197, 168, 101, 0.68); font-weight: 700; letter-spacing: .16em; }
.header__contact { display: flex; flex-direction: column; gap: 4px; }
.header__ci { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--body); transition: color .2s ease; }
.header__ci svg { color: var(--blue); flex-shrink: 0; }
.header__ci:hover { color: var(--blue); }
.header__cta { margin-left: auto; }
.hero { padding-top: 10rem; }
@media (min-width: 981px) {
  .header .header__nav { margin-left: 0; justify-content: center; gap: 1.9rem; padding: .5rem 0 .7rem; border-top: 1px solid var(--line); }
}
@media (max-width: 980px) {
  .header__contact { display: none; }
  .header .logo { height: 42px; }
  .header__oab { font-size: 10px; }
  .header__nav { top: 66px; }
}
/* ===== v3: ajustes do cliente (rodada 2) ===== */
.header__contact { flex-direction: row; gap: 1.7rem; align-items: center; flex-wrap: wrap; }
.header__oab { align-self: stretch; text-align: center; padding-left: 20%; }
#advogado h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); }
.adv__oab { font-size: 15px; font-weight: 700; letter-spacing: .04em; color: var(--blue); margin: .5rem 0 .2rem; }
:root[data-theme="dark"] .adv__oab { color: rgba(197, 168, 101, 0.82); }
#advogado .btn--ghost { margin-top: 1.5rem; }
:root[data-theme="dark"] .hero { background: linear-gradient(105deg, rgba(10,14,40,.9) 0%, rgba(10,14,40,.58) 52%, rgba(10,14,40,.18) 100%), url("../images/hero-bg-premium.webp") center right / cover no-repeat, #0e0e4b; }
:root[data-theme="dark"] .hero::before { display: none; }

/* especialidade no titulo com a MESMA cor do restante (pedido do cliente) */
.hero__spec { color: inherit; }

/* ===== v3: ajustes do cliente (rodada 3) ===== */
/* Respiro nas ancoras: header fixo nao tapa mais o titulo da secao */
#inicio, #sobre, #advogado, #areas, #contato { scroll-margin-top: 8.5rem; }
@media (max-width: 980px) { #inicio, #sobre, #advogado, #areas, #contato { scroll-margin-top: 5.5rem; } }

/* Tema escuro: header transparente no topo (banner flui continuo, sem "corte");
   vira solido ao rolar via .is-scrolled (JS ja existente). */
:root[data-theme="dark"] .header:not(.is-scrolled) {
  background: linear-gradient(180deg, rgba(10,14,40,.62) 0%, rgba(10,14,40,.28) 55%, rgba(10,14,40,0) 100%);
  border-bottom-color: transparent;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}

/* Icone do Instagram no header (so simbolo, alvo clicavel confortavel) */
.header__ci--ig { padding: 2px; }
.header__ci--ig svg { width: 18px; height: 18px; }
.header__ci--ig:hover svg { color: var(--blue); }
:root[data-theme="dark"] .header__ci--ig:hover svg { color: var(--yellow); }
