/* ============================================================
   OneHeart — styles.css
   Design system: design.md · Identidade: id_visual/
   ============================================================ */

/* ── Fontes ── */
@font-face { font-family:'Galano Grotesque'; src:url('../assets/fonts/GalanoGrotesqueLight.woff2') format('woff2'); font-weight:300; font-style:normal; font-display:swap; }
@font-face { font-family:'Galano Grotesque'; src:url('../assets/fonts/GalanoGrotesqueRegular.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Galano Grotesque'; src:url('../assets/fonts/GalanoGrotesqueMedium.woff2') format('woff2'); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:'Galano Grotesque'; src:url('../assets/fonts/GalanoGrotesqueSemiBold.woff2') format('woff2'); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:'Galano Grotesque'; src:url('../assets/fonts/GalanoGrotesqueBold.woff2') format('woff2'); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:'Galano Grotesque'; src:url('../assets/fonts/GalanoGrotesqueExtraBold.woff2') format('woff2'); font-weight:800; font-style:normal; font-display:swap; }

/* ── Tokens ── */
:root {
  --blue:        #36498d;
  --blue-dark:   #2a3a73;
  --blue-deep:   #22305f;
  --blue-10:     #ecf0f9;
  --blue-06:     #f5f7fc;
  --burgundy:    #9b374f;
  --coral:       #e6434e;
  --plum:        #471940;
  --gray:        #646b7a;   /* texto secundário — slate tingido de azul, AA em branco (5.35:1) e no blue-10 (4.69:1) */
  --gray-20:     #e5e5e5;
  --gray-60:     #4a4a4a;
  --white:       #ffffff;

  --gradient-brand: linear-gradient(60deg, #36498d 19%, #e6434e 100%);

  --font: 'Galano Grotesque', 'Poppins', 'Montserrat', system-ui, sans-serif;

  --container: 1200px;
  --gutter: 24px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --shadow-sm: 0 1px 2px rgba(54,73,141,.06);
  --shadow-md: 0 6px 24px rgba(54,73,141,.08);
  --shadow-lg: 0 20px 56px rgba(54,73,141,.14);

  --ease: cubic-bezier(.22,.61,.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-60);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 1024px) {
  .container { padding-inline: 48px; }
}

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 200;
  background: var(--blue); color: #fff; padding: 10px 18px;
  border-radius: var(--radius-sm); text-decoration: none; font-weight: 500;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ── Tipografia utilitária ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; border-radius: 2px;
  background: var(--gradient-brand); flex: none;
}

.section-head { max-width: 640px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--blue-deep);
  text-wrap: balance;
}
.section-head .lead {
  margin-top: 14px;
  font-size: 17px; color: var(--gray);
}

/* ── Botões ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 15.5px; line-height: 1;
  text-decoration: none; border: 0;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), color .25s var(--ease);
}
.btn svg { flex: none; }

.btn-primary {
  color: #fff;
  background-image: linear-gradient(60deg, #36498d 10%, #9b374f 62%, #e6434e 115%);
  background-size: 130% 100%;
  background-position: 0% 0;
  box-shadow: 0 8px 22px rgba(54,73,141,.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background-position: 85% 0;
  box-shadow: 0 12px 28px rgba(54,73,141,.34);
}

.btn-secondary {
  color: var(--blue);
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--blue);
}
.btn-secondary:hover { background: var(--blue); color: #fff; }

.btn-invert { background: #fff; color: var(--blue); box-shadow: 0 10px 30px rgba(34,48,95,.30); }
.btn-invert:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(34,48,95,.36); }

.btn-ghost-light {
  color: #fff; background: transparent;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.75);
}
.btn-ghost-light:hover { background: rgba(255,255,255,.14); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15.5px; color: var(--blue);
  text-decoration: none; position: relative; padding-bottom: 3px;
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px; max-width: 1280px;
}
.site-header.scrolled {
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(54,73,141,.08), var(--shadow-sm);
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 56px; width: auto; }

.site-nav ul { display: flex; gap: 4px; }
.site-nav a {
  display: inline-block; padding: 10px 14px;
  font-size: 15px; font-weight: 500; color: var(--blue-deep);
  text-decoration: none; border-radius: var(--radius-pill);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.site-nav a:hover { background: var(--blue-10); }
.site-nav a[aria-current="page"] {
  color: var(--burgundy); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 5px; text-decoration-color: var(--burgundy);
}

.header-cta { flex: none; }
.header-cta .btn { min-height: 46px; padding: 12px 24px; font-size: 14.5px; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--blue-deep);
  align-items: center; justify-content: center;
}
.nav-toggle svg { pointer-events: none; }

@media (max-width: 1023px) {
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* Drawer mobile */
.drawer {
  position: fixed; inset: 0; z-index: 150;
  visibility: hidden; pointer-events: none;
}
.drawer.open { visibility: visible; pointer-events: auto; }
.drawer-scrim {
  position: absolute; inset: 0;
  background: rgba(34,48,95,.4);
  opacity: 0; transition: opacity .3s var(--ease);
}
.drawer.open .drawer-scrim { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(340px, 88vw);
  background: #fff; padding: 24px;
  display: flex; flex-direction: column; gap: 8px;
  transform: translateX(100%);
  transition: transform .35s var(--ease);
  box-shadow: var(--shadow-lg);
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.drawer-top img { height: 38px; }
.drawer-close {
  width: 44px; height: 44px; border: 0; background: var(--blue-10);
  border-radius: var(--radius-pill); color: var(--blue-deep);
  display: inline-flex; align-items: center; justify-content: center;
}
.drawer nav a {
  display: block; padding: 13px 12px;
  font-size: 17px; font-weight: 500; color: var(--blue-deep);
  text-decoration: none; border-radius: var(--radius-sm);
}
.drawer nav a:hover { background: var(--blue-10); }
.drawer nav a[aria-current="page"] {
  color: var(--burgundy); font-weight: 700;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.drawer .btn { margin-top: auto; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: max(600px, 88vh);
  display: flex; flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 88% 8%, rgba(230,67,78,.07), transparent 60%),
    radial-gradient(1100px 700px at -8% 110%, rgba(54,73,141,.10), transparent 60%),
    var(--white);
  padding-top: 84px; /* mobile: a foto começa logo abaixo do header fixo */
}
.hero .container {
  position: relative; z-index: 1;
  width: 100%;
  padding-top: clamp(28px, 5vw, 40px);
  padding-bottom: clamp(40px, 6vw, 64px);
}
@media (min-width: 1024px) {
  .hero { flex-direction: row; align-items: center; }
  .hero .container { padding-block: 0; }
  .hero-copy { max-width: 560px; }
}

.hero-copy .eyebrow { color: var(--burgundy); }
.hero-copy h1 {
  margin-top: 22px;
  font-size: clamp(40px, 5.6vw, 72px);
  font-weight: 800; line-height: 1.04;
  letter-spacing: -.022em;
  color: var(--blue-deep);
  text-wrap: balance;
}
.hero-copy h1 .grad {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy .sub {
  margin-top: 22px; max-width: 520px;
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--gray);
}
.hero-ctas { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero-note {
  margin-top: 40px;
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(54,73,141,.82);
}
.hero-note::before {
  content: ""; width: 44px; height: 1px; background: rgba(54,73,141,.3);
}

/* Marca d'água — símbolo da marca, discreto ao fundo, à esquerda atrás do texto */
.hero-watermark {
  --wm-o: .05;
  position: absolute;
  top: 50%; left: 34%;
  height: 94%;
  transform: translate(-50%, -50%) scale(1.04);
  z-index: 1; /* acima da foto, abaixo do texto (.container tem z-index 1 e vem depois no DOM) */
  pointer-events: none;
  opacity: 0;
  animation: wm-in 1.7s var(--ease) .25s forwards;
}
.hero-watermark img {
  height: 100%; width: auto; display: block;
}
@keyframes wm-in {
  to { opacity: var(--wm-o); transform: translate(-50%, -50%) scale(1); }
}
@media (max-width: 1023px) {
  /* largura fixa + altura automática → mantém o aspect ratio original do símbolo */
  .hero-watermark {
    --wm-o: .045;
    left: 60%; top: 66%;
    height: auto; width: min(72vw, 340px);
  }
  .hero-watermark img { width: 100%; height: auto; }
}

/* Foto da hero — full-bleed: faixa no topo (mobile), coluna à direita (desktop).
   Leve dessaturação + mapa de cor para aproximar da identidade visual. */
.hero-photo {
  margin: 0;
  position: relative;
  z-index: 0;
  overflow: hidden;
  width: 100%;
  height: clamp(280px, 46vh, 420px);
}
.hero-photo img,
.hero-photo video {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 24%;
  filter: saturate(.72) contrast(1.03) brightness(1.02);
}
/* mapa de cor — puxa a foto para o azul/bordô da marca */
.hero-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--gradient-brand);
  mix-blend-mode: color;
  opacity: .2;
}
/* esfumado — dissolve a foto no fundo (de baixo para cima no mobile) */
.hero-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(255,255,255,0) 44%,
    rgba(255,255,255,.72) 82%,
    var(--white) 100%);
}
@media (min-width: 1024px) {
  .hero-photo {
    position: absolute;
    top: 84px; right: 0; bottom: 0;
    width: 52%; height: auto;
  }
  .hero-photo img,
  .hero-photo video { object-position: 50% 30%; }
  /* esfumado — dissolve para a esquerda, transição longa e suave para o fundo */
  .hero-photo::after {
    background: linear-gradient(90deg,
      var(--white) 0%,
      rgba(255,255,255,.98) 10%,
      rgba(255,255,255,.72) 26%,
      rgba(255,255,255,.34) 42%,
      rgba(255,255,255,0) 62%);
  }
}

/* Curva de pressão aórtica — divisor */
.pulse-divider {
  position: relative;
  height: 72px; margin-top: -72px;
  pointer-events: none;
}
.pulse-divider svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.pulse-divider path {
  fill: none; stroke: rgba(54,73,141,.16); stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

/* ============================================================
   Credenciais
   ============================================================ */
.credenciais { padding: 40px 0 48px; }
.credenciais .grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px;
}
@media (min-width: 1024px) {
  .credenciais .grid { grid-template-columns: repeat(4, 1fr); }
  .credenciais .item + .item { border-left: 1px solid var(--gray-20); padding-left: 28px; }
}
.credenciais .item { display: flex; flex-direction: column; gap: 8px; }
.credenciais .item svg { color: var(--blue); }
.credenciais .item strong {
  font-size: 18px; font-weight: 700; color: var(--blue-deep); line-height: 1.25;
}
.credenciais .item span { font-size: 14.5px; color: var(--gray); line-height: 1.45; }

/* ============================================================
   Abordagem
   ============================================================ */
.abordagem { background: var(--blue-10); padding: clamp(72px, 9vw, 112px) 0; }
.abordagem .container {
  display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center;
}
@media (min-width: 1024px) {
  .abordagem .container { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; }
}
.abordagem p.body {
  margin-top: 20px; font-size: 17px; max-width: 56ch;
}
.abordagem p.body + p.body { margin-top: 14px; }
.abordagem .link-arrow { margin-top: 28px; }

/* Diagrama HeartTeam */
.heartteam {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
  padding: clamp(28px, 3.6vw, 48px);
  aspect-ratio: 1 / 1;
  max-width: 500px;
  width: 100%;
  justify-self: center;
}
.ht-ring {
  position: absolute; inset: 18%;
  border: 1.5px dashed rgba(54,73,141,.28);
  border-radius: 50%;
}
.ht-chip {
  position: absolute;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-size: clamp(11px, 1.1vw, 13.5px);
  font-weight: 600; line-height: 1;
  color: var(--blue);
  background: var(--white);
  border: 1.5px solid rgba(54,73,141,.35);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  box-shadow: var(--shadow-sm);
}
.ht-center {
  left: 50%; top: 50%;
  background-image: linear-gradient(60deg, #36498d 10%, #9b374f 62%, #e6434e 115%);
  color: #fff; border: 0;
  padding: 13px 22px;
  font-size: clamp(13px, 1.3vw, 15.5px);
  box-shadow: 0 8px 22px rgba(54,73,141,.28);
}
.ht-p1 { left: 50%; top: 16.5%; }
.ht-p2 { left: 84%; top: 39%; }
.ht-p3 { left: 73%; top: 79%; }
.ht-p4 { left: 27%; top: 79%; }
.ht-p5 { left: 16%; top: 39%; }
.ht-caption {
  position: absolute; left: 0; right: 0; bottom: clamp(14px, 2vw, 22px);
  text-align: center;
  font-size: 11.5px; font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(54,73,141,.5);
}

/* ============================================================
   Cuidados
   ============================================================ */
.cuidados { padding: clamp(72px, 9vw, 112px) 0; }
.cuidados .cards {
  margin-top: 48px;
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 640px) { .cuidados .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cuidados .cards { grid-template-columns: repeat(3, 1fr); } }

.card-proc {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--white);
  border: 1px solid var(--gray-20);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card-proc:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card-proc .icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--blue-06);
  display: grid; place-items: center;
  color: var(--blue);
}
.card-proc h3 {
  font-size: 20px; font-weight: 700; color: var(--blue-deep);
  line-height: 1.25; letter-spacing: -.01em;
}
.card-proc h3 small {
  display: block; margin-top: 4px;
  font-size: 13px; font-weight: 500; letter-spacing: .05em;
  color: var(--gray);
}
.card-proc p { font-size: 15px; line-height: 1.55; color: var(--gray-60); }
.card-proc .link-arrow { margin-top: auto; font-size: 14.5px; }

/* Card destaque — borda gradiente */
.card-proc.featured { border: 0; }
.card-proc.featured::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit; padding: 1.5px;
  background: var(--gradient-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.card-proc.featured .icon { background: var(--gradient-brand); color: #fff; }

.cuidados .section-cta { margin-top: 44px; text-align: center; }

/* ============================================================
   Equipe
   ============================================================ */
.equipe {
  padding: clamp(72px, 9vw, 112px) 0;
  background:
    linear-gradient(rgba(255,255,255,.94), rgba(255,255,255,.94)),
    url('../assets/img/pattern-branco.webp') center / 720px auto,
    var(--blue-06);
}
.equipe .cards {
  margin-top: 48px;
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 640px) { .equipe .cards { grid-template-columns: repeat(3, 1fr); } }

.card-medico {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card-medico:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-medico .foto {
  position: relative;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(120% 90% at 50% 108%, rgba(54,73,141,.16), transparent 55%),
    linear-gradient(170deg, #f2f4fa 0%, #e8ecf6 100%);
  overflow: hidden;
}
.card-medico .foto img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  /* dessaturação controlada para convergir os três retratos à mesma temperatura */
  filter: saturate(.88) contrast(1.03);
  transition: transform .5s var(--ease);
}
/* scrim de marca idêntico nos três cards — mesma assinatura tonal apesar de fundos diferentes */
.card-medico .foto::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(34,48,95,.18) 0%, rgba(34,48,95,.05) 26%, transparent 52%);
}
.card-medico:hover .foto img { transform: scale(1.03); }
.card-medico .info { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 6px; }
.card-medico h3 { font-size: 20px; font-weight: 700; color: var(--blue-deep); }
.card-medico .titulo { font-size: 14px; font-weight: 500; color: var(--gray); }
.card-medico .cred { font-size: 13.5px; font-weight: 500; color: var(--blue); letter-spacing: .005em; }
.card-medico .bio { margin-top: 6px; font-size: 14.5px; line-height: 1.55; }
.card-medico .link-arrow { margin-top: 14px; font-size: 14.5px; }

.pendente { color: var(--gray); opacity: .75; }

/* ============================================================
   Publicações
   ============================================================ */
.publicacoes { padding: clamp(72px, 9vw, 112px) 0; }
.publicacoes .head-row {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 24px;
}
.publicacoes .cards {
  margin-top: 44px;
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 768px) { .publicacoes .cards { grid-template-columns: repeat(3, 1fr); } }

.card-pub {
  display: flex; flex-direction: column;
  border: 1px solid var(--gray-20);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card-pub:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-pub .thumb {
  position: relative; aspect-ratio: 16 / 8.5;
  display: flex; align-items: flex-end; padding: 18px;
  overflow: hidden;
}
.card-pub .thumb::after {
  content: ""; position: absolute; right: -34px; bottom: -52px;
  width: 170px; height: 244px;
  background: url('../assets/img/simbolo-branco.webp') center / contain no-repeat;
  opacity: .3; transform: rotate(-8deg);
  transition: transform .5s var(--ease);
}
.card-pub:hover .thumb::after { transform: rotate(-4deg) translateY(-6px); }
.card-pub .thumb.t-blue { background: linear-gradient(140deg, #36498d, #2a3a73); }
.card-pub .thumb.t-burgundy { background: linear-gradient(140deg, #9b374f, #6f2440); }
.card-pub .thumb.t-plum { background: linear-gradient(140deg, #5c2453, #471940); }
/* Capa com imagem (opcional) */
.card-pub .thumb-img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.card-pub .thumb.has-img::after { display: none; }
.card-pub .thumb.has-img::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(34,48,95,.62), rgba(34,48,95,0) 62%);
}
.card-pub .chip {
  position: relative; z-index: 2;
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.35);
  padding: 6px 12px; border-radius: var(--radius-pill);
}
.card-pub .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-pub h3 {
  font-size: 17.5px; font-weight: 700; line-height: 1.35;
  color: var(--blue-deep); letter-spacing: -.005em;
}
.card-pub .meta { font-size: 13px; font-weight: 500; color: var(--gray); }
.card-pub .excerpt { font-size: 14.5px; line-height: 1.55; color: var(--gray-60); }
.card-pub .cta {
  margin-top: auto; padding-top: 8px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 600; color: var(--blue);
}
.card-pub .cta svg { transition: transform .3s var(--ease); }
.card-pub:hover .cta svg { transform: translateX(4px); }

/* ============================================================
   CTA final
   ============================================================ */
.cta-final {
  position: relative;
  background: var(--gradient-brand);
  color: #fff;
  padding: clamp(72px, 9vw, 104px) 0;
  overflow: hidden;
}
/* logo (símbolo) à direita — 110% da altura da seção, mantendo o aspect ratio */
.cta-final::before {
  content: ""; position: absolute; right: 5%; top: 50%;
  height: 110%; width: auto; aspect-ratio: 387 / 589;
  transform: translateY(-50%) rotate(6deg);
  background: url('../assets/img/simbolo-branco.webp') center / contain no-repeat;
  opacity: .14; z-index: 0;
}
/* textura de granulado por cima do plano de fundo */
.cta-final::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 150px 150px;
  opacity: .5; mix-blend-mode: soft-light;
}
@media (max-width: 767px) { .cta-final::before { display: none; } }
.cta-final .container { position: relative; z-index: 2; text-align: center; max-width: 820px; }
.cta-final h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800; line-height: 1.12; letter-spacing: -.018em;
  text-wrap: balance;
}
.cta-final .sub { margin-top: 16px; font-size: 18px; color: rgba(255,255,255,.85); }
.cta-final .actions {
  margin-top: 36px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  position: relative;
  background: var(--plum);
  color: #fff;
  overflow: hidden;
}
.site-footer::before {
  content: ""; position: absolute; right: -60px; top: -70px;
  width: 340px; height: 340px;
  background: url('../assets/img/pattern-simbolo-azul.webp') center / contain no-repeat;
  opacity: .05; filter: brightness(4);
  -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 40%, transparent 100%);
  pointer-events: none;
}
.site-footer .cols {
  position: relative;
  display: grid; grid-template-columns: 1fr; gap: 40px;
  padding: 72px 0 56px;
}
@media (min-width: 768px) { .site-footer .cols { grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 32px; } }

.site-footer .brand-col img { height: 69px; }
.site-footer .brand-col p {
  margin-top: 18px; max-width: 30ch;
  font-size: 15px; line-height: 1.6;
  color: rgba(255,255,255,.92);
}
.site-footer h4 {
  font-size: 13px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,255,255,.72);
  margin-bottom: 18px;
}
.site-footer .cols a {
  color: rgba(255,255,255,.92); text-decoration: none;
  transition: color .2s var(--ease);
}
.site-footer .cols a:hover { color: #fff; }
.site-footer li { margin-bottom: 11px; font-size: 15px; }
.site-footer .contact li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer .contact svg { flex: none; margin-top: 3px; color: rgba(255,255,255,.8); }
/* Redes — ícone + rótulo alinhados */
.site-footer .social a { display: inline-flex; align-items: center; gap: 9px; }
.site-footer .social svg { flex: none; color: rgba(255,255,255,.9); }
/* pendências no rodapé: legíveis sobre o fundo escuro (o cinza padrão some) */
.site-footer .pendente { color: rgba(255,255,255,.62); opacity: 1; }

/* Credenciais do corpo clínico */
.footer-creds {
  position: relative;
  display: flex; flex-wrap: wrap; gap: 6px 32px;
  padding: 22px 0 30px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: 13.5px; color: rgba(255,255,255,.72);
}
.footer-creds strong { color: #fff; font-weight: 600; }

.footer-bar {
  position: relative;
  border-top: 1px solid rgba(255,255,255,.14);
  padding: 22px 0;
  font-size: 13.5px; color: rgba(255,255,255,.72);
}
.footer-bar .container {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  align-items: center; justify-content: space-between;
}
.footer-bar a { color: inherit; }

/* ── WhatsApp flutuante ── */
.whats-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 56px; height: 56px; border-radius: var(--radius-pill);
  background: var(--gradient-brand); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(54,73,141,.35);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.whats-float:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 34px rgba(54,73,141,.42); }

/* ── Reveal on scroll ──
   Enhances an already-visible default: content shows unless JS confirms it can
   animate (html.js-reveal, set inline before first paint). No JS → no hidden
   state → nothing ever ships blank. */
.reveal { opacity: 1; transform: none; }
.js-reveal .reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js-reveal .reveal.in { opacity: 1; transform: none; }
.js-reveal .reveal[data-delay="1"] { transition-delay: .08s; }
.js-reveal .reveal[data-delay="2"] { transition-delay: .16s; }
.js-reveal .reveal[data-delay="3"] { transition-delay: .24s; }

/* ============================================================
   Página Sobre
   ============================================================ */

/* ── Hero secundário ── */
.subhero {
  position: relative;
  padding: 132px 0 clamp(48px, 7vw, 80px);
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(230,67,78,.06), transparent 60%),
    radial-gradient(1000px 620px at -10% 120%, rgba(54,73,141,.09), transparent 60%),
    var(--white);
}
.subhero::before {
  content: ""; position: absolute; right: -60px; top: 50%;
  width: min(46vw, 460px); aspect-ratio: 387 / 589;
  transform: translateY(-46%) rotate(4deg);
  background: url('../assets/img/simbolo-colorido.webp') center / contain no-repeat;
  opacity: .06; pointer-events: none; z-index: 0;
}
@media (max-width: 767px) { .subhero::before { display: none; } }
.subhero .container { position: relative; z-index: 1; }
.subhero-copy { max-width: 760px; }
.subhero h1 {
  margin-top: 20px;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 800; line-height: 1.06; letter-spacing: -.02em;
  color: var(--blue-deep); text-wrap: balance;
}
.subhero h1 .grad {
  background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.subhero .sub {
  margin-top: 20px; max-width: 620px;
  font-size: clamp(16px, 1.5vw, 19px); color: var(--gray);
}
.br-lg { display: none; }
@media (min-width: 1024px) { .br-lg { display: inline; } }

/* ── Nossa história ── */
.historia {
  position: relative; overflow: hidden;
  padding: clamp(64px, 8vw, 100px) 0;
  background: var(--gradient-brand);
  color: #fff;
}
/* textura de granulado — mesma assinatura da seção CTA */
.historia::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 150px 150px;
  opacity: .5; mix-blend-mode: soft-light;
}
.historia .container { position: relative; z-index: 1; }
.historia .section-head h2 { color: #fff; }
.historia-grid {
  display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center;
}
@media (min-width: 1024px) {
  .historia-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px; }
}
.historia p.body { margin-top: 18px; font-size: 17px; max-width: 60ch; color: rgba(255,255,255,.92); }
.historia p.body + p.body { margin-top: 14px; }
.historia strong { color: #fff; font-weight: 600; }

.ref-chips { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 1024px) { .ref-chips { flex-wrap: nowrap; margin-top: 40px; } }
.ref-chips li {
  white-space: nowrap;
  font-size: 13px; font-weight: 600; color: var(--blue);
  background: #fff; border: 0;
  padding: 8px 14px; border-radius: var(--radius-pill);
  box-shadow: 0 2px 10px rgba(34,48,95,.18);
}

.historia-aside {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.24);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff;
  padding: clamp(28px, 4vw, 40px);
  display: flex; flex-direction: column; gap: 4px;
  min-height: 240px; justify-content: center;
  box-shadow: 0 20px 56px rgba(34,48,95,.22);
}
.historia-aside::after {
  content: ""; position: absolute; right: -40px; bottom: -50px;
  width: 200px; height: 288px;
  background: url('../assets/img/simbolo-branco.webp') center / contain no-repeat;
  opacity: .16; transform: rotate(-8deg); pointer-events: none;
}
.historia-aside .ano {
  font-size: clamp(52px, 7vw, 76px); font-weight: 800; line-height: 1; letter-spacing: -.02em;
}
.historia-aside .ano-label {
  font-size: 13px; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,255,255,.82);
}
.historia-aside .aside-note {
  position: relative; margin-top: 16px;
  font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,.9);
}

/* ── HeartTeam (menção) ── */
.ht-band { background: var(--blue-10); padding: clamp(40px, 5vw, 56px) 0; }
.ht-band .container {
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
}
@media (min-width: 900px) {
  .ht-band .container { flex-direction: row; align-items: center; gap: 28px; }
}
.ht-band > .container > svg { color: var(--blue); flex: none; }
.ht-band-text { flex: 1; }
.ht-band-text h2 { font-size: 20px; font-weight: 700; color: var(--blue-deep); }
.ht-band-text p { margin-top: 6px; font-size: 15.5px; color: var(--gray-60); max-width: 68ch; }
.ht-band .link-arrow { flex: none; }

/* ── Equipe e formação ── */
.equipe-sobre {
  padding: clamp(72px, 9vw, 112px) 0;
  background:
    linear-gradient(rgba(255,255,255,.94), rgba(255,255,255,.94)),
    url('../assets/img/pattern-branco.webp') center / 720px auto,
    var(--blue-06);
}
.equipe-foto {
  margin: 44px 0 0; position: relative; overflow: hidden;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}
@media (min-width: 768px) { .equipe-foto { aspect-ratio: 16 / 9; } }
.equipe-foto img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 28%;
  filter: saturate(.9) contrast(1.02);
}
.equipe-foto::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(34,48,95,.22) 0%, transparent 40%);
}
.medicos {
  margin-top: 28px;
  display: grid; grid-template-columns: 1fr; gap: 20px;
}
@media (min-width: 768px) { .medicos { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.medico {
  background: var(--white);
  border: 1px solid var(--gray-20);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  scroll-margin-top: 100px;
}
.medico h3 { font-size: 18.5px; font-weight: 700; color: var(--blue-deep); line-height: 1.25; }
.medico .titulo { margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--gray); }
.medico .cred { margin-top: 2px; font-size: 13.5px; font-weight: 500; color: var(--blue); }
.formacao { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.formacao li {
  position: relative; padding-left: 20px;
  font-size: 14.5px; line-height: 1.45; color: var(--gray-60);
}
.formacao li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gradient-brand);
}

/* ── Local de atendimento ── */
.local { padding: clamp(72px, 9vw, 112px) 0; }
.local.tint { background: var(--blue-06); border-top: 1px solid var(--gray-20); }
.local .container {
  display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center;
}
@media (min-width: 1024px) {
  .local .container { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; }
}
.local-info p.body { margin-top: 18px; font-size: 17px; max-width: 46ch; }
.local-info strong { color: var(--blue-deep); font-weight: 600; }
.local-list { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.local-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--gray-60); }
.local-list svg { flex: none; margin-top: 2px; color: var(--blue); }
.local-list a { color: var(--gray-60); text-decoration: none; }
.local-list a:hover { color: var(--blue); }
.local-info .link-arrow { margin-top: 26px; }

.map-embed {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-20);
  aspect-ratio: 16 / 11;
}
@media (min-width: 1024px) { .map-embed { aspect-ratio: 16 / 12; } }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── Instagram ── */
.insta { padding: clamp(64px, 8vw, 100px) 0 clamp(80px, 10vw, 120px); background: var(--blue-06); }
.insta-embed { margin-top: 40px; display: grid; place-items: center; }
.insta-fallback {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; text-decoration: none;
  background: var(--white); border: 1px solid var(--gray-20);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 56px) clamp(28px, 6vw, 72px);
  box-shadow: var(--shadow-sm); color: var(--blue-deep);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  max-width: 460px; width: 100%;
}
.insta-fallback:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.insta-fallback svg { color: var(--burgundy); }
.insta-handle { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.insta-cta {
  margin-top: 4px; font-size: 14px; font-weight: 600; color: #fff;
  background: var(--gradient-brand); padding: 11px 22px; border-radius: var(--radius-pill);
}

/* ============================================================
   Página Cuidado Avançado
   ============================================================ */

/* ── Intervenções (banda escura da marca) ── */
.intervencoes {
  position: relative; overflow: hidden;
  padding: clamp(72px, 9vw, 112px) 0;
  background: linear-gradient(180deg, var(--blue-deep) 0%, #1b2950 100%);
  color: #fff;
}
.intervencoes::before {
  content: ""; position: absolute; right: -6%; top: -4%;
  width: min(52vw, 560px); aspect-ratio: 387 / 589;
  transform: rotate(8deg);
  background: url('../assets/img/simbolo-branco.webp') center / contain no-repeat;
  opacity: .04; pointer-events: none; z-index: 0;
}
.intervencoes::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 150px 150px; opacity: .35; mix-blend-mode: soft-light;
}
.intervencoes .container { position: relative; z-index: 1; }
.intervencoes .section-head h2 { color: #fff; }
.intervencoes .section-head .lead { color: rgba(255,255,255,.8); }

.proc-group + .proc-group { margin-top: clamp(52px, 6vw, 76px); }
.group-head {
  display: flex; align-items: center; gap: 16px;
  margin: clamp(44px, 5vw, 60px) 0 30px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, var(--burgundy) 0%, var(--coral) 100%);
  box-shadow: 0 14px 32px rgba(230,67,78,.24);
}
.group-head .group-icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3);
  color: #fff; display: grid; place-items: center;
}
.group-head h3 {
  font-size: clamp(19px, 2.2vw, 24px); font-weight: 700;
  color: #fff; letter-spacing: -.01em; line-height: 1.2;
}
.group-head p { margin-top: 4px; font-size: 14.5px; font-weight: 400; color: rgba(255,255,255,.92); max-width: 62ch; }

.proc-cards { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 640px)  { .proc-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .proc-cards { grid-template-columns: repeat(3, 1fr); } }

/* Cards escuros (glass sobre o azul da marca) */
.intervencoes .card-proc {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  padding: 28px 26px; gap: 12px;
}
.intervencoes .card-proc[id] { scroll-margin-top: 100px; }
.intervencoes .card-proc:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.075);
  border-color: rgba(255,255,255,.24);
  box-shadow: 0 20px 48px rgba(0,0,0,.28);
}
.intervencoes .card-proc .icon {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  color: #fff;
}
.intervencoes .card-proc h3 { color: #fff; }
.intervencoes .card-proc h3 small { color: rgba(255,255,255,.74); }
.intervencoes .card-proc p { color: rgba(255,255,255,.92); font-weight: 400; }
.intervencoes .card-proc .proc-meta {
  margin-top: auto; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.22);
  font-size: 14px; line-height: 1.5; font-weight: 400; color: rgba(255,255,255,.88);
}
.intervencoes .card-proc .proc-meta strong { color: #fff; font-weight: 600; }

/* Primeiro card de cada bloco — branco, texto azul, contorno gradiente mantido */
.intervencoes .card-proc.featured { border: 0; background: #fff; }
.intervencoes .card-proc.featured:hover { background: #fff; box-shadow: 0 22px 52px rgba(0,0,0,.32); }
.intervencoes .card-proc.featured .icon { background: var(--gradient-brand); border: 0; color: #fff; }
.intervencoes .card-proc.featured h3 { color: var(--blue-deep); }
.intervencoes .card-proc.featured h3 small { color: var(--gray); }
.intervencoes .card-proc.featured p { color: var(--gray-60); }
.intervencoes .card-proc.featured .proc-meta { border-top-color: var(--gray-20); color: var(--gray-60); }
.intervencoes .card-proc.featured .proc-meta strong { color: var(--blue-deep); }

/* Botão "leia o artigo" nos cards com publicação correspondente */
.intervencoes .card-proc .proc-article {
  margin-top: 14px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; text-decoration: none;
  color: #fff; padding: 8px 15px; border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,.32);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.intervencoes .card-proc .proc-article:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.55); }
.intervencoes .card-proc .proc-article svg { transition: transform .3s var(--ease); }
.intervencoes .card-proc .proc-article:hover svg { transform: translateX(3px); }
.intervencoes .card-proc.featured .proc-article { color: var(--blue); border-color: rgba(54,73,141,.32); }
.intervencoes .card-proc.featured .proc-article:hover { background: var(--blue-06); border-color: var(--blue); }

/* ── Nossos números (banda clara) ── */
.numeros {
  position: relative;
  background: var(--blue-06);
  padding: clamp(64px, 8vw, 96px) 0;
}
.numeros .container { position: relative; }
.numeros .section-head { margin-inline: auto; text-align: center; max-width: 640px; }
.numeros .section-head .lead { color: var(--gray); }

.numeros-grid {
  margin-top: clamp(40px, 5vw, 56px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px 20px;
}
@media (min-width: 900px) { .numeros-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.stat { position: relative; text-align: center; }
@media (min-width: 900px) {
  .stat + .stat::before {
    content: ""; position: absolute; left: 0; top: 14%;
    height: 72%; width: 1px; background: var(--gray-20);
  }
}
.stat .num {
  position: relative; display: inline-block; padding-bottom: 14px;
  font-size: clamp(40px, 5.5vw, 60px); font-weight: 800;
  line-height: 1; letter-spacing: -.02em;
  background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .num small { font-size: .48em; font-weight: 700; vertical-align: baseline; }
.stat .num::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%); width: 32px; height: 3px;
  border-radius: 2px; background: var(--gradient-brand);
}
.stat .stat-label {
  margin: 14px auto 0; max-width: 22ch;
  font-size: 14px; line-height: 1.45; color: var(--gray);
}

/* ============================================================
   Página Publicações (blog)
   ============================================================ */
.blog {
  position: relative; overflow: hidden;
  padding: clamp(48px, 6vw, 76px) 0 clamp(72px, 9vw, 112px);
  background: linear-gradient(180deg, var(--blue-deep) 0%, #1b2950 100%);
  color: #fff;
}
.blog::before {
  content: ""; position: absolute; right: -6%; top: -3%;
  width: min(46vw, 500px); aspect-ratio: 387 / 589;
  transform: rotate(8deg);
  background: url('../assets/img/simbolo-branco.webp') center / contain no-repeat;
  opacity: .04; pointer-events: none; z-index: 0;
}
.blog::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 150px 150px; opacity: .35; mix-blend-mode: soft-light;
}
.blog .container { position: relative; z-index: 1; }

/* Filtro por categoria */
.blog-filter {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: clamp(30px, 4vw, 44px);
}
.filter-btn {
  font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.22);
  padding: 9px 18px; border-radius: var(--radius-pill);
  cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.filter-btn:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }
.filter-btn.active { background: #fff; color: var(--blue-deep); border-color: #fff; }

.blog-layout { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
@media (min-width: 1024px) {
  .blog-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; }
}

.blog-posts { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .blog-posts { grid-template-columns: 1fr 1fr; } }
.blog-posts .card-pub.is-hidden { display: none; }

/* Sidebar — cards glass sobre o azul, com símbolo à direita e divisória no topo */
.blog-aside { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 1024px) { .blog-aside { position: sticky; top: 100px; } }
.aside-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  color: #fff;
}
.aside-card::after {
  content: ""; position: absolute; right: -26px; bottom: -34px;
  width: 132px; height: 190px;
  background: url('../assets/img/simbolo-branco.webp') center / contain no-repeat;
  opacity: .1; transform: rotate(-8deg); pointer-events: none;
}
.aside-card h3 {
  position: relative; font-size: 18px; font-weight: 700; color: #fff; letter-spacing: -.01em;
  padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.16);
}
.aside-card p { position: relative; margin-top: 14px; font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,.86); }
.aside-card .link-arrow { position: relative; margin-top: 18px; font-size: 14.5px; color: #fff; }
.aside-card .link-arrow::after { background: rgba(255,255,255,.6); }
.aside-card .btn { position: relative; margin-top: 20px; }

/* Card CTA da sidebar — gradiente da marca */
.aside-card.grad {
  background: var(--gradient-brand); border: 0;
  box-shadow: var(--shadow-md);
}
.aside-card.grad::after { opacity: .16; }
.aside-card.grad h3 { border-bottom-color: rgba(255,255,255,.28); }
.aside-card.grad p { color: rgba(255,255,255,.92); }

/* ============================================================
   Página de Artigo (post do blog)
   ============================================================ */
/* espaço no topo = altura do header fixo, para o hero não ficar sob o menu */
.article { padding: 88px 0 clamp(72px, 9vw, 110px); }

/* Hero em largura total, gradiente azul, começando logo abaixo do menu */
.article-head {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--blue-deep) 0%, var(--blue) 100%);
  color: #fff;
  padding: clamp(40px, 5vw, 60px) 0;
  margin-bottom: clamp(40px, 5vw, 56px);
}
.article-head::after {
  content: ""; position: absolute; right: -20px; bottom: -55px;
  width: 230px; height: 330px;
  background: url('../assets/img/simbolo-branco.webp') center / contain no-repeat;
  opacity: .09; transform: rotate(-8deg); pointer-events: none;
}
.article-head > .container { position: relative; z-index: 1; }
.article-topline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.article-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: #fff; text-decoration: none;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.26);
  padding: 7px 15px 7px 11px; border-radius: var(--radius-pill);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.article-back:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.46); }
.article-cat {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.32);
  padding: 7px 14px; border-radius: var(--radius-pill);
}
.article-head h1 {
  margin-top: 18px;
  font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; line-height: 1.1;
  letter-spacing: -.02em; color: #fff; text-wrap: balance;
}
.article-meta { margin-top: 16px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.8); }
.article-lead {
  margin-top: 22px; max-width: 64ch;
  font-size: clamp(17px, 1.7vw, 19px); line-height: 1.6; color: rgba(255,255,255,.92);
}
.article-lead strong { color: #fff; font-weight: 600; }

.article-layout {
  display: grid; grid-template-columns: 1fr; gap: 40px;
}
@media (min-width: 1000px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 244px; gap: 56px; align-items: start; }
  .article-body { grid-column: 1; grid-row: 1; }
  .article-toc { grid-column: 2; grid-row: 1; position: sticky; top: 96px; }
}

/* Sumário (no mobile aparece no topo, seguindo a ordem do HTML) */
.toc-title {
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gray); margin-bottom: 14px;
}
.article-toc nav { display: flex; flex-direction: column; border-left: 2px solid var(--gray-20); }
.article-toc a {
  padding: 9px 16px; margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: 15.5px; line-height: 1.45; color: var(--gray); text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.article-toc a:hover { color: var(--blue); }
.article-toc a.active { color: var(--blue); font-weight: 600; border-left-color: var(--blue); }
@media (max-width: 999px) {
  .article-toc { background: var(--blue-06); border-radius: var(--radius-md); padding: 22px 22px 10px; }
  .article-toc nav { border-left: 0; }
  .article-toc a { padding: 7px 0; margin-left: 0; border-left: 0; }
  .article-toc a.active { border-left: 0; }
}

/* Corpo do artigo */
.article-body { max-width: 720px; }
.article-body section { scroll-margin-top: 96px; }
.article-body section + section { margin-top: clamp(36px, 4.5vw, 52px); }
.article-body h2 {
  position: relative; padding-left: 18px;
  font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; line-height: 1.2;
  letter-spacing: -.015em; color: var(--blue-deep); text-wrap: balance;
}
.article-body h2::before {
  content: ""; position: absolute; left: 0; top: .15em; bottom: .15em;
  width: 4px; border-radius: 2px; background: var(--gradient-brand);
}
.article-body p { margin-top: 16px; font-size: 17px; line-height: 1.72; color: var(--gray-60); }
.article-body p strong, .article-body li strong { color: var(--blue-deep); font-weight: 600; }
.article-body > section > ul, .article-body > section > ol {
  margin-top: 16px; display: flex; flex-direction: column; gap: 10px;
  padding-left: 4px;
}
.article-body > section > ul li, .article-body > section > ol li {
  position: relative; padding-left: 26px; font-size: 16.5px; line-height: 1.6; color: var(--gray-60);
}
.article-body > section > ul li::before {
  content: ""; position: absolute; left: 4px; top: 9px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--gradient-brand);
}
.article-body > section > ol { counter-reset: step; }
.article-body > section > ol li { counter-increment: step; }
.article-body > section > ol li::before {
  content: counter(step); position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-06); color: var(--blue); font-size: 11.5px; font-weight: 700;
  display: grid; place-items: center;
}

/* Caixa de destaque */
.callout {
  margin-top: 24px; padding: 24px 26px;
  background: var(--blue-dark); color: #fff; border-radius: var(--radius-md);
  border-left: 4px solid var(--coral);
}
.callout.alt { background: var(--burgundy); border-left-color: #fff; }
.callout .callout-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 15.5px; font-weight: 700; color: #fff;
}
.callout .callout-title svg { flex: none; }
.callout ul { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.callout li { position: relative; padding-left: 24px; font-size: 15.5px; font-weight: 500; line-height: 1.55; color: rgba(255,255,255,.95); }
.callout li::before {
  content: ""; position: absolute; left: 4px; top: 8px;
  width: 6px; height: 6px; border-radius: 50%; background: #fff;
}
.callout p { margin-top: 10px; font-size: 15.5px; font-weight: 500; color: rgba(255,255,255,.95); }
.callout p strong, .callout li strong { color: #fff; font-weight: 700; }

/* Imagem / placeholder de imagem */
.article-figure { margin: 28px 0 4px; }
.article-figure img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius-md); border: 1px solid var(--gray-20);
}
.article-figure .ph {
  aspect-ratio: 16 / 9; border-radius: var(--radius-md);
  border: 1px dashed rgba(54,73,141,.35);
  background:
    repeating-linear-gradient(45deg, rgba(54,73,141,.04) 0 12px, transparent 12px 24px),
    var(--blue-06);
  display: grid; place-items: center; padding: 24px; text-align: center;
}
.article-figure .ph span { font-size: 13.5px; font-weight: 500; color: var(--blue); max-width: 42ch; }
.article-figure .ph svg { color: var(--blue); opacity: .5; margin-bottom: 8px; }
.article-figure figcaption { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--gray); }

/* Infográfico de passos (arte original) */
.tavi-steps { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .tavi-steps { grid-template-columns: repeat(3, 1fr); } }
.tavi-step {
  position: relative; overflow: hidden;
  padding: 22px 20px; border-radius: var(--radius-md);
  background: var(--blue-06); border: 1px solid var(--gray-20);
}
.tavi-step .ts-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--gradient-brand); color: #fff;
  display: grid; place-items: center;
}
.tavi-step .ts-num {
  position: absolute; top: 14px; right: 18px;
  font-size: 30px; font-weight: 800; line-height: 1; color: rgba(54,73,141,.16);
}
.tavi-step h4 { margin-top: 14px; font-size: 16px; font-weight: 700; color: var(--blue-deep); }
.tavi-step p { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--gray-60); }

/* Gráfico comparativo (arte original, dados PARTNER 3) */
.stat-compare {
  padding: 24px 26px; border-radius: var(--radius-md);
  background: var(--blue-06); border: 1px solid var(--gray-20);
}
.sc-legend {
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center;
  font-size: 13.5px; font-weight: 600; color: var(--gray-60); margin-bottom: 20px;
}
.sc-legend .sc-k { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.sc-k.sc-tavr { background: var(--blue); }
.sc-k.sc-cir { background: #9aa3b5; }
.sc-row + .sc-row { margin-top: 18px; }
.sc-label { font-size: 14px; font-weight: 600; color: var(--blue-deep); margin-bottom: 9px; }
.sc-bar-row { display: grid; grid-template-columns: 88px 1fr 50px; align-items: center; gap: 10px; }
.sc-bar-row + .sc-bar-row { margin-top: 7px; }
.sc-tag { font-size: 12.5px; font-weight: 600; color: var(--gray); }
.sc-track { background: #fff; border: 1px solid var(--gray-20); border-radius: var(--radius-pill); height: 20px; overflow: hidden; }
.sc-fill { height: 100%; border-radius: var(--radius-pill); min-width: 3px; }
.sc-fill.sc-tavr { background: var(--blue); }
.sc-fill.sc-cir { background: #9aa3b5; }
.sc-val { font-size: 13px; font-weight: 700; color: var(--blue-deep); text-align: right; }

/* Referências */
.ref-list { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.ref-list li {
  position: relative; padding-left: 20px;
  font-size: 14.5px; line-height: 1.5; color: var(--gray-60);
}
.ref-list li::before {
  content: ""; position: absolute; left: 2px; top: 8px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gray);
}
.ref-list a { color: var(--blue); word-break: break-word; }

/* FAQ */
.faq { margin-top: 18px; }
.faq details {
  border-top: 1px solid var(--gray-20); padding: 16px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--gray-20); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 16.5px; font-weight: 600; color: var(--blue-deep);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; font-size: 22px; font-weight: 400; color: var(--blue);
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 12px; font-size: 16px; }

/* Compartilhar */
.article-share {
  margin-top: clamp(44px, 5vw, 60px); padding: clamp(28px, 4vw, 40px);
  background: var(--blue-06); border-radius: var(--radius-lg); text-align: center;
}
.article-share h3 { font-size: 20px; font-weight: 700; color: var(--blue-deep); }
.article-share p { margin-top: 8px; font-size: 15px; color: var(--gray); }
.share-btns { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.share-btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14.5px; font-weight: 600; color: var(--blue); text-decoration: none;
  background: #fff; border: 1px solid var(--gray-20);
  padding: 11px 20px; border-radius: var(--radius-pill); cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.share-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--blue); }
.share-btn svg { flex: none; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-watermark { animation: none; opacity: var(--wm-o); transform: translate(-50%, -50%); }
  .btn, .card-proc, .card-medico, .card-pub, .card-medico .foto img,
  .drawer-panel, .drawer-scrim, .whats-float,
  .medico, .insta-fallback { transition: none; }
}

/* ══════════ Cursos — em breve ══════════ */
.coming { padding: clamp(64px, 9vw, 120px) 0; background: var(--blue-06); }
.coming .container { max-width: 700px; text-align: center; }
.coming-badge {
  width: 88px; height: 88px; margin: 0 auto 30px; border-radius: 26px;
  display: grid; place-items: center; color: #fff;
  background: var(--gradient-brand);
  box-shadow: 0 20px 44px -16px rgba(54,73,141,.55);
}
.coming h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -.01em; color: var(--blue-deep); }
.coming p { margin-top: 16px; font-size: 17px; line-height: 1.65; color: var(--gray); }
.coming .actions { margin-top: 32px; display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; }
.coming-tags { margin-top: 42px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.coming-tags li {
  list-style: none; padding: 9px 17px; border-radius: var(--radius-pill);
  background: #fff; border: 1px solid var(--gray-20);
  font-size: 14px; font-weight: 600; color: var(--blue); box-shadow: var(--shadow-sm);
}
