/* ==========================================================================
   TITAN HEAVY MACHINERY — Folha de estilo principal
   VERSAO 30  (2026-08-04)   <<< confira esta linha para saber o que está no ar
   Autor: Template front-end  |  Versão 1.0
   --------------------------------------------------------------------------
   ÍNDICE
   01. Tokens de design
   02. Reset e base
   03. Tipografia
   04. Layout e utilitários
   05. Placa de identificação (elemento-assinatura)
   06. Botões
   07. Cabeçalho e navegação
   08. Hero
   09. Faixa de indicadores
   10. Cards de máquina
   11. Página de máquinas (filtros)
   12. Detalhe da máquina (galeria + ficha técnica)
   13. Blocos institucionais
   14. Processo numerado
   15. Blog e artigo
   16. Formulários
   17. Faixa de chamada (hazard)
   18. Rodapé
   19. Widget WhatsApp
   20. Animações e estados de scroll
   21. Responsividade
   22. Acessibilidade / movimento reduzido
   ========================================================================== */


/* ==========================================================================
   01. TOKENS DE DESIGN
   ========================================================================== */

:root {
  /* --- Cor: extraída diretamente da logo TITAN --- */
  --titan-yellow:      #FFCC00;
  --titan-yellow-deep: #E5B300;
  --titan-yellow-soft: #FFF3C4;

  /* Pretos ligeiramente frios — leem como aço pintado, não como tinta */
  --ink-900: #0A0B0C;
  --ink-800: #131518;
  --ink-700: #1D2025;
  --ink-600: #2B2F35;

  /* Cinzas de aço */
  --steel-600: #565C63;
  --steel-500: #7A8087;
  --steel-400: #9AA0A6;
  --steel-300: #C4C8CC;
  --steel-200: #DFE2E3;

  /* Concreto — off-white frio (não bege) */
  --concrete-100: #F1F2F0;
  --concrete-50:  #F8F8F7;
  --white:        #FFFFFF;

  /* Semânticos */
  --bg:            var(--white);
  --bg-alt:        var(--concrete-100);
  --bg-dark:       var(--ink-900);
  --text:          var(--ink-900);
  --text-muted:    var(--steel-600);
  --text-invert:   var(--white);
  --border:        rgba(10, 11, 12, .10);
  --border-dark:   rgba(255, 255, 255, .12);

  /* --- Tipografia --- */
  --font-display: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-data:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* Escala fluida */
  --fs-hero:   clamp(2.5rem, 5.6vw, 5.25rem);
  --fs-h1:     clamp(2.25rem, 5.2vw, 4rem);
  --fs-h2:     clamp(1.85rem, 3.9vw, 3rem);
  --fs-h3:     clamp(1.25rem, 2.1vw, 1.65rem);
  --fs-h4:     clamp(1.05rem, 1.5vw, 1.25rem);
  --fs-body:   clamp(1rem, 1.05vw, 1.0625rem);
  --fs-small:  .875rem;
  --fs-micro:  .75rem;

  /* --- Espaçamento --- */
  --space-section: clamp(4.5rem, 9vw, 8.75rem);
  --space-block:   clamp(2.5rem, 4.5vw, 4rem);
  --gutter:        clamp(1.25rem, 4vw, 3.5rem);
  --maxw:          1320px;
  --maxw-narrow:   760px;

  /* --- Traço e sombra --- */
  --radius:    2px;      /* praticamente reto: vocabulário industrial */
  --radius-lg: 3px;
  --shadow-sm:  0 1px 2px rgba(10,11,12,.06), 0 4px 12px rgba(10,11,12,.05);
  --shadow-md:  0 4px 10px rgba(10,11,12,.07), 0 18px 40px rgba(10,11,12,.09);
  --shadow-lg:  0 10px 24px rgba(10,11,12,.10), 0 40px 80px rgba(10,11,12,.14);
  --shadow-yellow: 0 12px 34px rgba(255,204,0,.30);

  /* --- Movimento --- */
  --ease:      cubic-bezier(.22, .61, .36, 1);
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --dur-fast:  .22s;
  --dur:       .42s;
  --dur-slow:  .8s;

  /* Altura do cabeçalho */
  --header-h: 100px;
}


/* ==========================================================================
   02. RESET E BASE
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
/* Lenis assume o controle do scroll suave quando ativo */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

ul, ol { margin: 0; padding: 0; list-style: none; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--space-block) 0;
}

::selection { background: var(--titan-yellow); color: var(--ink-900); }

:focus-visible {
  outline: 3px solid var(--titan-yellow);
  outline-offset: 3px;
}

/* Barra de rolagem — detalhe discreto de acabamento */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--concrete-100); }
::-webkit-scrollbar-thumb { background: var(--steel-400); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-700); }

/* Pular para o conteúdo — acessibilidade de teclado */
.skip-link {
  position: absolute;
  top: -100px; left: 1rem;
  z-index: 999;
  padding: .75rem 1.25rem;
  background: var(--titan-yellow);
  color: var(--ink-900);
  font-family: var(--font-data);
  font-size: var(--fs-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: 1rem; }


/* ==========================================================================
   03. TIPOGRAFIA
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.02em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.2; }
h4 { font-size: var(--fs-h4); font-weight: 700; line-height: 1.3; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

/* Título de seção em caixa alta e peso máximo — voz da marca */
.t-display {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.025em;
  line-height: .94;
}

.t-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3125rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 60ch;
}

.t-muted { color: var(--text-muted); }
.t-yellow { color: var(--titan-yellow); }
.t-small { font-size: var(--fs-small); }

/* Dado técnico em monoespaçada — leitura de ficha de máquina */
.t-data {
  font-family: var(--font-data);
  font-size: var(--fs-micro);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.t-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
  line-height: 1;
}


/* ==========================================================================
   04. LAYOUT E UTILITÁRIOS
   ========================================================================== */

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--narrow { max-width: var(--maxw-narrow); }
.shell--wide   { max-width: 1560px; }

.section { padding-block: var(--space-section); }
.section--tight { padding-block: calc(var(--space-section) * .6); }
.section--dark {
  background: var(--bg-dark);
  color: var(--text-invert);
}
.section--alt { background: var(--bg-alt); }

.section--dark .t-lead,
.section--dark .t-muted { color: var(--steel-400); }
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--white); }

/* Cabeçalho de seção */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  margin-bottom: var(--space-block);
}
.section-head__text { max-width: 46rem; }
.section-head h2 { margin-top: 1rem; }
.section-head p { margin-top: 1.15rem; }

.grid { display: grid; gap: clamp(1.25rem, 2.2vw, 2rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stack > * + * { margin-top: 1.15rem; }

.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;
}

/* Regra fina com marcação amarela à esquerda */
.rule {
  height: 1px;
  background: var(--border);
  position: relative;
}
.rule::before {
  content: '';
  position: absolute;
  inset: -1px auto -1px 0;
  width: 56px;
  background: var(--titan-yellow);
}
.section--dark .rule { background: var(--border-dark); }


/* ==========================================================================
   05. PLACA DE IDENTIFICAÇÃO — elemento-assinatura
   --------------------------------------------------------------------------
   Referência direta à plaqueta de dados rebitada no chassi de máquinas
   pesadas: fundo escuro, filete amarelo, tipografia monoespaçada estampada.
   ========================================================================== */

.plate {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .5rem .95rem .5rem .8rem;
  background: var(--ink-900);
  border-left: 4px solid var(--titan-yellow);
  color: var(--white);
  font-family: var(--font-data);
  font-size: var(--fs-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  white-space: nowrap;
}
.plate--light {
  background: var(--white);
  color: var(--ink-900);
  box-shadow: inset 0 0 0 1px var(--border);
}
.plate--ghost {
  background: transparent;
  color: var(--ink-900);
  box-shadow: inset 0 0 0 1px var(--border);
}
/* Contextos de fundo escuro. Sem esta lista, a plaqueta fantasma herda o preto
   de .plate--ghost e some dentro da faixa de chamada, do cabeçalho das páginas
   internas e das caixas de cotação. */
.section--dark .plate--ghost,
.page-hero .plate--ghost,
.cta-band .plate--ghost,
.quote-box .plate--ghost,
.post-feature .plate--ghost {
  color: var(--white);
  box-shadow: inset 0 0 0 1px var(--border-dark);
}
/* Rebites — dois pontos que remetem à fixação da plaqueta */
.plate::after {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--titan-yellow);
  opacity: .55;
  flex: none;
}

/* Faixa de advertência — usada com muita parcimônia */
.hazard {
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--titan-yellow) 0 14px,
    var(--ink-900) 14px 28px
  );
}
.hazard--thin { height: 6px; }


/* Pseudo-elementos decorativos não capturam toque. Sem isto, camadas de
   fundo, brilhos e anéis de pulso ficam por cima do conteúdo em alguns
   contextos e roubam o clique de botões e links. */
.btn::before,
.nav__link::after,
.hero::before,
.hero::after,
.page-hero::before,
.page-hero::after,
.cta-band::before,
.machine-card::before,
.media-frame::before,
.media-frame::after,
.wa-fab::after,
.site-header::after,
.rule::before,
.plate::after,
.timeline::before,
.timeline__item::before,
.steps__item::before,
.article-body ul li::before,
.article-body ol li::before,
.mobile-nav__sub a::before,
.filter-btn.is-active::after,
.footer-col h4::after,
.footer-col li a::before { pointer-events: none; }


/* ==========================================================================
   06. BOTÕES
   ========================================================================== */

.btn {
  --btn-bg: var(--ink-900);
  --btn-fg: var(--white);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: 1.05rem 1.9rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  line-height: 1;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              box-shadow var(--dur) var(--ease);
}
/* Preenchimento que sobe a partir da base no hover */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--titan-yellow);
  transform: translateY(101%);
  transition: transform var(--dur) var(--ease-out);
}
.btn:focus-visible::before { transform: translateY(0); }
.btn:focus-visible {
  color: var(--ink-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
@media (hover: hover) {
  .btn:hover::before { transform: translateY(0); }
  .btn:hover {
    color: var(--ink-900);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
}
.btn:active { transform: translateY(0); }
.btn i, .btn svg { font-size: 1em; }
/* O WhatsApp é o canal principal de conversão: o ícone dele vem maior que os
   demais, em todo botão, para puxar o olho antes do texto. */
.btn .fa-whatsapp { font-size: 1.7em; }
.btn--lg .fa-whatsapp { font-size: 1.8em; }
.wa-option .fa-whatsapp,
.contact-item .fa-whatsapp,
.footer-contact .fa-whatsapp { font-size: 1.45em; }

.btn--yellow {
  --btn-bg: var(--titan-yellow);
  --btn-fg: var(--ink-900);
}
.btn--yellow::before { background: var(--ink-900); }
.btn--yellow:hover, .btn--yellow:focus-visible { color: var(--white); }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink-900);
  box-shadow: inset 0 0 0 1.5px var(--ink-900);
}
.btn--outline:hover, .btn--outline:focus-visible { box-shadow: inset 0 0 0 1.5px var(--titan-yellow), var(--shadow-md); }

.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35);
}

.btn--wa {
  --btn-bg: #25D366;
  --btn-fg: #06301A;
}
.btn--wa::before { background: var(--ink-900); }
.btn--wa:hover, .btn--wa:focus-visible { color: var(--titan-yellow); }

.btn--sm { padding: .8rem 1.35rem; font-size: .75rem; }
.btn--lg { padding: 1.25rem 2.4rem; font-size: .875rem; }
.btn--block { display: flex; width: 100%; }

/* Botão de canal: usado na página de contato, um por assunto.
   Alinhado à esquerda e com o ícone bem maior, para o olho encontrar o
   WhatsApp antes de ler o rótulo. */
.btn--canal {
  justify-content: flex-start;
  gap: 1.1rem;
  width: 100%;
  padding: 1.35rem 1.75rem;
  font-size: .875rem;
}
.btn--canal .fa-whatsapp { font-size: 2.45em; }

.canais__lista {
  display: grid;
  gap: .75rem;
  margin-top: 2rem;
}

/* Link com seta que avança no hover */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-data);
  font-size: var(--fs-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  padding-bottom: .35rem;
  border-bottom: 2px solid var(--titan-yellow);
}
.link-arrow i { transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover i { transform: translateX(6px); }


/* ==========================================================================
   07. CABEÇALHO E NAVEGAÇÃO
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: height var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
/* Ao rolar, o cabeçalho encolhe e ganha sombra */
.site-header.is-stuck {
  height: 80px;
  box-shadow: 0 6px 24px rgba(10, 11, 12, .10);
}
/* Filete amarelo na base — assinatura da marca no topo de toda página */
.site-header::after {
  content: '';
  position: absolute;
  inset: auto 0 -1px 0;
  height: 2px;
  background: var(--titan-yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}
.site-header.is-stuck::after { transform: scaleX(1); }

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  max-width: 1560px;
}

.brand { display: flex; align-items: center; flex: none; }
.brand img {
  height: 62px;
  width: auto;
  transition: height var(--dur) var(--ease);
}
.site-header.is-stuck .brand img { height: 50px; }

/* --- Navegação principal --- */
.nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.2vw, 2.25rem); }

.nav__link {
  position: relative;
  padding: .4rem 0;
  color: var(--steel-600);
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--titan-yellow);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.nav__link:hover, .nav__link:focus-visible { color: var(--ink-900); }
.nav__link:hover::after, .nav__link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav__link.is-active { color: var(--ink-900); }
.nav__link.is-active::after { transform: scaleX(1); }

/* --- Submenu de máquinas --- */
.nav__item { position: relative; }
.nav__item--has-menu > .nav__link { display: inline-flex; align-items: center; gap: .45rem; }
.nav__item--has-menu > .nav__link i { font-size: .6em; transition: transform var(--dur-fast) var(--ease); }
.nav__item--has-menu:hover > .nav__link i { transform: rotate(180deg); }

.submenu {
  position: absolute;
  top: calc(100% + 14px);
  left: -1rem;
  min-width: 268px;
  padding: .5rem;
  background: var(--white);
  border-top: 3px solid var(--titan-yellow);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--dur) var(--ease),
              transform var(--dur) var(--ease-out),
              visibility var(--dur);
}
.nav__item--has-menu:hover .submenu,
.nav__item--has-menu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem;
  color: var(--steel-600);
  font-size: var(--fs-small);
  font-weight: 500;
  border-left: 2px solid transparent;
}
.submenu a span.t-data { color: var(--steel-500); font-size: .6875rem; }
.submenu a:hover {
  background: var(--concrete-100);
  border-left-color: var(--titan-yellow);
  color: var(--ink-900);
}
.submenu a:hover span.t-data { color: var(--titan-yellow-deep); }

/* --- Seletor de idioma --- */
.lang {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding-right: .95rem;
  border-right: 1px solid var(--border);
}
.lang__btn {
  width: 30px; height: 21px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 2px;
  overflow: hidden;
  line-height: 0;
  /* Inativas em cinza: a bandeira só ganha cor quando é a língua em uso */
  filter: grayscale(1);
  opacity: .5;
  transition: filter var(--dur-fast) var(--ease),
              opacity var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.lang__btn svg { display: block; width: 100%; height: 100%; }
.lang__btn:hover,
.lang__btn:focus-visible { filter: none; opacity: 1; transform: translateY(-1px); }
.lang__btn.is-active {
  filter: none;
  opacity: 1;
  box-shadow: 0 0 0 2px var(--titan-yellow);
}

/* --- Ações do cabeçalho --- */
.header-actions { display: flex; align-items: center; gap: 1rem; flex: none; }

/* --- Botão hambúrguer --- */
.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--steel-300);
  border-radius: var(--radius);
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 50%; top: 50%;
  width: 20px; height: 2px;
  background: var(--ink-900);
  transform: translate(-50%, -50%);
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast) var(--ease);
}
.nav-toggle span:nth-child(1) { transform: translate(-50%, -7px); }
.nav-toggle span:nth-child(3) { transform: translate(-50%, 5px); }
.nav-toggle.is-open span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* --- Menu mobile --- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
  background: var(--white);
  /* Rolagem própria do painel. O atributo data-lenis-prevent na marcação
     impede o Lenis de bloquear o toque aqui — sem ele, o menu não rola. */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-1.5rem);
  transition: opacity var(--dur) var(--ease),
              transform var(--dur) var(--ease-out),
              visibility var(--dur);
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav a {
  display: block;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.mobile-nav a:hover { color: var(--titan-yellow-deep); padding-left: .5rem; }
.mobile-nav a small {
  display: block;
  font-family: var(--font-data);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--steel-500);
  margin-top: .3rem;
}
.mobile-nav__footer { margin-top: auto; padding-top: 2rem; }

/* ==========================================================================
   08. HERO
   --------------------------------------------------------------------------
   Duas colunas: texto à esquerda, máquina à direita. A máquina ocupa uma
   coluna própria do grid — nunca fica por cima do texto, em nenhuma largura.
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  background: var(--ink-900);
  overflow: hidden;
}
/* Campo de concreto atrás da máquina */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 72% 42%, #2C3037 0%, #16181C 48%, #0A0B0C 100%);
}
/* Grade técnica sutil — vocabulário de projeto/engenharia */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(90% 70% at 50% 45%, #000 20%, transparent 88%);
  -webkit-mask-image: radial-gradient(90% 70% at 50% 45%, #000 20%, transparent 88%);
}

.hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1560px;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vh, 4.5rem) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  grid-template-areas:
    "texto   maquina"
    "acoes   maquina";
  align-content: center;
  gap: 0 clamp(1.5rem, 3vw, 3rem);
}

.hero__content {
  grid-area: texto;
  align-self: end;
  /* Medida única dos três níveis do banner */
  --hero-col: 30rem;
  max-width: var(--hero-col);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-hero);
  line-height: .98;
  letter-spacing: -.03em;
  text-transform: uppercase;
  color: var(--white);
  /* folga no topo para o acento de Ç e Á não ser cortado */
  margin: 0;
  padding-top: .08em;
  max-width: var(--hero-col);
}
.hero__title em {
  font-style: normal;
  color: var(--titan-yellow);
  display: block;
}

/* Três níveis no banner: título, subtítulo e apoio.
   Cada um precisa de peso e cor distintos, senão os dois parágrafos viram um
   bloco só de texto cinza. O subtítulo herda o branco e ganha peso; o de apoio
   fica menor e mais apagado. */
/* Os três níveis dividem a mesma coluna (--hero-col), então quebram sempre no
   mesmo ponto e formam um bloco alinhado à esquerda e à direita. Larguras
   diferentes faziam cada parágrafo terminar num lugar, e o conjunto perdia a
   forma de bloco. */
.hero__sub {
  margin-top: .55rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.375rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.01em;
  color: rgba(255, 255, 255, .92);
  max-width: var(--hero-col);
  text-wrap: pretty;
}

.hero__desc {
  margin-top: 1.15rem;
  font-size: clamp(.875rem, .95vw, .9375rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, .58);
  max-width: var(--hero-col);
  text-wrap: pretty;
}

.hero__actions {
  grid-area: acoes;
  align-self: start;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2.25rem;
}

/* Máquina — coluna própria do grid, ocupando as duas linhas.
   Abriga o carrossel de três fotos do banner. */
.hero__machine {
  grid-area: maquina;
  align-self: center;
  justify-self: end;
  width: 100%;
  max-width: 780px;
  filter: drop-shadow(0 34px 52px rgba(0,0,0,.6));
}
.hero__machine .swiper { width: 100%; overflow: hidden; }
.hero__machine .swiper-slide { display: grid; place-items: center; }
/* Proporção fixa: fotos de origens diferentes não deslocam o layout */
.hero__machine img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}

/* Marcadores do carrossel do banner */
.hero__dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.25rem;
}
.hero__dots .swiper-pagination-bullet {
  width: 30px; height: 3px;
  border-radius: 0;
  background: rgba(255,255,255,.28);
  opacity: 1;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}
.hero__dots .swiper-pagination-bullet-active { background: var(--titan-yellow); }

/* --- Hero interno das páginas --- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 6rem));
  padding-bottom: clamp(3rem, 7vw, 6rem);
  background: var(--ink-900);
  color: var(--white);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(100% 120% at 85% 0%, #262A30 0%, #101216 55%, #0A0B0C 100%);
}
/* Leão em marca d'água — presença de marca sem competir com o texto */
.page-hero::after {
  content: '';
  position: absolute;
  right: -60px; top: 50%;
  width: 380px; height: 380px;
  transform: translateY(-50%);
  background: url('../images/lion-mark.png') no-repeat center / contain;
  opacity: .05;
  pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 2; }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-h1);
  text-transform: uppercase;
  letter-spacing: -.03em;
  line-height: .96;
  margin: 1.25rem 0 0;
  max-width: 18ch;
}
.page-hero p {
  margin-top: 1.35rem;
  max-width: 56ch;
  color: rgba(255,255,255,.72);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
}

/* Cabeçalho reduzido: só a trilha de navegação. Sem título e sem texto,
   o espaçamento cheio deixaria uma faixa preta vazia — aqui ele encolhe
   para o tamanho de uma barra. */
.page-hero--trilha {
  padding-top: calc(var(--header-h) + clamp(1.25rem, 2.5vw, 2rem));
  padding-bottom: clamp(1.25rem, 2.5vw, 2rem);
}
.page-hero--trilha::after { display: none; }

/* Trilha de navegação */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-data);
  font-size: var(--fs-micro);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--steel-500);
}
.crumbs a:hover { color: var(--titan-yellow); }
.crumbs li:not(:last-child)::after { content: '/'; margin-left: .55rem; color: var(--steel-600); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li[aria-current] { color: var(--titan-yellow); }


/* ==========================================================================
   09. FAIXA DE INDICADORES
   ========================================================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.stats__item {
  padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1.25rem, 2vw, 2rem);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats__value {
  display: flex;
  align-items: baseline;
  gap: .2rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--ink-900);
}
.stats__value sup {
  font-size: .42em;
  color: var(--titan-yellow);
  top: -.75em;
}
.stats__label {
  margin-top: .85rem;
  font-family: var(--font-data);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.section--dark .stats { border-color: var(--border-dark); }
.section--dark .stats__item { border-color: var(--border-dark); }
.section--dark .stats__value { color: var(--white); }
.section--dark .stats__label { color: var(--steel-500); }


/* ==========================================================================
   10. CARDS DE MÁQUINA
   ========================================================================== */

.machine-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
@media (hover: hover) { .machine-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
} }
/* Filete amarelo que cresce no topo do card */
.machine-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--titan-yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
  z-index: 3;
}
.machine-card:hover::before { transform: scaleX(1); }

.machine-card__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: linear-gradient(170deg, var(--concrete-50) 0%, var(--concrete-100) 100%);
  padding: 1.5rem;
  overflow: hidden;
  cursor: pointer;
}
.machine-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--dur-slow) var(--ease-out);
}
.machine-card:hover .machine-card__media img { transform: scale(1.06); }

.machine-card__tag {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 2;
}

.machine-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.35rem, 2vw, 1.75rem);
}
/* Bloco clicável: código, título e descrição levam ao detalhe da máquina.
   Os botões de ação ficam fora dele, para não haver link dentro de link. */
.machine-card__text {
  display: block;
  color: inherit;
}
.machine-card__code {
  font-family: var(--font-data);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--steel-500);
}
.machine-card__title {
  margin: .55rem 0 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.02em;
  line-height: 1.05;
  transition: color var(--dur-fast) var(--ease);
}
.machine-card__text:hover .machine-card__title,
.machine-card__text:focus-visible .machine-card__title { color: var(--titan-yellow-deep); }
.machine-card__desc {
  margin-top: .7rem;
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: 1.6;
}

/* Fita de dados — mesma lógica da plaqueta do chassi */
.machine-card__specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 1.25rem 0 0;
  background: var(--border);
  border: 1px solid var(--border);
}
.machine-card__specs li {
  background: var(--white);
  padding: .7rem .5rem;
  text-align: center;
}
.machine-card__specs dt,
.machine-card__specs .k {
  display: block;
  font-family: var(--font-data);
  font-size: .5625rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--steel-500);
}
.machine-card__specs .v {
  display: block;
  margin-top: .3rem;
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}

.machine-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: auto;
  padding-top: 1.35rem;
}
.machine-card__actions .btn { flex: 1 1 auto; }

/* Card horizontal — destaque na home */
.machine-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  background: var(--concrete-100);
  border-radius: var(--radius);
  overflow: hidden;
}
.machine-feature__media {
  padding: clamp(1.5rem, 3vw, 3rem);
  display: grid;
  place-items: center;
}
.machine-feature__body { padding: clamp(1.75rem, 3vw, 3.5rem) clamp(1.5rem, 3vw, 3.5rem) clamp(1.75rem, 3vw, 3.5rem) 0; }


/* ==========================================================================
   11. PÁGINA DE MÁQUINAS — filtros
   ========================================================================== */

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-block);
}
.filter-btn {
  padding: .8rem 1.4rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text-muted);
  transition: all var(--dur-fast) var(--ease);
}
.filter-btn:hover {
  border-color: var(--ink-900);
  color: var(--ink-900);
}
.filter-btn.is-active {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: var(--white);
}
.filter-btn.is-active::after {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  margin-left: .6rem;
  background: var(--titan-yellow);
  border-radius: 50%;
  vertical-align: middle;
}
.filter-count {
  margin-left: auto;
  font-family: var(--font-data);
  font-size: var(--fs-micro);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--steel-500);
}

/* Estado de transição dos itens filtrados */
.machine-item { transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease-out); }
.machine-item.is-hidden { display: none; }


/* ==========================================================================
   12. DETALHE DA MÁQUINA
   ========================================================================== */

/* Filhos de grid não encolhem abaixo do próprio conteúdo por padrão
   (min-width: auto). Com imagem grande dentro, o mínimo vira a largura natural
   do arquivo e a coluna estoura a tela — no mobile isso aparecia como a
   galeria cortada à direita, porque overflow-x: hidden apara o excedente em
   silêncio em vez de permitir rolagem. */
.detail-hero > *,
.split > *,
.machine-feature > *,
.post-feature > *,
.gallery__thumb,
.machine-card,
.post-card { min-width: 0; }

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  /* Topo, não centro: em tela grande as duas colunas têm alturas diferentes e
     a centralização deixava a galeria começar bem abaixo da plaqueta da série. */
  align-items: start;
}

.gallery__main {
  position: relative;
  background: linear-gradient(170deg, var(--concrete-50), var(--concrete-100));
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  cursor: zoom-in;
  overflow: hidden;
}
.gallery__main { min-width: 0; }
.gallery__main img { width: 100%; height: 100%; max-width: 100%; object-fit: contain; }
.gallery__zoom {
  position: absolute;
  right: 1rem; bottom: 1rem;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--ink-900);
  color: var(--titan-yellow);
  border-radius: var(--radius);
  transition: transform var(--dur-fast) var(--ease);
}
.gallery__main:hover .gallery__zoom { transform: scale(1.1); }

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin-top: .75rem;
}
.gallery__thumb {
  aspect-ratio: 4 / 3;
  background: var(--concrete-100);
  border: 1px solid var(--border);
  padding: .5rem;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease);
}
.gallery__thumb img { width: 100%; height: 100%; max-width: 100%; object-fit: contain; }
.gallery__thumb:hover,
.gallery__thumb.is-active { border-color: var(--titan-yellow); border-width: 2px; }

.detail-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.035em;
  line-height: .95;
  margin: 1rem 0 0;
}
.detail-sub { margin-top: 1.15rem; font-size: 1.0625rem; color: var(--text-muted); }

/* Destaques rápidos */
.detail-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 2rem 0;
  background: var(--border);
  border: 1px solid var(--border);
}
.detail-highlights li { background: var(--white); padding: 1.15rem 1.25rem; }
.detail-highlights .k {
  font-family: var(--font-data);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel-500);
}
.detail-highlights .v {
  display: block;
  margin-top: .35rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.detail-highlights .v small {
  font-size: .5em;
  font-weight: 700;
  color: var(--steel-500);
  margin-left: .2rem;
}

/* Ficha técnica completa */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table caption {
  text-align: left;
  padding-bottom: 1rem;
}
.spec-table th, .spec-table td {
  padding: 1rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-small);
}
.spec-table th {
  width: 46%;
  font-family: var(--font-data);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.spec-table td {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.spec-table tbody tr { transition: background var(--dur-fast) var(--ease); }
.spec-table tbody tr:hover { background: var(--concrete-50); }
.spec-table tbody tr:hover th { color: var(--ink-900); }

/* Abas */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-block);
}
.tab-btn {
  padding: 1.15rem 1.6rem;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.tab-btn:hover { color: var(--ink-900); }
.tab-btn.is-active { color: var(--ink-900); border-bottom-color: var(--titan-yellow); }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeUp .5s var(--ease-out) both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* Lista de itens de série */
.feature-list li {
  display: flex;
  gap: .9rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-small);
}
.feature-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--titan-yellow);
  font-size: .75rem;
  margin-top: .25rem;
  flex: none;
}

/* Caixa de cotação fixa */
.quote-box {
  background: var(--ink-900);
  color: var(--white);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 4px solid var(--titan-yellow);
}
.quote-box h3 { color: var(--white); }
.quote-box p { color: var(--steel-400); font-size: var(--fs-small); }


/* ==========================================================================
   13. BLOCOS INSTITUCIONAIS
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split--reverse .split__media { order: 2; }

.media-frame {
  position: relative;
  background: var(--concrete-100);
  border-radius: var(--radius);
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 3rem);
}
/* Cantoneira amarela — acabamento de chapa */
.media-frame::before,
.media-frame::after {
  content: '';
  position: absolute;
  width: 46px; height: 46px;
  border: 3px solid var(--titan-yellow);
}
.media-frame::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.media-frame::after  { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.media-frame img { width: 100%; }

/* Cards de valor */
.value-card {
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--border);
  height: 100%;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease);
}
@media (hover: hover) { .value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); } }
.value-card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--ink-900);
  color: var(--titan-yellow);
  border-radius: var(--radius);
  font-size: 1.15rem;
  margin-bottom: 1.35rem;
}
.value-card h3 { font-size: 1.125rem; }
.value-card p { margin-top: .7rem; font-size: var(--fs-small); color: var(--text-muted); }

.section--dark .value-card {
  background: var(--ink-800);
  border-color: var(--border-dark);
}
.section--dark .value-card p { color: var(--steel-400); }
.section--dark .value-card__icon { background: var(--titan-yellow); color: var(--ink-900); }

/* Linha do tempo */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: .5rem; bottom: .5rem;
  width: 2px;
  background: var(--border);
}
.timeline__item { position: relative; padding-bottom: 2.5rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: '';
  position: absolute;
  left: -2.5rem; top: .45rem;
  width: 14px; height: 14px;
  background: var(--titan-yellow);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--titan-yellow);
  border-radius: 50%;
}
.timeline__year {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--ink-900);
}
.timeline__item p { margin-top: .5rem; font-size: var(--fs-small); color: var(--text-muted); }

.section--dark .timeline::before { background: var(--border-dark); }
.section--dark .timeline__item::before { border-color: var(--ink-900); }
.section--dark .timeline__year { color: var(--white); }


/* ==========================================================================
   14. PROCESSO NUMERADO
   --------------------------------------------------------------------------
   A numeração só aparece onde a ordem realmente importa: o fluxo de venda
   da máquina é sequencial e o cliente precisa saber o que vem depois.
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  counter-reset: step;
}
.steps__item {
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2vw, 2rem);
  border-left: 1px solid var(--border);
  counter-increment: step;
}
.steps__item:last-child { border-right: 1px solid var(--border); }
.steps__item::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.25rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--steel-200);
  margin-bottom: 1.25rem;
  transition: color var(--dur) var(--ease);
}
.steps__item:hover::before { color: var(--titan-yellow); }
.steps__item h3 { font-size: 1.0625rem; }
.steps__item p { margin-top: .65rem; font-size: var(--fs-small); color: var(--text-muted); }

.section--dark .steps__item { border-color: var(--border-dark); }
.section--dark .steps__item::before { color: var(--ink-600); }


/* ==========================================================================
   15. BLOG E ARTIGO
   ========================================================================== */

.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease);
}
@media (hover: hover) { .post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); } }
/* Variante informativa: mesmo desenho, sem link — não simula clique */
.post-card--static:hover { transform: none; box-shadow: none; }
.post-card--static .post-card__media { cursor: default; }
.post-card--static:hover .post-card__media img { transform: none; }
.post-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--ink-800);
  overflow: hidden;
  cursor: pointer;
}
.post-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.post-card:hover .post-card__media img { transform: scale(1.05); }
/* Véu escuro na base: garante leitura da etiqueta sobre qualquer foto */
.post-card__media::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(10,11,12,.62), transparent);
  pointer-events: none;
  z-index: 1;
}
.post-card__cat {
  position: absolute;
  z-index: 2;
  left: 1rem; bottom: 1rem;
  padding: .35rem .7rem;
  background: var(--titan-yellow);
  color: var(--ink-900);
  font-family: var(--font-data);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.35rem, 2vw, 1.75rem);
}
.post-card__meta {
  display: flex;
  gap: 1rem;
  font-family: var(--font-data);
  font-size: .625rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--steel-500);
}
.post-card h3 {
  margin: .85rem 0 0;
  font-size: 1.1875rem;
  line-height: 1.25;
  letter-spacing: -.015em;
}
.post-card h3 a:hover { color: var(--titan-yellow-deep); }
.post-card p {
  margin-top: .75rem;
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.post-card .link-arrow { margin-top: auto; padding-top: 1.35rem; align-self: flex-start; border-bottom: 0; }
.post-card .link-arrow span { border-bottom: 2px solid var(--titan-yellow); padding-bottom: .3rem; }

/* Post em destaque */
.post-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 0;
  background: var(--ink-900);
  color: var(--white);
  overflow: hidden;
}
.post-feature__media {
  position: relative;
  display: block;
  min-height: 340px;
  background: var(--ink-800);
  overflow: hidden;
  cursor: pointer;
}
.post-feature__media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.post-feature__body { padding: clamp(2rem, 4vw, 3.5rem); align-self: center; }
.post-feature h2 { font-size: clamp(1.5rem, 2.8vw, 2.25rem); margin: 1rem 0 0; letter-spacing: -.025em; }
.post-feature p { color: var(--steel-400); margin-top: 1.15rem; }

/* --- Corpo do artigo --- */
.article-body {
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--ink-800);
}
.article-body > * + * { margin-top: 1.5rem; }
.article-body h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  letter-spacing: -.025em;
}
.article-body h3 { font-size: 1.25rem; margin-top: 2.25rem; }
.article-body ul, .article-body ol { padding-left: 1.35rem; }
.article-body ul li { list-style: none; position: relative; padding-left: 1.5rem; margin-bottom: .7rem; }
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0; top: .68em;
  width: 8px; height: 2px;
  background: var(--titan-yellow);
}
.article-body ol { counter-reset: li; list-style: none; padding-left: 0; }
.article-body ol li {
  counter-increment: li;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: .85rem;
}
.article-body ol li::before {
  content: counter(li, decimal-leading-zero);
  position: absolute;
  left: 0; top: .05em;
  font-family: var(--font-data);
  font-size: .8125rem;
  font-weight: 700;
  color: var(--titan-yellow-deep);
}
.article-body strong { font-weight: 700; color: var(--ink-900); }
.article-body a:not(.btn) {
  color: var(--ink-900);
  border-bottom: 2px solid var(--titan-yellow);
  font-weight: 500;
}
.article-body a:not(.btn):hover { background: var(--titan-yellow-soft); }

.article-body blockquote {
  margin: 2.5rem 0;
  padding: 1.75rem 2rem;
  background: var(--concrete-100);
  border-left: 4px solid var(--titan-yellow);
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -.015em;
}
.article-body figure { margin: 2.5rem 0; }
.article-body figure img { width: 100%; display: block; }
.article-body figcaption {
  margin-top: .85rem;
  font-family: var(--font-data);
  font-size: var(--fs-micro);
  letter-spacing: .08em;
  color: var(--steel-500);
}

/* Caixa de destaque dentro do artigo */
.callout {
  padding: 1.65rem 1.85rem;
  background: var(--ink-900);
  color: var(--white);
  border-left: 4px solid var(--titan-yellow);
}
.callout .t-data { color: var(--titan-yellow); }
.callout p { color: var(--steel-300); font-size: var(--fs-small); margin-top: .7rem; }

/* Barra lateral do artigo */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.article-aside { position: sticky; top: calc(74px + 2rem); }
.article-aside__block + .article-aside__block { margin-top: 2rem; }

.toc li a {
  display: block;
  padding: .6rem 0 .6rem 1rem;
  border-left: 2px solid var(--border);
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.toc li a:hover, .toc li a.is-active {
  border-left-color: var(--titan-yellow);
  color: var(--ink-900);
}

.share { display: flex; gap: .5rem; }
.share a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.share a:hover { background: var(--ink-900); border-color: var(--ink-900); color: var(--titan-yellow); }

/* Paginação */
.pagination { display: flex; justify-content: center; gap: .5rem; margin-top: var(--space-block); }
.pagination a, .pagination span {
  min-width: 46px; height: 46px;
  display: grid; place-items: center;
  padding-inline: .75rem;
  border: 1px solid var(--border);
  font-family: var(--font-data);
  font-size: var(--fs-small);
  font-weight: 600;
}
.pagination a:hover { background: var(--ink-900); border-color: var(--ink-900); color: var(--white); }
.pagination .is-current { background: var(--titan-yellow); border-color: var(--titan-yellow); color: var(--ink-900); }


/* ==========================================================================
   16. FORMULÁRIOS
   ========================================================================== */

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.field--full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: .5rem; }
.field label {
  font-family: var(--font-data);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field label .req { color: var(--titan-yellow-deep); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .95rem 1.05rem;
  background: var(--white);
  border: 1px solid var(--steel-300);
  border-radius: var(--radius);
  font-size: var(--fs-small);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field textarea { min-height: 148px; resize: vertical; }
.field select { appearance: none; background-image: none; cursor: pointer; }
.field input::placeholder, .field textarea::placeholder { color: var(--steel-400); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--ink-900);
  box-shadow: 0 0 0 3px rgba(255, 204, 0, .35);
}

/* Seletor com seta desenhada */
.field--select { position: relative; }
.field--select::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 1.05rem; bottom: 1.05rem;
  font-size: .7rem;
  color: var(--steel-500);
  pointer-events: none;
}

/* Campo em fundo escuro */
.form--dark .field label { color: var(--steel-400); }
.form--dark .field input,
.form--dark .field select,
.form--dark .field textarea {
  background: var(--ink-800);
  border-color: var(--ink-600);
  color: var(--white);
}
.form--dark .field input:focus,
.form--dark .field select:focus,
.form--dark .field textarea:focus { border-color: var(--titan-yellow); }

/* Área de envio de fotos.
   A versão anterior era uma caixa clara solta dentro de um formulário escuro.
   Agora tem variante própria para fundo escuro e separa duas coisas que
   estavam amontoadas numa frase só: a zona de arraste e a lista das seis
   fotos que a avaliação exige. */
.dropzone {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.dropzone__area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .55rem;
  padding: 2.5rem 1.5rem;
  background: var(--concrete-50);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}
.dropzone__icone {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  margin-bottom: .5rem;
  border-radius: 50%;
  background: var(--titan-yellow);
  color: var(--ink-900);
  font-size: 1.35rem;
  transition: transform var(--dur) var(--ease-out);
}
.dropzone__area:hover .dropzone__icone { transform: translateY(-3px); }
.dropzone__area strong { font-size: var(--fs-small); line-height: 1.4; }
.dropzone__dica {
  font-family: var(--font-data);
  font-size: var(--fs-micro);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--steel-500);
}

.dropzone__guia {
  padding: 1.75rem 1.5rem;
  background: var(--concrete-100);
}
.dropzone__guia .t-data { color: var(--steel-600); }
.dropzone__guia ul {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: .5rem .85rem;
  margin-top: 1rem;
}
.dropzone__guia li {
  position: relative;
  padding-left: 1.1rem;
  font-size: var(--fs-micro);
  line-height: 1.35;
  color: var(--text-muted);
}
.dropzone__guia li::before {
  content: '';
  position: absolute;
  left: 0; top: .45em;
  width: 7px; height: 2px;
  background: var(--titan-yellow);
}

/* Estado de arraste */
.dropzone.is-drag .dropzone__area { background: var(--titan-yellow-soft); }
.dropzone.is-drag { border-color: var(--titan-yellow); }

/* Variante escura, usada no formulário de venda */
.form--dark .dropzone {
  background: var(--ink-600);
  border-color: var(--ink-600);
}
.form--dark .dropzone__area { background: var(--ink-800); }
.form--dark .dropzone__area strong { color: var(--white); }
.form--dark .dropzone__guia { background: var(--ink-700); }
.form--dark .dropzone__guia .t-data { color: var(--steel-400); }
.form--dark .dropzone__guia li { color: var(--steel-300); }
.form--dark .dropzone.is-drag .dropzone__area { background: var(--ink-700); }

@media (max-width: 720px) {
  .dropzone { grid-template-columns: minmax(0, 1fr); }
  .dropzone__area { padding: 2rem 1.25rem; }
}

/* Consentimento */
.consent {
  grid-column: 1 / -1;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  font-size: var(--fs-micro);
  color: var(--text-muted);
  line-height: 1.55;
}
.consent input { width: 18px; height: 18px; margin-top: .15rem; flex: none; accent-color: var(--titan-yellow); }

/* Bloco de contato */
.contact-item {
  display: flex;
  gap: 1.1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-item__icon {
  width: 44px; height: 44px;
  flex: none;
  display: grid; place-items: center;
  background: var(--titan-yellow);
  color: var(--ink-900);
  border-radius: var(--radius);
}
.contact-item .k {
  font-family: var(--font-data);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-item .v { display: block; margin-top: .25rem; font-weight: 600; }
.contact-item .v a:hover { color: var(--titan-yellow-deep); }

.section--dark .contact-item { border-color: var(--border-dark); }
.section--dark .contact-item .k { color: var(--steel-500); }

.map-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border);
  filter: grayscale(1) contrast(1.05);
  transition: filter var(--dur) var(--ease);
}
.map-frame:hover { filter: grayscale(0); }


/* ==========================================================================
   17. FAIXA DE CHAMADA
   ========================================================================== */

.cta-band {
  position: relative;
  background: var(--ink-900);
  color: var(--white);
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  right: -6%; top: 50%;
  width: 520px; height: 520px;
  transform: translateY(-50%);
  background: url('../images/lion-mark.png') no-repeat center / contain;
  opacity: .06;
}
.cta-band__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem 3rem;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.03em;
  max-width: 20ch;
  margin-top: 1rem;
}
.cta-band p { color: var(--steel-400); margin-top: 1rem; max-width: 46ch; }


/* ==========================================================================
   18. RODAPÉ
   ========================================================================== */

.site-footer {
  background: var(--ink-900);
  color: var(--steel-400);
  font-size: var(--fs-small);
}
.site-footer a:hover { color: var(--titan-yellow); }

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.footer-brand img { height: 46px; width: auto; }
.footer-brand p { margin-top: 1.35rem; max-width: 34ch; line-height: 1.7; }

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-data);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 1.35rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--border-dark);
  position: relative;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 32px; height: 1px;
  background: var(--titan-yellow);
}
.footer-col li + li { margin-top: .85rem; }
.footer-col li a { display: inline-flex; align-items: center; gap: .55rem; }
.footer-col li a::before {
  content: '';
  width: 0; height: 1px;
  background: var(--titan-yellow);
  transition: width var(--dur) var(--ease-out);
}
.footer-col li a:hover::before { width: 12px; }

.footer-contact li {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  line-height: 1.6;
}
.footer-contact li + li { margin-top: 1.15rem; }
.footer-contact i { color: var(--titan-yellow); margin-top: .3rem; flex: none; width: 16px; }

.footer-social { display: flex; gap: .6rem; margin-top: 1.75rem; }
.footer-social a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--border-dark);
  color: var(--steel-400);
  transition: all var(--dur-fast) var(--ease);
}
.footer-social a:hover {
  background: var(--titan-yellow);
  border-color: var(--titan-yellow);
  color: var(--ink-900);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-block: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  font-family: var(--font-data);
  font-size: var(--fs-micro);
  letter-spacing: .06em;
  color: var(--steel-600);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }


/* ==========================================================================
   19. WIDGET WHATSAPP
   ========================================================================== */

.wa-widget {
  position: fixed;
  right: clamp(1rem, 2.5vw, 1.75rem);
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  z-index: 180;
  /* O container não pode capturar toque. O painel fechado usa
     visibility:hidden, que esconde mas PRESERVA a caixa no layout — isso
     inflava o widget para ~324x474px e formava um retângulo invisível sobre
     os cards e botões, engolindo todo toque naquela área. Os filhos reativam
     o toque individualmente. */
  pointer-events: none;
}
.wa-widget > * { pointer-events: auto; }

.wa-panel {
  /* Absoluto e ancorado acima do botão: fora do fluxo, não infla o container */
  position: absolute;
  right: 0;
  bottom: calc(100% + .85rem);
  width: min(324px, calc(100vw - 2.5rem));
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform-origin: bottom right;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.96);
  transition: opacity var(--dur) var(--ease),
              transform var(--dur) var(--ease-out),
              visibility var(--dur);
}
.wa-panel.is-open { opacity: 1; visibility: visible; transform: none; }

.wa-panel__head {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1.15rem 1.25rem;
  background: var(--ink-900);
  color: var(--white);
}
.wa-panel__avatar {
  width: 42px; height: 42px;
  flex: none;
  display: grid; place-items: center;
  background: var(--titan-yellow);
  border-radius: 50%;
  overflow: hidden;
}
.wa-panel__avatar img { width: 30px; }
.wa-panel__head strong { display: block; font-family: var(--font-display); font-size: .9375rem; font-weight: 800; }
.wa-panel__head span {
  display: flex; align-items: center; gap: .4rem;
  font-family: var(--font-data);
  font-size: .625rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--steel-400);
  margin-top: .2rem;
}
.wa-panel__head span::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .6);
  animation: waPulse 2s infinite;
}
@keyframes waPulse {
  70%  { box-shadow: 0 0 0 7px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.wa-panel__close {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: var(--steel-400);
  font-size: 1rem;
  padding: .25rem;
}
.wa-panel__close:hover { color: var(--white); }

.wa-panel__body {
  padding: 1.25rem;
  background:
    linear-gradient(rgba(241,242,240,.94), rgba(241,242,240,.94)),
    repeating-linear-gradient(-45deg, #E6E7E4 0 2px, transparent 2px 9px);
}
.wa-bubble {
  background: var(--white);
  padding: .85rem 1rem;
  border-radius: 0 8px 8px 8px;
  font-size: var(--fs-small);
  line-height: 1.55;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.wa-bubble time {
  display: block;
  margin-top: .4rem;
  font-family: var(--font-data);
  font-size: .5625rem;
  letter-spacing: .08em;
  color: var(--steel-500);
  text-align: right;
}
.wa-panel__options { margin-top: .85rem; display: grid; gap: .5rem; }
.wa-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .7rem .9rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--fs-small);
  text-align: left;
  transition: all var(--dur-fast) var(--ease);
}
.wa-option:hover {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: var(--white);
}
.wa-option i { color: var(--titan-yellow-deep); font-size: .75rem; }
.wa-option:hover i { color: var(--titan-yellow); }
.wa-panel__foot { padding: 1rem 1.25rem 1.25rem; background: var(--concrete-100); }

.wa-fab {
  position: relative;
  width: 66px; height: 66px;
  display: grid; place-items: center;
  background: #25D366;
  color: var(--white);
  border: 0;
  border-radius: 50%;
  font-size: 2.35rem;
  box-shadow: 0 8px 26px rgba(37, 211, 102, .42);
  transition: transform var(--dur) var(--ease-out), background var(--dur-fast) var(--ease);
}
.wa-fab:hover { transform: scale(1.07); }
.wa-fab.is-open { background: var(--ink-900); }
.wa-fab.is-open .fa-whatsapp { display: none; }
.wa-fab .fa-xmark { display: none; font-size: 1.35rem; }
.wa-fab.is-open .fa-xmark { display: block; }
/* Anel de pulso */
.wa-fab::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: waRing 2.4s var(--ease) infinite;
}
.wa-fab.is-open::after { display: none; }
@keyframes waRing {
  0%   { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.55); opacity: 0; }
}

.wa-badge {
  position: absolute;
  top: -3px; right: -3px;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  background: var(--titan-yellow);
  color: var(--ink-900);
  border-radius: 50%;
  font-family: var(--font-data);
  font-size: .625rem;
  font-weight: 700;
}
.wa-fab.is-open .wa-badge { display: none; }


/* ==========================================================================
   20. ANIMAÇÕES E ESTADOS DE SCROLL
   ========================================================================== */

/* Barra de progresso da leitura (usada no artigo) */
.read-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 210;
  height: 3px;
  background: transparent;
}
.read-progress__bar {
  height: 100%;
  width: 0;
  background: var(--titan-yellow);
  transition: width .1s linear;
}

/* Revelação por linha de texto (GSAP escreve os spans) */
.reveal-lines .line { display: block; overflow: hidden; }
.reveal-lines .line > span { display: block; }

/* Botão voltar ao topo */
.to-top {
  position: fixed;
  left: clamp(1rem, 2.5vw, 1.75rem);
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  z-index: 170;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--ink-900);
  color: var(--titan-yellow);
  border: 0;
  border-radius: var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--dur) var(--ease);
}
.to-top { pointer-events: none; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--titan-yellow); color: var(--ink-900); }

/* Swiper — ajustes de identidade */
/* Gesto horizontal pertence ao carrossel, não à página: sem isto o navegador
   interpreta o arraste lateral como rolagem do documento e a estrutura inteira
   se move em vez de avançar o card. */
.swiper, .swiper-wrapper { touch-action: pan-y; }

/* Precisa ser hidden. Com overflow visible, os slides fora de quadro continuam
   ocupando espaço: o documento fica N vezes mais largo que a tela, o navegador
   móvel reduz a página inteira para caber e todos os toques passam a cair
   deslocados. Foi a causa dos carrosséis, botões, flechas e links "quebrados"
   no mobile. */
.swiper { overflow: hidden; }
.swiper-slide { height: auto; }

/* Rede de segurança: enquanto o Swiper não inicializa — ou se o script não
   carregar — o carrossel vira uma faixa de rolagem nativa com encaixe. O
   visitante continua conseguindo ver todas as máquinas com o dedo.
   O Swiper acrescenta a classe .swiper-initialized ao assumir o controle. */
.swiper:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.swiper:not(.swiper-initialized) .swiper-wrapper::-webkit-scrollbar { display: none; }
.swiper:not(.swiper-initialized) .swiper-slide {
  flex: 0 0 86%;
  scroll-snap-align: start;
}
/* O banner usa fusão: sem script, mostra só a primeira foto */
.hero__machine .swiper:not(.swiper-initialized) .swiper-slide + .swiper-slide { display: none; }
.hero__machine .swiper:not(.swiper-initialized) .swiper-slide { flex: 0 0 100%; }

@media (min-width: 640px) {
  .swiper:not(.swiper-initialized) .swiper-slide { flex: 0 0 46%; }
}
@media (min-width: 1024px) {
  .swiper:not(.swiper-initialized) .swiper-slide { flex: 0 0 31.5%; }
}

/* Marcadores dos carrosséis.
   Ficam FORA do elemento .swiper de propósito: dentro dele o seletor do Swiper
   (.swiper-horizontal > .swiper-pagination-bullets, especificidade 0,2,0) vence
   qualquer regra de classe simples e os posiciona de forma absoluta sobre o
   rodapé dos cards, interceptando os toques nos botões. */
.swiper-dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 2rem;
}
.swiper-dots .swiper-pagination-bullet {
  width: 28px; height: 3px;
  border-radius: 0;
  background: var(--steel-300);
  opacity: 1;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}
.swiper-dots .swiper-pagination-bullet-active { background: var(--titan-yellow); }
.section--dark .swiper-dots .swiper-pagination-bullet { background: rgba(255,255,255,.25); }
.section--dark .swiper-dots .swiper-pagination-bullet-active { background: var(--titan-yellow); }

.swiper-nav { display: flex; gap: .5rem; }
.swiper-nav button {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink-900);
  transition: all var(--dur-fast) var(--ease);
}
.swiper-nav button:hover { background: var(--ink-900); border-color: var(--ink-900); color: var(--titan-yellow); }
.swiper-nav button:disabled { opacity: .35; cursor: not-allowed; }
.section--dark .swiper-nav button { border-color: var(--border-dark); color: var(--white); }
.section--dark .swiper-nav button:hover { background: var(--titan-yellow); color: var(--ink-900); }


/* ==========================================================================
   21. RESPONSIVIDADE
   ========================================================================== */

@media (max-width: 1200px) {
  .footer-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps__item:nth-child(2n) { border-right: 1px solid var(--border); }
  .section--dark .steps__item:nth-child(2n) { border-right-color: var(--border-dark); }
}

@media (max-width: 1024px) {
  :root { --header-h: 96px; }

  /* Segunda trava contra rolagem horizontal. Se qualquer elemento vazar da
     largura da tela, o arraste lateral vira rolagem da página e o carrossel
     deixa de receber o gesto. Fica restrito ao mobile porque overflow-x cria
     um contexto de rolagem que quebraria o position:sticky do artigo. */
  html, body { overflow-x: hidden; max-width: 100%; }

  .nav { display: none; }
  /* As bandeiras assumem o lugar do botão de cotação no cabeçalho reduzido.
     A conversão continua no widget flutuante e no menu aberto. */
  .header-actions > .btn { display: none; }
  .header-actions > .lang { display: flex; }
  .brand img { height: 66px; }
  .site-header.is-stuck { height: 84px; }
  .site-header.is-stuck .brand img { height: 56px; }
  .nav-toggle { display: block; }

  .hero { min-height: auto; align-items: center; }
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    /* A máquina sobe: entra entre o texto e os botões */
    grid-template-areas:
      "texto"
      "maquina"
      "acoes";
    padding-top: clamp(2rem, 5vh, 3rem);
    padding-bottom: clamp(2.5rem, 6vh, 4rem);
    gap: 0;
  }
  .hero__content { max-width: 100%; }
  .hero__desc { max-width: 56ch; }
  .hero__machine {
    justify-self: center;
    align-self: auto;
    max-width: min(88vw, 560px);
    margin-top: 2rem;
  }
  .hero__actions { margin-top: 2rem; }

  .detail-hero,
  .split,
  .machine-feature,
  .post-feature,
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .split--reverse .split__media { order: 0; }
  .machine-feature__body { padding: 0 clamp(1.5rem,3vw,2.5rem) clamp(1.75rem,3vw,2.5rem); }
  .article-aside { position: static; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps__item { border-right: 1px solid var(--border); border-bottom: 0; }
  .steps__item + .steps__item { border-top: 1px solid var(--border); }

  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-highlights { grid-template-columns: minmax(0, 1fr); }
  .gallery__thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .section-head { flex-direction: column; align-items: flex-start; }

  .hero__actions .btn { width: 100%; }

  /* Cabeçalho estreito: reduz logo, bandeiras e folgas para caber tudo */
  .brand img { height: 58px; }
  .site-header.is-stuck { height: 78px; }
  .site-header.is-stuck .brand img { height: 50px; }
  .header-actions { gap: .65rem; }
  .lang { gap: .3rem; padding-right: .6rem; }
  .lang__btn { width: 25px; height: 18px; }
  .nav-toggle { width: 42px; height: 42px; }

  .machine-card__actions { flex-direction: column; }
  .machine-card__actions .btn { width: 100%; }

  .footer-main { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .spec-table th, .spec-table td { padding: .85rem .75rem; }
  .spec-table th { width: 52%; }

  .to-top { display: none; }
  .wa-fab { width: 60px; height: 60px; font-size: 2.15rem; }
}

@media (max-width: 420px) {
  .machine-card__specs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .machine-card__specs li:last-child { grid-column: 1 / -1; }
  .gallery__thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Telas muito estreitas (iPhone SE antigo, Androids de 320px).
   A logo maior não caberia junto com bandeiras e hambúrguer, então tudo
   recua um degrau em vez de quebrar linha. */
@media (max-width: 380px) {
  :root { --header-h: 78px; }
  .brand img { height: 48px; }
  .site-header.is-stuck { height: 70px; }
  .site-header.is-stuck .brand img { height: 42px; }
  .header-actions { gap: .5rem; }
  .lang { gap: .25rem; padding-right: .45rem; }
  .lang__btn { width: 22px; height: 16px; }
  .nav-toggle { width: 38px; height: 38px; }
}


/* ==========================================================================
   22. ACESSIBILIDADE / MOVIMENTO REDUZIDO
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ==========================================================================
   IMPRESSÃO
   ========================================================================== */

@media print {
  .site-header, .wa-widget, .to-top, .cta-band, .read-progress { display: none !important; }
  body { color: #000; background: #fff; }
  .section { padding-block: 1.5rem; }
  a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: .8em; }
}
