@charset "UTF-8";
/* ==========================================================================
   Integra Saúde Domiciliar — one-page
   Implementado a partir de "Integra Saude Wireframe.dc.html" (Claude Design).

   Tokens correspondem aos props do wireframe:
     accentColor: #37508f | goldColor: #c9ac71
     shapeStyle:  soft    -> cardR 20px / bigR 24px
     density:     comfortable

   REVISÃO DE PERCEPÇÃO — identidade preservada; alterado apenas o que afeta
   leitura de hierarquia, ritmo e alinhamento. Cada ajuste está marcado [P#].
   ========================================================================== */

@font-face {
  font-family: "Editorial Today";
  src: url("../fonts/EditorialToday-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #37508f;
  --accent-rgb: 55 80 143;      /* mesmo tom em canais RGB, para o vidro liquido */
  --accent-deep-rgb: 32 46 84;  /* variante mais escura, profundidade do vidro */
  --gold: #c9ac71;
  --ink: #111;
  --ink-2: #222;
  --body: #555;
  --muted: #666;
  --soft: #6e6e6e;
  --line: #eee;
  --line-2: #e2e2e2;
  --line-3: #ddd;
  --surface-alt: #f7f8fc;
  --pill-dark: #141a3c;

  --card-r: 20px;
  --big-r: 24px;
  --pill-r: 999px;

  --section-y: 80px;
  --gutter: 40px;

  /* [P1] Escala de espaçamento única. Antes cada bloco tinha seu próprio
     valor solto (16/22/24/32/36/40), o que fazia o olho ler as seções como
     ritmos diferentes em vez de um sistema. */
  --sp-1: 8px;
  --sp-2: 12px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 32px;
  --sp-6: 48px;
  --sp-7: 64px;

  --serif: "Editorial Today", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --header-h: 90px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #bbb; }

img { max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; }

h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--pill-dark);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Tipografia ---------- */

.h1 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;               /* [P2] evita linha órfã no título */
}

.h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.015em;         /* [P2] 30px pedia um leve fechamento */
  text-wrap: balance;               /* equilibra quando quebra, sem forçar
                                       quebra que não existia */
}

.h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

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

.lead {
  font-size: 15px;                  /* [P4] era 14px */
  color: var(--body);
  line-height: 1.65;
  max-width: 52ch;
}

.mono-note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--soft);
  margin-top: 10px;
}

/* [P1] utilitários realinhados à escala */
.mb-32 { margin-bottom: var(--sp-5); }
.mb-36 { margin-bottom: var(--sp-6); }
.mb-40 { margin-bottom: var(--sp-6); }
.mt-16 { margin-top: var(--sp-3); }
.mt-22 { margin-top: var(--sp-4); }
.mt-24 { margin-top: var(--sp-4); }
.my-16-40 { margin: var(--sp-3) 0 var(--sp-6); }

/* ---------- Pills / botões ---------- */

.pill {
  position: relative;
  isolation: isolate;               /* contém o brilho (z-index:-1) sem
                                        vazar para fora do botão */
  overflow: hidden;                 /* recorta o brilho no raio do pill */
  display: inline-flex;
  align-items: center;
  min-height: 44px;                 /* [P5] alvo de toque; antes 38px */
  padding: 10px 20px;
  font-size: 13px;
  border-radius: var(--pill-r);
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease, box-shadow .3s ease;
}
.pill-dark { background: var(--pill-dark); color: #fff; }
.pill:hover { opacity: .96; box-shadow: 0 14px 28px -16px rgba(20, 26, 60, .55); }
.pill-xs { min-height: 40px; padding: 8px 16px; font-size: 12px; }

/* Brilho que acompanha o cursor — --mx/--my chegam via JS (main.js). Sem
   JS (toque, teclado, prefers-reduced-motion) o botão funciona igual, só
   sem o brilho. */
.pill::before,
.hero-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle 120px at var(--mx, 50%) var(--my, 30%),
    rgba(255, 255, 255, .38), transparent 72%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.pill:hover::before,
.pill:focus-visible::before,
.hero-btn:hover::before,
.hero-btn:focus-visible::before { opacity: 1; }

/* Onda de clique — nasce no ponto do toque, some sozinha (main.js injeta
   o <span>, esta regra só anima). */
.btn-ripple {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  transform: scale(0);
  animation: btnRipple .6s ease-out forwards;
  pointer-events: none;
}
@keyframes btnRipple {
  to { transform: scale(1); opacity: 0; }
}

/* width/justify-self garantem que o rótulo abrace o texto em qualquer
   contexto. Como item de grid — o caso do .two-col-head — um inline-block
   é blocado e esticaria até a largura da célula. */
.pill-label {
  display: inline-block;
  width: fit-content;
  justify-self: start;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 11px;
  letter-spacing: .04em;            /* [P6] rótulo curto em caixa pequena
                                       ganha legibilidade com abertura */
  padding: 6px 14px;
  border-radius: var(--pill-r);
}

.pill-light {
  display: inline-block;
  width: fit-content;
  justify-self: start;
  border: 1px solid rgba(255, 255, 255, .5);
  color: #eee;
  font-size: 11px;
  letter-spacing: .04em;
  padding: 6px 14px;
  border-radius: var(--pill-r);
}

.pill-ghost {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid #fff;
  color: #fff;
  font-size: 11px;
  padding: 6px 14px;
  border-radius: var(--pill-r);
  transition: background .2s ease, color .2s ease;
}
.pill-ghost:hover { background: #fff; color: var(--accent); }

/* ---------- Header ---------- */

/* Sobreposto e transparente sobre o hero; ganha fundo assim que a página
   rola, para a navegação continuar legível sobre o conteúdo claro. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px var(--gutter);
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background .35s ease, border-color .35s ease, padding .35s ease;
}

.site-header.is-scrolled {
  padding: 14px var(--gutter);
  background: rgba(255, 255, 255, .92);
  border-bottom-color: var(--line);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}

.logo-link { position: relative; display: block; }
.logo { height: 34px; width: auto; display: block; transition: opacity .3s ease; }
.logo--dark { position: absolute; inset: 0; opacity: 0; }
.site-header.is-scrolled .logo--light { opacity: 0; }
.site-header.is-scrolled .logo--dark { opacity: 1; }

.nav-desktop { display: flex; gap: 26px; font-size: 14px; color: rgba(255, 255, 255, .86); }
.nav-link {
  cursor: pointer;
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;   /* [P7] o hover só mudava a cor
                                               do texto; um fio dá alvo e
                                               estado visíveis */
  transition: color .2s ease, border-color .2s ease;
}
.nav-link:hover { border-bottom-color: var(--gold); }

.site-header.is-scrolled .nav-desktop { color: #444; }
.site-header.is-scrolled .nav-link:hover { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 10px; }

/* Sobre o hero o botão e o menu viram translúcidos; ao rolar voltam ao
   contraste normal sobre o fundo branco. */
.site-header:not(.is-scrolled) .pill-dark {
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header:not(.is-scrolled) .pill-dark:hover { background: rgba(255, 255, 255, .26); }
.site-header:not(.is-scrolled) .hamburger { border-color: rgba(255, 255, 255, .45); }
.site-header:not(.is-scrolled) .hamburger-bar { background: #fff; }

.hamburger {
  display: none;
  width: 44px;
  height: 44px;                     /* [P5] era 34x26 */
  border: 1px solid #999;
  border-radius: 10px;
  background: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 11px;
  cursor: pointer;
}
.hamburger-bar {
  height: 2px;
  background: var(--muted);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Menu mobile ---------- */

/* Painel que desce do topo: vidro líquido no índigo da marca, com o fundo da
   página escurecido e desfocado atrás (.mobile-menu-scrim, criado no main.js). */
.mobile-menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 59;
  background: rgba(var(--accent-deep-rgb) / .42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .4s ease;
}
.mobile-menu-scrim.is-open { opacity: 1; }
.mobile-menu-scrim[hidden] { display: none; }

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  max-height: 100dvh;
  padding: 20px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  overflow-y: auto;
  color: #fff;
  border-radius: 0 0 28px 28px;
  background:
    linear-gradient(155deg,
      rgba(var(--accent-rgb) / .86) 0%,
      rgba(var(--accent-deep-rgb) / .82) 55%,
      rgba(var(--accent-rgb) / .86) 100%);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .16);
  border-top: 0;
  box-shadow:
    0 28px 56px -24px rgba(20, 28, 56, .6),
    inset 0 -1px 0 rgba(255, 255, 255, .22);
  transform: translateY(-105%);
  opacity: 0;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1), opacity .35s ease;
  will-change: transform;
}
.mobile-menu.is-open { transform: translateY(0); opacity: 1; }
.mobile-menu[hidden] { display: none; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mobile-menu { background: var(--accent); }
}

.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; }

.close-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #999;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  cursor: pointer;
  font-size: 15px;
}
.mobile-menu .close-btn {
  border-color: rgba(255, 255, 255, .4);
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

/* [P8] os links do menu eram só uma pilha com gap; fios separadores dão
   limite de toque e deixam a lista escaneável */
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  font-size: 20px;
  color: #fff;
  font-family: var(--serif);
}
.mobile-menu-links a {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .4s ease, transform .5s cubic-bezier(.22, 1, .36, 1);
}
.mobile-menu-links a:first-child { border-top: 1px solid rgba(255, 255, 255, .18); }
.mobile-menu.is-open .mobile-menu-links a { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu-links a:nth-child(1) { transition-delay: .12s; }
.mobile-menu.is-open .mobile-menu-links a:nth-child(2) { transition-delay: .17s; }
.mobile-menu.is-open .mobile-menu-links a:nth-child(3) { transition-delay: .22s; }
.mobile-menu.is-open .mobile-menu-links a:nth-child(4) { transition-delay: .27s; }
.mobile-menu.is-open .mobile-menu-links a:nth-child(5) { transition-delay: .32s; }

.mobile-menu-cta { justify-content: center; }
.mobile-menu .mobile-menu-cta {
  background: #fff;
  color: var(--accent-deep, #202e54);
  border-color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu,
  .mobile-menu-scrim,
  .mobile-menu-links a { transition: none; }
}

/* ==========================================================================
   Hero — estrutura adaptada da referência Alice:
   card arredondado de altura quase total, header sobreposto, título em dois
   tons, fio fino, assinatura à esquerda e ações translúcidas à direita.
   ========================================================================== */

.hero-wrap { padding: 0 12px; }

.hero {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: min(92vh, 880px);
  display: flex;
}

/* A foto vive numa camada própria para poder se mover e crescer ao rolar
   (parallax). --hero-p vai de 0 a 1 conforme o hero sai da tela (main.js).
   A camada é 20% mais alta que o hero, então o deslocamento nunca deixa
   uma borda vazia. */
.hero::before {
  content: "";
  position: absolute;
  inset: -10% 0;
  background-image: url("../img/hero-bg.webp");
  background-size: cover;
  background-position: 72% center;   /* mantém as pessoas à direita, deixando
                                        a coluna esquerda livre para o texto */
  transform: translate3d(0, calc(var(--hero-p, 0) * 8%), 0) scale(calc(1 + var(--hero-p, 0) * .2));
  transform-origin: center;
  will-change: transform;
}

/* Véu em duas camadas: um gradiente horizontal que abre espaço legível à
   esquerda, e um leve escurecimento geral que assenta a fotografia. */
/* O texto ancora embaixo em todas as larguras, então o véu abre a fotografia
   no topo e adensa da metade para baixo — um só comportamento, sem exceção
   por breakpoint. */
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(14, 19, 40, .42) 0%,
      rgba(14, 19, 40, .28) 22%,
      rgba(14, 19, 40, .52) 44%,
      rgba(14, 19, 40, .82) 62%,
      rgba(14, 19, 40, .92) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 40px) var(--sp-6) var(--sp-6);
}

/* --- título em dois tons --- */

.hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 1.2rem + 3.1vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 16ch;
  margin-top: auto;                 /* ancora o bloco de texto embaixo,
                                       junto da assinatura, em toda largura */
}

/* Parágrafo de apoio: texto corrido, não continuação do título. */
.hero-lede {
  margin-top: var(--sp-4);
  font-size: clamp(17px, .95rem + .5vw, 22px);
  line-height: 1.6;
  color: rgba(255, 255, 255, .88);
  max-width: 46ch;
}

/* --- fio fino atravessando o card --- */

.hero-rule {
  height: 1px;
  background: rgba(255, 255, 255, .28);
  margin: var(--sp-4) 0;            /* junto do texto, não solto */
}

/* --- rodapé do hero --- */

.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
  flex-wrap: wrap;
}

.hero-sig {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .78);
}

.hero-actions {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.hero-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  min-width: 260px;
  min-height: 64px;
  padding: var(--sp-3) var(--sp-4);
  border-radius: 14px;
  font-size: 15px;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: background .25s ease, border-color .25s ease, transform .25s ease, box-shadow .3s ease;
}
.hero-btn:hover {
  background: rgba(255, 255, 255, .22);
  border-color: rgba(255, 255, 255, .38);
  box-shadow: 0 16px 34px -18px rgba(8, 12, 30, .5);
}
.hero-btn-arrow {
  width: 22px;
  height: 22px;
  flex: none;
  transition: transform .3s ease;
}
.hero-btn:hover .hero-btn-arrow { transform: translateX(4px); }

/* ---------- Seções ---------- */

.section {
  padding: var(--section-y) var(--gutter);
  border-top: 1px solid var(--line);
}
.section-alt { background: var(--surface-alt); }

/* [P11] o par rótulo + texto de apoio ficava espalhado nas duas pontas da
   tela, a 1300px de distância, e o olho não os lia como um par. Agora o
   texto de apoio senta numa coluna fixa, criando uma segunda coluna real. */
.two-col-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  justify-content: space-between;
  gap: var(--sp-4) var(--sp-7);
  align-items: start;
  margin-bottom: var(--sp-6);
}

/* ---------- Cuidado em casa ---------- */

.three-card-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }

/* [P12] os cards usavam justify-content: space-between com min-height fixa,
   o que abria um vazio entre título e corpo quando o texto era curto.
   Título e corpo agora são um grupo coeso no topo. */
.card {
  padding: var(--sp-4);
  min-height: 210px;                /* [P12] existe para igualar as três
                                       colunas; some quando elas empilham */
  border-radius: var(--card-r);
  display: flex;
  flex-direction: column;
}

.card-dark { color: #eee; }
.card-light { background: var(--surface-alt); }

.card-title { font-size: 15px; font-weight: 600; }   /* [P4] era 13px */
.card-title-dark { color: var(--ink-2); }
.card-body {
  font-size: 13px;                  /* [P4] era 12px */
  color: #fff;
  margin-top: var(--sp-1);
  line-height: 1.6;
  max-width: 34ch;
}
.card-body-muted { color: var(--muted); }

.tilt {
  transition: transform .18s ease-out, box-shadow .3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.tilt:hover { box-shadow: 0 12px 24px rgba(0, 0, 0, .12); }

.img-card { position: relative; overflow: hidden; padding: 0; }

.img-card-equipe {
  background-image: url("../img/equipe-multidisciplinar.webp");
  background-size: cover;
  background-position: center;
}

.overlay-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(20, 20, 20, .58);
  color: #fff;
  font-size: 11px;
  padding: 6px 12px;
  border-radius: var(--pill-r);
}

.overlay-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: #fff;
  font-size: 12px;
  font-family: var(--mono);
  padding: 32px 14px 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .62));
}

/* ---------- Como funciona (painéis empilháveis) ---------- */

.stack-wrap { position: relative; }

/* Liquid glass: cada painel é translúcido e desfoca o que passa por baixo.
   Como eles se empilham por sticky, o painel que sobe borra o texto do
   anterior — é aí que o vidro aparece de verdade. */
.step-panel {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-2));
  z-index: calc(10 + var(--i));

  background: linear-gradient(
    158deg,
    rgba(255, 255, 255, .74) 0%,
    rgba(234, 240, 253, .60) 52%,
    rgba(221, 231, 250, .56) 100%
  );
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);

  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: var(--card-r);

  /* sombra curta para descolar do painel de baixo, e um fio especular
     interno no topo, que é o que dá a leitura de vidro e não de cor */
  box-shadow:
    0 14px 38px -20px rgba(55, 80, 143, .34),
    inset 0 1px 0 rgba(255, 255, 255, .9);

  padding: var(--sp-5);
  margin-bottom: var(--sp-2);
  min-height: 260px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-6);
}

/* Sem suporte a backdrop-filter o vidro viraria um painel lavado e o texto
   de baixo apareceria por cima. Nesse caso, opaco. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .step-panel {
    background: #f4f7fd;
    border-color: rgba(55, 80, 143, .16);
  }
}

/* ==========================================================================
   Vidro líquido índigo — o mesmo tratamento de vidro dos painéis de
   "Como funciona", mas no azul da marca em vez do tom claro. Gradiente com
   duas paradas de profundidade + fio especular no topo + sombra tingida,
   em vez de uma cor chapada.
   ========================================================================== */
.glass-indigo {
  background:
    linear-gradient(155deg,
      rgba(var(--accent-rgb) / .97) 0%,
      rgba(var(--accent-deep-rgb) / .93) 55%,
      rgba(var(--accent-rgb) / .95) 100%);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow:
    0 20px 44px -26px rgba(20, 28, 56, .5),
    inset 0 1px 0 rgba(255, 255, 255, .22);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-indigo { background: var(--accent); }
}


.step-left {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  flex-wrap: wrap;
  flex: 0 0 auto;                   /* [P13] ocupa só o próprio conteúdo —
                                       o fio horizontal absorve o resto */
}

.step-num,
.step-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.25;
}
.step-num {
  color: var(--gold);
  min-width: 2.2ch;                 /* [P14] os números tinham larguras
                                       diferentes e os títulos não alinhavam
                                       verticalmente entre as cinco etapas */
}
.step-title { color: var(--ink); }

.step-desc {
  font-size: 15px;                  /* [P4] era 14px */
  color: var(--muted);
  line-height: 1.65;
  max-width: 36ch;
  flex: 0 0 auto;
}

/* Fio vertical entre o título e a descrição — só no desktop, onde o
   painel é uma linha; no celular ele empilha (coluna) e o fio não faz
   sentido, então some no mesmo breakpoint que muda o flex-direction. */
.step-divider {
  flex: 1 1 auto;          /* preenche o espaço entre o título e a descrição */
  align-self: center;
  height: 1px;
  min-width: 40px;         /* nunca some de vez em painéis mais estreitos */
  margin: 0 var(--sp-4);   /* pequena margem dos dois lados */
  background: var(--accent);
}

/* ==========================================================================
   Diferenciais — cards com tilt magnético, foco por escurecimento dos
   irmãos, brilho de acento, varredura e fio inferior.
   --c é a cor do card em canais RGB, para compor alfa em cada camada.
   ========================================================================== */

.differentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

.differential-card {
  border: 1px solid var(--line-2);
  border-radius: var(--card-r);
  padding: var(--sp-4);
  background: #fff;
  transition: border-color .3s ease, box-shadow .35s ease;
}

/* Hover: apenas uma sombra azulada leve, sem movimento. */
.differential-card:hover,
.differential-card:focus-within {
  border-color: rgba(55, 80, 143, .3);
  box-shadow: 0 10px 30px -14px rgba(55, 80, 143, .3);
}

/* selo do ícone */
.differential-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(var(--c) / .12);
  box-shadow: inset 0 0 0 1px rgba(var(--c) / .26);
}

.differential-icon {
  width: 23px;
  height: 23px;
  display: block;
  color: rgb(var(--c));
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.differential-text {
  position: relative;
  font-size: 15px;
  color: var(--ink-2);
  margin-top: var(--sp-3);
  line-height: 1.55;
  max-width: 28ch;
}

/* ---------- Especialidades ---------- */

.specialties-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-3); }

/* [P15] os cards eram 160px de altura em colunas de ~240px: retratos
   achatados em paisagem. Proporção retrato dá espaço à fotografia e
   alinha as cinco legendas na mesma linha de base. */
.specialty-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--card-r);
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}

/* A foto vive numa camada própria para poder ficar desfocada e escura sem
   afetar o texto, que aparece por cima ao passar o mouse (ou focar o card). */
.specialty-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--spec-img);
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: filter .5s ease, transform .8s cubic-bezier(.22, 1, .36, 1);
}
.specialty-reumatologia   { --spec-img: url("../img/reumatologia.webp"); }
.specialty-geriatria      { --spec-img: url("../img/geriatria.webp"); }
.specialty-cardiologia    { --spec-img: url("../img/cardiologia.webp"); }
.specialty-hematologia    { --spec-img: url("../img/hematologia.webp"); }
.specialty-clinica-medica { --spec-img: url("../img/clinica-medica.webp"); }

.specialty-card .overlay-caption { transition: opacity .3s ease; }

.specialty-desc {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-4);
  color: #fff;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s ease, transform .6s cubic-bezier(.22, 1, .36, 1);
}
.specialty-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
}
.specialty-desc p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .92);
}

.specialty-card:hover::before,
.specialty-card:focus-visible::before,
.specialty-card.is-open::before {
  filter: blur(8px) brightness(.42);
  transform: scale(1.12);
}
.specialty-card:hover .overlay-caption,
.specialty-card:focus-visible .overlay-caption,
.specialty-card.is-open .overlay-caption { opacity: 0; }
.specialty-card:hover .specialty-desc,
.specialty-card:focus-visible .specialty-desc,
.specialty-card.is-open .specialty-desc { opacity: 1; transform: none; }
.specialty-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* No toque não existe hover: a pessoa toca no card para abrir o texto
   (main.js alterna .is-open) e toca de novo para fechar. */
@media (hover: none) {
  .specialty-card { cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .specialty-card .overlay-caption::after { content: "  +"; }
}

@media (prefers-reduced-motion: reduce) {
  .specialty-card::before,
  .specialty-desc,
  .specialty-card .overlay-caption { transition: none; }
}

/* ---------- Para quem cuidamos ---------- */

.audience-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);   /* [P16] era flex
                                       row-reverse com flex:3/2; em grid a
                                       ordem do DOM fica igual à visual */
  gap: var(--sp-6);
  align-items: start;
}
.audience-col { order: 2; display: flex; flex-direction: column; gap: var(--sp-2); }
.audience-head-col { order: 1; position: sticky; top: calc(var(--header-h) + 24px); }

.highlight-card { border-radius: var(--big-r); padding: var(--sp-5); }

.highlight-text {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin-top: var(--sp-2);
  max-width: 26ch;
  line-height: 1.4;
}

.list-row {
  border: 1px solid var(--line-3);
  border-radius: var(--card-r);
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  transition: border-color .25s ease;
}
.list-row:hover { border-color: var(--accent); }

.list-row-text {
  font-size: 14px;
  font-weight: 600;                 /* [P17] era 700 em corpo de 13px, que
                                       lido em bloco pesava mais que o
                                       próprio título da seção */
  color: var(--accent);
  line-height: 1.55;
}

/* ---------- Conteúdos ---------- */

.contents-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }

.content-thumb {
  display: block;                   /* agora também é usado como <a> (link
                                       pro artigo), que é inline por padrão */
  position: relative;
  aspect-ratio: 4 / 3;              /* [P15] proporção fixa em vez de
                                       min-height, para as três alinharem */
  border-radius: var(--card-r);
  overflow: hidden;
  transition: transform .3s ease;
}
.content-thumb:hover { transform: scale(1.02); }
.content-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.content-cat {
  font-size: 11px;
  letter-spacing: .09em;
  color: var(--soft);
  margin-top: var(--sp-2);
  font-family: var(--mono);
}
.content-title {
  font-size: 16px;                  /* [P4] era 14px */
  font-weight: 400;
  color: var(--ink-2);
  margin-top: 6px;
  line-height: 1.4;
  max-width: 28ch;
}
.content-title a:hover {
  text-decoration: underline;
  text-underline-offset: .2em;
}

/* ---------- FAQ ---------- */

.faq-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: var(--sp-6);
  align-items: start;
}

.faq-img {
  position: sticky;                 /* [P18] a imagem tinha altura "auto" e
                                       esticava junto com a lista de 8 itens,
                                       virando uma faixa listrada enorme */
  top: calc(var(--header-h) + 24px);
  aspect-ratio: 3 / 4;
  border-radius: var(--card-r);
  overflow: hidden;
}

.faq-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.faq-list { display: flex; flex-direction: column; gap: var(--sp-2); }

.faq-item {
  border: 1px solid var(--line-2);
  border-radius: var(--card-r);
  transition: border-color .25s ease, background .25s ease;
}
.faq-item:hover { border-color: var(--accent); background: var(--surface-alt); }

.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: var(--sp-3) var(--sp-4);
  min-height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-2);
  cursor: pointer;
  text-align: left;
  font-size: 16.5px;                /* a pergunta funciona como título */
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.faq-icon {
  border: 1px solid #bbb;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: var(--pill-r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--muted);
  transition: border-color .2s ease, color .2s ease;
}
.faq-item:hover .faq-icon { border-color: var(--accent); color: var(--accent); }

.faq-a {
  padding: 0 var(--sp-4) var(--sp-4);
  max-width: 62ch;
  font-size: 14px;                  /* resposta menor que a pergunta-título */
  line-height: 1.65;
  color: var(--muted);
}
.faq-a .mono-note { margin-top: 0; }
.faq-a p + p { margin-top: var(--sp-3); }
.faq-a strong { color: var(--ink); }
.faq-a a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }

/* ---------- CTA ---------- */

/* [P19] o card tinha padding: 15px e as colunas internas tinham o seu
   próprio, somando uma moldura estranha. Padding único no card. */
.cta-card {
  border-radius: var(--big-r);
  padding: var(--sp-6);
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: center;
  gap: var(--sp-6);
}

.cta-text-col { display: flex; flex-direction: column; }

.cta-title { color: #fff; max-width: 16ch; }
.cta-sub {
  font-size: 15px;
  color: #d7dced;                   /* [P10] era #ccc cinza sobre cor */
  margin-top: var(--sp-2);
  max-width: 40ch;
  line-height: 1.6;
}
.cta-btn { margin-top: var(--sp-4); align-self: flex-start; }

.cta-img-col {
  aspect-ratio: 4 / 3;
  border-radius: var(--card-r);
  overflow: hidden;
  transition: transform .3s ease;
}
.cta-img-col:hover { transform: scale(1.02); }
.cta-img-col img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); }

.footer-card { padding: var(--sp-6) var(--gutter); }

.footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.footer-claim {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  max-width: 34ch;
  line-height: 1.45;
}

.footer-pill-row { display: flex; gap: var(--sp-1); flex-wrap: wrap; }

.footer-logo { height: 56px; width: auto; display: block; margin-top: var(--sp-6); }

.footer-divider { border-top: 1px solid rgba(255, 255, 255, .25); margin: var(--sp-4) 0; }

/* [P20] eram duas colunas "auto" encostadas à esquerda, deixando metade do
   rodapé vazia. auto-fit distribui os grupos existentes pela largura real,
   sem criar trilha vazia quando há apenas dois. */
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-4) var(--sp-6);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  font-size: 13px;
  color: #fff;
}
.footer-col a { width: fit-content; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: .2em; }

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, .82);
  margin-top: var(--sp-5);
  padding-top: var(--sp-3);
  border-top: 1px solid rgba(255, 255, 255, .25);
  flex-wrap: wrap;
  gap: var(--sp-1);
}
.footer-legal { display: flex; gap: var(--sp-4); }
.footer-credit-link { color: inherit; text-decoration: underline; text-underline-offset: .2em; text-decoration-color: rgba(255, 255, 255, .4); }
.footer-credit-link:hover { text-decoration-color: currentColor; }
.footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: .2em; text-decoration-color: rgba(255, 255, 255, .4); }
.footer-legal a:hover { text-decoration-color: currentColor; }

/* ---------- Reveal ao rolar -----------------------------------------------
   Antes disparava no carregamento (animation), então tudo abaixo da dobra
   já tinha "revelado" antes do visitante rolar até lá — o efeito nunca era
   visto. Agora só existe estado escondido sob `html.reveal-ready`, uma
   classe que o main.js adiciona; sem JS (ou com prefers-reduced-motion) o
   <html> nunca ganha essa classe e os blocos aparecem normais, sem depender
   de nada para ficar visível. O IntersectionObserver soma `.is-in` na
   primeira vez que o bloco cruza a tela. */
html.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1),
    transform .7s cubic-bezier(.22, .61, .36, 1);
  transition-delay: calc(var(--reveal-order, 0) * .08s);
}
html.reveal-ready .reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal[data-reveal="0"] { --reveal-order: 0; }
.reveal[data-reveal="1"] { --reveal-order: 1; }
.reveal[data-reveal="2"] { --reveal-order: 2; }
.reveal[data-reveal="3"] { --reveal-order: 3; }
.reveal[data-reveal="4"] { --reveal-order: 4; }
.reveal[data-reveal="5"] { --reveal-order: 5; }

/* ==========================================================================
   Mobile — o wireframe define um segundo estado em 390px de largura.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Especialidades vira slider em tablet e celular.
   Rolagem nativa com scroll-snap: sem biblioteca, sem JS, e o gesto de
   arrastar do sistema continua sendo o do sistema.
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {

  .specialties-grid {
    display: flex;
    gap: var(--sp-3);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;        /* não arrasta a página junto */
    -webkit-overflow-scrolling: touch;

    /* Sangra até a borda da tela, mas o primeiro card permanece alinhado
       à margem do texto. O último card também respira no fim. */
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: var(--sp-3);
    scroll-padding-inline: var(--gutter);

    scrollbar-width: thin;
    scrollbar-color: var(--line-3) transparent;
  }
  .specialties-grid::-webkit-scrollbar { height: 5px; }
  .specialties-grid::-webkit-scrollbar-track { background: transparent; }
  .specialties-grid::-webkit-scrollbar-thumb {
    background: var(--line-3);
    border-radius: var(--pill-r);
  }

  .specialty-card {
    flex: 0 0 30%;                         /* três visíveis e um espiando */
    scroll-snap-align: start;
  }
}

@media (max-width: 899px) {
  :root {
    --section-y: 56px;
    --gutter: 20px;
    --header-h: 74px;
  }

  .h1 { font-size: 26px; }
  .h2 { font-size: 23px; }

  /* [P12] empilhados, os cards não precisam se igualar — a altura mínima
     só criaria vazio sob textos curtos */
  .card { min-height: 0; }
  .img-card { min-height: 190px; }

  .site-header { padding: 14px 20px; }
  .logo { height: 28px; }

  .nav-desktop { display: none; }
  .hamburger { display: flex; }
  .header-actions .pill-sm-mobile { min-height: 40px; padding: 8px 14px; font-size: 12px; }

  .hero-wrap { padding: 0 8px; }
  .hero {
    min-height: min(94vh, 720px);
    border-radius: 20px;
  }
  .hero::before { background-position: 68% center; }
  .hero-inner { padding: calc(var(--header-h) + 24px) 20px 24px; }

  /* No celular o bloco de texto ancora embaixo, junto da assinatura: a foto
     fica inteira na parte de cima e a leitura acontece toda numa região só,
     ao alcance do polegar. */
  .hero-title { max-width: 12ch; font-size: clamp(30px, 7.4vw, 40px); }
  .hero-lede { max-width: none; margin-top: var(--sp-3); }
  .hero-foot { flex-direction: column; align-items: stretch; gap: var(--sp-4); }
  .hero-actions { flex-direction: column; }
  .hero-btn { min-width: 0; width: 100%; gap: var(--sp-3); }

  .two-col-head { grid-template-columns: 1fr; gap: var(--sp-3); margin-bottom: var(--sp-5); }

  .three-card-row,
  .differentials-grid,
  .contents-grid { grid-template-columns: 1fr; }

  .specialty-card { flex-basis: 46%; }      /* dois e meio no tablet retrato */

  .step-panel {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--sp-4);
    min-height: 0;
    gap: var(--sp-2);

    /* desfoque menor: em tela pequena a diferença visual é mínima e o
       custo de GPU durante a rolagem cai bastante */
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
  }
  .step-num, .step-title { font-size: 23px; }
  .step-left { gap: var(--sp-2); }
  .step-divider { display: none; }   /* painel vira coluna; fio vertical não cabe */

  .audience-row { grid-template-columns: 1fr; }
  .audience-col { order: 2; }
  .audience-head-col { order: 1; position: static; }
  .highlight-card { padding: var(--sp-4); }

  .faq-row { grid-template-columns: 1fr; }
  .faq-img { position: static; aspect-ratio: 16 / 10; }

  .cta-card { grid-template-columns: 1fr; padding: var(--sp-5); }
  .cta-btn { align-self: stretch; justify-content: center; }

  .footer-card { padding: var(--sp-5) 20px; }
  .footer-top-row { flex-direction: column; align-items: flex-start; }
  .footer-logo { height: 40px; margin-top: var(--sp-5); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .specialty-card { flex-basis: 64%; }      /* um card e a borda do próximo,
                                               que é o que sinaliza o arrasto */
}

@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .tilt { transform: none !important; }
}

/* ==========================================================================
   Cursor companheiro — um anel suave que segue o ponteiro com atraso e
   cresce, tingido de dourado, sobre qualquer elemento clicável. Puramente
   decorativo: nunca substitui o cursor do sistema, nunca intercepta clique
   (pointer-events: none), e main.js só o cria em mouse fino sem
   prefers-reduced-motion — ausente em toque por definição.
   ========================================================================== */
/* Tamanho fixo em 50px sempre; o crescimento vem de `transform: scale()`,
   escrito pelo próprio rAF do main.js junto com a posição — nunca de
   width/height (que disparam layout a cada frame da transição). */
.cursor-fx {
  position: fixed;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  margin: -25px 0 0 -25px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 200;
  border: 1.5px solid rgba(var(--accent-rgb) / .55);
  background: rgba(var(--accent-rgb) / .08);
  opacity: 0;
  transition: opacity .25s ease, border-color .25s ease, background .25s ease;
}
.cursor-fx.is-visible { opacity: 1; }
.cursor-fx.is-active {
  border-color: rgba(201, 172, 113, .8);
  background: rgba(201, 172, 113, .12);
}

@media (hover: none), (pointer: coarse) {
  .cursor-fx { display: none; }
}

/* ============================================================================
   BLOG — Índice Lateral
   Reaproveita o sistema inteiro da home (cores, tipografia, .content-thumb
   para os cards, a gaveta do menu para a versão celular da barra lateral).
   Nada de vidro líquido aqui: esse fica reservado para blocos de ação da
   marca (CTA, destaques), não para todo card de listagem.
   ============================================================================ */

/* ---------- Faixa de título ---------- */

.blog-hero {
  padding: calc(var(--header-h) + var(--sp-6)) var(--gutter) var(--sp-6);
  border-bottom: 1px solid var(--line);
}
.blog-hero .pill-label { margin-bottom: var(--sp-3); }
.blog-hero .lead { margin-top: var(--sp-3); }

.blog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: var(--sp-4);
}
.blog-breadcrumb a { color: var(--accent); }
.blog-breadcrumb a:hover { text-decoration: underline; }

/* ---------- Corpo: barra lateral + conteúdo ---------- */

.blog-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: var(--sp-7);
  align-items: start;
  padding: var(--sp-6) var(--gutter) var(--sp-7);
}

.blog-sidebar {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-4));
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.blog-search {
  position: relative;
}
.blog-search input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px 10px 40px;
  border: 1px solid var(--line-3);
  border-radius: var(--card-r);
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
}
.blog-search input:focus-visible { border-color: var(--accent); }
.blog-search svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--soft);
  pointer-events: none;
}

.blog-categories {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.blog-categories-label {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: var(--sp-2);
}
.blog-category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: 10px 12px;
  border-radius: var(--card-r);
  font-size: 14px;
  color: var(--body);
  transition: background .2s ease, color .2s ease;
}
.blog-category-link:hover { background: var(--surface-alt); color: var(--accent); }
.blog-category-link[aria-current="page"] {
  background: var(--surface-alt);
  color: var(--accent);
  font-weight: 600;
}
.blog-category-count {
  font-size: 12px;
  color: var(--soft);
  font-variant-numeric: tabular-nums;
}

/* Botão que abre a barra lateral como gaveta no celular — mesma linguagem
   visual do botão hamburguer do menu principal. */
.blog-sidebar-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-3);
  border-radius: var(--pill-r);
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}
.blog-sidebar-toggle svg { width: 18px; height: 18px; }

/* Cabeçalho da gaveta — só existe visualmente quando a barra vira gaveta
   no celular; no desktop a barra é sticky e fica sem topo próprio. */
.blog-sidebar-top { display: none; align-items: center; justify-content: space-between; }
.blog-sidebar-title { font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--ink); }

/* ---------- Grade de artigos ---------- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5);
}

.blog-empty {
  grid-column: 1 / -1;
  padding: var(--sp-6);
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-3);
  border-radius: var(--card-r);
}

/* ---------- Página de artigo ---------- */

.article-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: calc(var(--header-h) + var(--sp-6)) var(--gutter) var(--sp-7);
}

.article-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: var(--sp-6);
  align-items: start;
}

.article-toc {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-4));
}
.article-toc-summary {
  display: none;
}
.article-toc-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: -6px;
}
.article-toc-list[hidden] { display: none; }
.article-toc-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--muted);
  transition: color .2s ease;
}
.article-toc-list a::before {
  content: "";
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: transparent;
  transition: background .2s ease;
}
.article-toc-list a:hover { color: var(--accent); }
.article-toc-list a[aria-current="true"] {
  color: var(--accent);
  font-weight: 600;
}
.article-toc-list a[aria-current="true"]::before { background: var(--accent); }

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--sp-3);
  font-size: 14px;
  color: var(--muted);
  transition: color .2s ease;
}
.article-back:hover { color: var(--accent); }

.article-hero-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--card-r);
  margin-bottom: var(--sp-5);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  font-size: 13px;
  color: var(--muted);
}
.article-meta .content-cat { margin-top: 0; }

.article-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: var(--sp-5);
}

.article-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--body);
  max-width: 68ch;
}
.article-body p { margin-bottom: var(--sp-4); }
.article-body ul { margin: 0 0 var(--sp-4); padding-left: 1.25em; list-style: disc; }
.article-body li { margin-bottom: .5em; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.article-body h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  margin: var(--sp-6) 0 var(--sp-3);
}

.article-draft-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--sp-5);
  padding: 10px 16px;
  border: 1px dashed var(--gold);
  border-radius: var(--card-r);
  font-size: 13px;
  color: var(--muted);
  background: var(--surface-alt);
}

.article-cta {
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
}

/* ---------- Continue lendo ---------- */

.article-related {
  margin-top: var(--sp-7);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
}
.article-related h2 { margin-bottom: var(--sp-4); }
.article-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
}

/* ---------- Newsletter (estrutural — sem back-end ainda) ---------- */

.blog-newsletter {
  margin-top: var(--sp-7);
  padding: var(--sp-6);
  border: 1px solid var(--line-2);
  border-radius: var(--big-r);
  background: var(--surface-alt);
}
.blog-newsletter h2 { margin-bottom: var(--sp-2); }
.blog-newsletter p { max-width: 52ch; margin-bottom: var(--sp-4); }
.blog-newsletter-form {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  align-items: center;
}
.blog-newsletter-form input {
  flex: 1 1 240px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line-3);
  border-radius: var(--pill-r);
  font: inherit;
  font-size: 14px;
  background: #fff;
}
.blog-newsletter-soon {
  font-size: 12px;
  color: var(--soft);
  font-style: italic;
  margin-top: var(--sp-2);
  margin-bottom: 0;
}

/* ---------- Adaptação ---------- */

@media (max-width: 899px) {
  .blog-hero { padding-top: calc(var(--header-h) + var(--sp-4)); }

  .blog-shell {
    display: block;
    padding: var(--sp-4) 20px var(--sp-6);
  }

  .blog-sidebar-toggle { display: inline-flex; margin-bottom: var(--sp-4); }
  .blog-sidebar-top { display: flex; margin-bottom: var(--sp-2); }

  /* A barra lateral vira gaveta: mesma mecânica de .mobile-menu, reaberta
     aqui com outro id via main.js. */
  .blog-sidebar {
    position: fixed;
    inset: 0;
    z-index: 70;
    top: 0;
    background: #fff;
    padding: 20px;
    overflow-y: auto;
    gap: var(--sp-6);
  }
  .blog-sidebar[hidden] { display: none; }

  .blog-grid { grid-template-columns: 1fr; }
  .article-shell { padding-top: calc(var(--header-h) + var(--sp-4)); }
  .article-related-grid { grid-template-columns: 1fr; }
  .blog-newsletter { padding: var(--sp-4); }

  .article-layout { display: block; }
  .article-toc {
    position: static;
    margin-bottom: var(--sp-5);
    padding-bottom: var(--sp-4);
    border-bottom: 1px solid var(--line);
  }
  .article-toc-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-2);
    cursor: pointer;
    list-style: none;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--soft);
    padding: 4px 0;
  }
  .article-toc-summary::after {
    content: "+";
    font-size: 16px;
    line-height: 1;
    color: var(--soft);
  }
  .article-toc-summary[aria-expanded="true"]::after { content: "–"; }
  .article-toc-list { margin-top: 0; padding-top: var(--sp-3); }
}

@media (max-width: 620px) {
  .article-body { font-size: 16.5px; }
}
