/* ==========================================================================
   CLIMEC — Design System
   Extraído de exames.climec.com.br. CSS puro, sem build, para portar
   direto para os templates PHP do tema WordPress.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Paleta da marca */
  --roxo-climec: #552d89;
  --roxo-deep: #3d1f66;
  --verde-cta: #00b09d;
  --verde-cta-hover: #008a7c;
  --rosa: #ee498c;
  --laranja: #fec559;
  --azul-claro: #59ccf5;

  /* Neutros */
  --branco: #fff;
  --cinza-texto: #2e2e2e;
  --cinza-fundo: #f7f5fa;
  --muted-fg: #6b6577;
  --border: #e6e2ec;

  /* Semânticos */
  --bg: var(--branco);
  --fg: var(--cinza-texto);
  --primary: var(--roxo-climec);
  --primary-fg: var(--branco);

  /* Forma */
  --radius: .75rem;
  --radius-lg: 1rem;
  --radius-pill: 999px;

  /* Ritmo vertical */
  --sec-y: 80px;
  --sec-y-lg: 96px;
  --container: 1152px;
  --gutter: 20px;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(61, 31, 102, .06);
  --shadow-card: 0 2px 12px rgba(61, 31, 102, .06);
  --shadow-lift: 0 12px 32px rgba(61, 31, 102, .12);

  /* Tipografia */
  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--roxo-deep);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5vw, 3.75rem); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; overflow-wrap: break-word; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.35; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--roxo-climec); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 640px) { .container { padding-inline: 32px; } }

.section { padding-block: var(--sec-y); }
.section--lg { padding-block: var(--sec-y-lg); }
.section--tint { background: var(--cinza-fundo); }
.section--roxo { background: var(--roxo-climec); color: var(--branco); }
.section--roxo h2, .section--roxo h3 { color: var(--branco); }
.section--deep { background: var(--roxo-deep); color: var(--branco); }
.section--deep h1, .section--deep h2 { color: var(--branco); }
.section--verde { background: var(--verde-cta); color: var(--branco); }
.section--verde h2 { color: var(--branco); }

.narrow { max-width: 768px; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Tipografia de apoio ---------- */
.eyebrow {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--verde-cta);
  margin: 0 0 .75rem;
}
.section--roxo .eyebrow, .section--deep .eyebrow { color: var(--laranja); }

.lead { font-size: 1.125rem; color: var(--muted-fg); max-width: 62ch; }
.section--roxo .lead, .section--deep .lead, .section--verde .lead { color: rgba(255,255,255,.85); }

.sec-head { margin-bottom: 3rem; }
.sec-head.center .lead { margin-inline: auto; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head);
  font-size: .8125rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .95rem 1.75rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn--primary { background: var(--verde-cta); color: var(--branco); box-shadow: var(--shadow-card); }
.btn--primary:hover { background: var(--verde-cta-hover); color: var(--branco); box-shadow: var(--shadow-lift); }

.btn--roxo { background: var(--roxo-climec); color: var(--branco); }
.btn--roxo:hover { background: var(--roxo-deep); color: var(--branco); }

.btn--ghost { background: transparent; color: var(--branco); border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: var(--branco); color: var(--branco); }

.btn--outline { background: transparent; color: var(--roxo-climec); border-color: var(--border); }
.btn--outline:hover { border-color: var(--roxo-climec); background: var(--cinza-fundo); color: var(--roxo-climec); }

.btn--white { background: var(--branco); color: var(--verde-cta); }
.btn--white:hover { background: var(--cinza-fundo); color: var(--verde-cta-hover); }

.btn-row { display: flex; flex-wrap: wrap; gap: .875rem; margin-top: 2rem; }
.center .btn-row { justify-content: center; }

/* ---------- Grid e cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--branco);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); border-color: transparent; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted-fg); font-size: .9375rem; margin: 0; }

.section--tint .card { background: var(--branco); border-color: transparent; box-shadow: var(--shadow-card); }
.section--roxo .card { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }
.section--roxo .card p { color: rgba(255,255,255,.8); }
.section--roxo .card:hover { background: rgba(255,255,255,.13); transform: translateY(-2px); box-shadow: none; }

.card__icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--roxo-climec) 10%, transparent);
  color: var(--roxo-climec);
  margin-bottom: 1rem;
}
.section--roxo .card__icon { background: rgba(0,176,157,.22); color: var(--branco); }
.card__icon svg { width: 22px; height: 22px; }

/* ---------- Faixa de prova ---------- */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.proof__item { background: var(--cinza-fundo); padding: 1.75rem 1rem; text-align: center; }
.proof__num { font-family: var(--font-head); font-size: 2.25rem; font-weight: 800; color: var(--roxo-climec); line-height: 1; }
.proof__label { font-size: .8125rem; color: var(--muted-fg); margin-top: .5rem; }
@media (max-width: 640px) { .proof { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Passos ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: step; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 3.25rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 2.5rem; height: 2.5rem; border-radius: var(--radius-pill);
  display: grid; place-items: center;
  background: var(--verde-cta); color: var(--branco);
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
}
.step h3 { font-size: 1rem; margin-bottom: .375rem; }
.step p { color: var(--muted-fg); font-size: .9375rem; margin: 0; }

/* ---------- Destaque ---------- */
.callout {
  background: var(--verde-cta); color: var(--branco);
  border-radius: var(--radius-lg);
  padding: 2rem;
  font-family: var(--font-head); font-size: 1.25rem; font-weight: 600;
  line-height: 1.4; text-align: center;
}
.callout strong { display: block; font-weight: 700; }

.note {
  background: var(--cinza-fundo);
  border-left: 3px solid var(--verde-cta);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  color: var(--muted-fg);
  font-size: .9375rem;
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item > summary {
  font-family: var(--font-head); font-weight: 600; font-size: 1.0625rem;
  color: var(--roxo-deep);
  padding: 1.25rem 2.5rem 1.25rem 0;
  cursor: pointer; list-style: none; position: relative;
}
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__item > summary::after {
  content: ""; position: absolute; right: .5rem; top: 1.6rem;
  width: 10px; height: 10px;
  border-right: 2px solid var(--verde-cta); border-bottom: 2px solid var(--verde-cta);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq__item[open] > summary::after { transform: rotate(-135deg); }
.faq__answer { padding: 0 2.5rem 1.5rem 0; color: var(--muted-fg); }

/* ---------- Header ---------- */
.topbar { background: var(--roxo-deep); color: rgba(255,255,255,.85); font-size: .8125rem; padding: .5rem 0; }
.topbar .container { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.topbar a { color: var(--branco); font-weight: 600; }
@media (max-width: 720px) { .topbar__left { display: none; } .topbar .container { justify-content: center; } }

.header { position: sticky; top: 0; z-index: 50; background: var(--branco); border-bottom: 1px solid var(--border); }
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem; min-height: 72px;
  max-width: 1320px; /* mais largo que o container de leitura: 8 itens de menu não cabem em 1152px */
}

/* O logo não encolhe. Sem flex-shrink 0, o menu de 8 itens e o botão
   espremem o flex item até largura zero, e o `img { max-width: 100% }` do
   reset faz a imagem sumir junto. */
.header__logo { flex: 0 0 auto; display: block; }
.header__logo img { height: 40px; width: auto; max-width: none; }
.header__logo .custom-logo-link { display: block; }

.nav { display: flex; align-items: center; gap: 1.125rem; flex: 0 1 auto; min-width: 0; }
.nav a { font-family: var(--font-head); font-size: .875rem; font-weight: 500; color: var(--cinza-texto); white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--roxo-climec); text-decoration: none; }
.nav a[aria-current="page"] { font-weight: 600; }
.header .btn { padding: .7rem 1.1rem; font-size: .7rem; white-space: nowrap; flex: 0 0 auto; }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--roxo-deep); }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 1200px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; top: 0;
    background: var(--roxo-climec);
    flex-direction: column; justify-content: center; gap: .5rem;
    transform: translateX(100%); transition: transform .25s ease, visibility .25s;
    padding: 5rem 2rem 2rem;
    visibility: hidden;
  }
  /* Estado aberto do menu, por CLASSE e nao por atributo.
     Com `.nav[data-open="true"]` o menu nao abria no celular: o clique trocava
     o atributo, mas o Chrome nao recalculava o estilo — invalidacao furada,
     agravada pelo `:has()` que dependia do mesmo atributo. Classe invalida
     sempre, e ainda funciona em navegador sem suporte a `:has()`.
     O data-open continua sendo escrito, so nao decide mais o visual. */
  .nav.is-open { transform: translateX(0); visibility: visible; }

  /* O menu abre DENTRO do .header, que e contexto de empilhamento em z-index
     50 — sem isto ele fica por baixo do botao flutuante de WhatsApp (60) e do
     banner de cookies (70). Filho nenhum escapa do z-index do pai. */
  .header.tem-menu-aberto { z-index: 90; }

  .nav a { color: var(--branco); font-size: 1.25rem; font-weight: 600; padding: .625rem 0; }
  .nav a:hover, .nav a[aria-current="page"] { color: var(--laranja); }
  .nav__close { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: 0; color: var(--branco); cursor: pointer; }
  .nav__close svg { width: 28px; height: 28px; }
  .header__cta-desktop { display: none; }
}
@media (min-width: 1201px) { .nav__close { display: none; } }

/* ---------- Hero ---------- */
.hero { background: var(--roxo-deep); color: var(--branco); position: relative; overflow: hidden; isolation: isolate; padding-block: var(--sec-y-lg); }
.hero h1 { color: var(--branco); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.hero__sub { font-size: 1.1875rem; color: rgba(255,255,255,.86); max-width: 46ch; }
.hero__meta { margin-top: 2rem; font-size: .875rem; color: rgba(255,255,255,.7); }
.hero__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); }

.hero__mark {
  position: absolute; right: -80px; top: 50%; transform: translateY(-50%);
  width: 420px; height: 420px; opacity: .18; pointer-events: none;
}
@media (max-width: 900px) { .hero__mark { display: none; } }

/* Placeholder de imagem ainda não fornecida */
.ph {
  display: grid; place-items: center; text-align: center;
  min-height: 280px; padding: 2rem;
  border: 2px dashed rgba(255,255,255,.3); border-radius: var(--radius-lg);
  color: rgba(255,255,255,.6); font-size: .875rem; font-family: var(--font-head);
}
.ph--light { border-color: var(--border); color: var(--muted-fg); background: var(--cinza-fundo); }

/* ---------- Antes e depois ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 800px) { .compare { grid-template-columns: 1fr; } }
.compare__col { border-radius: var(--radius-lg); padding: 2rem; }
.compare__col--before { background: var(--cinza-fundo); }
.compare__col--after { background: var(--roxo-climec); color: var(--branco); }
.compare__col--after h3 { color: var(--branco); }
.compare ul { list-style: none; margin: 0; padding: 0; }
.compare li { padding: .625rem 0 .625rem 1.75rem; position: relative; font-size: .9375rem; }
.compare__col--before li { color: var(--muted-fg); }
.compare__col--before li::before { content: "×"; position: absolute; left: 0; top: .5rem; color: var(--rosa); font-size: 1.25rem; line-height: 1; }
.compare__col--after li { color: rgba(255,255,255,.9); border-top: 1px solid rgba(255,255,255,.12); }
.compare__col--after li:first-child { border-top: 0; }
.compare__col--after li::before { content: "✓"; position: absolute; left: 0; top: .7rem; color: var(--verde-cta); font-weight: 700; }
.section--tint .compare__col--before { background: var(--branco); }

/* ---------- Rodapé ---------- */
.footer { background: var(--roxo-deep); color: rgba(255,255,255,.75); padding-block: 4rem 0; font-size: .9375rem; }
.footer h4 { font-family: var(--font-head); font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--branco); margin-bottom: 1.25rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.5rem; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .625rem; }
.footer a { color: rgba(255,255,255,.75); }
.footer a:hover { color: var(--branco); }
.footer__logo { height: 44px; width: auto; margin-bottom: 1.25rem; }
.footer__social { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.25rem; font-size: .875rem; }
.footer__social svg { width: 18px; height: 18px; flex: none; }
.footer__unit { margin-bottom: 1.5rem; line-height: 1.55; }
.footer__unit strong { color: var(--branco); display: block; font-family: var(--font-head); font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .375rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 3rem; padding-block: 1.5rem; font-size: .8125rem; color: rgba(255,255,255,.55); }
.footer__bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer__lgpd { font-size: .75rem; color: rgba(255,255,255,.45); padding-bottom: 1.5rem; max-width: 72ch; }


/* ---------- Utilidades ---------- */
.pending {
  display: inline-block; background: var(--laranja); color: var(--roxo-deep);
  font-family: var(--font-head); font-size: .6875rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .2rem .5rem; border-radius: 4px;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--branco); padding: .75rem 1.25rem; border-radius: var(--radius); }

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

/* ---------- Âncoras de serviço ---------- */
.anchors { position: sticky; top: 72px; z-index: 40; background: var(--branco); border-bottom: 1px solid var(--border); }
.anchors .container { display: flex; gap: .5rem; overflow-x: auto; padding-block: .875rem; scrollbar-width: none; }
.anchors .container::-webkit-scrollbar { display: none; }
.anchors a {
  flex: 0 0 auto; font-family: var(--font-head); font-size: .8125rem; font-weight: 600;
  color: var(--muted-fg); background: var(--cinza-fundo);
  padding: .5rem 1rem; border-radius: var(--radius-pill); white-space: nowrap;
}
.anchors a:hover { background: var(--roxo-climec); color: var(--branco); text-decoration: none; }

/* ---------- Bloco de serviço ---------- */
.svc { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .svc { grid-template-columns: 1fr; gap: 2rem; } }

.ticks { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.ticks li { position: relative; padding: .625rem 0 .625rem 1.875rem; border-top: 1px solid var(--border); font-size: .9375rem; }
.ticks li:first-child { border-top: 0; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 1.15rem;
  width: 9px; height: 5px; border-left: 2px solid var(--verde-cta); border-bottom: 2px solid var(--verde-cta);
  transform: rotate(-45deg);
}
.ticks strong { color: var(--roxo-deep); font-weight: 600; }

/* ---------- Consulta de cobertura ---------- */
.lookup { display: flex; gap: .75rem; max-width: 520px; margin-inline: auto; }
.lookup input {
  flex: 1; font-family: var(--font-body); font-size: 1rem;
  padding: .95rem 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: var(--branco); color: var(--fg);
}
.lookup input:focus { outline: 3px solid var(--verde-cta); outline-offset: 1px; border-color: transparent; }
@media (max-width: 520px) { .lookup { flex-direction: column; } .lookup .btn { width: 100%; } }

/* ---------- Bloco de segmento ---------- */
.seg { background: var(--branco); border-radius: var(--radius-lg); padding: 2rem; margin-bottom: 1.5rem; box-shadow: var(--shadow-card); }
.seg h3 { font-size: 1.375rem; font-family: var(--font-head); font-weight: 700; color: var(--roxo-climec); margin-bottom: 1.5rem; }
.seg__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
@media (max-width: 860px) { .seg__grid { grid-template-columns: 1fr; gap: 1.25rem; } }
.seg__label {
  display: block; font-family: var(--font-head); font-size: .6875rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--verde-cta); margin-bottom: .5rem;
}
.seg p { color: var(--muted-fg); font-size: .9375rem; margin: 0; }

/* ---------- Blog ---------- */
.topic h3 { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--verde-cta); margin-bottom: 1rem; }
.topic ul { list-style: none; margin: 0; padding: 0; }
.topic li { border-top: 1px solid var(--border); }
.topic a { display: flex; justify-content: space-between; gap: .75rem; padding: .625rem 0; font-size: .9375rem; color: var(--cinza-texto); }
.topic a:hover { color: var(--roxo-climec); text-decoration: none; }
.topic span { color: var(--muted-fg); font-size: .8125rem; font-variant-numeric: tabular-nums; }

.post { background: var(--branco); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); transition: box-shadow .2s ease, transform .2s ease; }
.post:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.post__img { min-height: 160px; border-radius: 0; border: 0; font-size: .75rem; }
.post__cat { display: block; padding: 1.25rem 1.5rem 0; font-family: var(--font-head); font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--verde-cta); }
.post h3 { padding: .5rem 1.5rem; font-size: 1.0625rem; line-height: 1.35; }
.post__meta { display: block; padding: 0 1.5rem 1.5rem; font-size: .8125rem; color: var(--muted-fg); }

/* ---------- Contato ---------- */
.contact { display: grid; grid-template-columns: 1.35fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 2.5rem; } }

.form { background: var(--branco); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-card); }
.field { margin-bottom: 1.125rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.field label { display: block; font-family: var(--font-head); font-size: .8125rem; font-weight: 600; color: var(--roxo-deep); margin-bottom: .375rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: .9375rem; color: var(--fg);
  padding: .75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--branco);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--verde-cta); outline-offset: 0; border-color: transparent; }

.consent { display: flex; gap: .75rem; align-items: flex-start; margin: 1.25rem 0 1.5rem; font-size: .875rem; color: var(--muted-fg); }
.consent input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--verde-cta); flex: 0 0 auto; }
.form .btn { width: 100%; }

.channels { display: grid; gap: 1.5rem; }
.channel h3 { font-size: 1rem; margin-bottom: .375rem; }
.channel p { color: var(--muted-fg); font-size: .9375rem; }
.channel .btn { margin-top: .875rem; }
.channel--box { background: var(--cinza-fundo); border-radius: var(--radius-lg); padding: 1.5rem; }

/* ---------- Documento longo ---------- */
.doc h2 { font-size: 1.25rem; margin-top: 2.5rem; }
.doc p { color: var(--muted-fg); }
.doc .ticks li { color: var(--muted-fg); }

/* ==========================================================================
   Artigo
   ========================================================================== */

.article { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 4rem; align-items: start; }
@media (max-width: 1000px) { .article { grid-template-columns: 1fr; gap: 2rem; } }

/* Cabeçalho */
.crumbs { font-size: .8125rem; color: var(--muted-fg); margin-bottom: 1.25rem; }
.crumbs a { color: var(--muted-fg); }
.crumbs a:hover { color: var(--roxo-climec); }
.crumbs span { margin-inline: .5rem; opacity: .5; }

.article__cat {
  display: inline-block; font-family: var(--font-head); font-size: .6875rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--branco);
  background: var(--roxo-climec); padding: .3rem .7rem; border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}
.article__cat:hover { background: var(--roxo-deep); text-decoration: none; }
.article__title { font-size: clamp(1.875rem, 4vw, 2.75rem); margin-bottom: 1rem; }
.article__meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center;
  font-size: .875rem; color: var(--muted-fg);
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--border);
}
.article__meta strong { color: var(--cinza-texto); font-weight: 600; }
.article__review { display: flex; align-items: center; gap: .5rem; color: var(--verde-cta-hover); font-weight: 500; }
.article__review svg { width: 16px; height: 16px; flex: 0 0 auto; }
.article__hero { margin: 2rem 0; border-radius: var(--radius-lg); overflow: hidden; }

/* Índice lateral */
.toc { position: sticky; top: 100px; font-size: .875rem; }
@media (max-width: 1000px) {
  .toc { position: static; background: var(--cinza-fundo); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; }
}
.toc h2 {
  font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-fg); margin-bottom: 1rem;
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: block; padding: .4rem 0 .4rem 1.5rem; color: var(--muted-fg); position: relative;
  border-left: 2px solid var(--border); margin-left: -2px; line-height: 1.4;
}
.toc a::before { content: counter(toc); position: absolute; left: .5rem; font-size: .6875rem; opacity: .6; }
.toc a:hover, .toc a[aria-current="true"] { color: var(--roxo-climec); border-left-color: var(--verde-cta); text-decoration: none; }

/* Corpo do texto */
.prose { font-size: 1.0625rem; line-height: 1.75; max-width: 68ch; }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 { font-size: 1.5rem; margin-top: 3rem; scroll-margin-top: 100px; }
.prose h3 { font-size: 1.1875rem; margin-top: 2rem; color: var(--roxo-climec); }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: .5rem; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.5rem; }
.prose ul li::before { content: ""; position: absolute; left: .25rem; top: .7rem; width: 6px; height: 6px; border-radius: 50%; background: var(--verde-cta); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.prose figure { margin: 2rem 0; }
.prose figure img { border-radius: var(--radius); }
.prose figcaption { font-size: .8125rem; color: var(--muted-fg); margin-top: .625rem; text-align: center; }
.prose strong { color: var(--roxo-deep); font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--verde-cta); padding: .25rem 0 .25rem 1.5rem;
  color: var(--muted-fg); font-style: normal;
}
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.prose th, .prose td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--border); }
.prose th { font-family: var(--font-head); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--roxo-deep); background: var(--cinza-fundo); }
.prose .scroll-x { overflow-x: auto; }

/* Abertura em destaque */
.prose > p:first-child { font-size: 1.1875rem; color: var(--cinza-texto); }

/* TL;DR — padrão editorial da casa, e o trecho que os buscadores citam */
.tldr {
  background: var(--cinza-fundo); border-left: 4px solid var(--verde-cta);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.5rem 1.75rem; font-size: 1rem;
}
.tldr__label {
  display: block; font-family: var(--font-head); font-size: .6875rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--verde-cta-hover); margin-bottom: .5rem;
}

/* Bloco Climec no meio do artigo */
.inline-cta {
  background: var(--roxo-climec); color: var(--branco);
  border-radius: var(--radius-lg); padding: 1.75rem 2rem;
  display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; justify-content: space-between;
}
.inline-cta p { color: rgba(255,255,255,.9); font-size: .9375rem; margin: 0; max-width: 46ch; }
.inline-cta strong { color: var(--branco); display: block; font-family: var(--font-head); font-size: 1.0625rem; margin-bottom: .25rem; }
.inline-cta .btn { flex: 0 0 auto; }

/* Rodapé do artigo */
.article__foot { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.share { display: flex; gap: .625rem; align-items: center; flex-wrap: wrap; font-size: .875rem; color: var(--muted-fg); }
.share a {
  width: 38px; height: 38px; border-radius: var(--radius-pill); display: grid; place-items: center;
  border: 1px solid var(--border); color: var(--muted-fg);
}
.share a:hover { background: var(--roxo-climec); border-color: transparent; color: var(--branco); }
.share svg { width: 17px; height: 17px; }

/* ---------- Chips de categoria ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .625rem; justify-content: center; }
.chips a {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-size: .875rem; font-weight: 500;
  color: var(--cinza-texto); background: var(--cinza-fundo);
  padding: .55rem 1.125rem; border-radius: var(--radius-pill);
}
.chips a:hover { background: var(--roxo-climec); color: var(--branco); text-decoration: none; }
.chips a:hover span { color: rgba(255,255,255,.7); }
.chips span { font-size: .75rem; color: var(--muted-fg); font-variant-numeric: tabular-nums; }

/* ---------- Confirmação ---------- */
.done {
  width: 72px; height: 72px; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--verde-cta) 15%, transparent);
  color: var(--verde-cta-hover);
  display: grid; place-items: center; margin: 0 auto 1.5rem;
}
.done svg { width: 36px; height: 36px; }

/* ---------- Submenu de Soluções ---------- */
.nav__has-sub { position: relative; }
.nav__has-sub > a { display: inline-flex; align-items: center; gap: .3rem; }
.nav__caret { width: 13px; height: 13px; transition: transform .18s ease; }
.nav__sub {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 230px; background: var(--branco);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift); padding: .5rem;
  opacity: 0; visibility: hidden; transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav__has-sub:hover .nav__sub, .nav__has-sub:focus-within .nav__sub {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav__has-sub:hover .nav__caret, .nav__has-sub:focus-within .nav__caret { transform: rotate(180deg); }
.nav__sub a { display: block; padding: .55rem .875rem; border-radius: var(--radius); font-size: .875rem; font-weight: 500; }
.nav__sub a:hover { background: var(--cinza-fundo); color: var(--roxo-climec); text-decoration: none; }

.header__cta-mobile { display: none; }

@media (max-width: 1200px) {
  .header__cta-mobile { display: inline-flex; padding: .65rem 1.1rem; font-size: .7rem; margin-left: auto; }
  .nav__has-sub { position: static; }
  .nav__caret { display: none; }
  .nav__sub {
    position: static; transform: none; opacity: 1; visibility: visible;
    background: transparent; border: 0; box-shadow: none; padding: 0 0 0 1rem; min-width: 0;
  }
  .nav__sub a { color: rgba(255,255,255,.72); font-size: .9375rem; padding: .4rem 0; }
  .nav__sub a:hover { background: transparent; color: var(--laranja); }
}
@media (min-width: 1201px) { .header__cta-mobile { display: none; } }

/* ---------- Consentimento de cookies ---------- */
.cookies {
  position: fixed; inset: auto 0 0 0; z-index: 70;
  background: var(--branco); border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(61,31,102,.12);
  padding: 1.25rem 0;
}
.cookies[hidden] { display: none; }
.cookies__inner {
  width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cookies p { font-size: .875rem; color: var(--muted-fg); margin: 0; max-width: 68ch; }
.cookies__actions { display: flex; gap: .625rem; flex-wrap: wrap; }
.cookies .btn { padding: .7rem 1.25rem; font-size: .7rem; }
@media (max-width: 640px) { .cookies__inner { flex-direction: column; align-items: stretch; } .cookies__actions .btn { flex: 1; } }

/* ---------- Estados do formulário ---------- */
.field--invalid input, .field--invalid select, .field--invalid textarea { border-color: var(--rosa); }
.field__error { display: block; font-size: .8125rem; color: var(--rosa); margin-top: .375rem; }
.consent--invalid { color: var(--rosa); }
.consent--invalid input { outline: 2px solid var(--rosa); }
.form__status { margin-top: 1rem; padding: .875rem 1.125rem; border-radius: var(--radius); font-size: .9375rem; }
.form__status[hidden] { display: none; }
.form__status--ok { background: color-mix(in srgb, var(--verde-cta) 12%, transparent); color: var(--verde-cta-hover); }
.form__status--erro { background: color-mix(in srgb, var(--rosa) 12%, transparent); color: #c2185b; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* Card que ocupa a linha inteira, em qualquer número de colunas.
   `grid-column: span N` fixo estoura o grid quando ele vira 1 coluna no mobile. */
.span-full { grid-column: 1 / -1; }

/* Links legais do rodapé */
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* Honeypot: invisível para pessoa, preenchível por robô */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   Seção do Datare em fundo escuro
   As capturas do sistema vêm no tema escuro. Em vez de pedir recaptura em
   tema claro, a seção acompanha: o produto ganha destaque e a emenda some.
   ========================================================================== */

.section--datare {
  background: radial-gradient(120% 100% at 50% 0%, #241a35 0%, var(--roxo-deep) 55%, #120d1c 100%);
  color: var(--branco);
  position: relative;
  overflow: hidden;
}
.section--datare h2, .section--datare h3 { color: var(--branco); }
.section--datare .lead { color: rgba(255,255,255,.78); }
.section--datare .eyebrow { color: var(--azul-claro); }
.section--datare .card {
  background: rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.1);
}
.section--datare .card:hover { background: rgba(255,255,255,.09); box-shadow: none; }
.section--datare .card p { color: rgba(255,255,255,.72); }
.section--datare .card__icon { background: rgba(89,204,245,.16); color: var(--azul-claro); }

/* moldura da captura */
figure.shot { margin: 0; }
.shot {
  max-width: 100%;
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.04);
  background: #16101f;
}
.shot__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px; background: rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.shot__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.shot__bar span {
  margin-left: 10px; font-family: var(--font-body); font-size: .6875rem;
  color: rgba(255,255,255,.4); letter-spacing: .02em;
}
.shot img { display: block; width: 100%; height: auto; }
.shot__cap {
  padding: .75rem 1rem; font-size: .75rem; color: rgba(255,255,255,.5);
  background: rgba(0,0,0,.25); border-top: 1px solid rgba(255,255,255,.07);
  text-align: center;
}

/* ==========================================================================
   Carrossel
   Rolagem nativa com scroll-snap. O JS só sincroniza os controles: sem ele,
   o carrossel continua funcionando por arraste e por teclado.
   ========================================================================== */

.carousel { position: relative; }

/* As setas se ancoram no viewport, que contém só a imagem. Ancoradas no
   .carousel elas ficariam no meio de imagem + pontos + legenda, ou seja
   abaixo do centro da imagem. */
.carousel__viewport { position: relative; }

.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* A suavização vem do JS, pelo `behavior` do scrollTo. Declarada aqui, ela
     entrava em conflito com o scroll programático e o carrossel não saía do
     lugar em tela estreita. */
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: .25rem;
}
.carousel__track::-webkit-scrollbar { display: none; }
/* `start` e não `center`: com `center` + `mandatory` o último slide não tem
   espaço para ser centralizado, e o snap o devolve para o anterior. */
.carousel__slide { scroll-snap-align: start; margin: 0; }

/* setas */
.carousel__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: var(--radius-pill);
  display: grid; place-items: center;
  background: var(--branco); color: var(--roxo-deep);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lift);
  cursor: pointer; z-index: 2;
  transition: background-color .18s ease, transform .18s ease, opacity .18s ease;
}
.carousel__nav:hover { background: var(--cinza-fundo); transform: translateY(-50%) scale(1.05); }
.carousel__nav[disabled] { opacity: .3; pointer-events: none; }
.carousel__nav svg { width: 20px; height: 20px; }
.carousel__nav--prev { left: -14px; }
.carousel__nav--next { right: -14px; }
@media (max-width: 1000px) {
  .carousel__nav--prev { left: 8px; }
  .carousel__nav--next { right: 8px; }
}

/* Em tela pequena as setas cobririam a imagem: 44px cada sobre ~333px de
   largura. O swipe já funciona, e os pontos dão o controle discreto. */
@media (max-width: 640px) {
  .carousel__nav { display: none; }
}

/* pontos */
.carousel__dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.5rem; }
.carousel__dot {
  width: 9px; height: 9px; border-radius: 50%; padding: 0;
  border: 0; cursor: pointer; position: relative;
  background: rgba(255,255,255,.28);
  transition: background-color .18s ease, width .18s ease;
}
/* alvo de toque de 44px sem engordar o ponto */
.carousel__dot::after {
  content: ""; position: absolute; inset: -18px -8px;
}
.carousel__dot[aria-current="true"] { background: var(--verde-cta); width: 26px; border-radius: 999px; }
.section--tint .carousel__dot, body:not(.dark) .section:not(.section--datare):not(.section--roxo) .carousel__dot { background: var(--border); }

/* legenda anunciada e visível */
.carousel__status {
  text-align: center; margin-top: .75rem;
  font-size: .8125rem; color: rgba(255,255,255,.55);
}


/* ==========================================================================
   Mapa das unidades
   Imagem do OpenStreetMap servida do próprio domínio, não incorporada. Um
   iframe do Google Maps carregaria cookie de terceiro antes do consentimento,
   o que contradiz a Política de Privacidade do próprio site.
   ========================================================================== */

.mapa {
  display: block; position: relative;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border);
  background: var(--cinza-fundo);
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
}
.mapa:hover, .mapa:focus-visible { box-shadow: var(--shadow-lift); transform: translateY(-2px); text-decoration: none; }
.mapa img { display: block; width: 100%; height: auto; }

/* leve dessaturação, para o mapa não competir com a marca */
.mapa__img { filter: saturate(.82) contrast(1.02); }
.mapa:hover .mapa__img { filter: saturate(1) contrast(1.02); }

/* alfinete */
.mapa__pin {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -100%);
  width: 32px; height: 32px;
  color: var(--rosa);
  filter: drop-shadow(0 3px 5px rgba(0,0,0,.35));
  pointer-events: none;
}
.mapa__pin svg { width: 100%; height: 100%; }

/* faixa de ação, sobre o mapa */
.mapa__acao {
  position: absolute; inset: auto 0 0 0;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .75rem 1rem;
  background: linear-gradient(to top, rgba(61,31,102,.94), rgba(61,31,102,.78) 60%, transparent);
  color: var(--branco);
  font-family: var(--font-head); font-size: .8125rem; font-weight: 600;
}
.mapa__acao span { display: inline-flex; align-items: center; gap: .4rem; }
.mapa__acao svg { width: 16px; height: 16px; flex: 0 0 auto; }
.mapa__acao em { font-style: normal; font-weight: 400; font-size: .75rem; color: rgba(255,255,255,.7); }

/* atribuição exigida pela licença do OpenStreetMap */
.mapa__credito {
  position: absolute; right: 6px; top: 6px;
  background: rgba(255,255,255,.82); color: #444;
  font-size: 10px; line-height: 1; padding: 3px 6px; border-radius: 4px;
  font-family: var(--font-body);
}

/* Faixa de prova com três números, enquanto o quarto não existe */
.proof--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .proof--3 { grid-template-columns: 1fr; } }

/* Barra superior: acesso do cliente ao lado do telefone */
.topbar__right { display: flex; align-items: center; gap: 1.25rem; }
.topbar__right a:first-child { font-weight: 500; color: rgba(255,255,255,.8); }
.topbar__right a:first-child:hover { color: var(--branco); }
@media (max-width: 560px) { .topbar__right { gap: .875rem; font-size: .75rem; } }
