/* IBCMAS — Instituto do Consumidor Mais Brasil
   Folha de estilo única do site. Cores e fontes seguem a identidade do site de 2026. */

:root {
  --brand: #ec7c35;
  --ember: #c45a1c;
  --ink: #101010;
  --ink-2: #1b1b1b;
  --paper: #fafafa;
  --card: #fff;
  --line: #e7e2db;
  --muted: #5e5e5e;
  --on-ink: #fafafa;
  --on-ink-muted: rgba(250, 250, 250, .68);
  --on-ink-line: rgba(250, 250, 250, .12);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --r-xl: .75rem;
  --r-2xl: 1rem;
  --r-3xl: 1.5rem;
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 520; line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: .75rem; top: -4rem; z-index: 60; background: var(--brand); color: var(--ink); padding: .5rem .9rem; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: .75rem; }
.ico { width: 1.15rem; height: 1.15rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.eyebrow--ember { color: var(--ember); }
.section { padding: 5.5rem 0; }
.section--alt { background: #f4f4f3; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--ink { background: var(--ink); color: var(--on-ink); }
.section h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin-top: .75rem; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem; padding: 0 1.25rem; border-radius: 999px; font-size: .9rem; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn--brand { background: var(--brand); color: var(--ink); }
.btn--brand:hover { background: var(--ember); color: #fff; }
.btn--ghost { border-color: var(--on-ink-line); color: var(--on-ink); background: transparent; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--line { border-color: var(--line); background: var(--card); color: var(--ink); }
.btn--line:hover { border-color: var(--brand); }
.btn--block { width: 100%; }

/* Cabeçalho */
.top { position: sticky; top: 0; z-index: 40; background: var(--ink); color: var(--on-ink); border-bottom: 1px solid var(--on-ink-line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4rem; }
.top__logo img { height: 2rem; width: auto; }
.top__nav { display: none; gap: 1.6rem; }
.top__nav a { font-size: .875rem; font-weight: 500; color: var(--on-ink-muted); text-decoration: none; transition: color .15s; }
.top__nav a:hover, .top__nav a[aria-current="true"] { color: var(--brand); }
.top__actions { display: flex; align-items: center; gap: .5rem; }
.top__cta { display: none; }
.top__menu { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 0; background: transparent; color: var(--on-ink); cursor: pointer; }
.top__menu .ico { width: 1.4rem; height: 1.4rem; }
.top__menu .ico-x { display: none; }
.top[data-open] .top__menu .ico-menu { display: none; }
.top[data-open] .top__menu .ico-x { display: block; }
.drawer { display: none; border-top: 1px solid var(--on-ink-line); padding: .5rem 0 1.25rem; }
.top[data-open] .drawer { display: block; }
.drawer a { display: block; padding: .8rem 0; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--on-ink-line); }
.drawer .btn { margin-top: 1rem; width: 100%; }
@media (min-width: 640px) { .top__cta { display: inline-flex; } }
@media (min-width: 768px) { .top__nav { display: flex; } .top__menu, .drawer, .top[data-open] .drawer { display: none; } }

/* Abertura */
.hero { background: var(--ink); color: var(--on-ink); padding: 4.5rem 0 5rem; }
.hero__grid { display: grid; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.4rem); line-height: 1.06; margin-top: 1.25rem; }
.hero__lead { margin-top: 1.5rem; max-width: 34rem; color: var(--on-ink-muted); font-size: 1.05rem; line-height: 1.7; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 4rem; } }

.bulletin { border: 1px solid var(--on-ink-line); border-radius: var(--r-3xl); background: var(--ink-2); padding: 1.25rem 1.25rem .9rem; }
.bulletin__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: .75rem; }
.bulletin__tag { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; color: var(--on-ink-muted); }
.bulletin__tag::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--brand); }
.bulletin__item { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--on-ink-line); text-decoration: none; }
.bulletin__item:hover strong { color: var(--brand); }
.bulletin__meta { display: block; font-size: .72rem; color: var(--on-ink-muted); margin-bottom: .2rem; }
.bulletin__item strong { font-size: .92rem; font-weight: 500; line-height: 1.45; transition: color .15s; }
.bulletin__item .ico { width: 1rem; height: 1rem; margin-top: .2rem; color: var(--on-ink-muted); }
.bulletin__more { display: inline-block; margin-top: .4rem; padding: .5rem 0; font-size: .82rem; font-weight: 600; color: var(--brand); text-decoration: none; }
.bulletin__more:hover { text-decoration: underline; }

/* Números */
.stats { background: var(--card); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding-top: 1.6rem; padding-bottom: 1.6rem; }
.stats b { display: block; font-family: var(--display); font-weight: 640; font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--brand); line-height: 1.1; }
.stats span { display: block; margin-top: .25rem; font-size: .8rem; color: var(--muted); line-height: 1.4; }

/* Sobre */
.about { display: grid; gap: 2rem; }
.about__year { font-family: var(--display); font-weight: 640; font-size: clamp(3.5rem, 8vw, 5rem); color: var(--brand); line-height: 1; margin-top: .5rem; }
.about h2 { margin-top: 0; }
.about__text { margin-top: 1.5rem; color: var(--muted); max-width: 42rem; }
.about__quote { margin: 1.25rem 0 0; padding-left: 1rem; border-left: 3px solid var(--brand); max-width: 42rem; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 2fr; gap: 4rem; } }

/* Atuação */
.cards { display: grid; gap: 1rem; margin-top: 2.5rem; }
.card { border: 1px solid var(--line); border-radius: var(--r-3xl); background: #f6f6f5; padding: 1.5rem; }
.card__top { display: flex; justify-content: space-between; align-items: flex-start; color: var(--brand); }
.card__num { font-family: var(--display); font-weight: 640; font-size: 1.75rem; line-height: 1; }
.card h3 { font-family: var(--sans); font-weight: 600; font-size: 1.15rem; margin-top: 1.4rem; }
.card p { margin-top: .5rem; font-size: .9rem; color: var(--muted); }
@media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; } }

/* Liderança */
.lead { display: grid; gap: 2rem; align-items: center; }
.lead__card { background: var(--ink); color: var(--on-ink); border-radius: var(--r-3xl); padding: 1.75rem; }
.lead__card h3 { font-size: 1.6rem; margin-top: .6rem; }
.lead__card p { margin-top: .4rem; font-size: .82rem; color: var(--on-ink-muted); }
.lead__bio p + p { margin-top: 1rem; color: var(--muted); }
@media (min-width: 900px) { .lead { grid-template-columns: 1fr 1.4fr; gap: 3rem; } }

/* Notícias */
.news__head { display: grid; gap: 1.25rem; align-items: end; }
.news__head > p { color: var(--muted); font-size: .9rem; max-width: 22rem; }
@media (min-width: 900px) { .news__head { grid-template-columns: 1fr auto; } }
.news__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; margin-top: 2rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.tab { min-height: 2.75rem; padding: 0 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: .85rem; font-weight: 600; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.news__status { margin-top: 1rem; font-size: .82rem; color: var(--muted); max-width: 46rem; min-height: 1.4em; }
.news__grid { display: grid; gap: 1rem; margin-top: 1.25rem; align-items: start; }
@media (min-width: 900px) { .news__grid { grid-template-columns: 1.55fr 1fr; } .news__feature { position: sticky; top: 5.5rem; } }
.news__list { display: grid; gap: .75rem; }
.news__item { display: block; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--card); padding: 1rem 1.1rem; cursor: pointer; transition: border-color .15s; }
.news__item:hover, .news__item[aria-pressed="true"] { border-color: var(--brand); }
.news__item small { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.news__item strong { display: block; margin-top: .3rem; font-family: var(--display); font-weight: 520; font-size: 1.1rem; line-height: 1.3; }
.news__feature { background: var(--ink); color: var(--on-ink); border-radius: var(--r-3xl); padding: 1.5rem; }
.news__feature small { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.news__feature h3 { font-size: 1.55rem; line-height: 1.2; margin-top: .6rem; }
.news__feature p { margin-top: .9rem; font-size: .88rem; color: var(--on-ink-muted); }
.news__feature .btn { margin-top: 1.4rem; }
.news__empty { border: 1px dashed var(--line); border-radius: var(--r-2xl); padding: 1.5rem; color: var(--muted); font-size: .9rem; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Associe-se */
.join { display: grid; gap: 2.5rem; }
.join__lead { margin-top: 1.25rem; color: var(--on-ink-muted); max-width: 30rem; font-size: .92rem; }
.join__paths { margin-top: 2rem; }
.join__paths div { padding: 1rem 0; border-top: 1px solid var(--on-ink-line); }
.join__paths h3 { font-family: var(--sans); font-weight: 600; font-size: 1rem; }
.join__paths p { margin-top: .3rem; font-size: .85rem; color: var(--on-ink-muted); }
@media (min-width: 900px) { .join { grid-template-columns: .9fr 1.1fr; gap: 3.5rem; align-items: start; } }
.form { background: var(--card); color: var(--ink); border-radius: var(--r-3xl); padding: 1.5rem; display: grid; gap: 1rem; }
.form__row { display: grid; gap: 1rem; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field label, .field legend { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; padding: 0; }
.field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.input { width: 100%; min-height: 2.9rem; padding: .65rem .9rem; border-radius: var(--r-xl); border: 1px solid var(--line); background: #f4f4f3; }
.input:focus { outline: 2px solid var(--brand); outline-offset: 0; background: #fff; }
textarea.input { min-height: 6rem; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 .9rem; border-radius: 999px; border: 1px solid var(--line); font-size: .85rem; font-weight: 500; cursor: pointer; }
.chip input:checked + span { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.form__note { font-size: .75rem; color: var(--muted); }

/* Pilares */
.pillars { display: grid; gap: 1rem; }
.pillar { border: 1px solid var(--line); border-radius: var(--r-3xl); background: var(--card); padding: 1.4rem; }
.pillar .ico { color: var(--brand); }
.pillar h3 { font-family: var(--sans); font-weight: 600; font-size: 1rem; margin-top: 1rem; }
.pillar p { margin-top: .35rem; font-size: .88rem; color: var(--muted); }
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(3, 1fr); } }

/* Contato */
.contact { display: grid; gap: 2.5rem; align-items: center; }
.contact__list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.contact__list li { display: flex; gap: .8rem; align-items: flex-start; font-size: .92rem; font-weight: 500; }
.contact__list .ico { color: var(--brand); margin-top: .2rem; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--ember); text-decoration: underline; }
.map { border-radius: var(--r-3xl); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: #eee; }
.map iframe { width: 100%; height: 100%; border: 0; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; gap: 3rem; } }

/* Rodapé */
.foot { background: var(--ink); color: var(--on-ink-muted); padding: 2.5rem 0 3rem; font-size: .8rem; }
.foot__in { display: grid; gap: 1.5rem; align-items: start; }
.foot img { height: 2rem; width: auto; }
.foot a { color: var(--on-ink); }
.foot__links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: 1rem; }
.foot__links a { text-decoration: none; }
.foot__links a:hover { color: var(--brand); }
@media (min-width: 760px) { .foot__in { grid-template-columns: 1fr 1fr; } .foot__in > p { justify-self: end; max-width: 26rem; } }

.fab { position: fixed; right: 1rem; bottom: 1rem; z-index: 30; width: 3.4rem; height: 3.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--ink); box-shadow: 0 8px 24px rgba(0, 0, 0, .22); transition: background-color .15s; }
.fab:hover { background: var(--ember); color: #fff; }
.fab .ico { width: 1.5rem; height: 1.5rem; }

/* Página de artigo */
.post-hero { background: var(--ink); color: var(--on-ink); padding: 3rem 0 3.5rem; }
.crumbs { font-size: .8rem; color: var(--on-ink-muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.post-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-top: 1.25rem; max-width: 48rem; }
.post-hero__meta { margin-top: 1.1rem; font-size: .85rem; color: var(--on-ink-muted); }
.post-hero__lead { margin-top: 1rem; max-width: 42rem; color: var(--on-ink-muted); }
.post { padding: 3rem 0 4.5rem; }
.post__in { max-width: 46rem; margin: 0 auto; }
.post__img { width: 100%; height: auto; border-radius: var(--r-3xl); border: 1px solid var(--line); margin-bottom: 2.25rem; }
.prose { font-size: 1.04rem; line-height: 1.8; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2.4rem; }
.prose h3 { font-size: 1.25rem; margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .45rem; }
.prose li::marker { color: var(--brand); }
.prose a { color: var(--ember); }
.prose .tabela { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--card); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose td { padding: .75rem 1rem; border-top: 1px solid var(--line); vertical-align: top; }
.prose tr:first-child td { border-top: 0; background: #f4f4f3; }
.prose .bio { margin-top: 2.5rem; padding: 1.1rem 1.25rem; border-left: 3px solid var(--brand); background: #f4f4f3; border-radius: 0 var(--r-xl) var(--r-xl) 0; font-size: .92rem; color: var(--muted); }
.post__aside { margin-top: 3rem; padding: 1.5rem; border-radius: var(--r-3xl); background: var(--ink); color: var(--on-ink); display: grid; gap: 1rem; }
.post__aside p { color: var(--on-ink-muted); font-size: .92rem; }
.post__aside h2 { font-size: 1.4rem; }
.post__aside div { display: flex; flex-wrap: wrap; gap: .6rem; }
.more { margin-top: 3rem; }
.more h2 { font-size: 1.4rem; }
.more__list { display: grid; gap: .75rem; margin-top: 1rem; }
.more__list a { display: block; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--card); text-decoration: none; }
.more__list a:hover { border-color: var(--brand); }
.more__list small { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.more__list strong { display: block; margin-top: .25rem; font-family: var(--display); font-weight: 520; font-size: 1.08rem; }

/* Página não encontrada */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.nf h1 { font-size: clamp(2rem, 5vw, 3rem); margin-top: .75rem; }
.nf p { margin-top: 1rem; color: var(--muted); }
.nf .btn { margin-top: 1.75rem; }

.sprite { display: none; }
