/* ==========================================================================
   João Paulo Duarte Pereira · Advocacia Previdenciária — Landing page BPC
   Estrutura: 1 Tokens · 2 Base · 3 Componentes · 4 Seções · 5 Utilitários
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  /* cor */
  --bg: #F4EFE6;
  --ink: #1C2A3A;
  --muted: #4B5866;
  --gold: #8C6420;
  --gold-soft: #E2C68E;
  --gold-line: #B08A4A;
  --line: #DDD3C2;
  --line-strong: #CDBF9F;
  --blue: #1F4E79;
  --sky: #DCE8F1;
  --sky-line: #E6EDF3;
  --white: #FFFFFF;
  --pale: #D9DEE4;
  --night-line: #4A5B6E;
  --green: #1F8A4C;
  --green-dark: #176E3C;
  --green-bright: #2E9E5B;

  /* tipografia */
  --font-display: 'Outfit', sans-serif;
  --font-text: 'Atkinson Hyperlegible', system-ui, sans-serif;

  /* layout */
  --max: 1180px;
  --gutter: 24px;
  --radius: 18px;
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--blue); }
a:hover { color: var(--gold); }

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; color: var(--bg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* 3. COMPONENTES ----------------------------------------------------------- */

/* Contêiner e grade responsiva padrão (--min = largura mínima da coluna) */
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

.split {
  display: grid;
  gap: 36px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 340px)), 1fr));
  align-items: start;
}

/* Sobretítulo com fio */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 40px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--gold-soft); }
.eyebrow--blue { color: var(--blue); }

/* Títulos de seção */
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.h2 .hl { color: var(--gold); font-weight: 600; }
.h2--light { font-weight: 300; }
.h2--light .hl { color: var(--gold-soft); font-weight: 500; }
.h2--blue .hl { color: var(--blue); }
.h2--balance { text-wrap: balance; }

.stack { display: grid; gap: 14px; }
.intro { font-size: 20px; line-height: 1.5; }
.intro--muted { color: var(--muted); }

/* Ícone do WhatsApp (sprite em <symbol id="i-wa">) */
.icon-wa { flex: none; fill: currentColor; }

/* Botões */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
}
.btn-outline:hover { background: var(--ink); color: var(--bg); }

.btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 28px;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  font-size: 19px;
  font-weight: 700;
  border-radius: 999px;
}
.btn:hover { background: var(--green-dark); color: var(--white); }
.btn--lg { min-height: 66px; padding: 0 34px 0 26px; font-size: 21px; box-shadow: 0 10px 24px -12px rgba(31, 138, 76, .7); }
.btn--on-dark:hover { background: var(--green-bright); }
.btn--on-dark:focus-visible { outline-color: var(--gold-soft); }

/* Botão flutuante */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 5;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .45);
}
.wa-float:hover { background: var(--green-dark); color: var(--white); }

/* 4. SEÇÕES ---------------------------------------------------------------- */

/* Cabeçalho */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { display: block; mix-blend-mode: multiply; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
}
.brand-name { font-family: var(--font-display); font-weight: 500; font-size: 19px; }
.brand-role {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Topo */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--gutter) 80px;
  display: grid;
  gap: 56px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  align-items: center;
}
.hero-copy { display: grid; gap: 26px; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(42px, 6.2vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero h1 .hl { color: var(--gold); font-weight: 600; }
.hero-lead { font-size: clamp(21px, 2.4vw, 25px); line-height: 1.45; max-width: 30ch; text-wrap: pretty; }
.hero-facts {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  font-size: 18px;
}
.hero-facts li { display: flex; gap: 10px; align-items: center; }
.hero-facts svg { flex: none; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.hero-photo { position: relative; justify-self: center; width: min(100%, 440px); aspect-ratio: 4 / 5; }
.hero-photo .frame {
  position: absolute;
  inset: 0;
  transform: translate(18px, 18px);
  border: 1.5px solid var(--gold-line);
  border-radius: var(--radius);
}
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: var(--radius);
  display: block;
}
.hero-badge {
  position: absolute;
  left: -18px;
  bottom: 28px;
  display: grid;
  gap: 2px;
  padding: 14px 20px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 12px;
  box-shadow: 0 14px 30px -14px rgba(28, 42, 58, .6);
}
.hero-badge strong { font-family: var(--font-display); font-weight: 500; font-size: 18px; }
.hero-badge span { font-size: 14px; color: var(--gold-soft); letter-spacing: .04em; }

/* Qual é o seu caso */
.cases { background: var(--white); border-block: 1px solid var(--line); }
.cases .split { padding-block: 72px; }
.case-list { display: grid; border-top: 2px solid var(--ink); }
.case-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 88px;
  padding: 16px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.case-link:hover { background: var(--bg); color: var(--ink); }
.case-link:focus-visible { outline-offset: -3px; }
.case-n { font-family: var(--font-display); font-weight: 500; font-size: 16px; letter-spacing: .12em; color: var(--gold); }
.case-text { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2.6vw, 27px); line-height: 1.2; }
.case-arrow { width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: var(--white); display: grid; place-items: center; font-size: 22px; }

/* Passo a passo */
.path { background: var(--ink); color: var(--bg); }
.path-inner { max-width: var(--max); margin: 0 auto; padding: 80px var(--gutter); display: grid; gap: 44px; }
.path-head { display: grid; gap: 14px; max-width: 640px; }
.path-head p { font-size: 21px; line-height: 1.5; color: var(--pale); }
.steps { display: grid; gap: 0 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.step { display: grid; gap: 12px; align-content: start; padding: 24px 0; border-top: 1px solid var(--night-line); }
.step-n { font-family: var(--font-display); font-weight: 300; font-size: 56px; line-height: 1; color: var(--gold-soft); }
.step-title { font-family: var(--font-display); font-weight: 500; font-size: 23px; line-height: 1.2; }
.step-text { font-size: 18px; line-height: 1.5; color: var(--pale); }

/* Atendimento */
.about {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px var(--gutter);
  display: grid;
  gap: 64px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  align-items: center;
}
.portrait { position: relative; justify-self: center; width: min(100%, 430px); }
.portrait img.photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; display: block; border-radius: var(--radius); }
.portrait-logo {
  position: absolute;
  right: -16px;
  bottom: -16px;
  width: 88px;
  height: 88px;
  padding: 14px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 12px 26px -12px rgba(28, 42, 58, .4);
}
.about-copy { display: grid; gap: 24px; }
.about-copy > p { font-size: 21px; line-height: 1.5; max-width: 36ch; }
.about-steps { display: grid; border-top: 2px solid var(--ink); }
.about-steps li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  line-height: 1.4;
}
.about-steps .n { font-family: var(--font-display); font-weight: 300; font-size: 36px; line-height: 1; color: var(--gold); }

/* Documentos */
.docs { background: var(--sky); }
.docs .split { padding-block: 80px; }
.docs-intro { font-size: 20px; line-height: 1.5; }
.docs-list { display: grid; padding: 8px 24px; background: var(--white); border-radius: 16px; }
.docs-list li { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--sky-line); font-size: 19px; line-height: 1.35; }
.check { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--blue); color: var(--white); display: grid; place-items: center; }
.check svg { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* Perguntas frequentes */
.faq { max-width: var(--max); margin: 0 auto; padding: 96px var(--gutter); }
.faq-list { display: grid; border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 76px;
  padding: 14px 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline-offset: 4px; }
.faq-plus {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  transition: transform .2s;
}
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-item p { margin: 0 0 22px; font-size: 19px; line-height: 1.55; max-width: 52ch; }

/* Contato */
.contact { background: var(--ink); color: var(--bg); }
.contact .split { padding-block: 80px; align-items: center; gap: 56px; }
.contact-copy { display: grid; gap: 24px; }
.contact .h2 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.025em; }
.contact-copy > p { font-size: 21px; line-height: 1.5; color: var(--pale); max-width: 30ch; }
.contact-info {
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--night-line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 18px 28px;
  font-size: 17px;
  line-height: 1.45;
}
.contact-info div { display: grid; gap: 4px; }
.contact-info dt { color: var(--gold-soft); font-weight: 700; }
.contact-info dd { color: var(--pale); }
.contact-photo { justify-self: center; width: min(100%, 420px); height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; display: block; border-radius: var(--radius); }

/* Rodapé */
.site-footer { max-width: var(--max); margin: 0 auto; padding: 36px var(--gutter) 48px; display: grid; gap: 14px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { mix-blend-mode: multiply; }
.footer-brand span { font-family: var(--font-display); font-weight: 500; font-size: 17px; color: var(--ink); }
.site-footer p { max-width: 72ch; }

/* Página de texto (privacidade) */
.doc { max-width: 760px; margin: 0 auto; padding: 56px var(--gutter) 96px; display: grid; gap: 20px; font-size: 19px; line-height: 1.6; }
.doc h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 5vw, 48px); line-height: 1.1; letter-spacing: -0.02em; }
.doc h2 { font-family: var(--font-display); font-weight: 500; font-size: 24px; margin-top: 12px; }
.doc ul { list-style: disc; padding-left: 24px; display: grid; gap: 6px; }
.doc .updated { font-size: 15px; color: var(--muted); }
