/* =========================================================
   Artur Júnior · Advocacia e Consultoria Jurídica
   Cores e fontes da identidade visual
   ========================================================= */
:root {
  --navy: #1B2A41;
  --navy-deep: #14213A;
  --gold: #A8864B;
  --gold-light: #C9A65F;
  --gold-text: #8A6B33;     /* dourado escurecido para texto pequeno em fundo claro */
  --ivory: #F2ECE4;
  --sand: #F7F3EC;
  --line: #E8E0D3;
  --line-strong: #D9CDB8;
  --input: #CFC6B6;
  --ink: #1B2A41;
  --text: #3E4757;
  --muted: #5A6272;
  --on-navy: #F2ECE4;
  --on-navy-muted: #C8CFDA;

  --font-brand: 'Cinzel', Georgia, serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1240px;
  --gutter: 24px;
  --section-y: clamp(72px, 10vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: #FFFFFF;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-text); }
a:hover { color: var(--navy); }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
input, select, textarea, button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold-light); color: var(--navy);
  padding: 10px 16px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 880px; }
.center { text-align: center; }

/* ---------- Tipografia ---------- */
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold-text);
}
.eyebrow--light { color: var(--gold-light); }
.h2 {
  font-family: var(--font-brand); font-weight: 500;
  font-size: clamp(30px, 4vw, 40px); line-height: 1.15; letter-spacing: 0.03em;
}
.h2--spaced { letter-spacing: 0.06em; }
.h2--small { font-size: clamp(26px, 3vw, 32px); letter-spacing: 0.04em; }
.lead { font-size: 17px; line-height: 1.65; color: var(--text); }
.lead--light { color: var(--on-navy-muted); }
.note { font-size: 14px; color: var(--muted); max-width: 560px; }
.label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold-text); margin-bottom: 8px;
}
.text-link {
  align-self: flex-start; margin-top: 8px; font-weight: 700; font-size: 15px;
  letter-spacing: 0.04em; color: var(--navy); text-decoration: none;
  border-bottom: 1px solid var(--gold); padding-bottom: 4px;
}
.text-link:hover { color: var(--gold-text); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 28px; min-height: 48px; border: 1px solid transparent; cursor: pointer;
  font-weight: 700; font-size: 15px; letter-spacing: 0.04em; text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--sm { padding: 12px 20px; min-height: 44px; font-size: 14px; }
.btn--gold { background: var(--gold-light); color: var(--navy); }
.btn--gold:hover { background: #D8B972; color: var(--navy); }
.btn--outline-light { border-color: var(--gold-light); color: var(--on-navy); font-weight: 600; }
.btn--outline-light:hover { background: rgba(201,166,95,0.12); color: var(--on-navy); }
.btn--navy {
  background: var(--navy); color: var(--on-navy);
  text-transform: uppercase; letter-spacing: 0.08em; min-height: 52px;
}
.btn--navy:hover { background: var(--navy-deep); }
.btn--navy:disabled { opacity: .6; cursor: wait; }
.btn--block { width: 100%; }

/* ---------- Topo / navegação ---------- */
.hero { background: var(--navy); color: var(--on-navy); }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 22px; border-bottom: 1px solid rgba(201,166,95,0.25);
  position: relative;
}
.nav__brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav__name { font-family: var(--font-brand); font-size: 18px; letter-spacing: 0.16em; color: var(--on-navy); }
.nav__links { display: flex; gap: 30px; align-items: center; }
.nav__links a { color: var(--on-navy); text-decoration: none; font-size: 14px; letter-spacing: 0.06em; }
.nav__links a:hover { color: var(--gold-light); }
.nav__toggle {
  display: none; background: none; border: 1px solid rgba(201,166,95,0.4);
  color: var(--on-navy); width: 44px; height: 44px; cursor: pointer;
  align-items: center; justify-content: center;
}

@media (max-width: 960px) {
  .nav { flex-wrap: wrap; }
  .nav__toggle { display: inline-flex; }
  .nav .btn--sm { order: 2; margin-left: auto; }
  .nav__toggle { order: 3; }
  .nav__links {
    order: 4; width: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0;
    border-top: 1px solid rgba(201,166,95,0.25);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 4px; border-bottom: 1px solid rgba(201,166,95,0.15); font-size: 16px; }
}
@media (max-width: 960px) { .nav { gap: 10px; } }
@media (max-width: 520px) {
  .nav__name { font-size: 15px; letter-spacing: 0.1em; }
  .nav .btn--sm { padding: 0; width: 44px; }
  .nav .btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

.hero__body {
  max-width: 900px; padding-block: clamp(64px, 10vw, 104px) clamp(64px, 9vw, 96px);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
}
.hero__symbol { width: clamp(84px, 12vw, 118px); height: auto; margin-bottom: 16px; }
.hero__name {
  font-family: var(--font-brand); font-size: clamp(32px, 6vw, 56px);
  letter-spacing: 0.14em; line-height: 1;
}
.hero__tagline {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-brand); font-size: clamp(10px, 1.6vw, 14px);
  letter-spacing: 0.26em; color: var(--gold-light);
}
.hero__tagline .rule { width: clamp(24px, 5vw, 56px); height: 1px; background: var(--gold-light); }
.hero__title {
  margin-top: 28px; max-width: 720px;
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: clamp(26px, 3.4vw, 36px); line-height: 1.3;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }

.hero__facts { border-top: 1px solid rgba(201,166,95,0.25); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.facts > div { padding: 28px 0 28px 0; display: flex; flex-direction: column; gap: 4px; }
.facts > div + div { padding-left: 24px; border-left: 1px solid rgba(201,166,95,0.18); }
.facts dt { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-light); }
.facts dd { font-size: 16px; font-weight: 600; }
@media (max-width: 980px) {
  .facts > div { padding: 20px 0; border-left: none !important; padding-left: 0 !important; border-bottom: 1px solid rgba(201,166,95,0.15); }
}

/* ---------- Seções ---------- */
.section { padding-block: var(--section-y); }
.section--tight-top { padding-top: 0; }
.section--ivory { background: var(--ivory); }
.section--sand { background: var(--sand); border-top: 1px solid var(--line); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 44px; }
.section-head--center { align-items: center; text-align: center; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 56px; }
.split--center { align-items: center; }
.split--wide-gap { gap: clamp(48px, 6vw, 72px); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack--lg { gap: 28px; }

/* ---------- Áreas ---------- */
.areas { list-style: none; margin: 0; padding: 0; }
.areas li {
  position: relative; padding: 24px 0 24px 36px; border-bottom: 1px solid var(--line-strong);
}
.areas li::before {
  content: ""; position: absolute; left: 2px; top: 31px; width: 11px; height: 11px;
  border: 1.5px solid var(--gold); transform: rotate(45deg);
}
.areas h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.areas p { font-size: 15px; line-height: 1.6; color: var(--text); }

/* ---------- Casos (abas) ---------- */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.tab {
  background: transparent; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px;
  padding: 14px 28px; min-height: 48px; cursor: pointer;
  font-size: 15px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.tab:hover { color: var(--navy); }
.tab[aria-selected="true"] { border-bottom-color: var(--gold); font-weight: 700; color: var(--navy); }
.case {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  border: 1px solid var(--line); margin-top: 32px;
}
.case[hidden] { display: none; }
.case__lead {
  background: var(--navy); color: var(--on-navy); padding: clamp(28px, 4vw, 48px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
}
.case__lead h3 { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: clamp(26px, 3vw, 34px); line-height: 1.25; }
.case__outcome { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid rgba(201,166,95,0.35); padding-top: 20px; }
.case__outcome span { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-light); }
.case__outcome strong { font-size: 18px; font-weight: 600; }
.case__body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 28px; }
.case__body p:not(.label) { font-size: 17px; line-height: 1.65; color: var(--text); }

/* ---------- Linha do tempo ---------- */
.timeline {
  list-style: none; margin: 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px;
}
.timeline::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 27px; height: 1px; background: var(--gold-light);
}
.timeline li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.timeline__num {
  width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; position: relative;
  font-family: var(--font-brand); font-weight: 600; font-size: 18px; color: var(--navy);
}
.timeline__num::before {
  content: ""; position: absolute; inset: 8px; background: var(--sand);
  border: 1.5px solid var(--gold); transform: rotate(45deg); z-index: -1;
}
.timeline__num { z-index: 0; isolation: isolate; }
.timeline h3 { font-size: 19px; font-weight: 700; }
.timeline p { font-size: 15px; line-height: 1.6; color: var(--text); max-width: 260px; }
@media (max-width: 980px) { .timeline::before { display: none; } }

/* ---------- Assistente ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.pillars > div { border-top: 1px solid var(--gold-light); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.pillars strong { font-family: var(--font-brand); font-weight: 400; font-size: 22px; color: var(--gold-light); }
.pillars span { font-size: 13px; color: var(--on-navy-muted); }
@media (max-width: 480px) { .pillars { grid-template-columns: 1fr; } }

.chat { background: #FFFFFF; color: var(--ink); border: 1px solid var(--gold-light); display: flex; flex-direction: column; }
.chat__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; background: var(--ivory); border-bottom: 1px solid #E0D4BF;
}
.chat__who { display: flex; align-items: center; gap: 12px; }
.chat__who div { display: flex; flex-direction: column; }
.chat__who strong { font-size: 15px; }
.chat__who span { font-size: 12px; color: var(--muted); }
.chat__reset {
  border: 1px solid var(--input); background: #FFFFFF; padding: 8px 14px;
  font-size: 13px; cursor: pointer; min-height: 36px;
}
.chat__reset:hover { border-color: var(--navy); }
.chat__messages {
  padding: 22px 20px; display: flex; flex-direction: column; gap: 12px;
  min-height: 360px; max-height: 460px; overflow-y: auto;
}
.msg { max-width: 82%; padding: 12px 14px; font-size: 15px; line-height: 1.5; animation: msg-in .25s ease-out; }
.msg--bot { align-self: flex-start; background: var(--sand); border: 1px solid var(--line); }
.msg--user { align-self: flex-end; background: var(--navy); color: var(--on-navy); }
.msg--typing { color: var(--muted); font-style: italic; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .msg { animation: none; } }
.summary {
  border-left: 3px solid var(--gold); background: var(--sand); padding: 16px;
  display: flex; flex-direction: column; gap: 8px; font-size: 14px; margin-top: 6px;
}
.summary .label { margin: 0; letter-spacing: 0.12em; }
.chat__options { padding: 16px 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; min-height: 77px; }
.chat__option {
  border: 1px solid var(--navy); color: var(--navy); background: #FFFFFF;
  padding: 10px 16px; min-height: 44px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.chat__option:hover { background: var(--navy); color: var(--on-navy); }
.chat__foot { padding: 0 20px 16px; font-size: 12px; color: var(--muted); }

/* ---------- O advogado ---------- */
.portrait { position: relative; padding: 0 0 24px 24px; }
.portrait__frame { position: absolute; left: 0; bottom: 0; width: 70%; height: 70%; border: 1px solid var(--gold-light); }
.portrait img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.quote {
  font-family: var(--font-serif); font-style: italic; font-size: clamp(22px, 2.4vw, 26px); line-height: 1.4;
  color: var(--navy); border-left: 2px solid var(--gold); padding-left: 20px;
}
.credentials { display: flex; gap: 32px; flex-wrap: wrap; }
.credentials div { display: flex; flex-direction: column; gap: 4px; }
.credentials dt { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.credentials dd { font-weight: 700; }

/* ---------- Dúvidas ---------- */
.faq { border-top: 1px solid var(--line); margin-top: 28px; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 18px; font-weight: 600; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__icon { font-size: 26px; font-weight: 400; color: var(--gold); transition: transform .2s; flex: none; }
.faq details[open] .faq__icon { transform: rotate(45deg); }
.faq details p { margin-top: 14px; font-size: 16px; line-height: 1.65; color: var(--text); }

/* ---------- Contato ---------- */
.wa-card {
  display: flex; align-items: center; gap: 16px; padding: 22px 24px;
  background: var(--navy); color: var(--on-navy); text-decoration: none;
}
.wa-card:hover { background: var(--navy-deep); color: var(--on-navy); }
.wa-card svg { flex: none; }
.wa-card__text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.wa-card__text strong { font-size: 17px; }
.wa-card__text span { font-size: 14px; color: var(--on-navy-muted); }
.wa-card__arrow { color: var(--gold-light); font-size: 22px; }
.map, iframe.map { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border: 0; }
.contact-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.contact-info div { display: flex; flex-direction: column; gap: 6px; }
.contact-info dt { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); }
.contact-info dd { font-size: 15px; line-height: 1.55; }
.contact-info a { color: var(--navy); }

.form {
  background: #FFFFFF; padding: clamp(28px, 4vw, 40px); border-top: 3px solid var(--gold);
  display: flex; flex-direction: column; gap: 18px;
}
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
.form input:not([type="checkbox"]), .form select {
  border: none; border-bottom: 1px solid var(--input); background: transparent;
  padding: 12px 2px; font-size: 16px; font-weight: 400; min-height: 44px; border-radius: 0;
}
.form textarea { border: 1px solid var(--input); padding: 12px; font-size: 16px; font-weight: 400; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.form .is-invalid { border-color: #A3361F !important; }
.form .check { flex-direction: row; align-items: flex-start; gap: 10px; font-size: 13px; font-weight: 400; letter-spacing: 0; line-height: 1.5; color: var(--text); }
.form .check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: 14px; min-height: 1.5em; }
.form__status.is-ok { color: #24613F; }
.form__status.is-error { color: #A3361F; }

/* ---------- Rodapé ---------- */
.footer { background: var(--navy); color: var(--on-navy-muted); padding: 56px 0 32px; }
.footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.footer__name { font-family: var(--font-brand); font-size: 18px; letter-spacing: 0.16em; color: var(--on-navy); margin-top: 4px; }
.footer__tagline { font-family: var(--font-brand); font-size: 11px; letter-spacing: 0.24em; color: var(--gold-light); }
.footer__legal { font-size: 13px; margin-top: 12px; }
.footer a { color: var(--on-navy-muted); }
.footer a:hover { color: var(--gold-light); }

/* ---------- Botão flutuante do WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--gold-light); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(19,31,49,0.35);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); color: var(--navy); }

/* ---------- Página interna (privacidade) ---------- */
.page-header { background: var(--navy); color: var(--on-navy); padding: 22px 0; }
.page-header a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-navy); font-family: var(--font-brand); letter-spacing: 0.14em; }
.prose { max-width: 760px; margin: 0 auto; padding: 64px var(--gutter) 96px; }
.prose h1 { font-family: var(--font-brand); font-weight: 500; font-size: clamp(28px, 4vw, 36px); margin-bottom: 8px; }
.prose h2 { font-size: 20px; margin: 36px 0 10px; }
.prose p, .prose li { font-size: 16px; line-height: 1.7; color: var(--text); }
.prose p + p { margin-top: 12px; }
