/* ===================================================================
   ESQUEMATIZA, Sistema de design "Dossiê Operacional"
   HTML/CSS/JS puro. Sem build, sem dependências.

   O chanfro de 45° (--chamfer) deriva da geometria do hexágono do
   logo e é o eixo visual do site: sempre no mesmo sentido diagonal,
   do canto superior-esquerdo ao inferior-direito.
   =================================================================== */

/* -------------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------------- */

:root {
  /* Cor, dominante navy, um acento, neutros.
     Valores extraídos do tema "Esquematiza" do deck corporativo
     e confirmados por amostragem de pixel nas artes da marca. */
  --navy-900: #151b2e;
  --navy-800: #1e253f;
  --navy-700: #262d4a;
  --navy-600: #333a56;   /* cor-mãe: logo, tema dk1/accent1 */
  --navy-500: #454c68;
  --navy-400: #6f7488;
  --navy-300: #979ba6;
  --navy-200: #b4b7c1;
  --navy-100: #d6d7dc;

  --accent:      #8ba2ff;
  --accent-dim:  #6b83e6;
  --accent-wash: rgba(139, 162, 255, 0.12);

  --paper:   #e1e1e1;
  --paper-2: #ececed;
  --cream:   #f2f0e4;
  --white:   #ffffff;

  /* Papéis semânticos, sempre referencie estes, não a escala crua */
  --bg:             var(--navy-800);
  --bg-elevated:    var(--navy-700);
  --bg-inset:       var(--navy-900);
  --surface:        var(--paper);
  --surface-2:      var(--white);
  --text:           #f4f5f7;
  --text-muted:     var(--navy-200);
  --text-inverse:   var(--navy-600);
  --text-inverse-muted: var(--navy-400);
  --rule:           rgba(255, 255, 255, 0.14);
  --rule-strong:    rgba(255, 255, 255, 0.28);
  --rule-inverse:   rgba(51, 58, 86, 0.18);

  /* Tipografia */
  --font-display: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --font-body:    "Open Sans", "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-lg:   clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-xl:   clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  --fs-2xl:  clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --fs-3xl:  clamp(1.875rem, 1.5rem + 1.9vw, 2.875rem);
  --fs-4xl:  clamp(2.375rem, 1.7rem + 3.4vw, 4.25rem);

  /* Espaçamento, ritmo de 8px */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.5rem;
  --sp-6:  2rem;
  --sp-7:  2.5rem;
  --sp-8:  3rem;
  --sp-9:  4rem;
  --sp-10: 5rem;
  --sp-11: 6.5rem;
  --sp-12: 8rem;

  --section-y: clamp(3.5rem, 2rem + 7vw, 7rem);

  /* Forma */
  --chamfer: 20px;
  --chamfer-sm: 12px;
  --radius-pill: 999px;

  --container: 74rem;
  --container-narrow: 48rem;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 220ms;

  color-scheme: dark;
}

/* -------------------------------------------------------------------
   2. Reset
   ------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(139, 162, 255, 0.2);
}

img, svg, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, textarea, select { font: inherit; color: inherit; }

:target { scroll-margin-top: 6rem; }

/* Foco visível, nunca removido, só substituído */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--accent); color: var(--navy-900); }

/* -------------------------------------------------------------------
   3. Primitivas de layout
   ------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }

.section--paper {
  background: var(--surface);
  color: var(--text-inverse);
}

.section--inset { background: var(--bg-inset); }

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: var(--sp-4);
  z-index: 200;
  padding: var(--sp-3) var(--sp-5);
  background: var(--accent);
  color: var(--navy-900);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus-visible { transform: translateY(0); }

/* Chanfro, a assinatura visual do site */
.chamfer {
  clip-path: polygon(
    var(--chamfer) 0, 100% 0,
    100% calc(100% - var(--chamfer)),
    calc(100% - var(--chamfer)) 100%,
    0 100%, 0 var(--chamfer)
  );
}

.chamfer--sm {
  --chamfer: var(--chamfer-sm);
}

/* -------------------------------------------------------------------
   4. Rótulos técnicos, a voz "dossiê"
   ------------------------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: 0 0 var(--sp-4);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.section--paper .eyebrow { color: var(--accent-dim); }
.section--paper .eyebrow::after { background: var(--rule-inverse); }

.eyebrow--plain::after { display: none; }

/* Índice numérico: 01, 02, 03 */
.index {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.lead {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  max-width: 56ch;
}

.section--paper .lead { color: var(--text-inverse-muted); }

/* -------------------------------------------------------------------
   5. Botões
   ------------------------------------------------------------------- */

.btn {
  --chamfer: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: 0.9rem 1.6rem;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  /* O rótulo nunca quebra em duas linhas, o que deformava a altura do botão */
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  clip-path: polygon(
    var(--chamfer) 0, 100% 0,
    100% calc(100% - var(--chamfer)),
    calc(100% - var(--chamfer)) 100%,
    0 100%, 0 var(--chamfer)
  );
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn svg { flex: none; }

.btn--primary { background: var(--accent); color: var(--navy-900); }
.btn--primary:hover { background: var(--white); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--rule-strong);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }

.section--paper .btn--ghost {
  color: var(--text-inverse);
  box-shadow: inset 0 0 0 1px var(--rule-inverse);
}
.section--paper .btn--ghost:hover { background: rgba(51, 58, 86, 0.06); }

.btn--solid { background: var(--navy-600); color: var(--white); }
.btn--solid:hover { background: var(--navy-500); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

/* -------------------------------------------------------------------
   6. Cabeçalho e navegação
   ------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(30, 37, 63, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  padding-top: env(safe-area-inset-top);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: 4.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  flex: none;
  /* Amplia a altura do alvo de toque sem alterar a altura do cabeçalho */
  padding-block: var(--sp-2);
}

.logo img { width: 168px; height: 34px; }

.logo__tag {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--text-muted);
  padding-left: var(--sp-3);
  border-left: 1px solid var(--rule);
}

/* O slogan só aparece quando sobra espaço depois do menu e do botão.
   Entre 1088px e 1280px ele disputava largura e forçava quebra de linha. */
@media (min-width: 80rem) {
  .logo__tag { display: block; }
}

.nav { display: none; }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.6vw, 1.5rem);
}

/* Os itens não encolhem: preferimos apertar o espaçamento a quebrar rótulo */
.nav__list li { flex: none; }

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  color: var(--text-muted);
  position: relative;
  transition: color var(--dur) var(--ease);
}

.nav__link:hover { color: var(--text); }

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__link[aria-current="page"] { color: var(--text); }

.header__cta { display: none; }

/* Botão do menu mobile */
.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: transparent;
  border: 1px solid var(--rule-strong);
  cursor: pointer;
  color: var(--text);
}

.nav__toggle span {
  position: relative;
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: background-color var(--dur) var(--ease);
}

.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur) var(--ease);
}

.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top: 6px; }

.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* O botão de proposta aparece já no tablet, onde sobra espaço horizontal.
   Antes ele só surgia em 1088px, obrigando a abrir o menu para converter. */
@media (min-width: 48rem) {
  .header__cta { display: block; }
}

/* Troca nav mobile por nav desktop.
   Precisa vir DEPOIS das regras base de .nav__toggle, senão perde no cascata. */
@media (min-width: 68rem) {
  .nav { display: block; }
  .nav__toggle { display: none; }
}

/* Painel mobile */
.nav-mobile {
  position: fixed;
  inset: 4.5rem 0 0;
  z-index: 99;
  background: var(--bg-inset);
  padding: var(--sp-6) clamp(1.25rem, 4vw, 2.5rem) calc(var(--sp-8) + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              visibility var(--dur);
}

.nav-mobile[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-mobile a {
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-mobile .btn { margin-top: var(--sp-5); }

@media (min-width: 68rem) {
  .nav-mobile { display: none; }
}

/* -------------------------------------------------------------------
   7. Hero
   ------------------------------------------------------------------- */

.hero {
  position: relative;
  display: grid;
  gap: var(--sp-8);
  padding-block: clamp(3rem, 2rem + 6vw, 6rem) var(--section-y);
  align-items: center;
}

@media (min-width: 56rem) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: var(--sp-9);
  }
}

.hero__title {
  font-size: var(--fs-4xl);
  margin-bottom: var(--sp-5);
}

/* Peso misto na mesma frase, padrão herdado das artes da marca */
.hero__title em {
  font-style: normal;
  font-weight: 600;
  color: var(--text-muted);
}

.hero__media {
  position: relative;
  --chamfer: 32px;
}

.hero__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* Fio de acento que ancora a imagem no eixo diagonal */
.hero__media::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 42%;
  height: 3px;
  background: var(--accent);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* -------------------------------------------------------------------
   8. Faixa de eixo conceitual, Risco · Inteligência · Decisão
   ------------------------------------------------------------------- */

.axis {
  border-block: 1px solid var(--rule);
  background: var(--bg-inset);
}

/* minmax(0, 1fr) em vez de 1fr: colunas de grade não encolhem abaixo do
   conteúdo por padrão, e em 320px isso estourava a linha em 26px. */
.axis__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Só abre em quatro colunas quando há largura para o texto respirar.
   Em 768px, quatro colunas deixavam a descrição em seis linhas. */
@media (min-width: 56rem) {
  .axis__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.axis__item {
  /* Recuo lateral fluido, para caber em telas de 320px sem estourar */
  padding: var(--sp-6) clamp(0.9rem, 4vw, 1.5rem);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  min-width: 0;
}

/* Em duas colunas, o item da direita não leva fio na borda do contêiner.
   Escopada ao layout de 2 colunas: a especificidade de :nth-child é maior
   que a de .axis__item, então fora desta media query ela vazava para o
   desktop e apagava a linha entre o item 2 e o 3. */
@media (max-width: 55.99rem) {
  .axis__item:nth-child(2n) { border-right: 0; }
}

@media (min-width: 56rem) {
  .axis__item { border-bottom: 0; border-right: 1px solid var(--rule); }
  .axis__item:last-child { border-right: 0; }
}

.axis__item h3 {
  font-size: var(--fs-lg);
  margin: var(--sp-3) 0 var(--sp-2);
}

.axis__item p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* -------------------------------------------------------------------
   9. Cards de serviço
   ------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.card {
  --chamfer: 22px;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition: background-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.card:hover { background: var(--navy-600); transform: translateY(-4px); }

.section--paper .card {
  background: var(--surface-2);
  color: var(--text-inverse);
}

.section--paper .card:hover { background: var(--white); }

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-900);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease);
}

.card:hover .card__media img { transform: scale(1.04); }

.card__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  flex: 1;
  min-width: 0;
}

.card__title {
  font-size: var(--fs-lg);
  font-weight: 800;
}

.card__text {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  flex: 1;
}

.section--paper .card__text { color: var(--text-inverse-muted); }

.card__more {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.section--paper .card__more { color: var(--accent-dim); }

.card__more svg { transition: transform var(--dur) var(--ease); }
.card:hover .card__more svg { transform: translateX(4px); }

/* -------------------------------------------------------------------
   10. Números
   ------------------------------------------------------------------- */

.stats {
  display: grid;
  gap: 1px;
  background: var(--rule);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 48rem) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.stat {
  background: var(--bg);
  padding: var(--sp-6) clamp(0.9rem, 4vw, 1.5rem);
  min-width: 0;
}

.stat__value {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  margin-top: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* -------------------------------------------------------------------
   11. Ciclo de maturidade, lista indexada
   ------------------------------------------------------------------- */

.steps { display: grid; gap: 0; }

.step {
  display: grid;
  gap: var(--sp-3) var(--sp-6);
  padding-block: var(--sp-6);
  border-top: 1px solid var(--rule-inverse);
  align-items: start;
}

@media (min-width: 48rem) {
  .step { grid-template-columns: 5rem minmax(0, 16rem) minmax(0, 1fr); }
}

.step:last-child { border-bottom: 1px solid var(--rule-inverse); }

.step h3 { font-size: var(--fs-xl); }

.step p { color: var(--text-inverse-muted); }

/* -------------------------------------------------------------------
   12. Bloco de conteúdo (subpáginas de serviço)
   ------------------------------------------------------------------- */

.split {
  display: grid;
  gap: var(--sp-8);
  align-items: center;
}

@media (min-width: 56rem) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-9); }
  .split--reverse > *:first-child { order: 2; }
}

.split__media { --chamfer: 28px; }

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Variante vertical: foto de pessoa em pé encaixa sem recorte agressivo */
.split__media--portrait img { aspect-ratio: 3 / 4; }

@media (min-width: 56rem) {
  .split__media--portrait { max-width: 26rem; margin-inline: auto; }
}

/* Lista de entregas com marcador chanfrado */
.checklist { display: grid; gap: var(--sp-3); margin-top: var(--sp-5); }

.checklist li {
  position: relative;
  padding-left: var(--sp-6);
  font-size: var(--fs-base);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 10px;
  background: var(--accent);
  clip-path: polygon(3px 0, 100% 0, 100% calc(100% - 3px), calc(100% - 3px) 100%, 0 100%, 0 3px);
}

/* -------------------------------------------------------------------
   13. Cases
   ------------------------------------------------------------------- */

.case {
  display: grid;
  gap: var(--sp-4) var(--sp-6);
  padding-block: var(--sp-7);
  border-top: 1px solid var(--rule);
}

@media (min-width: 48rem) {
  .case { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); }
}

.case:last-child { border-bottom: 1px solid var(--rule); }

.case h3 { font-size: var(--fs-2xl); }

.case__tag {
  display: inline-block;
  margin-top: var(--sp-3);
  padding: 0.3rem 0.75rem;
  background: var(--accent-wash);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------------
   14. CTA
   ------------------------------------------------------------------- */

.cta {
  --chamfer: 36px;
  background: var(--navy-600);
  padding: clamp(2.5rem, 1.5rem + 5vw, 4.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60rem 30rem at 50% -40%, rgba(139, 162, 255, 0.22), transparent 70%);
  pointer-events: none;
}

.cta > * { position: relative; }

.cta h2 {
  font-size: var(--fs-3xl);
  margin-bottom: var(--sp-4);
}

.cta .lead { margin-inline: auto; }

.cta .btn-row { justify-content: center; }

/* -------------------------------------------------------------------
   15. Rodapé
   ------------------------------------------------------------------- */

.footer {
  background: var(--bg-inset);
  border-top: 1px solid var(--rule);
  padding-block: var(--sp-9) var(--sp-6);
  padding-bottom: calc(var(--sp-6) + env(safe-area-inset-bottom));
}

.footer__grid {
  display: grid;
  gap: var(--sp-7);
  margin-bottom: var(--sp-8);
}

@media (min-width: 48rem) {
  .footer__grid { grid-template-columns: 1.4fr repeat(2, 1fr); gap: var(--sp-8); }
}

.footer h3 {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}

.footer__links { display: grid; }

/* Altura mínima de 44px por link, referência de alvo de toque confortável.
   Antes eram 19px de altura, difíceis de acertar no celular. */
.footer__links a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.footer__links a:hover { color: var(--text); text-decoration: underline; }

.footer__logo img { width: 190px; height: 39px; margin-bottom: var(--sp-4); }

.footer__note {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  max-width: 38ch;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  color: var(--navy-300);
}

/* -------------------------------------------------------------------
   16. WhatsApp flutuante
   ------------------------------------------------------------------- */

.whatsapp-fab {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: calc(clamp(1rem, 3vw, 2rem) + env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-pill);
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  transition: transform var(--dur) var(--ease);
}

.whatsapp-fab:hover { transform: scale(1.08); }

/* -------------------------------------------------------------------
   17. Cabeçalho de página interna
   ------------------------------------------------------------------- */

.pagehead {
  padding-block: clamp(2.5rem, 2rem + 4vw, 4.5rem) var(--sp-8);
  border-bottom: 1px solid var(--rule);
  background: var(--bg-inset);
}

.pagehead h1 {
  font-size: var(--fs-3xl);
  margin-bottom: var(--sp-4);
  max-width: 20ch;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-300);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  /* Amplia o alvo de toque sem afastar visualmente os itens da trilha */
  padding-block: var(--sp-3);
  margin-block: calc(var(--sp-3) * -1);
}

.breadcrumb a:hover { color: var(--accent); }

/* -------------------------------------------------------------------
   18. Utilitários
   ------------------------------------------------------------------- */

.section__head { margin-bottom: var(--sp-7); max-width: 62ch; }
.section__head h2 { font-size: var(--fs-2xl); margin-bottom: var(--sp-4); }

.stack   { display: grid; gap: var(--sp-4); }
.stack-6 { display: grid; gap: var(--sp-6); }

.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;
}

/* -------------------------------------------------------------------
   19. Redes sociais
   ------------------------------------------------------------------- */

.social {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--text-muted);
  box-shadow: inset 0 0 0 1px var(--rule-strong);
  transition: color var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  --chamfer: 9px;
  clip-path: polygon(
    var(--chamfer) 0, 100% 0,
    100% calc(100% - var(--chamfer)),
    calc(100% - var(--chamfer)) 100%,
    0 100%, 0 var(--chamfer)
  );
}

.social__link:hover {
  color: var(--navy-900);
  background: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

/* Grupo flutuante: WhatsApp sempre visível, redes expandem no hover/foco */
.fab {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: calc(clamp(1rem, 3vw, 2rem) + env(safe-area-inset-bottom));
  z-index: 90;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: var(--sp-3);
}

.fab__main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-pill);
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  transition: transform var(--dur) var(--ease);
}

.fab__main:hover { transform: scale(1.08); }

.fab__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-pill);
  background: var(--navy-600);
  color: var(--text);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(10px) scale(0.85);
  pointer-events: none;
  transition: opacity var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}

.fab:hover .fab__item,
.fab:focus-within .fab__item {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.fab__item:hover { background: var(--accent); color: var(--navy-900); }

/* Em telas sem hover as redes ficam sempre visíveis, mantendo 44px de
   alvo de toque em vez de encolher */
@media (hover: none) {
  .fab__item { opacity: 1; transform: none; pointer-events: auto; }
}

/* -------------------------------------------------------------------
   20. Ficha técnica, usada onde não há fotografia disponível
   ------------------------------------------------------------------- */

.spec {
  display: grid;
  gap: 1px;
  background: var(--rule-inverse);
  border-block: 1px solid var(--rule-inverse);
}

@media (min-width: 40rem) { .spec { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .spec { grid-template-columns: repeat(3, 1fr); } }

.spec__item {
  background: var(--surface);
  padding: var(--sp-6) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  position: relative;
  transition: background-color var(--dur) var(--ease);
}

.spec__item:hover { background: var(--surface-2); }

/* Marca chanfrada no canto, ecoando o eixo do site */
.spec__item::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 14px;
  height: 14px;
  background: var(--accent);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.spec__item:hover::after { opacity: 1; }

.spec__item h3 { font-size: var(--fs-lg); }
.spec__item p { font-size: var(--fs-sm); color: var(--text-inverse-muted); }

/* -------------------------------------------------------------------
   21. Faixa de vídeo
   ------------------------------------------------------------------- */

.videoband {
  position: relative;
  overflow: hidden;
  background: var(--bg-inset);
  --chamfer: 40px;
}

.videoband video,
.videoband img.videoband__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* O arquivo já é entregue em 2.67:1, recortado na origem para enquadrar
     quem está em pé. Aqui sobra pouco corte, e ele sai do rodapé do quadro. */
  object-position: center 30%;
}

/* Véu de leitura. Antes o vídeo inteiro ficava a 28% de opacidade, o que
   apagava as pessoas para conseguir contraste no texto. Agora o vídeo fica
   nítido e o escurecimento se concentra onde o texto realmente está. */
.videoband::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(21, 27, 46, 0.88);
  pointer-events: none;
}

/* O escurecimento termina antes de chegar em quem está em pé, por volta
   de 42% da largura, para que o rosto não fique encoberto pelo véu. */
@media (min-width: 56rem) {
  .videoband::after {
    background: linear-gradient(96deg,
      rgba(21, 27, 46, 0.95) 0%,
      rgba(21, 27, 46, 0.92) 30%,
      rgba(21, 27, 46, 0.55) 44%,
      rgba(21, 27, 46, 0.3) 70%,
      rgba(21, 27, 46, 0.28) 100%);
  }
}

.videoband__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(3rem, 2rem + 6vw, 6rem);
}

/* O texto fica contido à esquerda para não cobrir as pessoas no vídeo */
@media (min-width: 56rem) {
  .videoband__inner > * { max-width: 24rem; }
}

/* -------------------------------------------------------------------
   22. Artigos
   ------------------------------------------------------------------- */

.article-card {
  --chamfer: 22px;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.article-card:hover { background: var(--navy-600); transform: translateY(-4px); }

.article-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-900); }

.article-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 400ms var(--ease);
}

.article-card:hover .article-card__media img { transform: scale(1.04); }

.article-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  flex: 1;
  min-width: 0;
}

.article-card__title { font-size: var(--fs-lg); font-weight: 800; }

.article-card__excerpt {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Assinatura do autor */
.byline {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--rule);
  min-width: 0;
}

.byline__photo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-pill);
  object-fit: cover;
  flex: none;
  background: var(--navy-500);
}

.byline__name {
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.3;
}

.byline__role {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.byline--large .byline__photo { width: 3.5rem; height: 3.5rem; }

/* Corpo do artigo */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: var(--sp-4); }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--sp-7); }
.prose h3 { font-size: var(--fs-lg); margin-top: var(--sp-6); }
.prose ul { display: grid; gap: var(--sp-2); padding-left: var(--sp-5); list-style: disc; }
.prose li { padding-left: var(--sp-1); }
.prose a { color: var(--accent); }

.prose blockquote {
  margin: var(--sp-6) 0;
  padding-left: var(--sp-5);
  border-left: 2px solid var(--accent);
  font-size: var(--fs-lg);
  color: var(--text);
}

.prose img { width: 100%; margin-block: var(--sp-6); }

/* -------------------------------------------------------------------
   23. Movimento, entrada única, escalonada
   ------------------------------------------------------------------- */

/* A entrada só esconde o conteúdo quando há JS para revelá-lo.
   Sem JS, ou se o script falhar, tudo permanece visível. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.js .reveal[data-visible="true"] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal { opacity: 1; transform: none; }
}
