/* ============================================================
   Prática  Peças e Serviços | Design tokens
   ============================================================ */
:root {
  /* Marca */
  --primary: #EA4838;        /* acentos, ícones, engrenagem, títulos grandes */
  --primary-strong: #D93827; /* botões e textos pequenos sobre branco (AA 4.5:1) */
  --primary-hover: #C22F1F;
  --primary-soft: #FDEDEB;
  --primary-bright: #F0604E; /* vermelho para texto pequeno sobre fundo escuro (AA 4.5:1) */

  --dark: #373C43;           /* secundária: textos, rodapé */
  --dark-800: #2C3036;
  --dark-900: #23262B;

  --text: #373C43;
  --text-muted: #5C636D;
  --bg: #FFFFFF;
  --bg-alt: #F7F7F8;
  --border: #E6E8EB;
  --border-input: #878E98; /* 3.3:1 sobre branco  WCAG 1.4.11 */

  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(35, 38, 43, 0.08);
  --shadow-md: 0 10px 30px rgba(35, 38, 43, 0.10);
  --shadow-lg: 0 24px 60px rgba(35, 38, 43, 0.14);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

/* ============================================================
   Reset e base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--dark);
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 700; }

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

a { color: var(--primary-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  width: min(1140px, 100% - 2.5rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 1rem; text-decoration: none; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-strong);
  margin-bottom: 0.9rem;
}

/* ============================================================
   Engrenagem  animações da marca
   ============================================================ */
@keyframes gear-rotate {
  to { transform: rotate(360deg); }
}

.gear-spin {
  animation: gear-rotate 1.6s linear infinite;
  transform-origin: 50% 50%;
}

/* ============================================================
   Loader
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.loader.is-done { opacity: 0; visibility: hidden; }

/* mesma logo do cabeçalho, apenas ampliada para servir de splash */
.loader__logo { transform: scale(1.5); }

/* ============================================================
   Botões
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--primary-strong);
  color: #fff;
  box-shadow: 0 8px 20px rgba(217, 56, 39, 0.28);
}
.btn--primary:hover { background: var(--primary-hover); box-shadow: 0 12px 26px rgba(194, 47, 31, 0.32); }

.btn--ghost {
  background: transparent;
  color: var(--dark);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--dark); }

.btn--light {
  background: #fff;
  color: var(--primary-strong);
}
.btn--light:hover { background: var(--primary-soft); }

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
}
.btn--outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn--lg { padding: 1rem 2rem; font-size: 1.0625rem; }
.btn--sm { padding: 0.55rem 1.2rem; font-size: 0.9375rem; }

/* ============================================================
   Cabeçalho
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

/* topo, sobre o hero escuro: barra transparente com texto claro */
.header--light {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.header--light .logo__name { color: #fff; }
.header--light .logo__tagline { color: var(--primary-bright); }
.header--light .nav__link { color: #fff; }
.header--light .nav__link:hover { color: #fff; }
.header--light .nav-toggle__bar { background: #fff; }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.logo:hover { text-decoration: none; }

.logo__gear {
  width: 40px;
  height: 40px;
  color: var(--primary);
  transition: transform 0.7s var(--ease);
}
.logo:hover .logo__gear,
.logo:focus-visible .logo__gear {
  transform: rotate(120deg);
}

.logo__text { display: grid; line-height: 1.1; }
.logo__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--dark);
  text-transform: uppercase;
}
.logo__tagline {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--primary-strong);
}

.logo--light .logo__name { color: #fff; }
.logo--light .logo__gear { color: var(--primary); }
.logo--light .logo__tagline { color: #F1A198; }

/* Navegação */
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav__list { display: flex; gap: 1.6rem; }

.nav__link {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--dark);
  padding: 0.4rem 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover { text-decoration: none; color: var(--primary-strong); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--primary-strong); font-weight: 600; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle__bar {
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--dark);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero  abertura cinematográfica com manômetro
   Base = tudo legível e clicável no load (sequência de entrada).
   Scroll = parallax leve da cena, com hand-off para a próxima seção.
   ============================================================ */
.hero {
  position: relative;
  background: var(--dark-900);
  color: #fff;
}
.hero__scroller { height: 130vh; }
.hero__sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-h) + 2.5rem) 0 5rem;
}

/* brilho vermelho ambiente atrás do manômetro */
.hero__glow {
  position: absolute;
  top: 42%;
  right: 4%;
  width: min(46rem, 70%);
  aspect-ratio: 1;
  translate: 0 -50%;
  background: radial-gradient(circle, rgba(234, 72, 56, 0.20) 0%, transparent 62%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: center;
}
.hero__content { max-width: 40rem; }

.hero__eyebrow { color: var(--primary-bright); }

.hero__title {
  font-size: clamp(2.25rem, 1.5rem + 3.6vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin-bottom: 0.55em;
  color: #fff;
}
.hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.hero__line > span { display: inline-block; }
.hero__line--accent > span { color: var(--primary); }

.hero__subtitle {
  font-size: 1.125rem;
  color: #C3C8CF;
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.6rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.4rem;
}
.hero__stats li {
  display: grid;
  gap: 0.1rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(255, 255, 255, 0.16);
}
.hero__stats strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}
.hero__stats span {
  font-size: 0.8125rem;
  color: #9AA1AA;
}

/* ---- manômetro ---- */
.hero__gauge {
  position: relative;
  width: min(400px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
}
.hero__gauge-brand {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--primary);
  opacity: 0.05;
  transform-origin: 50% 50%;
}
.gauge { position: relative; overflow: visible; }
.gauge__track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.10);
  stroke-width: 16;
  stroke-linecap: round;
}
.gauge__fill {
  fill: none;
  stroke: var(--primary);
  stroke-width: 16;
  stroke-linecap: round;
  stroke-dasharray: 565.49;
  stroke-dashoffset: 565.49; /* vazio; JS/animação preenche */
  filter: drop-shadow(0 0 8px rgba(234, 72, 56, 0.5));
}
.gauge__ticks line { stroke: rgba(255, 255, 255, 0.28); stroke-width: 2; }
.gauge__needle {
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: round;
  transform-box: view-box;
  transform-origin: 150px 150px;
  transform: rotate(-135deg); /* estado inicial no zero */
}
.gauge__hub { fill: var(--primary); }

.gauge__readout {
  position: absolute;
  left: 50%;
  bottom: 20%;
  translate: -50% 0;
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  text-align: center;
}
.gauge__value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.gauge__value em {
  font-style: normal;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-bright);
}
.gauge__caption {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9AA1AA;
}

/* ---- sequência de entrada (no load, não gated por scroll) ---- */
.hero__eyebrow,
.hero__subtitle,
.hero__actions,
.hero__stats li {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.hero__line > span {
  transform: translateY(120%);
  transition: transform 0.9s var(--ease);
}
.hero__gauge { opacity: 0; transition: opacity 0.8s var(--ease); }

.hero.is-ready .hero__eyebrow { opacity: 1; transform: none; transition-delay: 0.05s; }
.hero.is-ready .hero__line:nth-child(1) > span { transform: none; transition-delay: 0.15s; }
.hero.is-ready .hero__line:nth-child(2) > span { transform: none; transition-delay: 0.27s; }
.hero.is-ready .hero__line:nth-child(3) > span { transform: none; transition-delay: 0.39s; }
.hero.is-ready .hero__subtitle { opacity: 1; transform: none; transition-delay: 0.58s; }
.hero.is-ready .hero__actions { opacity: 1; transform: none; transition-delay: 0.7s; }
.hero.is-ready .hero__stats li { opacity: 1; transform: none; }
.hero.is-ready .hero__stats li:nth-child(1) { transition-delay: 0.82s; }
.hero.is-ready .hero__stats li:nth-child(2) { transition-delay: 0.9s; }
.hero.is-ready .hero__stats li:nth-child(3) { transition-delay: 0.98s; }
.hero.is-ready .hero__gauge { opacity: 1; transition-delay: 0.2s; }

/* convite a rolar */
.hero__cue {
  position: absolute;
  left: 50%;
  bottom: 1.7rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  translate: -50% 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9AA1AA;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.hero.is-ready .hero__cue { opacity: 1; transition-delay: 1.2s; }
.hero.is-scrolled-past .hero__cue { opacity: 0 !important; transition-delay: 0s; }
.hero__cue svg {
  width: 15px;
  height: 15px;
  color: var(--primary-bright);
  animation: nudge-down 1.5s var(--ease) infinite;
}

/* fallback sem JS / movimento reduzido: cena inteira visível e pressurizada */
.hero.is-static .hero__eyebrow,
.hero.is-static .hero__subtitle,
.hero.is-static .hero__actions,
.hero.is-static .hero__stats li,
.hero.is-static .hero__gauge { opacity: 1; transform: none; }
.hero.is-static .hero__line > span { transform: none; }
.hero.is-static .hero__scroller { height: auto; }
.hero.is-static .hero__sticky { position: static; min-height: 0; }
.hero.is-static .hero__cue { display: none; }
.hero.is-static .gauge__fill { stroke-dashoffset: 113.1; }
.hero.is-static .gauge__needle { transform: rotate(81deg); }

/* ============================================================
   Seções
   ============================================================ */
.section { padding: 5.5rem 0; }

.section__header {
  max-width: 42rem;
  margin-bottom: 3rem;
}
.section__lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
}

/* ============================================================
   Serviços  vitrine guiada pelo scroll
   Base = lista legível (sem JS / prefers-reduced-motion).
   .showcase--interactive = vitrine fixa que troca no scroll.
   ============================================================ */
.showcase { background: var(--bg); padding: 5.5rem 0; }

.showcase__intro { margin-bottom: 2.6rem; }

.showcase__panels { display: grid; }

/* ---- base: cada painel é uma linha editorial ---- */
.showcase-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding: 2.6rem 0;
  border-top: 1px solid var(--border);
}
.showcase-panel:last-child { border-bottom: 1px solid var(--border); }

.showcase-panel__num {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 1.5rem + 4vw, 4.5rem);
  font-weight: 600;
  line-height: 0.9;
  color: var(--primary-strong);
  letter-spacing: -0.02em;
}
.showcase-panel__body h3 {
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
  letter-spacing: -0.01em;
}
.showcase-panel__lead {
  color: var(--text-muted);
  max-width: 40rem;
  font-size: 1.0625rem;
}
.showcase-panel__includes {
  display: grid;
  gap: 0.6rem;
  margin: 1.3rem 0 1.7rem;
}
.showcase-panel__includes li {
  display: flex;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text);
}
.showcase-panel__includes li::before {
  content: "";
  color: var(--primary-strong);
  flex-shrink: 0;
}

/* footer (progresso + cue) só existe no modo interativo */
.showcase__footer { display: none; }

/* ---- interativo: vitrine fixa ---- */
.showcase--interactive { padding: 0; }
.showcase--interactive .showcase__scroller { height: 320vh; }
.showcase--interactive .showcase__sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 2rem) 0 2.5rem;
}

/* empilha todos os painéis na mesma célula; só o atual aparece */
.showcase--interactive .showcase__panels { position: relative; }
.showcase--interactive .showcase-panel {
  grid-area: 1 / 1;
  align-content: center;
  min-height: 42vh;
  padding: 0;
  border: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), visibility 0.55s;
  pointer-events: none;
}
.showcase--interactive .showcase-panel.is-current {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.showcase--interactive .showcase__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
  margin-top: 2.6rem;
}

.showcase__nav {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.showcase__seg {
  display: grid;
  gap: 0.55rem;
  width: 96px;
  padding: 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.showcase__seg-track {
  height: 3px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
}
.showcase__seg-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.12s linear;
}
.showcase__seg-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
}
.showcase__seg.is-current .showcase__seg-label { color: var(--primary-strong); }
.showcase__seg:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; border-radius: 4px; }

.showcase__cue {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: opacity 0.4s var(--ease);
}
.showcase__cue svg {
  width: 16px;
  height: 16px;
  color: var(--primary-strong);
  animation: nudge-down 1.5s var(--ease) infinite;
}
.showcase.is-navigating .showcase__cue { opacity: 0; }

/* ============================================================
   Como funciona  scrollytelling
   ============================================================ */
.process {
  background: var(--dark-900);
  color: #fff;
}
.process h2 { color: #fff; }
.process .eyebrow { color: var(--primary-bright); }

.process__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 4rem;
  align-items: start;
}

.process__intro {
  position: sticky;
  top: calc(var(--header-h) + 3.5rem);
}
.process__lead { color: #B9BFC7; }

.process__meter {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  margin-top: 2.6rem;
}
.process__gear {
  width: 72px;
  height: 72px;
  color: var(--primary);
  transform-origin: 50% 50%;
  will-change: transform;
}
.process__counter {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  color: #B9BFC7;
}
.process__counter #process-current {
  color: #fff;
  font-weight: 700;
}

/* trilho de progresso */
.process__track {
  position: relative;
  padding-left: 48px;
}
.process__rail {
  position: absolute;
  left: 5px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: rgba(255, 255, 255, 0.14);
}
.process__rail-fill {
  position: absolute;
  inset: 0;
  background: var(--primary);
  transform: scaleY(0);
  transform-origin: top;
  will-change: transform;
}

/* passos */
.process-step {
  position: relative;
  min-height: 46vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.3;
  transition: opacity 0.5s var(--ease);
}
.process-step::before {
  content: "";
  position: absolute;
  left: -49px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--dark-900);
  border: 2px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
}
.process-step.is-passed::before { border-color: var(--primary); }

.process-step.is-active { opacity: 1; }
.process-step.is-active::before {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 6px rgba(234, 72, 56, 0.22);
}

.process-step__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  letter-spacing: 0.14em;
  color: #B9BFC7;
  margin-bottom: 0.9rem;
  transition: color 0.4s var(--ease);
}
.process-step.is-active .process-step__num { color: var(--primary-bright); }

.process-step h3 {
  color: #fff;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
}
.process-step p {
  color: #C3C8CF;
  max-width: 26rem;
  margin: 0;
}

/* fallback sem movimento: tudo visível e completo */
.process--static .process-step { opacity: 1; }
.process--static .process-step::before {
  background: var(--primary);
  border-color: var(--primary);
}
.process--static .process__rail-fill { transform: scaleY(1); }

/* ============================================================
   Sobre  manifesto com ink-in guiado pelo scroll
   ============================================================ */
.manifesto { background: var(--bg); }

.manifesto__scroller { height: 200vh; }

.manifesto__sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 1rem) 0 2rem;
}

.manifesto__text {
  margin: 0;
  max-width: 48rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 1rem + 2.6vw, 2.7rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--dark);
  text-wrap: balance;
}
.manifesto__text em {
  font-style: normal;
  color: var(--primary-strong);
}
/* palavras começam legíveis (cinza) e "entintam" no scroll  nunca somem */
.manifesto__text .word {
  opacity: 0.28;
  will-change: opacity;
}

/* cue: barra de progresso + convite a rolar */
.manifesto__cue {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: 2.8rem;
}
.manifesto__progress {
  position: relative;
  width: min(300px, 55%);
  height: 3px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
}
.manifesto__progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--primary);
  border-radius: 3px;
}
.manifesto__cue-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: opacity 0.4s var(--ease);
}
.manifesto__cue-label svg {
  width: 16px;
  height: 16px;
  color: var(--primary-strong);
  animation: nudge-down 1.5s var(--ease) infinite;
}
@keyframes nudge-down {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(3px); }
}
/* quando termina de entintar, some o convite mas mantém a barra cheia */
.manifesto.is-complete .manifesto__cue-label { opacity: 0; }

/* fallback sem movimento: texto integral, sem trilho de scroll */
.manifesto--static .manifesto__scroller { height: auto; }
.manifesto--static .manifesto__sticky {
  position: static;
  min-height: 0;
  padding: 5.5rem 0 1rem;
}
.manifesto--static .manifesto__text .word { opacity: 1; }
.manifesto--static .manifesto__cue { display: none; }

.manifesto__facts { padding: 2.5rem 0 5.5rem; }

.facts { margin: 0; }
.fact {
  display: grid;
  grid-template-columns: minmax(0, 0.28fr) minmax(0, 1fr);
  gap: 2rem;
  padding: 1.8rem 0;
  border-top: 1px solid var(--border);
}
.fact:last-of-type { border-bottom: 1px solid var(--border); }

.fact dt {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-strong);
  padding-top: 0.25rem;
}
.fact dd {
  margin: 0;
  color: var(--text-muted);
  max-width: 44rem;
}

.manifesto__facts .btn { margin-top: 2.4rem; }

/* ============================================================
   Onde estamos  mapa guiado pelo scroll
   ============================================================ */
.locate {
  position: relative;
  background: var(--dark-900);
  color: #fff;
}
.locate__scroller { height: 175vh; }
.locate__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* mapa (Leaflet cobre; fallback aparece se não carregar) */
.locate__map { position: absolute; inset: 0; }
.locate__leaflet { position: absolute; inset: 0; background: transparent; z-index: 1; }

.locate__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(40rem 30rem at 60% 40%, rgba(234, 72, 56, 0.22), transparent 60%),
    var(--dark-900);
}
.locate__fallback-gear {
  width: min(360px, 55%);
  color: var(--primary);
  opacity: 0.08;
  animation: gear-rotate 40s linear infinite;
}

/* tinta de marca sobre o mapa + escurecimento p/ leitura do card */
.locate__tint {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(60% 60% at 62% 42%, rgba(234, 72, 56, 0.30), transparent 70%);
  mix-blend-mode: multiply;
}
.locate__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20, 22, 25, 0.92) 0%, rgba(20, 22, 25, 0.55) 34%, rgba(20, 22, 25, 0) 62%),
    linear-gradient(0deg, rgba(20, 22, 25, 0.55), transparent 30%);
}

/* mostra os tiles do mapa em tom de marca (dessaturado + escuro) */
.locate__leaflet .leaflet-tile-pane { filter: grayscale(1) contrast(0.92) brightness(0.72); }
.locate__leaflet .leaflet-container { background: var(--dark-900); font-family: var(--font-body); }
.locate__leaflet .leaflet-control-attribution {
  background: rgba(20, 22, 25, 0.7);
  color: #9AA1AA;
}
.locate__leaflet .leaflet-control-attribution a { color: #C3C8CF; }

/* pino real = marker do Leaflet (ancorado na coordenada exata pelo iconAnchor).
   pino de fallback = .locate__pin, centrado no fundo de marca; some quando há mapa. */
.locate__marker { pointer-events: none; }
.locate--mapped .locate__pin { display: none; }

.locate__pin {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  translate: -50% -100%;
  pointer-events: none;
}
.locate__pin-drop {
  display: block;
  will-change: transform, opacity;
}
.locate.is-live .locate__pin-drop {
  animation: pin-drop 0.7s var(--ease);
}
@keyframes pin-drop {
  0% { transform: translateY(-90px); opacity: 0; }
  70% { transform: translateY(6px); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.locate__pin-body { width: 46px; height: auto; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5)); }

.locate__radar {
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 22px;
  height: 22px;
  translate: -50% 50%;
  border-radius: 50%;
  background: rgba(234, 72, 56, 0.5);
  opacity: 0;
}
.locate.is-live .locate__radar { animation: radar 2.4s var(--ease) infinite; }
.locate.is-live .locate__radar--2 { animation-delay: 1.2s; }
@keyframes radar {
  0% { transform: scale(0.3); opacity: 0.7; }
  100% { transform: scale(6); opacity: 0; }
}

/* card de informações + WhatsApp */
.locate__overlay {
  position: relative;
  z-index: 4;
  height: 100%;
  display: flex;
  align-items: center;
}
.locate__card {
  max-width: 30rem;
  padding: 2.2rem 2.2rem 2.4rem;
  background: rgba(20, 22, 25, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.locate.is-live .locate__card { opacity: 1; transform: none; }
.locate__card .eyebrow { color: var(--primary-bright); }
.locate__title { color: #fff; }
.locate__lead { color: #C3C8CF; }

.locate__facts { display: grid; gap: 1.1rem; margin: 1.6rem 0 2rem; }
.locate__facts li { display: flex; gap: 0.9rem; align-items: flex-start; }
.locate__facts svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--primary-bright); margin-top: 2px; }
.locate__facts strong { display: block; font-size: 0.9375rem; color: #fff; }
.locate__facts span { font-size: 0.9375rem; color: #9AA1AA; }

.locate__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.locate__whats svg { width: 22px; height: 22px; }

/* convite a rolar */
.locate__cue {
  position: absolute;
  left: 50%;
  bottom: 1.7rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  translate: -50% 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9AA1AA;
  transition: opacity 0.4s var(--ease);
}
.locate.is-live .locate__cue { opacity: 0; }
.locate__cue svg { width: 15px; height: 15px; color: var(--primary-bright); animation: nudge-down 1.5s var(--ease) infinite; }

/* fallback sem JS / movimento reduzido: cena estática completa */
.locate--static .locate__scroller { height: auto; }
.locate--static .locate__sticky { position: static; height: auto; min-height: 88vh; }
.locate--static .locate__pin-drop,
.locate--static .locate__card { opacity: 1; transform: none; }
.locate--static .locate__cue { display: none; }

/* ============================================================
   Rodapé
   ============================================================ */
.footer {
  background: var(--dark);
  color: #C7CBD1;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 0 3rem;
}
.footer__brand p { font-size: 0.9375rem; margin-top: 1.2rem; }

.footer h3 {
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer ul { display: grid; gap: 0.55rem; }
.footer a { color: #C7CBD1; font-size: 0.9375rem; transition: color 0.25s var(--ease); }
.footer a:hover { color: #fff; text-decoration: none; }
.footer li { font-size: 0.9375rem; }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 1.4rem 0;
}
.footer__bottom p { margin: 0; font-size: 0.8125rem; color: #ABB1B9; }

/* ============================================================
   Botão flutuante do WhatsApp
   ============================================================ */
.whats-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-strong);
  color: #fff;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}
.whats-float:hover { transform: translateY(-4px) scale(1.05); background: var(--primary-hover); }
.whats-float svg { width: 28px; height: 28px; }

/* ============================================================
   Animações de revelação
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 1024px) {
  .process__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .process__intro { position: static; }
  .process__gear { width: 56px; height: 56px; }
  .process-step { min-height: 0; padding: 2.4rem 0; }

  .showcase-panel { grid-template-columns: 1fr; gap: 0.8rem; }
  .showcase--interactive .showcase-panel { min-height: 0; }

  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__content { max-width: none; order: 2; }
  .hero__gauge { order: 1; width: min(320px, 78%); }
  .hero__glow { top: 22%; right: -10%; }

  .fact { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.5rem 0; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 1.2rem 1.25rem 1.6rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), visibility 0.3s;
  }
  .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .nav__list { flex-direction: column; gap: 0.2rem; }
  .nav__link { display: block; padding: 0.85rem 0.2rem; font-size: 1.05rem; }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 0.6rem; }
  .nav-toggle { display: flex; }

  .hero__sticky { padding-top: calc(var(--header-h) + 2.5rem); padding-bottom: 4rem; }
  .hero__scroller { height: 122vh; }
  .hero__title { font-size: clamp(2rem, 1.4rem + 4vw, 2.8rem); }
  .hero__stats { gap: 1rem 1.6rem; }
  .section { padding: 4rem 0; }

  .locate__overlay { align-items: flex-end; padding-bottom: 2rem; }
  .locate__card { padding: 1.6rem 1.5rem 1.8rem; }
  .locate__actions .btn { flex: 1 1 auto; }
  .locate__pin { top: 40%; }

  .process__track { padding-left: 36px; }
  .process-step::before { left: -37px; }
  .process-step { padding: 1.9rem 0; }

  .showcase { padding: 4rem 0; }
  .showcase__seg { width: 72px; }

  .footer__inner { grid-template-columns: 1fr; gap: 2.2rem; padding: 3rem 0 2.4rem; }
}

/* ============================================================
   Acessibilidade  movimento reduzido
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal { opacity: 1; transform: none; }
  .hero__gauge-brand, .locate__fallback-gear { animation: none; }
}
