/* Alberto Martins Advocacia Previdenciária */

:root {
  --navy-900: #0b1626;
  --navy-800: #101f35;
  --navy-700: #182c49;
  --navy-line: rgba(255, 255, 255, .12);
  --paper: #f7f4ee;
  --white: #ffffff;
  --ink: #1a2333;
  --ink-soft: #4a5568;
  --gold: #b89b5e;
  --gold-light: #d9c08a;
  --gold-dark: #7d6430;
  --line: #e3ddd0;
  --serif: "Inter", "Segoe UI", Arial, sans-serif;
  --sans: "Inter", "Segoe UI", Arial, sans-serif;
  --wrap: 1120px;
  --radius: 6px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.15rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--navy-900); padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

.eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 14px;
}
.on-navy .eyebrow { color: var(--gold-light); }

.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.on-navy .lead { color: #c9d2e0; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  border: 1px solid transparent; border-radius: var(--radius);
  font: 600 1.05rem/1.2 var(--sans);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-light); color: var(--navy-900); }
.btn-ghost { border-color: rgba(255, 255, 255, .4); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }
.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Cabeçalho */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-900);
  border-bottom: 1px solid var(--navy-line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand:hover { color: var(--white); }
.brand-mark {
  width: 64px; height: 44px; flex: none;
  background: url(../img/logo-mark.png?v=3) center / contain no-repeat;
}
.brand-name { font: 700 1.02rem/1 var(--serif); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); display: block; }
.brand-sub { font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: #c9d2e0; display: block; margin-top: 5px; }

.nav-toggle {
  width: 48px; height: 48px; padding: 0;
  background: none; border: 1px solid var(--navy-line); border-radius: var(--radius);
  color: var(--white); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }

.site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--navy-900); border-bottom: 1px solid var(--navy-line);
  padding: 8px 20px 20px;
}
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
  display: block; padding: 14px 0;
  color: #e6ebf3; text-decoration: none; font-weight: 500;
  border-bottom: 1px solid var(--navy-line);
}
.site-nav a:not(.btn):hover { color: var(--gold-light); }
.site-nav .btn { margin-top: 16px; width: 100%; }

/* Capa */
.on-navy { background: var(--navy-900); color: var(--white); }

.hero { position: relative; overflow: hidden; padding: 56px 0 0; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 85% 20%, rgba(184, 155, 94, .16), transparent 70%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
}
.hero .wrap { position: relative; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero h1 { max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero-logo { display: none; }

.facts {
  position: relative;
  list-style: none; margin: 48px 0 0; padding: 0;
  border-top: 1px solid var(--navy-line);
  display: grid;
}
.facts li { padding: 20px 0; border-bottom: 1px solid var(--navy-line); color: #c9d2e0; font-size: 1rem; }
.facts li:last-child { border-bottom: 0; }
.facts strong { display: block; color: var(--white); font: 600 1.1rem/1.3 var(--serif); margin-bottom: 4px; }

/* Seções */
.section { padding: 72px 0; }
.section-white { background: var(--white); }
.section-head { max-width: 720px; margin-bottom: 40px; }

.rule { width: 56px; height: 2px; background: var(--gold); border: 0; margin: 0 0 22px; }

/* Áreas */
.cards { display: grid; gap: 16px; }
.card {
  background: var(--white);
  border: 1px solid var(--line); border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  display: flex; flex-direction: column;
}
.section-white .card { background: var(--paper); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 1rem; margin-bottom: 0; }
.card .more { margin-top: auto; padding-top: 18px; font-weight: 600; text-decoration: none; }
.card .more:hover { text-decoration: underline; }

/* Situações */
.cases { display: grid; gap: 28px; }
.case { padding-left: 20px; border-left: 2px solid var(--gold); }
.case p { color: var(--ink-soft); font-size: 1rem; margin: 0; }

/* Passos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font: 700 2rem/1 var(--serif); color: var(--gold-light); margin-bottom: 12px;
}
.steps h3 { color: var(--white); }
.steps p { color: #c9d2e0; font-size: 1rem; margin: 0; }

/* Quem somos */
.about { display: grid; gap: 36px; align-items: start; }
.about-card {
  background: var(--navy-900); color: var(--white);
  border-radius: var(--radius); padding: 32px 28px;
}
.about-card .brand-mark { margin-bottom: 22px; }
.about-card h3 { color: var(--white); margin-bottom: 4px; }
.about-card .oab { color: var(--gold-light); font-weight: 600; letter-spacing: .06em; margin-bottom: 18px; }
.about-card ul { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--navy-line); color: #c9d2e0; font-size: 1rem; }
.about-card li + li { margin-top: 10px; }

/* Dúvidas */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font: 600 1.1rem/1.4 var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.8rem/1 var(--sans); color: var(--gold-dark); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--ink-soft); padding: 0 0 22px; margin: 0; max-width: 68ch; }

/* Contato */
.contact { text-align: center; padding: 80px 0; }
.contact h2 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.contact .lead { margin-left: auto; margin-right: auto; }
.contact .btn-row { justify-content: center; }
.contact-mail { margin-top: 22px; color: #c9d2e0; }
.contact-mail a { color: var(--gold-light); }

/* Rodapé */
.site-footer { background: #070f1b; color: #9aa7ba; font-size: .95rem; padding: 40px 0 96px; }
.site-footer a { color: #d6deea; }
.footer-grid { display: grid; gap: 28px; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li + li { margin-top: 8px; }
.footer-legal { border-top: 1px solid var(--navy-line); margin-top: 32px; padding-top: 24px; font-size: .88rem; }
.footer-legal p { margin: 0 0 8px; }

/* WhatsApp fixo */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  background: #1faf54; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
}
.wa-float:hover { background: #17994a; color: #fff; }
.wa-float svg { width: 32px; height: 32px; }

/* Aviso de cookies */
.cookie {
  position: fixed; left: 16px; right: 92px; bottom: 16px; z-index: 70;
  max-width: 560px;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
  padding: 18px 20px; font-size: .95rem;
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0 0 12px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie .btn { min-height: 44px; padding: 8px 18px; font-size: .95rem; }
.btn-line { border-color: var(--line); background: var(--white); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }

/* Páginas internas */
.page-hero { padding: 48px 0 56px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 90% at 90% 0%, rgba(184, 155, 94, .14), transparent 70%), linear-gradient(180deg, var(--navy-800), var(--navy-900));
}
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(1.85rem, 4.6vw, 2.7rem); max-width: 22ch; }
.crumbs { font-size: .9rem; color: #9aa7ba; margin-bottom: 22px; }
.crumbs a { color: #c9d2e0; }

.article-grid { display: grid; gap: 40px; align-items: start; }
.article h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin-top: 1.8em; }
.article h2:first-child { margin-top: 0; }
.article ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.article li { margin-bottom: .5em; }
.article li::marker { color: var(--gold); }
.note {
  background: var(--paper); border-left: 2px solid var(--gold);
  padding: 18px 20px; margin: 28px 0; font-size: 1rem; color: var(--ink-soft);
}
.note p:last-child { margin: 0; }

.side-card {
  background: var(--navy-900); color: var(--white);
  border-radius: var(--radius); padding: 28px 24px;
}
.side-card h2 { font-size: 1.3rem; color: var(--white); }
.side-card p { color: #c9d2e0; font-size: 1rem; }
.side-card .btn { width: 100%; }

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts li { border-bottom: 0; padding: 24px 24px 28px 0; }
  .facts li + li { padding-left: 24px; border-left: 1px solid var(--navy-line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; padding: 0; border: 0; background: none; }
  .site-nav ul { display: flex; align-items: center; gap: 28px; }
  .site-nav a:not(.btn) { padding: 6px 0; border: 0; font-size: 1rem; }
  .site-nav .btn { margin: 0; width: auto; min-height: 44px; padding: 8px 18px; font-size: .98rem; }

  .hero { padding-top: 88px; }
  .hero-grid { grid-template-columns: 1.25fr 1fr; gap: 56px; }
  .hero-logo { display: block; width: 100%; max-width: 440px; margin-left: auto; }
  .facts { margin-top: 80px; }

  .section { padding: 104px 0; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .cases { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 36px; }
  .about { grid-template-columns: 1.4fr 1fr; gap: 72px; }
  .article-grid { grid-template-columns: 1fr 340px; gap: 72px; }
  .side-card { position: sticky; top: 100px; }
  .contact { padding: 112px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

.contact-address { font-style: normal; margin-top: 36px; color: #c9d2e0; }
.contact-address strong { display: block; color: var(--white); font: 600 1.15rem/1.3 var(--serif); margin-bottom: 6px; }
.contact-address a { color: var(--gold-light); }

.article-solo { max-width: 780px; }
.cookie a { color: var(--gold-dark); }

/* Avaliações */
.reviews-widget { min-height: 120px; }
@media (min-width: 960px) { .site-nav ul { gap: 22px; } }

/* Guias "Conheça seus direitos" */
.summary { display: grid; gap: 14px; margin-bottom: 48px; }
.summary div { background: var(--paper); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 20px 22px; }
.summary strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.summary span { color: var(--ink-soft); font-size: .97rem; }
.article-faq { margin-top: 56px; }
.article-faq h2 { margin-bottom: 20px; }
.guide-group + .guide-group { margin-top: 64px; }
.guide-group > h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
a.card { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card:hover { border-color: var(--gold); box-shadow: 0 10px 28px rgba(11, 22, 38, .1); transform: translateY(-2px); color: inherit; }
a.card .more { color: var(--gold-dark); }
.related { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.related a { display: block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.related a:hover { border-color: var(--gold); color: var(--gold-dark); }
.cta-band { text-align: center; padding: 72px 0; }
.cta-band h2 { max-width: 24ch; margin-left: auto; margin-right: auto; }
.cta-band .lead { margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; }
@media (min-width: 640px) { .summary { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce) { a.card { transition: none; } a.card:hover { transform: none; } }
