/* ==========================================================================
   ISEE · Base: reset, tipografia, grade, foco, botões de seta
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: -.005em;
  color: var(--text);
  background: var(--isee-mica);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p, ul, ol, dl, figure, blockquote, h1, h2, h3, h4, h5 { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
address { font-style: normal; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

h1, h2, h3, h4 { font-weight: 500; letter-spacing: var(--track-title); line-height: var(--lh-title); }
.h-display { font-size: var(--fs-display); line-height: 1; letter-spacing: var(--track-display); font-weight: 500; }
.h2 { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -.03em; }
.h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -.02em; }
.h4 { font-size: var(--fs-h4); line-height: 1.3; letter-spacing: -.01em; font-weight: 600; }
.lead { font-size: var(--fs-lead); line-height: 1.3; letter-spacing: -.015em; }
.small { font-size: var(--fs-small); }
.label {
  font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; line-height: 1.3;
}
.prose { max-width: var(--text-width); }
.prose > * + * { margin-top: 1em; }
.prose a, .c-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.prose a:hover, .c-link:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .35em; }
strong, b { font-weight: 600; }

/* Faixas (temas de cor) — reproduzem a FUNÇÃO das faixas do modelo com as cores da marca */
.t-indigo { background: var(--isee-indigo); color: var(--text-onDark); }
.t-black  { background: var(--isee-ferrite); color: var(--text-onDark); }
.t-mica   { background: var(--isee-mica); color: var(--text); }
.t-paper  { background: var(--isee-papel); color: var(--text); }
.t-white  { background: var(--isee-branco); color: var(--text); }
.t-indigo .soft, .t-black .soft { color: var(--text-onDark-soft); }
.soft { color: var(--text-soft); }

/* Grade */
.l-container { width: 100%; max-width: var(--row-width); margin: 0 auto; padding: 0 var(--grid-margin); }
.l-narrow { max-width: 64rem; }
.c-block { padding: var(--block-space) 0; position: relative; }
.c-block--flush-top { padding-top: 0; }
.c-block--flush-bottom { padding-bottom: 0; }
.l-split { display: grid; gap: 2rem var(--grid-gutter); }
@media screen and (min-width: 60em) {
  .l-split { grid-template-columns: 1fr 1fr; }
  .l-split--top { align-items: start; }
  .l-split--center { align-items: center; }
}

/* Cabeça de seção: título à esquerda, texto + seta à direita, fio grosso embaixo (modelo) */
.c-block__header { display: grid; gap: 1.25rem var(--grid-gutter); padding-bottom: 2.5rem; margin-bottom: 3rem; border-bottom: 3px solid currentColor; }
.c-block__header--plain { border-bottom: 0; padding-bottom: 0; }
.c-block__title { font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -.03em; font-weight: 500; }
.c-block__description { font-size: 1.0625rem; max-width: 34rem; }
.c-block__description > * + * { margin-top: 1.25rem; }
.c-block__eyebrow { display: block; margin-bottom: 1rem; color: var(--isee-cobre-escuro); }
.t-indigo .c-block__eyebrow, .t-black .c-block__eyebrow { color: var(--isee-cobre); }
@media screen and (min-width: 60em) {
  .c-block__header { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* Seta em círculo (padrão de chamada do modelo) */
.c-cta {
  display: inline-flex; align-items: center; gap: .875rem;
  font-size: 1rem; font-weight: 500; line-height: 1.3; text-decoration: none;
  color: inherit;
}
.c-cta__icon {
  flex: none; display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--isee-indigo); color: var(--isee-mica);
  transition: transform var(--t-fast), background-color var(--t-fast);
}
.c-cta__icon svg { width: 1rem; height: 1rem; }
.c-cta:hover .c-cta__icon { transform: translateX(3px); }
.c-cta__text { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .2em; transition: text-decoration-color var(--t-fast); }
.c-cta:hover .c-cta__text { text-decoration-color: currentColor; }
.t-indigo .c-cta__icon, .t-black .c-cta__icon, .c-cta--light .c-cta__icon { background: var(--isee-mica); color: var(--isee-indigo); }
.c-cta--copper .c-cta__icon { background: var(--isee-cobre); color: var(--isee-ferrite); }
.c-cta--ghost .c-cta__icon { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; color: inherit; }

/* Botão retangular discreto (filtros, documentos) */
.c-btn {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem;
  padding: .625rem 1rem; border: 1.5px solid currentColor; border-radius: 0;
  background: transparent; font-size: .9375rem; font-weight: 500; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color var(--t-fast), color var(--t-fast);
}
.c-btn svg { width: 1.125rem; height: 1.125rem; flex: none; }
.c-btn:hover { background: var(--isee-indigo); border-color: var(--isee-indigo); color: var(--isee-mica); }
.t-indigo .c-btn:hover, .t-black .c-btn:hover { background: var(--isee-mica); border-color: var(--isee-mica); color: var(--isee-indigo); }

.icon { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter; }

/* Acessibilidade */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.t-indigo :focus-visible, .t-black :focus-visible { outline-color: var(--isee-plasma); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.c-skiplinks a {
  position: absolute; left: 1rem; top: -4rem; z-index: 1000; padding: .75rem 1rem;
  background: var(--isee-mica); color: var(--isee-indigo); font-weight: 600;
}
.c-skiplinks a:focus { top: 1rem; }
[id] { scroll-margin-top: calc(var(--header-offset, var(--header-h)) + 4.5rem); }

/* Animação de entrada — só com JS e sem pedido de menos movimento */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
