/* Cache Web — camada de layout das paginas (sobre o bundle.css do design system).
   Objetivo: leitura premium, com quebra clara entre secoes claras e escuras. */

html { scroll-behavior: smooth; }
body.cw { margin: 0; background: var(--surface-0); }
img { max-width: 100%; height: auto; display: block; }

/* ---------- Secoes escuras (quebra de ritmo) ---------- */
.cw-section--dark {
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(242,106,33,.16), transparent 60%),
    radial-gradient(700px 520px at 92% 110%, rgba(47,93,168,.38), transparent 62%),
    var(--navy-900);
  color: var(--on-navy);
  position: relative;
  isolation: isolate;
}
.cw-section--dark::after {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 10%, transparent 72%);
}
.cw-section--dark .cw-h1,
.cw-section--dark .cw-h2,
.cw-section--dark .cw-h3,
.cw-section--dark .cw-card__title { color: var(--on-navy); }
.cw-section--dark .cw-lead,
.cw-section--dark .cw-card__text,
.cw-section--dark p { color: var(--on-navy-muted); }
.cw-section--dark .cw-overline { color: var(--orange-500); }
.cw-section--dark .cw-mark { background: linear-gradient(transparent 62%, rgba(242,106,33,.45) 62%); }
.cw-section--dark .cw-card {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.14);
  box-shadow: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.cw-section--dark .cw-card:hover { background: rgba(255,255,255,.08); border-color: rgba(242,106,33,.45); }
.cw-section--dark .cw-card__link { color: var(--orange-500); }
.cw-section--dark .cw-badge { background: rgba(255,255,255,.1); color: #fff; }
.cw-section--dark .cw-badge--warm { background: rgba(242,106,33,.18); color: #ffb183; }
.cw-rule--light { border: 0; border-top: 1px solid rgba(255,255,255,.16); }

/* ---------- Cabecalho de secao numerado (tom "projeto de arquitetura") ---------- */
.cw-sechead { display: grid; gap: 16px; max-width: 760px; margin-bottom: 56px; }
.cw-sechead__num {
  font: 700 13px/1 var(--font-sans); letter-spacing: .22em;
  color: var(--orange-600); display: flex; align-items: center; gap: 14px;
}
.cw-sechead__num::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .35; max-width: 120px; }
.cw-section--dark .cw-sechead__num { color: var(--orange-500); }

/* ---------- Hero ---------- */
.cw-hero--full { min-height: 86vh; align-items: center; }
.cw-hero--full .cw-h1 { font-size: clamp(44px, 6.4vw, 76px); }
.cw-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 10px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  font: 600 12.5px/1 var(--font-sans); letter-spacing: .12em; color: #fff; text-transform: uppercase;
}
.cw-hero__meta {
  display: flex; gap: 0; margin-top: 40px; border-top: 1px solid rgba(255,255,255,.16); padding-top: 22px;
}
.cw-hero__meta div { padding-right: 36px; margin-right: 36px; border-right: 1px solid rgba(255,255,255,.14); }
.cw-hero__meta div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.cw-hero__meta b { display: block; font: 800 15px/1.3 var(--font-sans); color: #fff; }
.cw-hero__meta span { font: 500 13px/1.5 var(--font-sans); color: var(--on-navy-muted); }

/* ---------- Historia com scroll: cada etapa leva ao software ---------- */
.cw-story { margin: 0; grid-column: 1 / -1; width: 100%; }
.cw-story__step { max-width: 520px; }
.cw-story__step h3 { margin: 0 0 6px; }
.cw-story__step p { color: var(--ink-muted); font-size: 17px; line-height: 1.65; margin-bottom: 4px; }
.cw-story__step p strong { color: var(--navy-900); }
.cw-section--dark .cw-story__step p strong { color: #fff; }
.cw-story__step .cw-overline { color: var(--orange-600); }
.cw-story__cta { margin-top: 10px; }
.cw-story__price { font: 500 13.5px/1.4 var(--font-sans); color: var(--ink-muted); margin-top: 10px; }
.cw-section--dark .cw-story__price { color: var(--on-navy-muted); }
.cw-section--dark .cw-story__chip { background: rgba(10,31,68,.78); border-color: rgba(255,255,255,.18); color: #fff; }
.cw-section--dark .cw-story__dot { background: rgba(255,255,255,.26); }
.cw-section--dark .cw-story__dot.is-active { background: var(--orange-500); }
.cw-section--dark .cw-story__stage::before { background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.2px); }

/* ---------- Cards do ecossistema ---------- */
.cw-prodcard { display: flex; flex-direction: column; gap: 8px; height: 100%; text-decoration: none; }
.cw-prodcard .cw-card__title { margin: 6px 0 0; }
.cw-prodcard__foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cw-prodcard__price { font: 600 13px/1.3 var(--font-sans); color: var(--ink-muted); }
.cw-section--dark .cw-prodcard__price { color: var(--on-navy-muted); }

/* ---------- Portfolio editorial ---------- */
.cw-folio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.cw-folio__item {
  position: relative; display: block; text-decoration: none; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--line-100); background: var(--surface-0);
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .4s, border-color .3s;
}
.cw-folio__item:hover { box-shadow: var(--shadow-md); border-color: var(--line-300); }
.cw-folio__shot { aspect-ratio: 16 / 10; background: var(--surface-100); overflow: hidden; }
.cw-folio__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.cw-folio__item:hover .cw-folio__shot img { transform: scale(1.04); }
.cw-folio__body { padding: 22px 24px 26px; display: grid; gap: 6px; }
.cw-folio__idx { font: 700 12px/1 var(--font-sans); letter-spacing: .2em; color: var(--orange-600); }
.cw-folio__name { font: 700 21px/28px var(--font-sans); color: var(--ink); }
.cw-folio__kind { font: 500 14px/20px var(--font-sans); color: var(--ink-muted); }
@media (max-width: 820px) { .cw-folio { grid-template-columns: 1fr; } }

/* ---------- Sobre ---------- */
.cw-about { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.cw-about__photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-100); background: var(--surface-100); aspect-ratio: 4 / 5; }
.cw-about__photo img { width: 100%; height: 100%; object-fit: cover; }
.cw-about__list { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 12px; }
.cw-about__list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-muted); font: 500 15.5px/1.5 var(--font-sans); }
.cw-about__list li::before { content: "—"; color: var(--orange-600); font-weight: 700; }
@media (max-width: 860px) { .cw-about { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Rodape ---------- */
.cw-foot { background: var(--navy-900); color: var(--on-navy-muted); padding: 72px 0 28px; }
.cw-foot a { color: var(--on-navy-muted); text-decoration: none; transition: color .2s; }
.cw-foot a:hover { color: #fff; }
.cw-foot__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; }
.cw-foot h3 { font: 700 13px/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0 0 18px; }
.cw-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; font-size: 15px; }
.cw-foot__bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px;
}
@media (max-width: 820px) { .cw-foot__grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Botao flutuante do WhatsApp ---------- */
.cw-wa {
  position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(37,211,102,.7); z-index: 60; transition: transform .25s;
}
.cw-wa:hover { transform: translateY(-3px) scale(1.04); }

a.cw-card { text-decoration: none; display: block; }

@media (max-width: 760px) {
  .cw-hero--full { min-height: 0; }
  .cw-hero__meta { flex-wrap: wrap; gap: 18px; }
  .cw-hero__meta div { border-right: 0; margin-right: 0; padding-right: 0; }
}

/* ---------- Miniatura do produto nos cards ---------- */
.cw-prodcard__shot {
  margin: -8px -8px 6px; border-radius: var(--radius-md); overflow: hidden;
  aspect-ratio: 16 / 9; background: var(--surface-100); border: 1px solid var(--line-100);
}
.cw-prodcard__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.cw-card:hover .cw-prodcard__shot img { transform: scale(1.05); }
.cw-prodcard__shot--ph {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-500));
  border-color: transparent;
}
.cw-prodcard__shot--ph span { font: 700 13px/1 var(--font-sans); letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.82); }
.cw-section--dark .cw-prodcard__shot { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }

/* ---------- Faixa de clientes ---------- */
.cw-clients { margin: 0 0 48px; padding-bottom: 36px; border-bottom: 1px solid var(--line-100); }
.cw-clients__label { display: block; font: 700 12px/1 var(--font-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 22px; }
.cw-clients__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 36px; }
.cw-clients__list img { height: 34px; width: auto; opacity: .55; filter: grayscale(1); transition: opacity .3s, filter .3s; }
.cw-clients__list li:hover img { opacity: 1; filter: grayscale(0); }
@media (max-width: 620px) { .cw-clients__list { gap: 24px; } .cw-clients__list img { height: 26px; } }

/* ---------- Ajustes finos de escala e contraste ---------- */
.cw-hero--full .cw-h1 { font-size: clamp(38px, 4.2vw, 56px); max-width: 15ch; }
.cw-hero--full .cw-lead { max-width: 52ch; }

/* Destaque laranja sobre fundo escuro (o marca-texto claro vira bloco sujo no navy) */
.cw-section--dark .cw-mark {
  background: none;
  color: var(--orange-500);
  padding: 0;
  box-shadow: inset 0 -2px 0 0 rgba(242,106,33,.55);
}

/* Funil de particulas sobre fundo escuro */
.cw-section--dark .cw-hero__canvas { mix-blend-mode: screen; opacity: 1; }

/* Historia: menos vazio vertical, leitura mais densa */
.cw-story { --cw-story-h: 72vh; }
.cw-story__step { min-height: calc(var(--cw-story-h) * .62); }
.cw-story__steps { padding-bottom: calc(var(--cw-story-h) * .22); }
.cw-story__stage { height: var(--cw-story-h); top: 14vh; }
.cw-story__chip { bottom: 2%; }

/* =========================================================
   CORRECOES DE CONTRASTE E ALINHAMENTO AO DESIGN SYSTEM
   (base clara; o navy entra so como quebra pontual)
   ========================================================= */

/* --- Contraste: texto da historia dentro da secao escura --- */
.cw-section--dark .cw-story__step p,
.cw-section--dark .cw-story__price { color: var(--on-navy-muted); }
.cw-section--dark .cw-story__step .cw-overline { color: var(--orange-500); }

/* --- Contraste: links sem classe no rodape (o bundle pinta de navy-500) --- */
.cw-foot a,
.cw-foot a:not([class]) { color: var(--on-navy-muted); }
.cw-foot a:hover,
.cw-foot a:not([class]):hover { color: #fff; }
.cw-section--dark a:not([class]) { color: #fff; }

/* --- Placeholder do card sem screenshot: cor de fundo solida de seguranca --- */
.cw-prodcard__shot--ph { background-color: var(--navy-900); }

/* --- HERO claro (volta a identidade branca do design system) --- */
.cw-hero-wrap { background: var(--surface-0); position: relative; }
.cw-hero-wrap .cw-hero__eyebrow {
  background: var(--navy-100); border-color: transparent; color: var(--navy-700);
}
.cw-hero-wrap .cw-hero__meta { border-top-color: var(--line-100); }
.cw-hero-wrap .cw-hero__meta div { border-right-color: var(--line-100); }
.cw-hero-wrap .cw-hero__meta b { color: var(--ink); }
.cw-hero-wrap .cw-hero__meta span { color: var(--ink-muted); }
.cw-hero-wrap .cw-hero__canvas { mix-blend-mode: normal; }

/* Botao secundario do hero claro: contorno navy legivel sobre branco */
.cw-hero-wrap .cw-btn--on-navy {
  color: var(--navy-900); border-color: var(--line-300); background: transparent;
}
.cw-hero-wrap .cw-btn--on-navy:hover { border-color: var(--navy-900); background: var(--surface-50); }

/* Faixa fina de transicao entre o hero claro e o bloco navy da historia */
#ecossistema { border-top: 0 !important; }

/* =========================================================
   MOBILE: dentro da secao escura, o card da historia tambem
   precisa ser escuro (o bundle o deixa branco por padrao,
   o que apagava os titulos brancos sobre fundo claro)
   ========================================================= */
@media (max-width: 880px) {
  .cw-section--dark .cw-story__step {
    background: rgba(10, 31, 68, .82);
    border-color: rgba(255, 255, 255, .16);
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55);
  }
  .cw-section--dark .cw-story__step h3,
  .cw-section--dark .cw-story__step .cw-h3 { color: #fff; }
  .cw-section--dark .cw-story__step p { color: var(--on-navy-muted); }
  .cw-section--dark .cw-story__step .cw-overline { color: var(--orange-500); }

  /* etapa inativa no mobile nao pode sumir: mantem legibilidade */
  .cw-story__step { opacity: .85; }
  .cw-story__step.is-active { opacity: 1; }
}

/* =========================================================
   FUNIL ANOTADO DO HERO
   A arte passa a carregar informacao: a etapa do processo de
   um lado, o software que resolve aquela etapa do outro.
   ========================================================= */
.cw-hero { grid-template-columns: 0.82fr 1.18fr; }
.cw-fmap { position: relative; width: 100%; height: 100%; }
.cw-fmap .cw-hero__canvas { position: absolute; inset: 0 22% 0 22%; width: 56%; height: 100%; }

.cw-fmap__row {
  position: absolute; left: 0; right: 0; top: var(--y);
  transform: translateY(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  pointer-events: none;
}
.cw-fmap__stage {
  display: grid; gap: 1px; text-align: right; max-width: 21%;
  position: relative; padding-right: 14px;
}
.cw-fmap__stage::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 10px; height: 1px;
  background: var(--line-300); opacity: .7;
}
.cw-fmap__stage b { font: 700 13.5px/1.25 var(--font-sans); color: var(--ink); }
.cw-fmap__stage small { font: 500 11.5px/1.35 var(--font-sans); color: var(--ink-muted); }

.cw-fmap__tool {
  position: relative; padding: 7px 14px; border-radius: var(--radius-pill);
  background: var(--surface-0); border: 1px solid var(--line-100);
  box-shadow: var(--shadow-sm);
  font: 700 12.5px/1 var(--font-sans); color: var(--navy-700); white-space: nowrap;
}
.cw-fmap__tool::before {
  content: ""; position: absolute; left: -12px; top: 50%; width: 10px; height: 1px;
  background: var(--line-300); opacity: .7;
}
.cw-fmap__tool--win { background: var(--orange-500); border-color: transparent; color: var(--on-orange); box-shadow: var(--shadow-glow); }

/* Secao escura: o diagrama inverte as cores */
.cw-section--dark .cw-fmap__stage b { color: #fff; }
.cw-section--dark .cw-fmap__stage small { color: var(--on-navy-muted); }
.cw-section--dark .cw-fmap__tool { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.cw-section--dark .cw-fmap__stage::after,
.cw-section--dark .cw-fmap__tool::before { background: rgba(255,255,255,.35); }

/* Tablet e celular: o diagrama CONTINUA lateral — etapa de um lado,
   software do outro. So encolhe a tipografia e esconde a descricao. */
@media (max-width: 1080px) {
  .cw-hero { grid-template-columns: 1fr; }
  .cw-hero__visual { height: 420px; margin-top: 8px; }
  .cw-fmap .cw-hero__canvas { inset: 0 27% 0 27%; width: 46%; }
  .cw-fmap__stage { max-width: 27%; }
  .cw-fmap__stage b { font-size: 12px; }
  .cw-fmap__stage small { font-size: 10.5px; }
  .cw-fmap__tool { font-size: 11px; padding: 5px 10px; }
}

@media (max-width: 560px) {
  .cw-hero__visual { height: 380px; }
  .cw-fmap .cw-hero__canvas { inset: 0 30% 0 30%; width: 40%; }
  .cw-fmap__stage { max-width: 29%; padding-right: 8px; }
  .cw-fmap__stage b { font-size: 11px; line-height: 1.2; }
  .cw-fmap__stage small { display: none; }
  .cw-fmap__tool { font-size: 10.5px; padding: 4px 9px; }
  .cw-fmap__stage::after { width: 6px; }
  .cw-fmap__tool::before { left: -8px; width: 6px; }
}

/* --- Equilibrio do hero: diagrama inteiro visivel sem rolar --- */
.cw-hero { grid-template-columns: 0.95fr 1.05fr; gap: 24px; }
.cw-hero--full { min-height: 0; padding: 32px 0 48px; }
.cw-hero__visual { height: 460px; }
.cw-hero--full .cw-h1 { font-size: clamp(36px, 3.6vw, 50px); max-width: 16ch; }
.cw-hero__copy { gap: 18px; }
.cw-hero__meta { margin-top: 26px; padding-top: 18px; }
.cw-fmap .cw-hero__canvas { inset: 0 24% 0 24%; width: 52%; }
.cw-fmap__stage { max-width: 23%; }
.cw-fmap__stage b { font-size: 12.5px; }
.cw-fmap__stage small { font-size: 11px; }
.cw-fmap__tool { padding: 6px 12px; font-size: 12px; }

/* --- Destaque do titulo do hero: sublinhado laranja no lugar do bloco bege --- */
.cw-hero--full .cw-h1 .cw-mark {
  background: none; padding: 0; color: var(--orange-600);
  box-shadow: inset 0 -3px 0 0 var(--orange-100);
}
/* --- Funil com mais presenca dentro do diagrama --- */
.cw-fmap .cw-hero__canvas { inset: 0 21% 0 21%; width: 58%; }

/* =========================================================
   RESPONSIVO DO HERO — precisa vir por ultimo para vencer
   as regras de equilibrio do desktop declaradas acima
   ========================================================= */
@media (max-width: 1080px) {
  .cw-hero,
  .cw-hero--full { grid-template-columns: 1fr; gap: 8px; }
  .cw-hero__visual { height: 420px; margin-top: 12px; }
  .cw-fmap .cw-hero__canvas { inset: 0 27% 0 27%; width: 46%; }
  .cw-fmap__stage { max-width: 27%; }
}
@media (max-width: 560px) {
  .cw-hero__visual { height: 380px; }
  .cw-fmap .cw-hero__canvas { inset: 0 31% 0 31%; width: 38%; }
  .cw-fmap__stage { max-width: 30%; padding-right: 8px; }
  .cw-fmap__stage b { font-size: 11px; line-height: 1.2; }
  .cw-fmap__stage small { display: none; }
  .cw-fmap__tool { font-size: 10.5px; padding: 4px 9px; }
}

/* Respiro nas bordas do diagrama em telas menores (chips nao podem encostar) */
@media (max-width: 1080px) {
  .cw-fmap__row { padding: 0 2px; }
  .cw-fmap { padding: 0 2px; }
}

/* =========================================================
   HERO — o funil volta a ser assinatura visual, nao legenda.
   A explicacao do ecossistema e trabalho da secao 01.
   ========================================================= */
.cw-fmap { position: relative; width: 100%; height: 100%; padding: 0; }
.cw-fmap .cw-hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Linha unica de credibilidade (sinal de confianca, nao conteudo) */
.cw-hero__trust {
  list-style: none; margin: 26px 0 0; padding: 18px 0 0;
  border-top: 1px solid var(--line-100);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0;
}
.cw-hero__trust li { position: relative; padding: 0 20px; }
.cw-hero__trust li:first-child { padding-left: 0; }
.cw-hero__trust li + li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 14px; background: var(--line-100);
}
.cw-hero__trust b { font: 700 14px/1.4 var(--font-sans); color: var(--ink); white-space: nowrap; }
.cw-section--dark .cw-hero__trust { border-top-color: rgba(255,255,255,.16); }
.cw-section--dark .cw-hero__trust b { color: #fff; }
.cw-section--dark .cw-hero__trust li + li::before { background: rgba(255,255,255,.2); }

/* Hero: mais ar e o funil com presenca real */
.cw-hero { grid-template-columns: 1fr 1fr; gap: 40px; }
.cw-hero__visual { height: 520px; }

@media (max-width: 1080px) {
  .cw-hero, .cw-hero--full { grid-template-columns: 1fr; gap: 8px; }
  .cw-hero__visual { height: 420px; margin-top: 16px; }
  .cw-fmap .cw-hero__canvas { inset: 0; width: 100%; }
}
@media (max-width: 560px) {
  .cw-hero__visual { height: 340px; }
  .cw-hero__trust { gap: 8px 0; }
  .cw-hero__trust b { font-size: 13px; }
}

/* Menos espaco morto no fim do hero */
.cw-hero-wrap { padding-bottom: 32px; }
.cw-hero--full { padding: 24px 0 8px; }

/* =========================================================
   MENU DE CELULAR (o design system esconde os links abaixo
   de 760px, entao o site precisa de um menu proprio)
   ========================================================= */
.cw-menu { display: none; position: relative; }
.cw-menu__btn {
  list-style: none; cursor: pointer; width: 42px; height: 42px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 1px solid var(--line-100); background: var(--surface-0);
}
.cw-menu__btn::-webkit-details-marker { display: none; }
.cw-menu__btn span { width: 16px; height: 2px; border-radius: 2px; background: var(--navy-900); transition: transform .25s, opacity .2s; }
.cw-menu[open] .cw-menu__btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.cw-menu[open] .cw-menu__btn span:nth-child(2) { opacity: 0; }
.cw-menu[open] .cw-menu__btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.cw-menu__panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px;
  display: grid; gap: 2px; padding: 10px;
  background: var(--surface-0); border: 1px solid var(--line-100);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md); z-index: 70;
}
.cw-menu__panel a {
  padding: 11px 14px; border-radius: var(--radius-md); text-decoration: none;
  font: 600 15px/1 var(--font-sans); color: var(--navy-900);
}
.cw-menu__panel a:hover { background: var(--surface-50); }
@media (max-width: 760px) {
  .cw-menu { display: block; }
  .cw-nav { padding: 8px 8px 8px 16px; }
  .cw-nav__actions .cw-btn--primary { font-size: 13px; padding: 0 14px; }
}
@media (max-width: 420px) {
  .cw-nav__actions .cw-btn--primary { display: none; }
}

/* Linha de credibilidade: sem barras orfas quando quebra no celular */
@media (max-width: 560px) {
  .cw-hero__trust { display: grid; gap: 6px; padding-top: 16px; }
  .cw-hero__trust li { padding: 0; }
  .cw-hero__trust li + li::before { display: none; }
  .cw-hero__trust b::before { content: "— "; color: var(--orange-600); }
}

/* =========================================================
   HERO EM BLOCO (titulo ocupando toda a largura da secao,
   subtitulo abaixo, funil com as marcas ao redor e os
   botoes embaixo)
   ========================================================= */
.cw-herob { display: grid; justify-items: start; padding: 28px 24px 8px; }
.cw-herob__title { max-width: none; width: 100%; margin: 18px 0 0; font-size: clamp(36px, 5vw, 64px); }
.cw-herob__sub { max-width: 760px; margin: 18px 0 0; font-size: 19px; line-height: 1.6; }

.cw-herob__stage { position: relative; width: 100%; height: 480px; margin: 8px 0 0; }
.cw-herob__stage .cw-hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.cw-herob__mark {
  position: absolute; display: inline-flex; align-items: center; gap: 10px;
  font: 700 15px/1.3 var(--font-sans); color: var(--ink); white-space: nowrap;
}
.cw-herob__mark b { font-weight: 700; }
.cw-herob__mark::after {
  content: ""; width: 34px; height: 1px; background: var(--line-300); opacity: .8; order: 2;
}
.cw-herob__mark--a { left: 2%; top: 20%; }
.cw-herob__mark--c { left: 2%; top: 72%; }
.cw-herob__mark--b { right: 2%; top: 46%; flex-direction: row-reverse; }
.cw-herob__mark--b::after { order: 0; }

.cw-section--dark .cw-herob__mark { color: #fff; }
.cw-section--dark .cw-herob__mark::after { background: rgba(255,255,255,.4); }

.cw-herob__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: 20px; }

@media (max-width: 860px) {
  .cw-herob { padding: 20px 24px 0; }
  .cw-herob__stage { height: 360px; }
  .cw-herob__mark { font-size: 13px; }
  .cw-herob__mark::after { width: 18px; }
  .cw-herob__mark--a { top: 14%; }
  .cw-herob__mark--c { top: 78%; }
}
@media (max-width: 560px) {
  .cw-herob__stage { height: 300px; }
  .cw-herob__mark { font-size: 12px; }
  .cw-herob__mark::after { display: none; }
  .cw-herob__sub { font-size: 17px; }
}

/* Ajustes do hero em bloco */
.cw-herob__title { font-size: clamp(34px, 4.1vw, 54px); }
.cw-herob__title .cw-mark {
  background: none; padding: 0; color: var(--orange-600);
  box-shadow: inset 0 -3px 0 0 var(--orange-100);
}
.cw-section--dark .cw-herob__title .cw-mark { color: var(--orange-500); box-shadow: inset 0 -3px 0 0 rgba(242,106,33,.45); }

/* O funil fica centrado e com largura controlada, para manter densidade */
.cw-herob__stage { height: 420px; margin-top: 4px; }
.cw-herob__stage .cw-hero__canvas { left: 50%; right: auto; transform: translateX(-50%); width: min(560px, 54%); }
.cw-herob__mark--a { left: 6%; top: 24%; }
.cw-herob__mark--c { left: 6%; top: 70%; }
.cw-herob__mark--b { right: 6%; top: 47%; }

@media (max-width: 860px) {
  .cw-herob__stage { height: 340px; }
  .cw-herob__stage .cw-hero__canvas { width: min(360px, 46%); }
  .cw-herob__mark--a { left: 0; top: 18%; }
  .cw-herob__mark--c { left: 0; top: 76%; }
  .cw-herob__mark--b { right: 0; top: 47%; }
}
@media (max-width: 560px) {
  .cw-herob__stage { height: 300px; }
  .cw-herob__stage .cw-hero__canvas { width: 44%; }
}

/* =========================================================
   FORMULÁRIOS (consultoria e contato)
   ========================================================= */
.cw-form { display: grid; gap: 18px; }
.cw-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cw-field { display: grid; gap: 7px; }
.cw-field > span { font: 600 13.5px/1 var(--font-sans); color: var(--ink); letter-spacing: .01em; }
.cw-field input, .cw-field textarea {
  font: 400 15.5px/1.5 var(--font-sans); color: var(--ink);
  background: var(--surface-0); border: 1px solid var(--line-100);
  border-radius: var(--radius-md); padding: 13px 15px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.cw-field input:focus, .cw-field textarea:focus {
  outline: none; border-color: var(--navy-500);
  box-shadow: 0 0 0 3px rgba(47,93,168,.14);
}
.cw-field textarea { resize: vertical; min-height: 120px; }
.cw-form button { justify-self: start; }
.cw-form__nota { font: 500 13px/1.5 var(--font-sans); color: var(--ink-muted); margin: 0; }
.cw-section--dark .cw-field > span { color: #fff; }
.cw-section--dark .cw-field input, .cw-section--dark .cw-field textarea {
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff;
}
.cw-section--dark .cw-form__nota { color: var(--on-navy-muted); }

@media (max-width: 680px) {
  .cw-form__row { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  #cw-projetos, #cw-artigos { grid-template-columns: 1fr; }
}

/* Destaque laranja em qualquer titulo, no claro e no escuro */
.cw-h1 .cw-mark, .cw-h2 .cw-mark {
  background: none; padding: 0; color: var(--orange-600);
  box-shadow: inset 0 -3px 0 0 var(--orange-100);
}
.cw-section--dark .cw-h1 .cw-mark, .cw-section--dark .cw-h2 .cw-mark {
  color: var(--orange-500); box-shadow: inset 0 -3px 0 0 rgba(242,106,33,.45);
}

/* =========================================================
   CABEÇALHO NO ESTILO DO SITE ORIGINAL
   barra branca de largura total, logo à esquerda, menu ao
   centro e botão laranja à direita
   ========================================================= */
.cw-topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-100);
}
.cw-topbar__in {
  max-width: 1200px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 24px;
}
.cw-topbar__brand { display: flex; align-items: center; }
.cw-topbar__brand img { height: 30px; width: auto; display: block; }
.cw-topbar__links {
  display: flex; gap: 4px; margin: 0 auto;
}
.cw-topbar__links a {
  padding: 8px 13px; border-radius: var(--radius-pill);
  font: 500 14.5px/1 var(--font-sans); color: var(--ink-muted); text-decoration: none;
  transition: color .2s, background-color .2s;
}
.cw-topbar__links a:hover { color: var(--navy-900); background: var(--surface-50); }
.cw-topbar__links a[aria-current] { color: var(--orange-600); font-weight: 700; }
.cw-topbar__cta { display: flex; align-items: center; gap: 8px; }
@media (max-width: 1000px) {
  .cw-topbar__links { display: none; }
  .cw-topbar__cta { margin-left: auto; }
}

/* Respiro entre as etapas da história: o botão de uma etapa
   não pode encostar no título da seguinte */
.cw-story { --cw-story-h: 88vh; }
.cw-story__step { min-height: calc(var(--cw-story-h) * .80); padding-bottom: 36px; }
.cw-story__steps { padding-bottom: calc(var(--cw-story-h) * .18); }
@media (max-width: 880px) {
  .cw-story__step { min-height: 0; margin-bottom: 44px; padding-bottom: 24px; }
}
