/* WSete — motion overlay. Brutalist, dry, no fade-softness. */

/* A. ARROW WALK — setas dentro de .btn andam +4px no hover */
.btn span {
  display: inline-block;
  transition: transform 80ms linear;
}
.btn:hover span { transform: translateX(4px); }
.btn.ghost:hover span { transform: translateX(4px); }

/* A. UNDERLINE BRUTALISTA — footer links + .lnk opt-in */
footer.site li a,
a.lnk {
  position: relative;
  display: inline-block;
  text-decoration: none;
}
footer.site li a::after,
a.lnk::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--orange, #F84E00);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 120ms linear;
}
footer.site li a:hover::after,
a.lnk:hover::after { transform: scaleX(1); }

/* A. QUADRADINHO PISCANDO — opt-in via [data-blink] em .sq */
@keyframes wsete-blink {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0.3; }
}
.sq[data-blink],
[data-blink] .sq {
  animation: wsete-blink 1.2s steps(2, jump-none) infinite;
}
.punct[data-blink],
.square-inline[data-blink] {
  animation: wsete-blink 1.2s steps(2, jump-none) infinite;
}
.wsete-brand-dot {
  animation: wsete-blink 1.2s steps(2, jump-none) infinite;
  transform-box: fill-box;
}

/* B. COUNTER */
[data-count] {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ============================================
   C. REVEAL ON SCROLL — .reveal + legacy [data-reveal]
   ============================================ */
.reveal,
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible,
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* C2. STAGGER nos grids — delays até o 8º filho, 9º+ herda 420ms */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 60ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 120ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 180ms; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 240ms; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 300ms; }
.reveal-stagger > .reveal:nth-child(7) { transition-delay: 360ms; }
.reveal-stagger > .reveal:nth-child(n+8) { transition-delay: 420ms; }

/* ============================================
   C3. HOVER LIFT — cards levantam com sombra dura laranja
   ============================================ */
.area-cell,
.pilar,
.principio,
.frente,
.mode,
.path,
.post,
.path-card,
.solution {
  transition: transform 100ms ease, box-shadow 100ms ease;
}
.area-cell:hover,
.pilar:hover,
.principio:hover,
.frente:hover,
.mode:hover,
.path:hover,
.post:hover,
.path-card:hover,
.solution:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--orange, #F84E00);
}

/* D. TICKER / MARQUEE */
.wsete-ticker {
  width: 100%;
  overflow: hidden;
  background: var(--ink, #0A0A0A);
  color: var(--paper, #FAFAF7);
  border-top: 1px solid rgba(250,250,247,0.12);
  border-bottom: 1px solid rgba(250,250,247,0.12);
  padding: 14px 0;
}
.wsete-ticker__track {
  display: inline-flex;
  white-space: nowrap;
  gap: 48px;
  animation: wsete-ticker-scroll 40s linear infinite;
  padding-left: 48px;
}
.wsete-ticker__item {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.wsete-ticker__item .sq {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--orange, #F84E00);
}
@keyframes wsete-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   ACESSIBILIDADE — prefers-reduced-motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  [data-reveal],
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .area-cell:hover,
  .pilar:hover,
  .principio:hover,
  .frente:hover,
  .mode:hover,
  .path:hover,
  .post:hover,
  .path-card:hover,
  .solution:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================
   WHATSAPP FAB — botão flutuante global
   ============================================ */
.wsete-wa-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: #F84E00;
  color: #0A0A0A;
  border: 1.5px solid #0A0A0A;
  border-radius: 0;
  box-shadow: 4px 4px 0 #0A0A0A;
  text-decoration: none;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  transition: transform 100ms ease, box-shadow 100ms ease;
}
.wsete-wa-fab:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #0A0A0A;
}
.wsete-wa-fab svg {
  width: 20px;
  height: 20px;
  display: block;
  stroke: #0A0A0A;
}
.wsete-wa-fab .wsete-wa-label { display: inline; }
@media (max-width: 640px) {
  .wsete-wa-fab {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
    gap: 0;
  }
  .wsete-wa-fab .wsete-wa-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wsete-wa-fab:hover { transform: none !important; box-shadow: 4px 4px 0 #0A0A0A !important; }
}

/* ============================================================
   WSETE — MOBILE RESPONSIVE OVERHAUL (maio 2026)
   Aplica em todas as 12 páginas via inclusão global.
   ============================================================ */

/* PARTE 17 — Anti-overflow global */
body { overflow-x: clip; }
img, video, iframe, svg { max-width: 100%; height: auto; }

/* PARTE 1 — Hamburger button (escondido em desktop) */
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
  align-items: center;
  justify-content: center;
}
.nav-burger span {
  display: block;
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 200ms ease, opacity 200ms ease, top 200ms ease;
}
.nav-burger span:nth-child(1) { top: 14px; }
.nav-burger span:nth-child(2) { top: 21px; }
.nav-burger span:nth-child(3) { top: 28px; }
nav.top.dark .nav-burger span { background: var(--paper); }

/* Drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: var(--paper);
  z-index: 100;
  padding: 32px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity 250ms ease-out, transform 250ms ease-out;
}
.nav-drawer.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-drawer .close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  color: var(--paper);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-drawer .links {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 80px;
  flex: 1;
}
.nav-drawer .links a {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--paper);
  padding: 12px 0;
}
.nav-drawer .links a:active,
.nav-drawer .links a.active { color: var(--orange); }
.nav-drawer .drawer-cta {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  border: 1.5px solid var(--paper);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}
.nav-drawer .drawer-cta::before {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--orange);
  display: inline-block;
  margin-right: 12px;
}
body.no-scroll { overflow: hidden; }

@media (hover: hover) {
  .nav-drawer .links a:hover { color: var(--orange); }
  .nav-drawer .drawer-cta:hover { background: var(--paper); color: var(--ink); }
}

@media (max-width: 980px) {
  nav.top .menu, nav.top > .inner > .cta { display: none !important; }
  .nav-burger { display: inline-flex; }
}

/* PARTE 2 — Tipografia compacta */
@media (max-width: 640px) {
  h1.display { font-size: clamp(40px, 11vw, 64px) !important; }
  h2.display { font-size: clamp(36px, 9vw, 56px) !important; }
  h3.display { font-size: clamp(28px, 7vw, 44px) !important; }
  .page-head h1 { font-size: clamp(40px, 11vw, 64px) !important; }
  .intro-banner h1 { font-size: clamp(36px, 10vw, 56px) !important; }
  .case h2 { font-size: clamp(32px, 8vw, 48px) !important; }
  .ask h2 { font-size: clamp(36px, 10vw, 60px) !important; }
  .final h2.display { font-size: clamp(36px, 9vw, 56px) !important; }
  .sol-block h2 { font-size: clamp(36px, 9vw, 56px) !important; }
  h1.display, h2.display, .page-head h1, .intro-banner h1,
  .case h2, .ask h2, .sol-block h2, .final h2.display {
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
  }
  .copy, .lede, .body { margin-top: 20px; }
}

/* PARTE 3 — Espaçamentos */
@media (max-width: 980px) {
  .section, .pilares, .tese, .ti-block, .principios, .como,
  .nossa-historia, .sol-block, .case, .frentes, .ti-security,
  .ask, .areas-detailed, .modes, .ti-ally, .two-paths, .form-wrap,
  .outras, .featured, .post-list, .newsletter, .what-we-measure,
  .nosso-jeito, .como-escolher, .integra, .w7 {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }
  .hero { padding: 56px 0 72px !important; }
  .page-head { padding-top: 40px !important; padding-bottom: 56px !important; }
  .intro-banner { padding: 32px 0 24px !important; }
}
@media (max-width: 640px) {
  .section, .pilares, .tese, .ti-block, .principios, .como,
  .nossa-historia, .sol-block, .case, .frentes, .ti-security,
  .ask, .areas-detailed, .modes, .ti-ally, .two-paths, .form-wrap,
  .outras, .featured, .post-list, .newsletter, .what-we-measure,
  .nosso-jeito, .como-escolher, .integra, .w7 {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }
  .wrap { padding: 0 20px !important; }
}

/* PARTE 4 — Grids */
@media (max-width: 1180px) {
  .area-grid, .pilares .grid, .principios .grid, .frentes .grid,
  .modes .grid { grid-template-columns: repeat(2, 1fr) !important; }
  .principle-grid, .path-grid, .solution-list { grid-template-columns: 1fr !important; gap: 24px !important; }
  .case .gallery .grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 980px) {
  .area-grid, .pilares .grid, .principios .grid, .frentes .grid,
  .modes .grid, .ti-block .grid, .steps, .two-paths .grid,
  .outras .grid, .nosso-jeito .grid, .como-escolher .grid,
  .what-we-measure .grid {
    grid-template-columns: 1fr !important;
  }
  .quick-strip .wrap { grid-template-columns: 1fr !important; }
  .quick-strip a {
    border-right: 0 !important;
    border-bottom: 1px solid var(--ash) !important;
  }
}
@media (max-width: 640px) {
  .case .gallery .grid { grid-template-columns: 1fr !important; }
}

/* PARTE 5 — Rail escondido em mobile */
@media (max-width: 980px) {
  .rail-label { display: none !important; }
  .section-grid, .pilares .wrap, .tese .wrap, .ti-block .wrap,
  .principios .wrap, .como .wrap, .frentes .wrap, .ti-security .wrap,
  .ask .wrap, .areas-detailed .wrap, .modes .wrap, .ti-ally .wrap,
  .two-paths .wrap, .form-wrap .wrap, .outras .wrap, .case .wrap,
  .what-we-measure .wrap, .como-escolher .wrap, .nosso-jeito .wrap,
  .final .layout {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
}

/* PARTE 6 — Hero da Home */
@media (max-width: 980px) {
  .hero .meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 32px;
  }
  .hero .lede { grid-template-columns: 1fr !important; margin-top: 32px; }
  .hero .lede .copy {
    grid-column: 1 / -1 !important;
    font-size: 17px;
    max-width: 100%;
  }
  .hero .lede .hero-tags {
    grid-column: 1 / -1 !important;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: 11px;
  }
  .hero .ctas {
    grid-template-columns: 1fr !important;
    gap: 24px;
    margin-top: 40px;
  }
  .hero .ctas .btn-row {
    grid-column: 1 / -1 !important;
    flex-direction: column;
    align-items: stretch;
  }
  .hero .ctas .btn-row .btn { text-align: center; justify-content: center; }
  .hero .ctas .footnote { grid-column: 1 / -1 !important; text-align: left; }
}

/* PARTE 7 — Chat W7 */
@media (max-width: 980px) {
  .w7 .layout { grid-template-columns: 1fr !important; gap: 32px; }
  .w7 .chat { min-height: 420px; }
  .w7 .chat .msg { grid-template-columns: 56px 1fr !important; gap: 12px; }
}

/* PARTE 8 — Diagnóstico */
@media (max-width: 1100px) {
  .stage .wrap { grid-template-columns: 1fr !important; gap: 24px; }
}
@media (max-width: 980px) {
  .intro-banner .lockup { grid-template-columns: 1fr !important; gap: 24px; }
  .intro-banner .stats { grid-template-columns: 1fr !important; min-width: auto !important; }
  .intro-banner .stats > div {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(250,250,247,0.15);
  }
  .intro-banner .stats > div:last-child { border-bottom: 0; }
  .chat-panel { min-height: 480px; }
  .chat-panel .messages { max-height: 400px; }
}

/* PARTE 9 — Soluções e páginas internas */
@media (max-width: 1180px) {
  .sol-block .wrap { grid-template-columns: 1fr !important; gap: 32px; }
  .sol-block .right-col { padding-top: 0; }
}
@media (max-width: 980px) {
  .sol-block .ctas, .ask .cta-row, .final .cta-row {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .sol-block .ctas .btn, .ask .cta-row .btn, .final .cta-row .btn {
    text-align: center;
    justify-content: center;
  }
  .integra .stack { grid-template-columns: 1fr !important; }
}

/* PARTE 10 — Cases */
@media (max-width: 980px) {
  .case h2 { max-width: 100% !important; }
  .case .media .stage { aspect-ratio: 4/3; }
  .case .media .stage .side-panel { position: static !important; margin: 12px; }
  .case .result-block { grid-template-columns: 1fr !important; gap: 16px; }
  .case .result-block .kpi .value { font-size: clamp(72px, 18vw, 120px) !important; }
}

/* PARTE 11 — Contato */
@media (max-width: 980px) {
  .form-wrap .wrap { grid-template-columns: 1fr !important; gap: 24px; }
  .form-card .row-2 { grid-template-columns: 1fr !important; }
}

/* PARTE 12 — Blog */
@media (max-width: 980px) {
  .featured .layout { grid-template-columns: 1fr !important; min-height: auto !important; }
  .featured .art { min-height: 280px; padding: 32px; }
  .featured .body {
    border-left: 0 !important;
    border-top: 1.5px solid var(--ink);
    padding: 32px;
  }
  .post { grid-template-columns: 1fr !important; gap: 16px; padding: 24px 0; }
  .post .art-mini { aspect-ratio: 16/9; max-height: 200px; }
  .post .date { padding-top: 0; }
  .post .arrow { display: none; }
  .post:hover { padding-left: 0; padding-right: 0; }
  .filters .row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .filters .tags {
    overflow-x: auto;
    flex-wrap: nowrap;
    width: 100%;
    padding-bottom: 8px;
  }
  .newsletter .layout { grid-template-columns: 1fr !important; }
}

/* PARTE 13 — Footer */
@media (max-width: 980px) {
  footer.site .top-row { grid-template-columns: repeat(2, 1fr) !important; gap: 32px; }
  footer.site .top-row .brand { grid-column: 1 / -1 !important; }
}
@media (max-width: 640px) {
  footer.site .top-row { grid-template-columns: 1fr !important; }
  footer.site .bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* PARTE 14 — Touch targets */
@media (max-width: 980px) {
  .btn { padding: 14px 20px; min-height: 44px; }
  .tag-btn, .filters .tag { padding: 10px 16px !important; min-height: 44px; }
  input, textarea, select { min-height: 44px; }
}

/* PARTE 15 + 16 — Hover só em devices com hover; desativa lift em mobile */
@media (hover: none) {
  .area-cell:hover, .pilar:hover, .principio:hover, .frente:hover,
  .mode:hover, .path:hover, .post:hover, .path-card:hover,
  .solution:hover, .btn:hover, .cta-paren:hover .group {
    transform: none !important;
    box-shadow: none !important;
  }
}
@media (max-width: 640px) {
  .reveal-stagger > *:nth-child(n+5) { transition-delay: 240ms !important; }
}

/* PARTE 19 — Botão WhatsApp não cobre conteúdo */
@media (max-width: 640px) {
  footer.site, .final:last-of-type, .newsletter:last-of-type {
    padding-bottom: 96px !important;
  }
}

/* ============================================================
   WSETE — Home "Mão de obra" (labor) mobile fix
   ============================================================ */
@media (max-width: 980px) {
  .labor .layout { grid-template-columns: 1fr !important; }
  .labor .body { grid-template-columns: 1fr !important; }
  .labor h2,
  .labor p.body-copy,
  .labor .tag-line {
    grid-column: 1 / -1 !important;
    max-width: 100% !important;
    margin-top: 24px !important;
  }
  .labor h2 { font-size: clamp(36px, 9vw, 56px) !important; line-height: 0.95 !important; word-break: break-word; }
}

/* ============================================================
   WSETE — Home "Soluções" mobile fix
   ============================================================ */
@media (max-width: 980px) {
  .solutions .solution-list { margin-top: 32px; }
}
@media (max-width: 640px) {
  .solutions .solution .name {
    font-size: clamp(26px, 8vw, 40px) !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
  }
  .solutions .solution {
    padding: 28px 0 !important;
  }
  .solutions .solution .copy {
    font-size: 15px;
  }
  .solutions .solution:hover {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
