/* ABRAGOV — folha de estilos do site institucional */
:root {
  --navy: #0B2545;
  --navy-2: #13315C;
  --green: #13A15A;
  --green-dark: #0E7F46;
  --gold: #F2B705;
  --gray: #5B6B7F;
  --ink: #142033;
  --line: #DDE3EA;
  --bg: #FFFFFF;
  --bg-soft: #F4F7FA;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(11, 37, 69, .08);
  --max: 1160px;
  --font-title: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); }
a:hover { color: var(--green-dark); }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; letter-spacing: -.5px; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--navy); padding: .6rem 1rem; z-index: 100; font-weight: 700; }
.skip:focus { left: 1rem; top: 1rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
[id] { scroll-margin-top: 80px; }
.section.soft { background: var(--bg-soft); }
.section.dark { background: var(--navy); color: #E7EEF6; }
.section.dark h2, .section.dark h3 { color: #fff; }
.eyebrow { display: inline-block; font-family: var(--font-title); font-weight: 700; font-size: .78rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--green-dark); margin-bottom: .6rem; }
.dark .eyebrow { color: var(--gold); }
.lead { font-size: 1.12rem; color: var(--gray); max-width: 720px; }
.dark .lead { color: #C9D6E5; }
.section-head { margin-bottom: 40px; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-title); font-weight: 700; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s;
  min-height: 48px; text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #FFC81F; color: var(--navy); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* Cabeçalho */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 74px; }
.brand img { width: 200px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .94rem; padding: .5rem .7rem; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green-dark); background: var(--bg-soft); }
.nav .btn { margin-left: 8px; padding: .6rem 1.2rem; min-height: 42px; color: #fff; }
.nav .btn:hover { color: #fff; background: var(--green-dark); }
.menu-toggle { display: none; background: none; border: 2px solid var(--line); border-radius: 10px; width: 46px; height: 46px; cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); margin: 4px auto; }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 20px; display: none; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: .8rem .6rem; }
  .nav .btn { margin: 8px 0 0; }
  .brand img { width: 170px; }
}

/* Hero */
.hero { position: relative; background: radial-gradient(1200px 500px at 85% -10%, rgba(19,161,90,.28), transparent 60%), linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 96px 0 104px; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 520px; height: 520px; background: url("assets/favicon.svg") center/contain no-repeat; opacity: .06; pointer-events: none; }
.hero h1 { color: #fff; max-width: 820px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { color: #D3DEEA; font-size: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 38px; color: #C9D6E5; font-size: .93rem; }
.hero-badges span::before { content: "✓"; color: var(--gold); font-weight: 800; margin-right: 6px; }
.founder-strip { display: inline-flex; align-items: center; gap: 10px; background: rgba(242,183,5,.14); border: 1px solid rgba(242,183,5,.45); color: #FFE08A; padding: .45rem .9rem; border-radius: 999px; font-size: .88rem; font-weight: 600; margin-bottom: 22px; }

/* Grades e cartões */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); min-width: 0; }
.card p:last-child { margin-bottom: 0; }
.flag { border-top: 5px solid var(--green); }
.flag:nth-child(2) { border-top-color: var(--gold); }
.flag:nth-child(3) { border-top-color: var(--navy-2); }
.flag .num { font-family: var(--font-title); font-weight: 800; font-size: 2.2rem; color: var(--line); line-height: 1; margin-bottom: 10px; }
.flag small { display: block; color: var(--gray); margin-top: 8px; font-size: .85rem; }

.mvv .card h3 { display: flex; align-items: center; gap: 10px; }
.mvv .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green); flex: none; }
.values { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.values li { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; font-size: .9rem; font-weight: 600; color: var(--navy); }

/* Benefícios */
.benefit-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
@media (max-width: 420px) { .benefit-groups { grid-template-columns: 1fr; } }
.benefit { position: relative; }
.benefit .tag { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: var(--navy); color: var(--gold); font-family: var(--font-title); font-weight: 800; margin-bottom: 14px; }
.benefit ul { margin: 0; padding-left: 1.1rem; color: #33425A; }
.benefit li { margin-bottom: .35rem; }
.benefit.highlight { border: 2px solid var(--gold); }
.note { background: #FFF8E1; border-left: 4px solid var(--gold); padding: 14px 18px; border-radius: 8px; color: #4A3B00; font-size: .93rem; margin-top: 26px; }

/* Planos */
.billing-toggle { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin: 0 auto 32px; }
.billing-toggle button { border: 0; background: transparent; font: 700 .95rem var(--font-title); color: var(--gray); padding: .6rem 1.2rem; border-radius: 999px; cursor: pointer; min-height: 42px; }
.billing-toggle button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.billing-toggle .save { color: var(--green-dark); font-size: .78rem; margin-left: 4px; }
.billing-toggle button[aria-pressed="true"] .save { color: var(--gold); }
.toggle-wrap { text-align: center; }
.plans { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; padding: 24px 20px; }
.plan.featured { border: 2px solid var(--green); position: relative; }
.plan.featured::before { content: "Mais escolhido"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--green); color: #fff; font: 700 .72rem var(--font-title); letter-spacing: .6px; text-transform: uppercase; padding: .3rem .8rem; border-radius: 999px; white-space: nowrap; }
.plan .who { color: var(--gray); font-size: .88rem; min-height: 2.6em; }
.plan .price { font-family: var(--font-title); font-weight: 800; color: var(--navy); font-size: 2rem; line-height: 1.1; margin: 8px 0 2px; }
.plan .price small { font-size: .9rem; font-weight: 600; color: var(--gray); }
.plan .price-note { font-size: .8rem; color: var(--green-dark); min-height: 1.3em; font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 20px; font-size: .92rem; flex: 1; }
.plan li { padding: 6px 0 6px 24px; position: relative; border-bottom: 1px dashed var(--line); }
.plan li::before { content: "✓"; position: absolute; left: 2px; color: var(--green); font-weight: 800; }
.plan .btn { width: 100%; }
.founder-box { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; margin-top: 34px; background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #E7EEF6; border-radius: var(--radius); padding: 28px 32px; }
.founder-box h3 { color: var(--gold); margin-bottom: .3rem; }
.founder-box p { margin: 0; }
.seal { width: 74px; height: 74px; border-radius: 50%; border: 3px solid var(--gold); display: grid; place-items: center; font: 800 .7rem/1.1 var(--font-title); color: var(--gold); text-align: center; letter-spacing: .5px; }
@media (max-width: 760px) { .founder-box { grid-template-columns: 1fr; text-align: center; } .seal { margin: 0 auto; } }
.fine { font-size: .85rem; color: var(--gray); margin-top: 18px; text-align: center; }

/* Passos */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 24px 20px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--navy); font: 800 1.1rem var(--font-title); margin-bottom: 14px; }
.steps h3 { font-size: 1.02rem; }
.steps p { color: #C9D6E5; font-size: .93rem; margin: 0; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 52px 18px 22px; font-family: var(--font-title); font-weight: 700; color: var(--navy); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--green); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 22px 18px; color: #33425A; }

/* Contato */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); word-break: break-word; }
.contact-list strong { display: block; color: var(--navy); }
.contact-ico { flex: none; width: 42px; height: 42px; border-radius: 10px; background: var(--bg-soft); display: grid; place-items: center; font-size: 1.2rem; }

/* Rodapé */
.site-footer { background: #081A33; color: #AFC0D3; padding: 56px 0 28px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .8rem; }
.site-footer a { color: #DCE6F1; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-logo { background: #fff; border-radius: 10px; padding: 8px 12px; display: inline-block; margin-bottom: 14px; }
.footer-logo img { width: 180px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .85rem; }

/* Páginas internas */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 64px 0 56px; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-hero .lead { color: #C9D6E5; }
.breadcrumb { font-size: .88rem; color: #AFC0D3; margin-bottom: 14px; }
.breadcrumb a { color: #fff; }
.prose { max-width: 820px; }
.prose h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.prose h3 { margin-top: 1.4rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .93rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .75rem; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); color: var(--navy); }

/* Transparência */
.docs-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 28px; }
.docs-toolbar input[type="search"] { flex: 1 1 280px; min-width: 0; min-height: 48px; padding: .7rem 1rem; border: 2px solid var(--line); border-radius: 10px; font: inherit; }
.docs-toolbar input[type="search"]:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(19,161,90,.2); }
.docs-toolbar select { min-height: 48px; padding: .6rem .8rem; border: 2px solid var(--line); border-radius: 10px; font: inherit; background: #fff; max-width: 100%; }
.doc-cat { margin-bottom: 36px; }
.doc-cat h2 { font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.doc-cat h2 .count { font: 700 .78rem var(--font-body); background: var(--bg-soft); color: var(--gray); border-radius: 999px; padding: .15rem .6rem; }
.doc-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.doc-item { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.doc-item:last-child { border-bottom: 0; }
.doc-ico { width: 44px; height: 52px; border-radius: 6px; background: #FDECEC; color: #B42318; display: grid; place-items: center; font: 800 .72rem var(--font-title); flex: none; }
.doc-ico.docx { background: #E8F0FE; color: #1A56C4; }
.doc-ico.xlsx { background: #E7F6EE; color: var(--green-dark); }
.doc-ico.link { background: var(--bg-soft); color: var(--navy); }
.doc-info { min-width: 0; }
.doc-info h3 { font-size: 1rem; margin: 0 0 .2rem; }
.doc-info p { margin: 0 0 .3rem; color: var(--gray); font-size: .9rem; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; color: var(--gray); }
.status { display: inline-block; font-weight: 700; font-size: .72rem; letter-spacing: .4px; text-transform: uppercase; padding: .15rem .55rem; border-radius: 999px; }
.status.minuta { background: #FFF4CC; color: #7A5B00; }
.status.em-registro { background: #E8F0FE; color: #1A56C4; }
.status.vigente, .status.aprovado { background: #E7F6EE; color: var(--green-dark); }
.doc-actions .btn { padding: .55rem 1rem; min-height: 42px; font-size: .88rem; }
.doc-actions .unavailable { font-size: .85rem; color: var(--gray); font-style: italic; }
@media (max-width: 640px) {
  .doc-item { grid-template-columns: auto 1fr; }
  .doc-actions { grid-column: 1 / -1; }
  .doc-actions .btn { width: 100%; }
}
.empty, .error-box { padding: 24px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--gray); text-align: center; }
.error-box { border-color: #F5C2C0; background: #FFF6F5; color: #7A271A; text-align: left; }
.drive-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 28px; }
.howto { margin-top: 40px; }
.howto code, .prose code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 5px; padding: .05rem .35rem; font-size: .88em; word-break: break-word; }
.howto pre { background: #0F1E33; color: #DCE6F1; padding: 16px; border-radius: 10px; overflow-x: auto; font-size: .85rem; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 560px) {
  .section { padding: 56px 0; }
  .hero { padding: 64px 0 72px; }
  .hero-actions .btn { width: 100%; }
  .card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
