/* ==========================================================================
   Ádam da Fé, Advocacia — direção editorial
   Tipografia serifada (Literata), fundo claro frio, azul-marinho como cor de
   ação e laranja só como detalhe decorativo (nunca em texto).
   Design anterior (Cormorant + Inter): backup-design-anterior/
   ========================================================================== */

/* ---------- Variáveis ---------- */
:root {
  --bg: #EFF2F5;
  --panel: #E3E8EE;
  --placeholder: #E6EAEE;
  --placeholder-line: #C9D1D9;
  --ink: #13293E;          /* texto principal e cor de ação */
  --ink-soft: #33475B;     /* texto de apoio */
  --ink-mute: #4A5A6A;     /* rótulos e legendas */
  --line: #D6DCE2;         /* filetes */
  --field-line: #7D8B99;   /* borda de campos */
  --white: #FFFFFF;
  --detail: #D86719;       /* DECORATIVO: assinatura, numerais, "+" */
  --hover: #A14A0E;        /* hover de link */
  --footer-line: #2B415A;
  --footer-text: #B5C1CD;
  --footer-label: #8FA0B2;
  --ok-bg: #E3EAF1;
  --err-bg: #F7E7E2;
  --err-text: #7A2A14;

  --font: Literata, Georgia, 'Times New Roman', serif;
  --max: 1280px;
  --gutter: 40px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

a {
  color: var(--ink);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--hover); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

input, select, textarea, button { font: inherit; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: 4px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Estrutura ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
}

.section {
  padding: 112px var(--gutter);
}
.section + .section--rule,
.section--rule { border-top: 1px solid var(--line); }

/* duas colunas: título à esquerda, conteúdo à direita */
.split {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 80px;
}
.split__head {
  flex: 1 1 300px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.split__body {
  flex: 999 1 560px;
  min-width: 0;
}

h2, .h2 {
  font-weight: 400;
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.lead-mute { color: var(--ink-mute); }

/* ---------- Botões e links de ação ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 4px;
  background: var(--ink);
  color: var(--white);
  font-weight: 500;
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: #1E3A57; color: var(--white); }
.btn:focus-visible { outline-color: var(--ink); outline-offset: 3px; }

.link-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  font-size: 17px;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(239, 242, 245, 0.96);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
/* ao rolar: filete azul-marinho e sombra suave (classe posta por js/script.js) */
.header.hdr-on { box-shadow: inset 0 -1px 0 var(--ink), 0 8px 20px rgba(19, 41, 62, 0.06); }
.header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: calc(var(--max) + 2 * var(--gutter));  /* alinha o logo com o conteúdo das seções */
  padding: 16px var(--gutter);
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
}
.logo__mark { display: block; flex: none; height: 40px; width: auto; }   /* monograma AF; o texto ao lado continua sendo o nome acessível */
.logo__text { display: flex; align-items: baseline; gap: 12px; }
.logo__name { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.logo__sub { font-size: 15px; color: var(--ink-mute); }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 30px;
  font-size: 16px;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.nav__link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--detail);
  text-decoration-thickness: 2px;
}
.nav__cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
}
.nav__cta:hover { background: var(--ink); color: var(--white); }

/* ---------- Hero ---------- */
.hero { padding: 112px var(--gutter) 104px; }
.hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 64px 80px;
}
.hero__content {
  flex: 999 1 600px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.hero__eyebrow { font-size: 17px; color: var(--ink-mute); }
.hero h1 {
  font-weight: 400;
  font-size: clamp(46px, 6vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 13ch;
}
.hero__lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 34ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: 6px;
}
.hero__actions a:not(.btn) { font-size: 17px; display: inline-flex; align-items: center; min-height: 44px; }

.signature {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 420px;
}
.signature__name { font-size: 20px; font-weight: 500; }
.signature__meta { font-size: 15px; color: var(--ink-mute); line-height: 1.5; }

/* assinatura desenhada: animação discreta, desligada em reduced-motion */
.sig path {
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: sig 1.4s cubic-bezier(.6, .05, .3, 1) .9s forwards;
}
@keyframes sig { to { stroke-dashoffset: 0; } }

/* retrato e fotos (hoje espaços reservados) */
.portrait {
  flex: 1 1 300px;
  max-width: 380px;
}
.ph {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--placeholder);
}
.ph picture { display: block; width: 100%; height: 100%; }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph--portrait { aspect-ratio: 4 / 5; }
.ph--frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid var(--placeholder-line);
  border-radius: 2px;
}
.ph__caption {
  position: absolute;
  left: 20px; right: 20px; bottom: 16px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-mute);
}
.ph--portrait .ph__caption { left: 26px; bottom: 22px; }

/* ---------- Áreas de atuação ---------- */
.areas__head p { color: var(--ink-mute); }

/* grade de cartões sem foto: filete azul-marinho no topo de cada área */
.areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px 56px;
}
.area {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--ink);
}
.area h3 {
  font-weight: 400;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.area__desc { color: var(--ink-soft); }
.area__topics { font-size: 16px; color: var(--ink-mute); }
.area .link-action { align-self: flex-start; }

/* ---------- Princípio (citação) ---------- */
.principle {
  padding: 112px var(--gutter);
  background: var(--ink);   /* faixa azul-marinho: a citação fica em destaque */
  color: var(--white);
}
.principle figure {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.principle blockquote {
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--white);
}
.principle figcaption { display: flex; flex-direction: column; gap: 6px; max-width: 260px; font-size: 16px; color: var(--footer-text); }
.principle figcaption svg { display: block; width: 100%; height: 16px; }

/* ---------- Sobre ---------- */
.about__body { display: flex; flex-direction: column; gap: 32px; }
.about__text { display: flex; flex-direction: column; gap: 20px; }
.about__text > p { max-width: 66ch; }
.about__text p { color: var(--ink-soft); }
.about__text .about__intro { font-size: 23px; line-height: 1.5; color: var(--ink); }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0 32px;
  border-top: 1px solid var(--line);
}
.facts > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt { font-size: 15px; color: var(--ink-mute); }
.facts dd { font-size: 19px; }

/* ---------- Como funciona ---------- */
.steps-wrap { display: flex; flex-direction: column; gap: 56px; }
.steps { display: flex; flex-direction: column; }
.step {
  display: flex;
  align-items: baseline;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.step:first-child { padding-top: 0; }
.step:last-child { padding-bottom: 0; border-bottom: 0; }
.step__num {
  flex: none;
  width: 40px;
  font-size: 44px;
  font-weight: 300;
  line-height: 1;
  color: var(--detail);
}
.step__text { display: flex; flex-direction: column; gap: 8px; max-width: 60ch; }
.step h3 { font-weight: 500; font-size: 24px; line-height: 1.3; }
.step p { color: var(--ink-soft); }

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px 36px;
  padding: 32px;
  border-radius: 4px;
  background: var(--panel);
}
.principles p { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.principles strong {
  display: block;
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
}

/* ---------- Perguntas frequentes ---------- */
.faq__note { font-size: 15px; color: var(--ink-mute); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 20px 0;
  font-size: 22px;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__plus {
  flex: none;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  color: var(--detail);
  transition: transform .2s ease;
}
.faq details[open] .faq__plus { transform: rotate(45deg); }
.faq details p { margin: 0 0 28px; max-width: 62ch; color: var(--ink-soft); }

/* ---------- Contato ---------- */
.contact__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 56px 80px;
}
.contact__info {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact__info h2 {
  font-size: clamp(40px, 4.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.contact__info > p { max-width: 40ch; color: var(--ink-soft); }
.contact__info .btn { align-self: flex-start; }

.details { margin-top: 12px; border-top: 1px solid var(--line); }
.details > div {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.details dt {
  flex: 0 0 120px;
  padding-top: 2px;
  font-size: 15px;
  color: var(--ink-mute);
  line-height: 44px;
  padding-top: 0;
}
.details dd {
  flex: 1 1 220px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 20px;
  min-height: 44px;
}
.details dd.is-stack { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding: 6px 0; }
.details dd .muted { color: var(--ink-mute); }
.details a { display: inline-flex; align-items: center; min-height: 44px; }

.social-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.social-links li { display: flex; }

.contact__form {
  container: form / inline-size;
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}
.contact__form h3 { font-weight: 400; font-size: 30px; letter-spacing: -0.01em; line-height: 1.2; }
.form-note {
  padding: 14px 16px;
  border-radius: 4px;
  background: var(--panel);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.form__group { display: flex; flex-direction: column; gap: 6px; }
.form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);   /* empilhado por padrão */
  gap: 22px 20px;
}
.form__row label { white-space: nowrap; }
/* lado a lado só se o formulário comportar o rótulo longo do telefone em 1 linha;
   a coluna do telefone tem largura mínima própria e a do e-mail ocupa o resto */
@container form (min-width: 500px) {
  .form__row { grid-template-columns: minmax(0, 1fr) minmax(270px, 1.15fr); }
}
.contact__form label { font-size: 16px; font-weight: 500; }
.contact__form label .opt { font-weight: 400; color: var(--ink-mute); }

.contact__form input[type="text"],
.contact__form input[type="email"],
.contact__form input[type="tel"],
.contact__form select,
.contact__form textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--field-line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font-size: 17px;
}
.contact__form select { padding: 0 12px; }
.contact__form textarea { padding: 12px 14px; line-height: 1.55; resize: vertical; }
.contact__form .is-invalid { border-color: var(--err-text); box-shadow: 0 0 0 1px var(--err-text); }

.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form__consent { display: flex; align-items: flex-start; gap: 12px; }
.form__consent input {
  flex: none;
  width: 20px; height: 20px;
  margin: 4px 0 0;
  accent-color: var(--ink);
}
.contact__form .form__consent label {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-soft);
}
.contact__form .btn { align-self: flex-start; }

.form__status { font-size: 16px; }
.form__status:empty { display: none; }
.form__status.is-success,
.form__status.is-error { padding: 14px 16px; border-radius: 4px; }
.form__status.is-success { background: var(--ok-bg); color: var(--ink); }
.form__status.is-error { background: var(--err-bg); color: var(--err-text); }

/* ---------- Política de Privacidade (página própria) ---------- */
.privacy { padding: 80px var(--gutter) 112px; }
.privacy__inner { max-width: 720px; margin: 0 auto; }
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 24px;
  font-weight: 500;
}
.privacy h1 {
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.privacy__updated { margin: 12px 0 8px; font-size: 15px; color: var(--ink-mute); }
.privacy h2 { margin: 48px 0 12px; font-size: 26px; line-height: 1.2; }
.privacy p { color: var(--ink-soft); }

/* ---------- Rodapé ---------- */
.footer {
  padding: 80px var(--gutter) 40px;
  background: var(--ink);
  color: var(--footer-text);
  font-size: 16px;
}
.footer a { color: var(--white); }
.footer a:hover { color: var(--white); text-decoration-color: var(--detail); }
.footer__inner { display: flex; flex-direction: column; gap: 48px; }
.footer__brand { display: flex; flex-direction: column; gap: 16px; max-width: 420px; }
.footer__logo { display: block; width: 240px; height: auto; }   /* logomarca com o nome em branco, feita para fundo escuro */
.footer__brand p { line-height: 1.55; }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--footer-line);
}
.footer__col { display: flex; flex-direction: column; }
.footer__col .label { margin-bottom: 6px; font-size: 15px; color: var(--footer-label); }
.footer__col a {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 44px;
}
.footer__col .social-links { flex-direction: column; gap: 0; }
.footer__disclaimer { max-width: 72ch; font-size: 15px; line-height: 1.6; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--footer-line);
  font-size: 15px;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; }

/* crédito da empresa que desenvolveu o site (logo branco, fundo escuro) */
.footer__credit { display: flex; justify-content: flex-end; margin-top: -24px; }
.credit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--footer-text);
  font-size: 14px;
  text-decoration: none;
  opacity: .8;
}
.footer .credit { color: var(--footer-text); }
.credit:hover, .credit:focus-visible { opacity: 1; }
.credit img { display: block; height: 18px; width: auto; }

/* ---------- Botão fixo de WhatsApp (celular) ---------- */
.wa-float {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  align-items: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(19, 41, 62, 0.25);
  transition: opacity .2s ease, transform .2s ease;
}
.wa-float:hover { color: var(--white); background: #1E3A57; }
.wa-float.is-hidden { opacity: 0; pointer-events: none; transform: translateY(8px); visibility: hidden; }

/* ---------- Animações ---------- */
/* entrada escalonada do hero (só CSS: funciona sem JS) */
.rise { opacity: 0; animation: rise .7s cubic-bezier(.2, .7, .2, 1) forwards; }
.d1 { animation-delay: .15s; }
.d2 { animation-delay: .3s; }
.d3 { animation-delay: .5s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* resposta do FAQ aparece suave ao abrir; mensagens de status também */
.faq details[open] > p,
.form__status.is-success,
.form__status.is-error { animation: soft .35s ease; }
@keyframes soft { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* destaque no campo "Assunto" quando "Falar sobre Direito X" o pré-seleciona.
   Duas keyframes iguais com nomes diferentes: alternar a classe reinicia a animação sem forçar reflow. */
.flash-a { animation: flashA 1.6s ease-out; }
.flash-b { animation: flashB 1.6s ease-out; }
@keyframes flashA { 0%, 30% { box-shadow: 0 0 0 4px rgba(216, 103, 25, .45); } 100% { box-shadow: 0 0 0 4px rgba(216, 103, 25, 0); } }
@keyframes flashB { 0%, 30% { box-shadow: 0 0 0 4px rgba(216, 103, 25, .45); } 100% { box-shadow: 0 0 0 4px rgba(216, 103, 25, 0); } }

/* botão enquanto envia */
.btn[disabled] { opacity: .75; cursor: progress; }

/* ---------- Responsivo ---------- */
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .section { padding: 72px var(--gutter); }
  .hero { padding: 56px var(--gutter) 64px; }
  .principle { padding: 72px var(--gutter); }
  .privacy { padding: 48px var(--gutter) 72px; }
  .nav { display: none; }
  .wa-float { display: flex; }
  .footer { padding-bottom: 96px; }   /* espaço para o botão fixo */
  h2, .h2 { font-size: 34px; }
  .contact__form { padding: 24px; }
  .step { gap: 20px; }
  .step__num { width: 32px; font-size: 36px; }
  .faq summary { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sig path { animation: none; stroke-dashoffset: 0; }
  .faq__plus, .wa-float, .header { transition: none; }
  .rise { opacity: 1; animation: none; }
  .flash-a, .flash-b,
  .faq details[open] > p,
  .form__status.is-success,
  .form__status.is-error { animation: none; }
}
