/* ==========================================================================
   SOS Previdenciário — folha de estilos única
   Mobile-first, sem dependências externas, otimizada para performance.
   ========================================================================== */

:root {
  --navy: #0b2545;
  --navy-dark: #071a33;
  --gold: #b08d57;
  --gold-light: #d3b483;
  --ink: #1c1c1c;
  --gray-700: #4a4a4a;
  --gray-500: #6b6b6b;
  --gray-200: #e6e8ec;
  --gray-100: #f4f6f8;
  --white: #ffffff;
  --success: #25d366;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(11, 37, 69, 0.08);
  --shadow-lg: 0 18px 45px rgba(11, 37, 69, 0.16);
  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.25; font-weight: 700; color: var(--navy); }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--gray-700); }
ul { padding-left: 1.2em; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; width: 100%; }
section { padding: 64px 0; }
.section-alt { background: var(--gray-100); }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .12em;
  font-size: .78rem; font-weight: 700; color: var(--gold); margin-bottom: .6em;
}
.lead { font-size: 1.1rem; color: var(--gray-700); max-width: 62ch; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: .96rem;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--success); color: #fff; box-shadow: 0 8px 20px rgba(37,211,102,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37,211,102,.45); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-ghost { border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }

/* Skip link (a11y) */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff;
  padding: 12px 18px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 500; background: rgba(255,255,255,.97);
  backdrop-filter: blur(6px); border-bottom: 1px solid var(--gray-200);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: nowrap; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; overflow: hidden; }
.brand img { height: 34px; width: auto; flex: none; }
.brand-text { line-height: 1.15; min-width: 0; overflow: hidden; }
.brand-text strong {
  display: block; font-size: .92rem; color: var(--navy);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-text span { display: none; font-size: .72rem; color: var(--gray-500); letter-spacing: .05em; text-transform: uppercase; }

.main-nav { display: none; }
.main-nav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav a {
  display: block; padding: 10px 14px; font-weight: 600; font-size: .93rem; color: var(--navy);
  border-radius: 8px; position: relative;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.phone-chip { display: none; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); font-size: .92rem; }
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; border-radius: 8px; border: 1px solid var(--gray-200); background: #fff;
}
.nav-toggle span { display: block; height: 2px; width: 20px; margin: 0 auto; background: var(--navy); }

.mobile-nav { display: none; flex-direction: column; border-top: 1px solid var(--gray-200); background: #fff; }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 14px 20px; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--gray-100); }
.mobile-nav .nav-group-label {
  padding: 14px 20px 4px; font-size: .74rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--gray-500);
}
.mobile-nav .sub-link { padding-left: 34px; font-weight: 500; font-size: .93rem; }

/* Dropdown (desktop) */
.has-dropdown > a::after { content: " ▾"; font-size: .75em; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0; min-width: 280px;
  background: #fff; border: 1px solid var(--gray-200); border-radius: 10px;
  box-shadow: var(--shadow-lg); padding: 8px; margin: 6px 0 0; list-style: none;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown li { position: static; }
.dropdown a { padding: 10px 14px; border-radius: 6px; font-size: .9rem; }
.dropdown a:hover { background: var(--gray-100); }

@media (min-width: 960px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
  .phone-chip { display: inline-flex; }
  .brand img { height: 44px; }
  .brand-text strong { font-size: 1.05rem; }
  .brand-text span { display: block; }
}

.header-actions { flex: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 85% 20%, rgba(176,141,87,.25), transparent 55%);
}
.hero .container { position: relative; z-index: 1; padding: 72px 20px 90px; display: grid; gap: 34px; }
.hero h1 { color: #fff; }
.hero p.lead { color: rgba(255,255,255,.85); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 30px; }
.hero-badges div { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: rgba(255,255,255,.85); }
.hero-badges svg { flex: none; }

@media (min-width: 900px) {
  .hero .container { grid-template-columns: 1.15fr .85fr; align-items: center; padding-top: 90px; padding-bottom: 100px; }
}

/* Breadcrumb / page header (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff; padding: 54px 0 70px;
}
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero .lead { color: rgba(255,255,255,.85); }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,.85); font-weight: 600; }
.breadcrumb a:hover { color: var(--gold-light); }

/* Cards / grids */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(2,1fr); } .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3,1fr); } .grid-4 { grid-template-columns: repeat(4,1fr); } }

.card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; background: rgba(176,141,87,.12);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--gold);
}
.card h3 { margin-bottom: .4em; font-size: 1.1rem; }
.card p { margin-bottom: .8em; font-size: .95rem; }
.card a.card-link { font-weight: 700; color: var(--navy); font-size: .9rem; }
.card a.card-link:hover { color: var(--gold); }

/* Two-column content */
.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.side-box {
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 30px 26px;
  position: sticky; top: 100px;
}
.side-box h3 { color: #fff; }
.side-box p { color: rgba(255,255,255,.82); }
.side-box .btn-primary { width: 100%; justify-content: center; margin-top: 10px; }
.side-list { list-style: none; padding: 0; margin: 18px 0; }
.side-list li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.15); font-size: .92rem; }
.side-list li:last-child { border-bottom: none; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 18px; }
.steps li { display: flex; gap: 16px; counter-increment: step; }
.steps li::before {
  content: counter(step); flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center;
}

/* FAQ */
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--gold); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 18px; margin: 0; }

/* Testimonials */
.testimonial { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.testimonial p { font-style: italic; }
.testimonial .who { font-weight: 700; color: var(--navy); font-style: normal; font-size: .9rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--gold) 0%, #8f6f3f 100%); color: #fff; border-radius: var(--radius);
  padding: 40px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.cta-band h2 { color: #fff; margin: 0; font-size: 1.5rem; }
.cta-band .btn-outline { border-color: #fff; }

/* Related links */
.related-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.related-list a {
  display: block; padding: 12px 16px; background: var(--gray-100); border-radius: 8px; font-weight: 600; color: var(--navy);
}
.related-list a:hover { background: var(--gray-200); }

/* Footer */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.78); overflow: hidden; }
.footer-top { padding-top: 56px; padding-bottom: 30px; display: grid; gap: 34px; min-width: 0; }
@media (min-width: 800px) { .footer-top { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-top h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-top ul { list-style: none; padding: 0; margin: 0; }
.footer-top li { margin-bottom: 10px; font-size: .9rem; }
.footer-top a:hover { color: var(--gold-light); }
.footer-brand { min-width: 0; }
.footer-brand img { height: 50px; margin-bottom: 14px; opacity: .95; max-width: 100%; width: auto; }
.footer-brand p { color: rgba(255,255,255,.65); font-size: .88rem; max-width: 32ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; padding-bottom: 20px; font-size: .82rem;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
}
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: #fff; }

/* WhatsApp floating button — apenas o ícone, em círculo */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  display: block; width: 60px; height: 60px; border-radius: 50%;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.35));
  transition: transform .15s ease, filter .15s ease;
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); filter: drop-shadow(0 14px 28px rgba(0,0,0,.42)); }
.wa-float img { width: 100%; height: 100%; display: block; border-radius: 50%; }

/* Skip-to-content offset for sticky header anchors */
[id] { scroll-margin-top: 90px; }

/* Alert / highlight box */
.alert-box {
  background: #fff8ec; border: 1px solid #f0dfb8; border-left: 4px solid var(--gold);
  border-radius: 8px; padding: 20px 22px; margin: 0 0 1.4em;
}
.alert-box strong { color: var(--navy); }
.alert-box p:last-child { margin-bottom: 0; }

/* Badge */
.badge {
  display: inline-block; background: rgba(11,37,69,.08); color: var(--navy);
  font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 4px 10px; border-radius: 999px; margin-bottom: .8em;
}
.badge.badge-gold { background: rgba(176,141,87,.15); color: #8f6f3f; }

/* Simple data table */
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border-radius: 8px; border: 1px solid var(--gray-200); }
table.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data-table th, table.data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--gray-200); }
table.data-table th { background: var(--gray-100); color: var(--navy); font-weight: 700; }
table.data-table tr:last-child td { border-bottom: none; }

/* Table of contents */
.toc { background: var(--gray-100); border-radius: var(--radius); padding: 22px 26px; margin: 0 0 2em; }
.toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .7em; }
.toc ol { margin: 0; padding-left: 1.1em; }
.toc li { margin-bottom: 6px; font-size: .93rem; }
.toc a { color: var(--navy); font-weight: 600; }
.toc a:hover { color: var(--gold); }

/* Utility */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.visually-hidden { position: absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
