:root {
  --background: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #eef4fb;
  --text: #10233f;
  --muted: #5c6f8a;
  --primary: #01419b;
  --primary-strong: #0b2851;
  --primary-soft: #e2edfb;
  --green: #02a447;
  --green-dark: #028a3a;
  --green-soft: #e3f7ed;
  --gold: #e9d05a;
  --border: #e0e7ef;
  --success: #02873f;
  --success-soft: #e3f7ed;
  --danger: #b42318;
  --shadow: 0 14px 40px rgba(16, 35, 63, .07);
  --radius: 16px;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #7db5f5; outline-offset: 3px; }
.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.narrow { max-width: 980px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 14px; background: var(--surface); border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--border); backdrop-filter: blur(8px); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand-logo { display: block; width: 108px; height: 70px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.main-nav a { position: relative; color: #3c4f68; font-size: 14.5px; font-weight: 650; padding: 4px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2.5px; background: var(--green); border-radius: 2px; transition: right .22s ease; }
.main-nav a:hover { color: var(--primary); }
.main-nav a:hover::after { right: 0; }
.btn-consultar { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 46px; padding: 0 28px; color: #fff; background: var(--green); border-radius: 10px; font-size: 14.5px; font-weight: 750; letter-spacing: .01em; box-shadow: 0 8px 24px rgba(2, 164, 71, .32); transition: background .18s ease, transform .18s ease, box-shadow .18s ease; }
.btn-consultar:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(2, 164, 71, .38); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--primary); border-radius: 2px; }
.brand-footer .brand-logo-wrap { display: inline-grid; place-items: center; filter: drop-shadow(0 0 4px rgba(255,255,255,.3)); }

.hero { position: relative; overflow: hidden; padding: 100px 0 110px; background: linear-gradient(118deg, #012a66 0%, #01419b 34%, #0168b4 58%, #028a3a 86%, #02a447 100%); color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000, transparent 92%); }
.hero::after { content: ""; position: absolute; width: 620px; height: 620px; right: -200px; top: -260px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 100px rgba(255,255,255,.028), 0 0 0 200px rgba(255,255,255,.018); }
.hero-inner { position: relative; z-index: 1; text-align: center; }
.eyebrow { margin: 0 0 14px; color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.hero .eyebrow { color: #9cc9f5; }
.hero h1 { max-width: 900px; margin: 0 auto; font-size: clamp(40px, 5.6vw, 68px); line-height: 1.05; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; text-shadow: 0 2px 24px rgba(1, 24, 58, .28); }
.hero h1 span { color: #a8d2fb; }
.hero-brand-heading { display: flex; justify-content: center; }
.hero-brand-plaque { width: clamp(210px, 26vw, 310px); min-height: 100px; display: grid; place-items: center; text-shadow: none; }
.hero-brand-logo { display: block; width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 10px 20px rgba(0,20,52,.28)); }
.hero-copy { max-width: 640px; margin: 18px auto 38px; color: #dceafa; font-size: 20px; font-weight: 400; }
.search-form { width: 100%; max-width: 820px; margin: 0 auto; padding: 7px; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 12px; background: var(--surface); border: 1px solid rgba(255,255,255,.4); border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.2); }
.search-form input { min-width: 0; height: 52px; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 16px; }
.search-form input::placeholder { color: #738197; }
.search-form button, .button { border: 0; min-height: 48px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #fff; background: var(--primary); border-radius: 11px; font-weight: 750; cursor: pointer; }
.search-form button:hover, .button:hover { background: #0a417d; }
.search-form-hero { max-width: 720px; padding: 8px; border-radius: 14px; box-shadow: 0 24px 64px rgba(1, 24, 58, .38), 0 0 0 1px rgba(255,255,255,.12); }
.search-form-hero input { height: 58px; font-size: 17px; padding-left: 2px; }
.search-form-hero button { min-height: 56px; padding: 0 32px; background: var(--green); border-radius: 10px; font-size: 15px; letter-spacing: .02em; }
.search-form-hero button:hover { background: var(--green-dark); box-shadow: 0 6px 20px rgba(2, 164, 71, .4); }
.search-form-hero .search-icon { margin-left: 6px; }
.search-icon { width: 17px; height: 17px; margin-left: 5px; border: 2px solid #708198; border-radius: 50%; position: relative; }
.search-icon::after { content: ""; position: absolute; width: 7px; height: 2px; right: -6px; bottom: -3px; background: #708198; transform: rotate(45deg); border-radius: 2px; }
.search-hints { display: flex; justify-content: center; gap: 28px; margin-top: 20px; color: #a9bdd2; font-size: 13px; }
.hero-stats { margin: 22px 0 0; color: #e8c97a; font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.search-hints span::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 8px 2px 0; background: #65a9e8; border-radius: 50%; }

.brand-definition { position: relative; z-index: 2; margin-top: -34px; }
.brand-definition-inner { min-height: 108px; padding: 24px 28px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; background: var(--surface); border: 1px solid rgba(190, 205, 221, .8); border-radius: 18px; box-shadow: 0 22px 54px rgba(16, 35, 63, .12); }
.brand-definition-mark { width: 82px; height: 58px; display: grid; place-items: center; }
.brand-definition-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-definition h2 { margin: 0 0 3px; font-size: 17px; letter-spacing: -.015em; }
.brand-definition p { max-width: 760px; margin: 0; color: var(--muted); font-size: 13.5px; }
.brand-definition a { padding: 10px 0; color: var(--primary); font-size: 13px; font-weight: 800; white-space: nowrap; }
.brand-definition a:hover { color: var(--green-dark); }

.purchase-card { padding: 25px; color: #fff; background: linear-gradient(145deg, #0b2851, #075887); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; box-shadow: 0 18px 44px rgba(8, 30, 57, .2); }
.purchase-card-kicker { color: #92d9bb; font-size: 10px; font-weight: 850; letter-spacing: .14em; }
.purchase-card h2 { margin: 9px 0 8px; color: #fff; font-size: 20px; line-height: 1.2; }
.purchase-card p { margin: 0 0 18px; color: #d5e5f3; font-size: 13px; }
.purchase-card > a { min-height: 46px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #0b2851; background: #fff; border-radius: 9px; font-size: 13px; font-weight: 850; }
.purchase-card > a:hover { background: #dff3e8; }
.purchase-card small { display: block; margin-top: 11px; color: #a9c7db; font-size: 10.5px; }

.section { padding: 80px 0; }
.section-soft { background: #f0f5fa; border-block: 1px solid var(--border); }
.section-heading { margin-bottom: 38px; display: flex; align-items: end; justify-content: space-between; gap: 48px; }
.section-heading h2, .discovery-grid h2 { margin: 0; font-size: clamp(28px, 3.6vw, 38px); line-height: 1.12; letter-spacing: -.03em; }
.section-heading > p, .section-copy { max-width: 430px; margin: 0; color: var(--muted); }
.company-list { display: grid; gap: 12px; }
.company-card { position: relative; padding: 24px; display: grid; grid-template-columns: 1fr 220px 120px; align-items: center; gap: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 15px; transition: border-color .18s ease, transform .18s ease; }
.company-card:hover { border-color: #a9bed7; transform: translateY(-1px); }
.company-card h2 { margin: 8px 0 0; font-size: 17px; line-height: 1.35; }
.company-card h2 a::after { content: ""; position: absolute; inset: 0; }
.trade-name { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.status { display: inline-flex; width: max-content; padding: 4px 8px; color: #6a4c00; background: #fff3cd; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.status-active { color: var(--success); background: var(--success-soft); }
.company-card-meta { display: grid; gap: 4px; color: var(--muted); font-size: 13px; }
.card-link { color: var(--primary); font-size: 13px; font-weight: 750; text-align: right; }
.discovery-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: start; }
.state-grid { margin-top: 34px; display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px; }
.state-grid span { display: grid; place-items: center; aspect-ratio: 1; color: #304861; background: rgba(255,255,255,.75); border: 1px solid var(--border); border-radius: 10px; font-size: 12px; font-weight: 800; }
.link-panel { padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.link-panel h3 { margin: 0 0 16px; font-size: 18px; }
.arrow-list { list-style: none; margin: 0; padding: 0; }
.arrow-list li + li { border-top: 1px solid var(--border); }
.arrow-list a { padding: 13px 0; display: flex; justify-content: space-between; color: #34465c; font-weight: 650; }
.arrow-list a:hover { color: var(--primary); }
.empty-compact { margin: 0; color: var(--muted); }
.cnae-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cnae-grid a { min-height: 116px; padding: 20px; display: flex; flex-direction: column; gap: 9px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.cnae-grid a:hover { border-color: #9eb7d3; }
.cnae-grid strong { color: var(--primary); font-size: 12px; letter-spacing: .06em; }
.cnae-grid span { font-size: 14px; line-height: 1.45; }
.trust-strip { padding: 38px 0; color: #fff; background: var(--primary-strong); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.trust-grid div { display: grid; gap: 3px; }
.trust-grid strong { font-size: 14px; }
.trust-grid span { color: #aec3d8; font-size: 12px; }

/* Home — Empresas em Destaque + Novos CNPJs */
.home-columns { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.home-main, .home-side { min-width: 0; }
.section-link { flex: 0 0 auto; color: var(--green); font-size: 14px; font-weight: 750; }
.section-link:hover { color: var(--green-dark); }
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.featured-card { position: relative; padding: 26px 22px 22px; display: flex; flex-direction: column; gap: 7px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.featured-card:hover { transform: translateY(-4px); box-shadow: 0 24px 56px rgba(16, 35, 63, .12); border-color: #c8d6e4; }
.featured-logo { width: 56px; height: 56px; margin-bottom: 8px; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); border-radius: 15px; }
.featured-logo img { width: 33px; height: 33px; display: block; object-fit: contain; }
.featured-card h3 { margin: 0; font-size: 15px; line-height: 1.42; letter-spacing: -.01em; }
.featured-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.featured-legal-name { min-height: 35px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.featured-cnpj { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.featured-cnae { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.featured-foot { margin-top: 14px; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--border); }
.featured-link { position: relative; z-index: 1; color: var(--green); font-size: 13px; font-weight: 750; }
.featured-link:hover { color: var(--green-dark); }
.newest-list { list-style: none; margin: 0; padding: 4px; display: grid; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.newest-list li { padding: 14px 18px; display: grid; gap: 2px; border-radius: 12px; transition: background .15s ease; }
.newest-list li:hover { background: var(--surface-soft); }
.newest-list li + li { border-top: 1px solid var(--border); }
.newest-list li:last-child { border-radius: 0 0 12px 12px; }
.newest-name { font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.newest-name:hover { color: var(--primary); }
.newest-meta { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.newest-time { width: max-content; margin-top: 4px; padding: 3px 9px; color: var(--green-dark); background: var(--green-soft); border-radius: 999px; font-size: 10.5px; font-weight: 750; letter-spacing: .02em; }

/* Home — Categorias Populares */
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.category-card { padding: 28px 14px 22px; display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.category-card:hover { transform: translateY(-4px); border-color: var(--green); box-shadow: 0 20px 48px rgba(2, 164, 71, .1); }
.category-card svg { width: 52px; height: 52px; padding: 12px; color: var(--green); background: var(--green-soft); border-radius: 50%; transition: transform .2s ease; }
.category-card:hover svg { transform: scale(1.08); }
.category-name { font-size: 14.5px; font-weight: 750; letter-spacing: -.01em; }
.category-card small { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }

.page-hero, .company-hero { padding: 58px 0; color: #fff; background: linear-gradient(145deg, #081e39, #0d3b68); }
.compact-hero h1 { max-width: 780px; margin: 0 0 14px; font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -.04em; }
.compact-hero > .container > p:last-child { max-width: 680px; margin: 0; color: #b9cce0; }
.compact-hero .search-form { margin: 26px 0 0; box-shadow: none; }
.code-badge { display: inline-flex; margin-bottom: 14px; padding: 6px 10px; color: #b8d9fa; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.section-results { min-height: 430px; padding-top: 52px; }
.results-summary { margin-bottom: 16px; display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; }
.results-summary p { margin: 0; }
.pagination { margin-top: 24px; display: flex; justify-content: space-between; gap: 12px; }
.pagination a { padding: 11px 16px; color: var(--primary); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; font-weight: 700; }
.pagination .next { margin-left: auto; }
.empty-state { padding: 52px 30px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.empty-state h2, .empty-state h3 { margin: 0 0 8px; }
.empty-state p { margin: 0; color: var(--muted); }

.breadcrumb { margin-bottom: 28px; display: flex; gap: 10px; color: #9eb5cb; font-size: 12px; }
.breadcrumb a:hover { color: #fff; }
.company-title-row { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.company-title-row h1 { max-width: 760px; margin: 12px 0 0; font-size: clamp(34px, 5vw, 56px); line-height: 1.04; letter-spacing: -.045em; }
.company-alias { margin: 12px 0 0; color: #b8cce0; }
.cnpj-copy { min-width: 220px; padding: 16px; display: grid; gap: 4px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; }
.cnpj-copy span { color: #91aec9; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.cnpj-copy strong { font-size: 17px; letter-spacing: .025em; }
.cnpj-copy button { width: max-content; padding: 3px 0; color: #91c9ff; background: none; border: 0; font-size: 12px; font-weight: 750; cursor: pointer; }
.company-intro { max-width: 800px; margin: 30px 0 0; color: #c1d1e1; font-size: 17px; }
.company-content { background: #f4f7fb; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.main-column { display: grid; gap: 18px; }
.data-section { padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.data-heading { margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.data-heading span { color: var(--primary); font-size: 11px; font-weight: 850; }
.data-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.data-grid { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.data-grid div { min-width: 0; padding: 16px; border-bottom: 1px solid var(--border); }
.data-grid div:nth-child(odd) { border-right: 1px solid var(--border); }
.data-grid div:nth-last-child(-n+2) { border-bottom: 0; }
.data-grid dt, .primary-cnae > span, .secondary-cnaes > span, .contact-card span { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.data-grid dd { margin: 5px 0 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 650; }
.primary-cnae { display: grid; gap: 7px; }
.primary-cnae a, .secondary-cnaes a { padding: 14px; display: flex; gap: 13px; background: var(--surface-soft); border-radius: 10px; font-size: 14px; }
.primary-cnae strong, .secondary-cnaes strong { flex: 0 0 auto; color: var(--primary); }
.secondary-cnaes { margin-top: 22px; display: grid; gap: 8px; }
.secondary-cnaes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.address-card { padding: 20px; display: grid; gap: 5px; background: var(--surface-soft); border-radius: 12px; font-style: normal; }
.address-card span { color: var(--muted); }
.address-card a { margin-top: 8px; color: var(--primary); font-size: 13px; font-weight: 750; }
.partner-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.partner-list div { padding: 16px; display: grid; gap: 3px; background: var(--surface-soft); border-radius: 11px; }
.partner-list span, .partner-list small { color: var(--muted); font-size: 12px; }
.side-column { position: sticky; top: 24px; display: grid; gap: 14px; }
.contact-card, .source-card { padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.contact-card h2, .source-card h2 { margin: 0 0 18px; font-size: 16px; }
.contact-card div { margin-bottom: 14px; display: grid; gap: 3px; }
.contact-card strong { font-size: 13px; }
.contact-card p, .source-card p { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.break-word { overflow-wrap: anywhere; }
.source-icon { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 15px; color: var(--primary); background: var(--primary-soft); border-radius: 50%; font-size: 13px; font-weight: 900; }
.company-search-again { padding: 52px 0; background: #e9f0f7; border-top: 1px solid var(--border); }
.company-search-again > div { display: grid; grid-template-columns: .7fr 1.3fr; align-items: center; gap: 34px; }
.company-search-again h2 { margin: 0; font-size: 22px; }
.company-search-again p { margin: 4px 0 0; color: var(--muted); }
.company-search-again .search-form { box-shadow: none; }

.error-page { min-height: 66vh; padding: 90px 0; display: grid; place-items: center; }
.error-inner { max-width: 720px; text-align: center; }
.error-code { color: #8fb2d8; font-size: 13px; font-weight: 900; letter-spacing: .16em; }
.error-inner h1 { margin: 8px 0; font-size: clamp(36px, 6vw, 58px); letter-spacing: -.045em; }
.error-inner > p { margin: 0 auto 28px; color: var(--muted); }
.error-inner .search-form { margin-bottom: 20px; box-shadow: var(--shadow); }
.text-link { color: var(--primary); font-size: 14px; font-weight: 750; }
.site-footer { padding: 58px 0 42px; color: #a8b8ca; background: #07172a; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .9fr 1.1fr; gap: 48px; align-items: start; }
.brand-footer { color: #fff; }
.site-footer p { max-width: 490px; margin: 14px 0 0; font-size: 13px; }
.footer-brand p { max-width: 320px; }
.footer-nav { display: grid; align-content: start; gap: 8px; }
.footer-nav strong { margin-bottom: 4px; color: #fff; font-size: 12px; letter-spacing: .04em; }
.footer-nav a { width: max-content; max-width: 100%; color: #a8b8ca; font-size: 13px; transition: color .15s ease; }
.footer-nav a:hover { color: #fff; }
.footer-note { text-align: right; }
.footer-note p { margin-left: auto; }

.institutional-hero { padding: 62px 0 68px; }
.institutional-hero .breadcrumb { margin-bottom: 30px; }
.institutional-hero .eyebrow { margin-bottom: 12px; color: #8dccff; }
.institutional-hero h1 { max-width: 820px; margin: 0 0 14px; font-size: clamp(36px, 5vw, 58px); line-height: 1.06; letter-spacing: -.045em; }
.institutional-hero > .container > p:last-child { max-width: 760px; margin: 0; color: #c1d1e1; font-size: 17px; }
.institutional-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.institutional-content { display: grid; gap: 16px; }
.institutional-content > section { padding: 30px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 10px 32px rgba(16, 35, 63, .04); }
.institutional-content h2 { margin: 0 0 14px; font-size: 22px; letter-spacing: -.025em; }
.institutional-content p { margin: 0; color: #42556e; }
.institutional-content p + p { margin-top: 12px; }
.institutional-links { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.institutional-links a { padding: 10px 13px; color: var(--primary); background: var(--primary-soft); border-radius: 9px; font-size: 13px; font-weight: 750; }
.institutional-links a:hover { background: #d3e5fa; }
.institutional-aside { position: sticky; top: 112px; padding: 26px; color: #dceafa; background: linear-gradient(145deg, #0b2851, #0c3f70); border-radius: var(--radius); box-shadow: var(--shadow); }
.institutional-badge { width: 92px; height: 48px; display: inline-grid; place-items: center; }
.institutional-badge img { width: 100%; height: 100%; object-fit: contain; }
.institutional-aside h2 { margin: 17px 0 9px; color: #fff; font-size: 20px; line-height: 1.25; letter-spacing: -.025em; }
.institutional-aside p { margin: 0 0 20px; color: #b8cce0; font-size: 13px; }
.institutional-aside .button { width: 100%; background: var(--green); }
.institutional-aside .button:hover { background: var(--green-dark); }
.institutional-aside nav { margin-top: 22px; padding-top: 18px; display: grid; gap: 8px; border-top: 1px solid rgba(255,255,255,.12); }
.institutional-aside nav a { color: #c4d8eb; font-size: 12px; font-weight: 650; }
.institutional-aside nav a:hover { color: #fff; }

.ops-shell { min-height: 78vh; padding: 58px 0 80px; color: #dbeafe; background: #050a12; }
.ops-heading { margin-bottom: 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.ops-heading h1 { margin: 8px 0; color: #fff; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.045em; }
.ops-heading p { margin: 0; color: #7789a3; }
.ops-kicker { color: #60a5fa; font: 750 11px/1.2 ui-monospace, monospace; letter-spacing: .16em; }
.ops-live { padding: 9px 13px; display: flex; align-items: center; gap: 8px; color: #8ba0bb; border: 1px solid #1b293b; border-radius: 999px; font-size: 12px; }
.ops-live span { width: 7px; height: 7px; background: #34d399; border-radius: 50%; box-shadow: 0 0 0 5px rgba(52, 211, 153, .1); }
.ops-progress-card, .ops-panel, .ops-metrics article, .ops-empty { border: 1px solid #172538; background: linear-gradient(145deg, rgba(17, 29, 46, .92), rgba(8, 15, 26, .96)); box-shadow: 0 20px 80px rgba(0, 0, 0, .18); }
.ops-progress-card { position: relative; padding: 24px; display: grid; grid-template-columns: 1fr auto; gap: 18px; border-radius: 18px; }
.ops-progress-copy > div { display: flex; align-items: center; gap: 12px; }
.ops-progress-copy strong { color: #60a5fa; font: 750 11px/1.2 ui-monospace, monospace; letter-spacing: .1em; }
.ops-progress-copy span, .ops-panel-title span { color: #64748b; font-size: 12px; }
.ops-progress-copy p { margin: 8px 0 0; color: #b8c5d8; }
.ops-progress-value { color: #fff; font-size: 24px; font-weight: 800; }
.ops-progress-track { grid-column: 1 / -1; height: 5px; overflow: hidden; background: #111e2f; border-radius: 999px; }
.ops-progress-track i { height: 100%; display: block; background: linear-gradient(90deg, #2563eb, #67e8f9); border-radius: inherit; }
.ops-metrics { margin: 14px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ops-metrics article { padding: 20px; border-radius: 15px; }
.ops-metrics span, .ops-metrics small { display: block; color: #667b96; font-size: 11px; }
.ops-metrics strong { margin: 7px 0 3px; display: block; color: #f8fafc; font-size: 22px; letter-spacing: -.03em; }
.ops-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 14px; }
.ops-panel { min-width: 0; padding: 21px; border-radius: 17px; }
.ops-panel-title { margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ops-panel-title h2 { margin: 0; color: #eef5ff; font-size: 15px; }
.ops-files { max-height: 470px; overflow: auto; }
.ops-file { padding: 11px 0; display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: center; gap: 12px; border-top: 1px solid #132033; }
.ops-file:first-child { border-top: 0; }
.ops-file strong, .ops-file small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-file strong { color: #cad7e8; font-size: 12px; }
.ops-file small, .ops-file > span:last-child { color: #60738e; font-size: 10px; }
.ops-status { width: 7px; height: 7px; background: #475569; border-radius: 50%; }
.ops-status-loaded { background: #34d399; }.ops-status-downloading, .ops-status-loading, .ops-status-merging { background: #60a5fa; box-shadow: 0 0 0 4px rgba(96, 165, 250, .1); }.ops-status-failed { background: #fb7185; }
.ops-events > div { padding: 11px 0; display: flex; gap: 11px; border-top: 1px solid #132033; }
.ops-events > div:first-child { border-top: 0; }
.ops-events i { width: 7px; height: 7px; margin-top: 5px; flex: 0 0 auto; background: #60a5fa; border-radius: 50%; }
.ops-events .ops-event-error { background: #fb7185; }
.ops-events p { margin: 0; color: #aebdd0; font-size: 12px; }
.ops-events small { margin-top: 4px; display: block; color: #536781; font-size: 10px; }
.ops-empty { padding: 50px; color: #8ba0bb; text-align: center; border-radius: 18px; }

@media (max-width: 1020px) {
  .home-columns { grid-template-columns: 1fr; gap: 56px; }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .main-nav { gap: 18px; }
  .main-nav a { font-size: 13px; }
  .brand-logo { width: 94px; height: 60px; }
  .footer-grid { grid-template-columns: 1.2fr .8fr .9fr; }
  .footer-note { grid-column: 1 / -1; padding-top: 22px; text-align: left; border-top: 1px solid rgba(255,255,255,.1); }
  .footer-note p { margin-left: 0; }
}

@media (max-width: 860px) {
  .header-inner { min-height: 72px; }
  .brand-logo { width: 82px; height: 53px; }
  .nav-toggle { display: flex; margin-left: auto; }
  .btn-consultar { display: none; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 10px 16px 16px; flex-direction: column; align-items: stretch; gap: 2px; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 24px 40px rgba(16,35,63,.12); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 8px; font-size: 15px; border-radius: 8px; }
  .main-nav a::after { display: none; }
  .main-nav a:hover { background: var(--surface-soft); }
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 68px 0 74px; }
  .section { padding: 64px 0; }
  .company-card { grid-template-columns: 1fr auto; }
  .company-card-meta { grid-column: 1; }
  .card-link { grid-column: 2; grid-row: 1 / span 2; }
  .discovery-grid, .content-grid { grid-template-columns: 1fr; gap: 28px; }
  .side-column { position: static; grid-template-columns: repeat(2, 1fr); }
  .cnae-grid { grid-template-columns: repeat(2, 1fr); }
  .state-grid { grid-template-columns: repeat(7, 1fr); }
  .company-title-row { grid-template-columns: 1fr; }
  .cnpj-copy { width: max-content; }
  .company-search-again > div { grid-template-columns: 1fr; }
  .ops-metrics { grid-template-columns: repeat(2, 1fr); }
  .ops-grid { grid-template-columns: 1fr; }
  .institutional-layout { grid-template-columns: 1fr; }
  .institutional-aside { position: static; }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .header-inner { min-height: 62px; gap: 14px; }
  .brand-logo { width: 66px; height: 42px; }
  .featured-grid { grid-template-columns: 1fr; }
  .category-grid { gap: 10px; }
  .category-card { padding: 18px 10px 16px; }
  .category-card svg { width: 40px; height: 40px; }
  .hero { padding: 52px 0 60px; }
  .hero h1 { font-size: 41px; }
  .hero-copy { margin: 20px auto 26px; font-size: 16px; }
  .brand-definition { margin-top: -24px; }
  .brand-definition-inner { padding: 21px; grid-template-columns: auto 1fr; gap: 14px; }
  .brand-definition-mark { width: 68px; height: 48px; border-radius: 12px; }
  .brand-definition h2 { font-size: 15px; }
  .brand-definition p { font-size: 12.5px; }
  .brand-definition a { grid-column: 1 / -1; padding: 3px 0 0; }
  .search-form { padding: 6px; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; border-radius: 14px; }
  .search-form input { height: 46px; font-size: 14px; }
  .search-form button { grid-column: 1 / -1; width: 100%; min-height: 45px; }
  .search-hints { display: none; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; }
  .company-card { padding: 19px; display: block; }
  .company-card-meta { margin-top: 15px; }
  .card-link { margin-top: 14px; display: block; text-align: left; }
  .state-grid { grid-template-columns: repeat(5, 1fr); }
  .link-panel { padding: 21px; }
  .cnae-grid, .trust-grid, .side-column, .footer-grid { grid-template-columns: 1fr; }
  .trust-grid { gap: 20px; }
  .page-hero, .company-hero { padding: 42px 0; }
  .company-title-row h1 { font-size: 36px; overflow-wrap: anywhere; }
  .company-intro { font-size: 15px; }
  .cnpj-copy { width: 100%; min-width: 0; }
  .data-section { padding: 20px; }
  .data-grid { grid-template-columns: 1fr; }
  .data-grid div, .data-grid div:nth-child(odd), .data-grid div:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--border); }
  .data-grid div:last-child { border-bottom: 0; }
  .partner-list { grid-template-columns: 1fr; }
  .primary-cnae a, .secondary-cnaes a { flex-direction: column; gap: 3px; }
  .footer-note { text-align: left; }
  .footer-note p { margin-left: 0; }
  .footer-note { grid-column: auto; }
  .institutional-hero { padding: 42px 0 48px; }
  .institutional-hero h1 { font-size: 36px; }
  .institutional-hero > .container > p:last-child { font-size: 15px; }
  .institutional-content > section, .institutional-aside { padding: 21px; }
  .ops-shell { padding-top: 36px; }
  .ops-heading { align-items: flex-start; flex-direction: column; }
  .ops-metrics { grid-template-columns: 1fr; }
  .ops-progress-card { grid-template-columns: 1fr; }
  .ops-progress-value { position: absolute; right: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* CNPJ.BZ identity system — approved brand board, August 2026 */
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-400.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-500.woff2") format("woff2"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-600.woff2") format("woff2"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-700.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-800.woff2") format("woff2"); font-style: normal; font-weight: 800; font-display: swap; }

:root {
  --background: #f2f4f7;
  --surface: #fff;
  --surface-soft: #f6f8fb;
  --text: #102345;
  --muted: #60708a;
  --primary: #0d47a1;
  --primary-strong: #082f79;
  --primary-soft: #eaf2ff;
  --green: #00b36b;
  --green-dark: #009555;
  --green-soft: #e8f8f0;
  --gold: #ffc400;
  --border: #e2e8f0;
  --success: #009d5a;
  --success-soft: #e7f8f0;
  --shadow: 0 18px 48px rgba(13, 71, 161, .09);
  --radius: 14px;
  --container: 1180px;
}

html { scrollbar-color: #8ea7c9 #edf2f7; scrollbar-width: thin; }
html::-webkit-scrollbar { width: 11px; height: 11px; }
html::-webkit-scrollbar-track { background: #edf2f7; }
html::-webkit-scrollbar-thumb { background: #8ea7c9; border: 3px solid #edf2f7; border-radius: 20px; }
html::-webkit-scrollbar-thumb:hover { background: #567cab; }
body { background: var(--background); font-family: "Poppins", Arial, sans-serif; font-size: 15px; line-height: 1.65; }
button, input { font-family: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(126,217,87,.75); outline-offset: 3px; }
.container { width: min(calc(100% - 40px), var(--container)); }
.narrow { max-width: 1030px; }

.site-header { min-height: 82px; background: rgba(255,255,255,.98); border-bottom-color: #e6ebf2; box-shadow: 0 5px 22px rgba(16,35,69,.045); backdrop-filter: blur(14px); }
.header-inner { min-height: 82px; gap: 30px; }
.brand-logo { width: 180px; height: 54px; object-fit: contain; }
.main-nav { gap: 30px; }
.main-nav a { color: #102b61; font-size: 13px; font-weight: 600; }
.main-nav a::after { height: 2px; bottom: -7px; background: var(--green); }
.btn-consultar { min-height: 44px; padding: 0 25px; background: linear-gradient(180deg, #08b96f, #00a75f); border: 1px solid #00a761; border-radius: 9px; font-size: 13px; font-weight: 600; box-shadow: 0 9px 22px rgba(0,179,107,.22); }
.btn-consultar:hover { background: #009a59; box-shadow: 0 12px 26px rgba(0,179,107,.3); }

.hero { padding: 0; text-align: left; background: linear-gradient(115deg, #073584 0%, #064eac 48%, #007d8d 75%, #00a260 100%); }
.hero::before { inset: 0; background: radial-gradient(circle at 101% 52%, rgba(126,217,87,.13) 0 2px, transparent 2.5px) 0 0 / 7px 7px; opacity: .48; mask-image: radial-gradient(circle at 100% 50%, #000 0, transparent 42%); }
.hero::after { width: 760px; height: 760px; right: -210px; top: -300px; border-color: rgba(255,255,255,.15); box-shadow: 0 0 0 96px rgba(255,255,255,.025), 0 0 0 190px rgba(255,255,255,.018), 0 0 0 286px rgba(255,255,255,.012); }
.hero-inner { padding-top: 58px; text-align: left; }
.hero-confidence { width: max-content; max-width: 100%; padding: 7px 12px; display: inline-flex; align-items: center; gap: 7px; color: #fff; background: rgba(4,92,186,.68); border: 1px solid rgba(255,255,255,.1); border-radius: 999px; font-size: 11px; font-weight: 500; }
.hero-confidence::after { content: "Dados confiáveis, decisões seguras"; }
.hero-confidence svg { width: 16px; height: 16px; color: #fff; }
.hero-copy { max-width: 690px; margin: 20px 0 12px; color: #fff; font-size: clamp(38px, 5vw, 62px); font-weight: 700; line-height: 1.08; letter-spacing: -.045em; }
.hero-copy strong { color: #7ed957; font-weight: 700; }
.hero .search-form { margin: 34px 0 0; }
.search-form { max-width: 830px; padding: 7px 8px 7px 15px; grid-template-columns: 23px minmax(0,1fr) auto; gap: 10px; border: 1px solid #dce4ed; border-radius: 14px; box-shadow: 0 16px 38px rgba(4,31,79,.18); }
.search-form input { height: 50px; font-size: 14px; }
.search-form button, .button { min-height: 46px; padding: 0 24px; background: var(--green); border-radius: 9px; font-size: 13px; font-weight: 600; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.search-form button:hover, .button:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,179,107,.2); }
.search-form-hero { max-width: 830px; padding: 8px 10px 8px 17px; border-radius: 14px; }
.search-form-hero input { height: 52px; padding-left: 0; font-size: 15px; }
.search-form-hero button { min-height: 48px; padding-inline: 28px; }
.search-icon { position: static; width: 20px; height: 20px; margin: 0; color: #71809a; border: 0; border-radius: 0; }
.search-icon::after { display: none; }
.search-hints { margin-top: 18px; justify-content: flex-start; flex-wrap: wrap; gap: 24px; color: #e7f0ff; font-size: 11.5px; }
.search-hints span { display: inline-flex; align-items: center; gap: 7px; }
.search-hints span::before { display: none; }
.search-hints svg { width: 18px; height: 18px; color: #7ed957; }
.hero-stats { position: relative; z-index: 1; margin: 52px 0 0; padding: 20px 0; display: flex; align-items: center; gap: 38px; color: #fff; font-size: 13px; }
.hero-stats::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: rgba(3,38,98,.47); border-top: 1px solid rgba(255,255,255,.1); }
.hero-stats span { display: inline-flex; align-items: center; gap: 10px; }
.hero-stats span + span::before { content: ""; width: 4px; height: 4px; margin-right: 1px; background: #dce9fa; border-radius: 50%; }
.hero-stats svg { width: 22px; height: 22px; color: #dce9fa; }
.hero-stats strong { font-weight: 600; }

.brand-definition { margin-top: 0; padding: 34px 0 0; background: #fff; }
.brand-definition-inner { min-height: 102px; padding: 22px 26px; border-color: #e4e9ef; border-radius: 14px; box-shadow: 0 14px 38px rgba(16,35,69,.07); }
.brand-definition-mark { width: 58px; height: 58px; }
.brand-definition h2 { color: var(--primary); font-size: 16px; }
.brand-definition p { color: #62718a; font-size: 12.5px; }
.brand-definition a { color: var(--primary); }

.section { padding: 72px 0; background: #fff; }
.section-soft { background: var(--background); }
.section-heading { margin-bottom: 28px; }
.section-heading h2, .discovery-grid h2 { color: #102345; font-size: clamp(25px, 3vw, 34px); line-height: 1.2; letter-spacing: -.035em; }
.section-heading > p, .section-copy { color: var(--muted); font-size: 13px; }
.eyebrow { margin-bottom: 8px; color: var(--green-dark); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.section-link { color: var(--primary); font-size: 12px; font-weight: 600; }

.home-columns { grid-template-columns: minmax(0,1.7fr) minmax(300px,.75fr); gap: 34px; }
.featured-grid { gap: 14px; }
.featured-card { padding: 21px 19px 18px; gap: 6px; border-radius: 13px; box-shadow: 0 9px 25px rgba(13,71,161,.055); }
.featured-card::before { content: "★"; position: absolute; top: 17px; right: 18px; width: 23px; height: 23px; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 50%; font-size: 11px; }
.featured-card:hover { transform: translateY(-3px); border-color: #b7c8dd; box-shadow: 0 17px 38px rgba(13,71,161,.11); }
.featured-logo { width: 50px; height: 50px; margin-bottom: 7px; border-radius: 12px; box-shadow: 0 5px 15px rgba(16,35,69,.06); }
.featured-card h3 { padding-right: 22px; color: var(--primary); font-size: 14px; }
.featured-legal-name, .featured-cnae { color: #6b7890; font-size: 11px; }
.featured-cnpj { color: #163e82; font-size: 12px; font-weight: 600; }
.featured-foot { margin-top: 10px; }
.featured-link { color: var(--green-dark); font-size: 11.5px; }
.newest-list { padding: 5px; border-radius: 13px; box-shadow: 0 9px 25px rgba(13,71,161,.055); }
.newest-list li { padding: 13px 14px; }
.newest-name { color: #17366c; font-size: 12.5px; }
.newest-meta { font-size: 10.5px; }
.newest-time { color: #008b51; border-radius: 6px; }

.category-grid { gap: 12px; }
.category-card { padding: 24px 12px 19px; gap: 8px; border-radius: 13px; box-shadow: 0 8px 24px rgba(13,71,161,.055); }
.category-card svg { width: 48px; height: 48px; padding: 10px; color: var(--primary); background: #edf4ff; border-radius: 13px; }
.category-card:hover { border-color: #85cba9; box-shadow: 0 16px 34px rgba(0,179,107,.1); }
.category-name { color: #17366c; font-size: 13px; }
.category-card small { font-size: 10px; }

.discovery-grid { gap: 66px; }
.state-grid { gap: 7px; }
.state-grid span { color: var(--primary); background: #fff; border-radius: 8px; box-shadow: 0 3px 10px rgba(13,71,161,.035); }
.link-panel { border-radius: 14px; box-shadow: 0 12px 34px rgba(13,71,161,.07); }
.arrow-list a { color: #17366c; font-size: 13px; }
.trust-strip { padding: 40px 0; background: linear-gradient(105deg, #07378b, #075bab 53%, #009b61); }
.trust-grid { gap: 50px; }
.trust-grid div { position: relative; padding-left: 46px; }
.trust-grid div::before { content: ""; position: absolute; top: 0; left: 0; width: 31px; height: 31px; background: url("../img/brand-icon-verified-20260825.svg") center / contain no-repeat; opacity: .96; }
.trust-grid strong { font-size: 13px; }
.trust-grid span { color: #d4e5f5; font-size: 11px; }

.page-hero, .company-hero { position: relative; overflow: hidden; padding: 62px 0; background: linear-gradient(112deg, #073584, #0756a9 58%, #008b71); }
.page-hero::after, .company-hero::after { content: ""; position: absolute; width: 500px; height: 500px; right: -180px; top: -240px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 80px rgba(255,255,255,.025), 0 0 0 160px rgba(255,255,255,.018); }
.page-hero > .container, .company-hero > .container { position: relative; z-index: 1; }
.compact-hero h1, .company-title-row h1, .institutional-hero h1 { font-weight: 700; letter-spacing: -.04em; }
.compact-hero > .container > p:last-child, .company-intro, .institutional-hero > .container > p:last-child { color: #d8e7f6; }
.breadcrumb { color: #bad0e7; }
.breadcrumb a:hover { color: #7ed957; }
.code-badge { color: #dceaff; background: rgba(255,255,255,.07); }
.section-results, .company-content, .institutional-section { background: var(--background); }
.company-list { display: grid; gap: 12px; }
.company-card { padding: 20px 22px; border-radius: 13px; box-shadow: 0 7px 22px rgba(13,71,161,.045); }
.company-card:hover { border-color: #abc0db; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(13,71,161,.08); }
.company-card h2 { color: #143d81; font-size: 16px; }
.card-link { color: var(--green-dark); }
.pagination a { color: var(--primary); border-radius: 9px; box-shadow: 0 4px 14px rgba(13,71,161,.045); }
.empty-state { border-style: dashed; border-radius: 14px; box-shadow: 0 10px 30px rgba(13,71,161,.045); }

.cnpj-copy { background: rgba(255,255,255,.1); border-radius: 12px; }
.cnpj-copy button { color: #7ed957; font-family: inherit; }
.data-section, .contact-card, .source-card { border-radius: 14px; box-shadow: 0 8px 24px rgba(13,71,161,.045); }
.data-heading > span { width: 29px; height: 29px; display: grid; place-items: center; color: #fff; background: var(--primary); border-radius: 8px; }
.data-grid { border-radius: 10px; }
.primary-cnae a, .secondary-cnaes a, .address-card, .partner-list div { background: #f3f7fc; }
.purchase-card { background: linear-gradient(145deg, #073788, #075da7 65%, #008b68); border-radius: 14px; }
.purchase-card > a { color: #fff; background: var(--green); border-color: rgba(255,255,255,.2); }
.purchase-card > a:hover { background: #7ed957; color: #073c81; }
.source-icon { color: var(--primary); }
.company-search-again { background: #eaf0f7; }

.institutional-content > section { border-radius: 14px; box-shadow: 0 9px 26px rgba(13,71,161,.05); }
.institutional-aside { background: linear-gradient(145deg, #073788, #075da7 62%, #008b68); border-radius: 14px; }
.institutional-badge { width: 76px; height: 76px; }
.institutional-links a { color: var(--primary); background: var(--primary-soft); }

.site-footer { padding: 56px 0 38px; color: #bfd0e3; background: #061b3b; border-top: 4px solid transparent; border-image: linear-gradient(90deg, #0d47a1, #1565c0, #00b36b) 1; }
.site-footer .brand-logo { width: 78px; height: 78px; opacity: .98; }
.brand-footer .brand-logo-wrap { filter: none; }
.footer-nav strong { font-size: 11px; }
.footer-nav a, .site-footer p { color: #aebfd4; font-size: 11.5px; }

@media (max-width: 1020px) {
  .brand-logo { width: 165px; height: 49px; }
  .main-nav { gap: 18px; }
  .home-columns { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .site-header, .header-inner { min-height: 72px; }
  .brand-logo { width: 155px; height: 46px; }
  .main-nav { gap: 0; padding: 8px 16px 12px; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 24px 40px rgba(13,71,161,.12); }
  .main-nav a { padding: 11px 8px; }
  .main-nav a { color: #102b61; }
  .hero-inner { padding-top: 48px; }
  .hero-copy { max-width: 630px; }
  .hero-stats { margin-top: 42px; }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .site-header, .header-inner { min-height: 66px; }
  .brand-logo { width: 145px; height: 43px; }
  .nav-toggle { border-radius: 9px; }
  .hero-inner { padding-top: 38px; }
  .hero-confidence { font-size: 9.5px; }
  .hero-copy { margin-top: 18px; font-size: clamp(34px, 10vw, 44px); line-height: 1.08; }
  .hero .search-form { margin-top: 26px; }
  .search-form { padding: 7px 8px 7px 13px; grid-template-columns: 21px minmax(0,1fr); border-radius: 12px; }
  .search-form input, .search-form-hero input { height: 45px; font-size: 13px; }
  .search-form button { grid-column: 1 / -1; min-height: 44px; border-radius: 8px; }
  .search-hints { display: flex; gap: 12px 18px; }
  .search-hints span { font-size: 10px; }
  .search-hints svg { width: 15px; height: 15px; }
  .hero-stats { margin-top: 32px; padding: 17px 0; align-items: flex-start; flex-direction: column; gap: 10px; font-size: 11.5px; }
  .hero-stats span + span::before { display: none; }
  .brand-definition { padding-top: 20px; }
  .brand-definition-inner { padding: 18px; grid-template-columns: 48px 1fr; }
  .brand-definition-mark { width: 48px; height: 48px; }
  .section { padding: 58px 0; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-card { padding: 20px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .category-card { padding: 19px 8px 16px; }
  .category-card svg { width: 43px; height: 43px; }
  .trust-grid div { padding-left: 42px; }
  .page-hero, .company-hero { padding: 44px 0; }
  .compact-hero h1, .company-title-row h1, .institutional-hero h1 { font-size: 34px; }
  .data-heading > span { width: 27px; height: 27px; }
  .site-footer .brand-logo { width: 142px; height: 44px; }
}

@media (forced-colors: active) {
  html { scrollbar-color: auto; }
  .btn-consultar, .search-form button, .button { border: 1px solid ButtonText; }
}
