/* ============================================================
   TudoMed — Site institucional 2026
   Identidade: roxo #531367 → #8d30aa (gradiente da marca),
   verde #45a448 (conformidade), Poppins, tema claro fixo.
   ============================================================ */

:root {
  --brand: #531367;
  --brand-deep: #300d3c;
  --brand-bright: #8d30aa;
  --green: #45a448;
  --bg: #faf8fc;
  --surface: #ffffff;
  --surface-alt: #f3edf7;
  --ink: #221a28;
  --ink-soft: #5c4f66;
  --line: #e5dcec;
  --hero-bg: linear-gradient(180deg, #f6effa 0%, #faf8fc 100%);
  --hero-glow: radial-gradient(680px 320px at 82% 12%, rgba(141, 48, 170, 0.10), transparent 70%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
body {
  font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { text-wrap: balance; line-height: 1.2; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-bright);
  margin-bottom: 14px;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(141, 48, 170, 0.12);
  color: var(--brand);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 0.82rem; font-weight: 600;
  margin-bottom: 18px;
}

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 252, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; padding: 14px 24px; }
.nav .logo img { height: 32px; width: auto; display: block; }
.nav nav { display: flex; gap: 24px; margin-left: auto; font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); }
.nav nav a:hover, .nav nav a:focus-visible { color: var(--brand-bright); }
.nav nav a.active { color: var(--brand); font-weight: 600; }
.menu-toggle {
  display: none;
  margin-left: auto;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; font-size: 1.1rem; cursor: pointer; color: var(--ink);
}

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 2px; }
.btn-primary {
  background: linear-gradient(100deg, var(--brand), var(--brand-bright));
  color: #fff;
  box-shadow: 0 6px 18px rgba(83, 19, 103, 0.28);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(83, 19, 103, 0.36); }
.btn-ghost {
  background: transparent;
  color: var(--brand-bright);
  border: 1.5px solid rgba(141, 48, 170, 0.45);
}
.btn-ghost:hover { border-color: var(--brand-bright); }

/* ---------- Hero ---------- */
.hero {
  background: var(--hero-bg);
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--hero-glow);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.slide { display: none; }
.slide.active { display: block; }
.slide-inner { padding: 80px 0 64px; max-width: 46rem; }
.hero-split {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 48px; align-items: center;
  padding: 4px 24px;
  min-height: 380px;
}
.hero-split .hero-img img { max-height: 324px; width: auto; margin-inline: auto; }
.hero-split .slide-inner { padding: 0; }
.hero-img img {
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(48, 13, 60, 0.16);
  display: block;
}
.hero h1, .hero .hero-title {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.hero h1 em, .hero .hero-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--brand), var(--brand-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 34rem; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.carousel-nav {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 36px;
  position: relative; z-index: 1;
}
.carousel-nav button.dot {
  width: 10px; height: 10px; border-radius: 999px;
  border: none; background: var(--line); cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}
.carousel-nav button.dot.active { width: 30px; background: var(--brand-bright); }
.carousel-nav button.arrow {
  background: var(--surface); border: 1px solid var(--line);
  width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer; font-size: 1rem; color: var(--ink-soft);
  display: grid; place-items: center;
}
.carousel-nav button.arrow:hover { color: var(--brand-bright); border-color: var(--brand-bright); }

/* ---------- Blocos ---------- */
section.block { padding: 72px 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }
section.tint { background: var(--surface-alt); border-block: 1px solid var(--line); }
.block h2 { font-size: clamp(1.5rem, 2.8vw, 2.05rem); font-weight: 600; margin-bottom: 12px; }
.block .intro { color: var(--ink-soft); max-width: 42rem; margin-bottom: 40px; }
.center { text-align: center; }
.center .intro { margin-inline: auto; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stats.three { grid-template-columns: repeat(3, 1fr); }
.stats.two { grid-template-columns: 1fr 1fr; }
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  text-align: center;
}
.stat b {
  display: block;
  font-size: 2rem; font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, var(--brand), var(--brand-bright));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { font-size: 0.88rem; color: var(--ink-soft); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards.five { grid-template-columns: repeat(5, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  display: grid;
  gap: 10px;
  align-content: start;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
section.alt .card, section.tint .card { background: var(--bg); }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(48, 13, 60, 0.10); }
.card .icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-bright));
  color: #fff;
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.02rem; font-weight: 600; }
.card p { font-size: 0.9rem; color: var(--ink-soft); }
.card.featured {
  border-color: rgba(141, 48, 170, 0.4);
  grid-column: 1 / -1;
}
.card.featured .checklist { grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) {
  .card.featured .checklist { grid-template-columns: 1fr; }
}

.checklist { display: grid; gap: 12px; list-style: none; }
.checklist li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.95rem; }
.checklist .check {
  flex: none; width: 21px; height: 21px; margin-top: 2px;
  border-radius: 50%;
  background: rgba(69, 164, 72, 0.16);
  color: var(--green);
  display: grid; place-items: center;
  font-size: 0.75rem; font-weight: 700;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.split.top { align-items: start; }
.split img.photo {
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(48, 13, 60, 0.14);
  display: block;
}

/* Modelo integrado — diagrama dinâmico */
.modelo-diagrama {
  position: relative;
  aspect-ratio: 1;
  max-width: 460px;
  margin: 0 auto;
  width: 100%;
}
.md-lines {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.md-lines line {
  stroke: #c9aed6;
  stroke-width: 0.6;
  stroke-dasharray: 2.5 2.5;
  animation: md-dash 1.6s linear infinite;
  transition: stroke 0.4s ease;
}
.md-lines line.active {
  stroke: var(--brand-bright);
  stroke-dasharray: none;
  stroke-width: 0.9;
}
@keyframes md-dash {
  to { stroke-dashoffset: -10; }
}
.md-center {
  position: absolute; left: 50%; top: 47%;
  transform: translate(-50%, -50%);
  width: 26%; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(83, 19, 103, 0.18);
  display: grid; place-items: center;
  z-index: 2;
}
.md-center img { width: 68%; height: auto; }
.md-pulse {
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(141, 48, 170, 0.35);
  animation: md-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes md-pulse {
  0% { transform: scale(0.9); opacity: 0.9; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}
.md-node {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 27%;
  min-width: 104px;
}
.md-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 10px;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  font-size: 0.76rem; font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 8px 20px rgba(48, 13, 60, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  animation: md-float 4.5s ease-in-out infinite;
}
.md-node:nth-child(3) .md-card { animation-delay: 0s; }
.md-node:nth-child(4) .md-card { animation-delay: -0.9s; }
.md-node:nth-child(5) .md-card { animation-delay: -1.8s; }
.md-node:nth-child(6) .md-card { animation-delay: -2.7s; }
.md-node:nth-child(7) .md-card { animation-delay: -3.6s; }
@keyframes md-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.md-card svg {
  width: 26px; height: 26px;
  color: var(--brand);
  transition: transform 0.35s ease, color 0.35s ease;
}
.md-node.active .md-card {
  border-color: var(--brand-bright);
  box-shadow: 0 16px 34px rgba(83, 19, 103, 0.22);
  transform: translateY(-5px) scale(1.06);
  animation-play-state: paused;
}
.md-node.active .md-card svg {
  color: var(--brand-bright);
  transform: scale(1.15);
}
@media (prefers-reduced-motion: reduce) {
  .md-lines line { animation: none; }
  .md-card { animation: none; }
  .md-pulse { display: none; }
}

/* NR-1 destaque */
.timeline { display: grid; list-style: none; }
.timeline li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 10px 0;
  font-size: 0.95rem;
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute; left: 10px; top: 34px; bottom: -6px;
  width: 2px; background: var(--line);
}
.timeline li:last-child::before { display: none; }
.timeline .tdot {
  flex: none; width: 22px; height: 22px; margin-top: 2px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-bright));
  color: #fff;
  display: grid; place-items: center;
  font-size: 0.68rem; font-weight: 700;
  position: relative; z-index: 1;
}

/* Logos clientes — carrossel contínuo (marquee) */
.logos-marquee {
  overflow: hidden;
  position: relative;
  margin-bottom: 44px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logos-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: logos-scroll 35s linear infinite;
}
.logos-marquee:hover .logos-track { animation-play-state: paused; }
@keyframes logos-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logos-marquee { -webkit-mask-image: none; mask-image: none; }
  .logos-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .logos-track span[aria-hidden="true"] { display: none; }
}
.logos-track span {
  flex: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 20px;
  display: grid; place-items: center;
}
.logos-track img { height: 40px; width: auto; max-width: 140px; object-fit: contain; display: block; }

/* Galeria de fotos */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: block;
}

/* Depoimentos */
.quote .focus { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand-bright); }
.quote p.q { font-size: 0.95rem; color: var(--ink); }
.quote .who { font-size: 0.85rem; color: var(--ink-soft); }
.quote .who b { color: var(--ink); font-weight: 600; }

/* Formulário */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  font: inherit; font-size: 0.92rem;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--brand-bright); outline-offset: 1px; border-color: transparent;
}

/* CTA final */
.cta-final {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 52px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(48, 13, 60, 0.08);
}
.cta-final h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; margin-bottom: 12px; }
.cta-final p { color: var(--ink-soft); margin-bottom: 26px; max-width: 36rem; margin-inline: auto; }

/* Blog */
.post-card h3 { font-size: 0.98rem; }
.newsletter {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px;
  display: flex; gap: 20px; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 44px;
}
.newsletter form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter input {
  font: inherit; font-size: 0.92rem;
  padding: 11px 16px; min-width: 240px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink);
}

/* Vagas */
.vaga-row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
}
section.alt .vaga-row { background: var(--bg); }
.vaga-row + .vaga-row { margin-top: 12px; }
.vaga-row .meta { color: var(--ink-soft); font-size: 0.85rem; }
.vaga-row .spacer { margin-left: auto; }
.chip-sm {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.76rem; font-weight: 600;
  color: var(--brand-bright);
}

/* Footer */
footer.site {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  margin-top: 72px;
  padding: 52px 0 30px;
  font-size: 0.9rem;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.3fr 1fr; gap: 32px; margin-bottom: 36px; }
footer .logo img { height: 30px; width: auto; margin-bottom: 14px; }
footer h4 { color: var(--ink); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
footer ul { list-style: none; display: grid; gap: 8px; }
footer a:hover { color: var(--brand-bright); }
.foot-base {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.8rem;
}

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .split, .hero-split, .foot-grid, .form-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .cards, .cards.five, .cards.four, .cards.two { grid-template-columns: 1fr 1fr; }
  .stats, .stats.three { grid-template-columns: 1fr 1fr; }
  section.block { padding: 52px 0; }
  .menu-toggle { display: block; }
  .nav { flex-wrap: wrap; }
  .nav nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 14px;
    padding: 14px 0 6px;
    border-top: 1px solid var(--line);
  }
  .nav nav.open { display: flex; }
  .nav > .btn { display: none; }
}
@media (max-width: 560px) {
  .cards, .cards.five, .cards.four, .cards.two { grid-template-columns: 1fr; }
  .stats, .stats.three, .stats.two { grid-template-columns: 1fr; }
}

/* ---------- Hero integrado (slide principal): foto fundida ao fundo lilás ---------- */
.hero.hero-lilas {
  background: linear-gradient(100deg, #efe8f9 0%, #e8def5 45%, #dbcdf0 100%);
}
.hero-foto {
  display: none;
  position: absolute;
  bottom: 0;
  right: max(24px, calc((100% - 1120px) / 2));
  height: 82%;
  width: auto;
  filter: drop-shadow(-14px 12px 28px rgba(48, 13, 60, 0.18));
  pointer-events: none;
}
.hero-lilas .hero-foto { display: block; }

/* Recortes integrados dos slides 2 e 3 (ancorados ao wrap) */
.hero-cut {
  position: absolute;
  right: 0;
  bottom: 0;
  max-height: 88%;
  max-width: 44%;
  width: auto;
  height: auto;
  filter: drop-shadow(-14px 12px 28px rgba(48, 13, 60, 0.16));
  pointer-events: none;
}
.slide[data-slide="2"] .hero-cut {
  max-width: none;
  max-height: none;
  height: 83%;
  bottom: 9%;
  right: min(30px, calc((100% - 100vw) / 2 + 80px));
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20%, #000 85%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 20%, #000 85%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%, #000 90%, transparent 100%);
  mask-composite: intersect;
  filter: none;
}
/* NR-1: dissolve as bordas do recorte (esquerda e mesa) no fundo */
.slide[data-slide="1"] .hero-cut {
  -webkit-mask-image: linear-gradient(45deg, transparent 0, #000 24%), linear-gradient(0deg, transparent 0, #000 14%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(45deg, transparent 0, #000 24%), linear-gradient(0deg, transparent 0, #000 14%);
  mask-composite: intersect;
  filter: none;
}
@media (min-width: 1600px) {
  .slide[data-slide="2"] .hero-cut { right: calc((100% - 100vw) / 2 + 180px); }
}
@media (max-width: 1280px) {
  .slide[data-slide="2"] .hero-cut { max-height: 69%; bottom: 15%; }
}
@media (max-width: 980px) {
  .hero-cut { display: none; }
}
.hero-lilas .slide-inner { position: relative; z-index: 1; }
.hero-lilas .slide[data-slide="0"] .slide-inner { max-width: 40rem; padding: 94px 0 56px; }
.hero-lilas .carousel-nav { padding-bottom: 28px; }
@media (max-width: 980px) {
  .hero-foto, .hero-lilas .hero-foto { display: none; }
}

/* Honeypot anti-spam: campo invisível para humanos, iscas para robôs */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Grade de módulos da Plataforma Própria: só ícone + nome, cartões compactos */
.mods {
  margin-top: 8px;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.mods .card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
}
.mods .card h3 { font-size: 0.9rem; line-height: 1.3; }
.mods .card .icon { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; }
.mods .card .icon svg { width: 17px; height: 17px; }
@media (max-width: 1100px) {
  .mods { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .mods { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .mods { grid-template-columns: 1fr; }
}

/* ---------- Blog: busca, tags e capas ---------- */
.blog-hero .slide-inner { max-width: 52rem; padding: 72px 0 52px; }
.blog-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  max-width: 40rem;
  box-shadow: 0 10px 30px rgba(48, 13, 60, 0.08);
}
.blog-search:focus-within { border-color: var(--brand-bright); box-shadow: 0 10px 30px rgba(141, 48, 170, 0.16); }
.blog-search svg { width: 20px; height: 20px; color: var(--ink-soft); flex: 0 0 auto; }
.blog-search input {
  flex: 1; min-width: 0;
  font: inherit; font-size: 0.95rem;
  border: none; outline: none; background: transparent; color: var(--ink);
  padding: 8px 0;
}
.blog-search input::placeholder { color: #9a8ea3; }
.blog-search input::-webkit-search-cancel-button { cursor: pointer; }
.blog-search .btn { padding: 10px 22px; }
.blog-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.blog-tags .tag {
  font: inherit; font-size: 0.82rem; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--ink-soft);
  border: 1px solid var(--line);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.blog-tags .tag:hover { color: var(--brand-bright); border-color: var(--brand-bright); }
.blog-tags .tag.active {
  background: linear-gradient(100deg, var(--brand), var(--brand-bright));
  color: #fff; border-color: transparent;
}
.blog-tags .tag:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 2px; }
.blog-status { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 16px; min-height: 1.2em; }
.blog-status:empty { display: none; }
.post-card { padding: 0; overflow: hidden; gap: 0; }
.post-card .cover {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-bottom: 1px solid var(--line);
  transition: transform 0.25s ease;
}
.post-card:hover .cover { transform: scale(1.03); }
.post-card .post-body { padding: 18px 20px 22px; display: grid; gap: 8px; }
.post-card .eyebrow { margin-bottom: 0; }
.post-card[hidden] { display: none; }
.blog-vazio {
  text-align: center; color: var(--ink-soft);
  padding: 40px 20px; border: 1px dashed var(--line); border-radius: 16px;
}
@media (max-width: 560px) {
  .blog-search { padding-left: 14px; }
  .blog-search .btn { padding: 9px 14px; font-size: 0.85rem; }
}

/* ---------- Blog: página de artigo ---------- */
.post-hero .slide-inner { max-width: 52rem; padding: 56px 0 116px; }
.post-back {
  display: block; width: fit-content; margin-bottom: 22px;
  font-size: 0.88rem; font-weight: 600; color: var(--ink-soft);
}
.post-back:hover { color: var(--brand-bright); }
.post-hero .eyebrow { margin-bottom: 12px; }
.post-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.post-hero p.lead { max-width: 44rem; margin-bottom: 18px; }
.post-meta { font-size: 0.86rem; color: var(--ink-soft); }
.post-cover { max-width: 60rem; margin: -84px auto 40px; position: relative; z-index: 2; }
.post-cover img {
  display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover;
  border-radius: 18px; border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(48, 13, 60, 0.16);
}
.post-content { max-width: 46rem; margin: 0 auto; font-size: 1.02rem; line-height: 1.75; }
.post-content p { margin-bottom: 18px; }
.post-content h2 { font-size: 1.4rem; font-weight: 600; margin: 36px 0 12px; }
.post-content h3 { font-size: 1.12rem; font-weight: 600; margin: 28px 0 10px; }
.post-content ul, .post-content ol { margin: 0 0 18px 22px; }
.post-content li { margin-bottom: 6px; }
.post-content a { color: var(--brand-bright); text-decoration: underline; }
.post-content blockquote {
  border-left: 3px solid var(--brand-bright); padding: 4px 18px; margin: 24px 0;
  color: var(--ink-soft); font-style: italic;
}
.post-content img { max-width: 100%; border-radius: 12px; margin: 12px 0 24px; }
.post-pendente {
  background: var(--surface-alt); border: 1px dashed var(--line); border-radius: 14px;
  padding: 20px 22px; font-size: 0.95rem; color: var(--ink-soft);
}
.post-cta {
  max-width: 46rem; margin: 48px auto 0;
  background: var(--surface-alt); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.post-cta h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.post-cta p { font-size: 0.92rem; color: var(--ink-soft); }
.post-related h2 { font-size: 1.5rem; margin-bottom: 24px; }
@media (max-width: 760px) {
  .post-cover { margin-top: -48px; }
  .post-hero .slide-inner { padding-bottom: 72px; }
}

/* Imagens com width/height declarados (CLS): altura segue a proporção */
:where(img[width][height]) { height: auto; }

/* Blog: tabelas, fontes e notas dentro do artigo */
.post-content .table-wrap { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 12px; }
.post-content table { width: 100%; border-collapse: collapse; font-size: 0.92rem; line-height: 1.5; }
.post-content th, .post-content td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.post-content th { background: var(--surface-alt); font-weight: 600; color: var(--ink); white-space: nowrap; }
.post-content tr:last-child td { border-bottom: none; }
.post-content td:first-child { white-space: nowrap; font-weight: 500; }
.post-content .post-fontes { font-size: 0.86rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 28px; }
.post-content .post-nota { font-size: 0.9rem; color: var(--ink-soft); }
.post-content strong { font-weight: 600; }
@media (max-width: 560px) {
  .post-content td:first-child { white-space: normal; }
}

/* Newsletter: envio para o CRM com feedback */
.newsletter .nl-form { display: grid; gap: 8px; justify-items: end; }
.newsletter .nl-linha { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter .nl-msg { font-size: 0.88rem; margin: 0; min-height: 0; }
.newsletter .nl-msg:empty { display: none; }
.newsletter .nl-msg.ok { color: var(--green); font-weight: 600; }
.newsletter .nl-msg.erro { color: #b3261e; }
.newsletter .nl-msg a { color: inherit; text-decoration: underline; }
.newsletter .nl-consent { font-size: 0.76rem; color: var(--ink-soft); max-width: 26rem; text-align: right; }
.newsletter .nl-form.enviando .btn { opacity: 0.7; pointer-events: none; }
.newsletter .nl-form.concluido .nl-linha, .newsletter .nl-form.concluido .nl-consent { display: none; }
@media (max-width: 760px) {
  .newsletter .nl-form { justify-items: start; }
  .newsletter .nl-consent { text-align: left; }
}

/* Fale conosco: feedback do envio ao CRM */
.form-acoes { display: grid; gap: 8px; }
.form-msg { font-size: 0.9rem; margin: 0; }
.form-msg:empty { display: none; }
.form-msg.ok { color: var(--green); font-weight: 600; }
.form-msg.erro { color: #b3261e; }
.form-msg a { color: inherit; text-decoration: underline; }
.form-consent { font-size: 0.76rem; color: var(--ink-soft); }
.form-grid.enviando .btn { opacity: 0.7; pointer-events: none; }
.form-grid.concluido .field input, .form-grid.concluido .field select, .form-grid.concluido .field textarea { opacity: 0.6; }

/* Botão flutuante do WhatsApp */
.whats-flutuante {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px;
  background: #25d366; color: #fff;
  border-radius: 999px;
  font-size: 0.92rem; font-weight: 600; text-decoration: none;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.42), 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.whats-flutuante:hover, .whats-flutuante:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(37, 211, 102, 0.5), 0 3px 8px rgba(0, 0, 0, 0.14); color: #fff; }
.whats-flutuante:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 3px; }
.whats-flutuante svg { width: 26px; height: 26px; flex: 0 0 auto; }
@media (max-width: 760px) {
  .whats-flutuante { right: 16px; bottom: 16px; padding: 14px; }
  .whats-flutuante span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .whats-flutuante svg { width: 28px; height: 28px; }
}
