/* ==========================================================================
   APEX ENGINE PARTS — Design System
   Peças de precisão para motores. A identidade visual usa o vocabulário
   do próprio ofício: tolerâncias apertadas, marcas de calibre/desenho
   técnico (os "cantos de precisão") e uma paleta que vem do logo real
   da empresa (vermelho + âmbar sobre grafite).
   ========================================================================== */

/* Fontes self-hosted (não dependem do Google Fonts / internet) */
@font-face {
  font-family: 'Oswald';
  src: url('../assets/fonts/oswald-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Oswald';
  src: url('../assets/fonts/oswald-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Oswald';
  src: url('../assets/fonts/oswald-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../assets/fonts/plexsans-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../assets/fonts/plexsans-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../assets/fonts/plexsans-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../assets/fonts/plexsans-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../assets/fonts/plexmono-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../assets/fonts/plexmono-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  /* Cor */
  --graphite: #1a1b1f;
  --graphite-soft: #24262b;
  --steel: #33353c;
  --steel-line: #3d4047;
  --offwhite: #edeef0;
  --white: #ffffff;
  --red: #e10707;
  --red-dark: #b90505;
  --ember: #ff7a1a;
  --slate: #5b5f66;
  --ink: #1a1b1f;

  /* Tipografia */
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, Segoe UI, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Layout */
  --container: 1180px;
  --radius: 2px;
  --gap: 24px;
}

/* ---- Reset básico ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin: 0 0 0.5em;
  color: var(--ink);
}
p { margin: 0 0 1em; color: var(--slate); }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Foco visível para navegação por teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Assinatura visual: "cantos de precisão" — marcas de calibre em L,
   inspiradas nas marcas de centro usadas em desenhos técnicos/usinagem.
   ========================================================================== */
.precision-frame {
  position: relative;
}
.precision-frame::before,
.precision-frame::after,
.precision-frame > .pf-br-tl,
.precision-frame > .pf-br-br {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--red);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: scale(0.85);
}
.precision-frame::before {
  top: -1px; left: -1px;
  border-right: none; border-bottom: none;
}
.precision-frame::after {
  bottom: -1px; right: -1px;
  border-left: none; border-top: none;
}
.precision-frame:hover::before,
.precision-frame:hover::after,
.precision-frame:focus-within::before,
.precision-frame:focus-within::after {
  opacity: 1;
  transform: scale(1);
}

/* ---- Eyebrow / rótulo técnico ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--red);
}

/* ==========================================================================
   Top bar (faixa técnica de contato)
   ========================================================================== */
.topbar {
  /* versão suave: quase branca, texto discreto. Para voltar ao cinza anterior: background #f4f5f6 e border-bottom #e4e5e8 */
  background: #fbfbfc;
  color: #8a8e96;
  border-bottom: 1px solid #f0f1f3;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.topbar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 7px;
  padding-bottom: 7px;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a { color: #4a4d55; transition: color 0.15s ease; }
.topbar a:hover { color: var(--red); }
.topbar-sep { color: #c9ccd2; }
.topbar-wa { display: inline-flex; align-items: center; gap: 6px; }
.topbar-wa, .topbar-tel { display: inline-flex; align-items: center; gap: 6px; }
.topbar-wa svg, .topbar-tel svg { width: 14px; height: 14px; fill: #4a4d55; flex: none; transition: fill 0.15s ease; }
.topbar-wa:hover svg, .topbar-tel:hover svg { fill: var(--red); }
@media (max-width: 700px) { .topbar { display: none; } }   /* celular: sem a barra de telefones (o WhatsApp flutuante e o rodapé têm os contatos) */
@media (max-width: 560px) { .topbar-sep { display: none; } }  /* no celular o WhatsApp vai para a 2ª linha, sem a barra sobrando */
.topbar-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; align-items: center; }

/* ==========================================================================
   Header / navegação
   ========================================================================== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #e4e5e8;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}
.brand img { height: 74px; width: auto; }
@media (max-width: 820px) { .site-header .container { padding-top: 16px; padding-bottom: 16px; } .brand img { height: 60px; } }
@media (max-width: 420px) { .brand img { height: 54px; } }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a {
  display: inline-block;
  padding: 10px 16px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--red);
  border-color: var(--red);
}
.main-nav .btn-catalogo {
  background: var(--red);
  color: var(--white) !important;
  border-radius: var(--radius);
  border-bottom-color: transparent !important;
  margin-left: 4px;
}
.main-nav .btn-catalogo:hover { background: var(--red-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;               /* abre logo abaixo do cabeçalho (o botão ☰ continua visível) */
    top: 100%; left: 0; right: 0;
    max-height: calc(100vh - 120px);
    background: var(--white);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0s linear 0.2s;
    overflow-y: auto;
    border-top: 1px solid #e4e5e8;
    border-bottom: 1px solid #e4e5e8;
    box-shadow: 0 18px 30px -12px rgba(0,0,0,0.18);
  }
  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; transition: transform 0.2s ease, opacity 0.2s ease, visibility 0s; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 24px 32px; gap: 0; }
  .main-nav a { display: block; padding: 16px 4px; border-bottom: 1px solid #eee; border-radius: 0; }
  .main-nav .btn-catalogo { margin: 12px 0 0; text-align: center; }
  .topbar .container { justify-content: center; text-align: center; padding-top: 6px; padding-bottom: 6px; }
  .topbar { font-size: 12px; }
}

/* ==========================================================================
   Hero (carrossel — Home)
   O banner aparece inteiro, sem texto por cima (a mensagem já está na
   própria imagem). O título e os botões ficam na faixa .hero-intro, abaixo.
   Para deixar o banner mais alto/baixo, mude --hero-max-h.
   ========================================================================== */
.hero { --hero-max-h: 720px; }   /* em telas acima de 2560px o banner para de crescer */

.hero-stage {
  position: relative;
  background: #1a1b1f;
  width: 100%;
  height: min(27.5vw, var(--hero-max-h));   /* banner 1920x600 (31.25vw seria inteiro); 27.5vw corta ~12% da altura, igual em cima e embaixo */
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide picture, .hero-slide img { display: block; width: 100%; height: 100%; }
.hero-slide img { object-fit: cover; object-position: center; }   /* em telas muito largas corta só as bordas */

.hero-dots {
  position: absolute;
  z-index: 3;
  bottom: 16px;
  left: 13.5vw;                  /* mesma margem do texto dos banners (260/1920) */
  display: flex;
  gap: 10px;
}
.hero-dots button {
  width: 28px;
  height: 3px;
  background: rgba(26,27,31,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
}
.hero-dots button { position: relative; }
.hero-dots button::after { content: ''; position: absolute; inset: -14px -3px; }   /* amplia a área de toque */
.hero-dots button.active { background: var(--red); }
/* celular: banner 4:3 (800x600) e a parte de baixo é clara, então os pontos ficam escuros */
@media (max-width: 700px) {
  .hero-stage { height: min(66vw, var(--hero-max-h)); }   /* banner 800x600 (75vw seria inteiro); corta só a parte de baixo */
  .hero-slide img { object-position: center top; }
  .hero-dots { left: 6vw; bottom: 10px; gap: 8px; }
  .hero-dots button { background: rgba(26,27,31,0.35); }
  .hero-dots button.active { background: var(--red); }
}

/* ---- Faixa de apresentação (abaixo do banner) ---- */
.hero-intro {
  background: #f5f5f7;
  border-top: 3px solid var(--red);
  padding: 44px 0 48px;
}
.hero-intro-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px 48px;
}
.hero-intro .eyebrow { color: var(--red); margin-bottom: 12px; }
.hero-intro .eyebrow::before { background: var(--red); }
.hero-intro h1 {
  color: var(--ink);
  font-size: clamp(26px, 3.4vw, 40px);
  max-width: 760px;
  margin-bottom: 14px;
}
.hero-intro p {
  color: var(--slate);
  max-width: 680px;
  font-size: 16.5px;
  margin: 0;
}
.hero-actions { display: flex; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.hero-intro .hero-actions { margin-top: 0; }
.hero-intro .btn-ghost { border-color: var(--ink); color: var(--ink); }
.hero-intro .btn-ghost:hover { border-color: var(--red); color: var(--red); background: transparent; }

@media (max-width: 820px) {
  .hero-intro { padding: 32px 0 36px; }
  .hero-intro-inner { grid-template-columns: 1fr; }
  .hero-dots button { width: 22px; }
}
@media (max-width: 480px) {
  .hero-intro .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* ==========================================================================
   Botões
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }

/* ==========================================================================
   Seções gerais
   ========================================================================== */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-dark { background: var(--graphite); color: var(--white); }
.section-dark p { color: #c7c9cd; }
.section-dark h2 { color: var(--white); }
.section-offwhite { background: var(--offwhite); }

.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.section-head p { font-size: 17px; }

.page-hero {
  background: var(--graphite);
  color: var(--white);
  padding: 64px 0 46px;
}
.page-hero h1 { color: var(--white); font-size: clamp(30px, 4.5vw, 46px); margin-bottom: 10px; }
.page-hero .eyebrow { color: var(--ember); }
.page-hero .eyebrow::before { background: var(--ember); }
.page-hero p { color: #cfd0d4; max-width: 640px; font-size: 16px; margin: 0; }

/* ---- Sobre / conteúdo em duas colunas ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media img { width: 100%; height: auto; }
.split h2 { font-size: clamp(24px, 3vw, 32px); }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: 0; }
}

/* ---- Cartões de valor / diferenciais ---- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #e4e5e8;
  border: 1px solid #e4e5e8;
}
.value-card {
  background: var(--white);
  padding: 30px 26px;
}
.value-card .num {
  font-family: var(--font-mono);
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
}
.value-card h3 { font-size: 17px; margin: 10px 0 8px; }
.value-card p { font-size: 14.5px; margin: 0; }
@media (min-width: 901px) { .value-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .value-grid { grid-template-columns: 1fr 1fr; } .value-grid.cols-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 560px) { .value-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Grade de produtos ("Linhas de Produtos")
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: var(--gap);
  row-gap: 40px;
}
@media (max-width: 980px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) {
  .product-grid { column-gap: 12px; row-gap: 14px; }
  .product-card { padding: 10px; }
  .product-card h3 { font-size: 14px; gap: 6px; }
}
@media (max-width: 340px) { .product-grid { grid-template-columns: 1fr; } }
@media (max-width: 980px) and (min-width: 701px) { .product-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }

.product-card {
  display: block;
  background: var(--white);
  border: 1px solid #e4e5e8;
  padding: 14px 14px 20px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -18px rgba(26,27,31,0.35);
}
.product-card .thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3.25;
  overflow: hidden;
  background: var(--offwhite);
  margin: 0 0 16px;
}
.product-card .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-card .tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.product-card h3 {
  font-size: 16px;
  line-height: 1.4;
  margin: 8px 0 0;
  padding-top: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.product-card h3 .arrow { color: var(--red); font-family: var(--font-body); font-weight: 400; transition: transform 0.2s ease; flex-shrink: 0; }
.product-card:hover h3 .arrow { transform: translateX(4px); }

/* ==========================================================================
   Certificações (INMETRO)
   ========================================================================== */
.cert-block {
  display: grid;
  grid-template-columns: 1fr 360px;   /* coluna da imagem: mude o 360px para ajustar o tamanho */
  gap: 64px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid #e4e5e8;
}
.cert-block:last-child { border-bottom: none; }
.cert-block.reverse .cert-media { order: 2; }
.cert-media {
  border: 1px solid #e4e5e8;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--offwhite);
}
@media (max-width: 820px) {
  .cert-block, .cert-block.reverse { grid-template-columns: 1fr; gap: 28px; }
  .cert-block.reverse .cert-media { order: 0; }
  .cert-media { max-width: 360px; }
}

/* ==========================================================================
   Suporte técnico
   ========================================================================== */
.support-card {
  display: flex;
  gap: 28px;
  align-items: center;
  background: var(--graphite);
  color: var(--white);
  padding: 34px;
}
.support-card img {
  width: 128px; height: 128px;
  object-fit: cover;
  border: 3px solid var(--red);
  flex-shrink: 0;
}
.support-card h3 { color: var(--white); font-size: 20px; margin-bottom: 4px; }
.support-card .role { color: #c7c9cd; font-size: 14px; margin-bottom: 14px; }
.support-contacts { display: flex; flex-wrap: wrap; gap: 18px; font-family: var(--font-mono); font-size: 14px; }
.support-contacts a { color: var(--ember); }
.support-contacts a:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .support-card { flex-direction: column; text-align: center; }
}

.bulletin-list { border-top: 1px solid #e4e5e8; }
.bulletin-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #e4e5e8;
}
.bulletin-item .tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--red);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 4px;
}
.bulletin-item p { margin: 0; color: var(--ink); font-weight: 500; }
.bulletin-item .btn { flex-shrink: 0; padding: 10px 18px; font-size: 12.5px; }

.manual-group h3 {
  font-size: 18px;
  margin: 40px 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}
.manual-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 24px; }
@media (max-width: 700px) { .manual-list { grid-template-columns: 1fr; } }
.manual-list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dashed #d8d9dc;
  font-size: 14.5px;
  color: var(--ink);
}
.manual-list a:hover { color: var(--red); }
.manual-list a .ext {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--white);
  background: var(--slate);
  padding: 2px 6px;
  flex-shrink: 0;
}
.manual-list a:hover .ext { background: var(--red); }

/* ==========================================================================
   Contato
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-list { margin-top: 24px; display: flex; flex-direction: column; gap: 18px; }
.contact-info-item { display: flex; gap: 14px; }
.contact-info-item .ico {
  width: 40px; height: 40px;
  border: 1px solid #e4e5e8;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--red);
}
.contact-info-item .ico svg { width: 20px; height: 20px; }
.contact-info-item strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--slate); margin-bottom: 2px; }
.contact-info-item a, .contact-info-item span { font-size: 15.5px; }

.contact-map { border: 1px solid #e4e5e8; margin-top: 26px; }
.contact-map iframe { width: 100%; height: 260px; border: 0; display: block; }
.map-placeholder { background: var(--offwhite); padding: 28px 24px; text-align: center; min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.map-placeholder p { font-size: 14px; color: var(--slate); max-width: 420px; margin: 0; }
.map-link { font-size: 14px; color: var(--red); text-decoration: underline; }

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate);
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d3d4d8;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--white);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 13px; color: var(--slate); margin-top: 10px; }
.form-note a { color: var(--red); text-decoration: underline; }
.form-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; font-size: 14px; color: var(--slate); cursor: pointer; }
.form-check input { margin-top: 3px; width: 16px; height: 16px; flex: none; accent-color: var(--red); }

/* ==========================================================================
   Rodapé
   ========================================================================== */
.site-footer { background: var(--graphite); color: #b8bac0; }
.footer-top { padding-top: 64px; padding-bottom: 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr 1.5fr;
  gap: 40px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid img { height: 40px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-grid p { color: #9a9ca3; font-size: 14px; }
.footer-social { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; color: #b8bac0; font-size: 14.5px; transition: color .2s; }
.footer-social svg { width: 20px; height: 20px; flex: none; box-sizing: content-box; padding: 8px; border: 1px solid var(--steel-line); transition: border-color .2s; }
.footer-social:hover { color: var(--ember); }
.footer-social:hover svg { border-color: var(--ember); }
.footer-col h4 {
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #b8bac0; font-size: 14.5px; }
.footer-col li, .footer-col span { font-size: 14.5px; line-height: 1.6; }   /* mesmo tamanho em todos os itens (endereço incluso) */
/* itens de menu do rodapé (Navegação e Empresa) em caixa alta, como o menu do topo */
.footer-col:nth-child(2) a, .footer-col:nth-child(3) a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-col a:hover { color: var(--ember); }

.footer-bottom {
  /* linha divisória alinhada ao conteúdo (respeita o padding lateral do .container) */
  background: linear-gradient(var(--steel-line), var(--steel-line)) center top / calc(100% - 48px) 1px no-repeat;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 13px;
  color: #85878e;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: #85878e; }
.footer-bottom-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom-links a[hidden] { display: none; }
.footer-bottom a:hover { color: var(--ember); }

/* ==========================================================================
   Botão flutuante do WhatsApp
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -4px rgba(0,0,0,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 26px -4px rgba(0,0,0,0.4);
}
.whatsapp-float svg { width: 30px; height: 30px; }

.whatsapp-float .ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.55;
  animation: wa-ping 2.2s cubic-bezier(0.4,0,0.6,1) infinite;
}
@keyframes wa-ping {
  0% { transform: scale(1); opacity: 0.5; }
  75%, 100% { transform: scale(1.7); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float .ping { animation: none; display: none; }
}
@media (max-width: 560px) {
  .whatsapp-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; margin-top: 34px; }
.prose p { font-size: 15.5px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--red); text-decoration: underline; }
.prose-meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--slate); }
.prose-list { margin: 0 0 16px; padding-left: 20px; list-style: disc; }
.prose-list li { font-size: 15.5px; margin-bottom: 8px; }

/* ==========================================================================
   Banner de cookies (aparece só quando o Google Analytics está ativado)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 1000;
  width: min(380px, calc(100vw - 44px));
  background: var(--graphite);
  color: #cfd0d4;
  border-top: 3px solid var(--red);
  padding: 20px 22px 22px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.14), 0 16px 40px -8px rgba(0,0,0,0.6);
  font-size: 14px;
  line-height: 1.55;
}
.cookie-banner p { margin: 0 0 10px; color: #e3e4e7; }
.cookie-banner .cookie-title { font-family: var(--font-display); font-size: 17px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--white); margin-bottom: 8px; }
.cookie-banner a { color: var(--white); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; margin-top: 14px; }
.cookie-actions .btn { flex: 1; justify-content: center; padding: 11px 14px; font-size: 14px; color: var(--white); border-color: var(--white); background: transparent; }
.cookie-actions .btn:hover { background: var(--white); color: var(--graphite); }
@media (max-width: 480px) {
  .cookie-banner { left: 12px; bottom: 12px; width: calc(100vw - 24px); }
}


/* Acessibilidade em telas de toque: áreas clicáveis maiores (sem mudar o visual) */
@media (hover: none), (max-width: 900px) {
  .topbar a, .footer-col a, .footer-bottom a, .contact-info-item a { padding: 10px 4px; margin: -10px -4px; }
  .form-field input, .form-field textarea { font-size: 16px; }   /* evita o zoom automático do iPhone ao digitar */
}

/* Contatos dentro do menu do celular (a barra superior fica oculta até 700px) */
.nav-contacts { display: none; }
@media (max-width: 700px) {
  .nav-contacts { display: block; margin-top: 18px; padding-top: 6px; }
  .main-nav .nav-contacts-title { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); padding: 8px 4px 4px; }
  .main-nav .nav-contacts a { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid #eee; font-family: var(--font-mono); font-size: 14.5px; text-transform: none; letter-spacing: 0; color: var(--ink); }
  .main-nav .nav-contacts a:last-child { border-bottom: 0; }
  .main-nav .nav-contacts svg { width: 20px; height: 20px; flex: none; fill: var(--red); }
}

/* Telefones na seção "Fale com a Apex" (discreto) */
.contact-lines{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px 28px;margin:0 0 28px}
.contact-lines a{display:inline-flex;align-items:center;gap:8px;font-family:'Oswald',sans-serif;font-weight:500;font-size:18px;letter-spacing:.02em;color:var(--slate);text-decoration:none;transition:color .2s}
.contact-lines a svg{width:18px;height:18px;fill:#4a4d55;flex:none;transition:fill .2s}
.contact-lines a:hover{color:var(--red)}
.contact-lines a:hover svg{fill:var(--red)}
@media (max-width:520px){.contact-lines{flex-direction:column;gap:10px}}

/* Crédito discreto da agência no rodapé */
.dev-credit{display:inline-flex;align-items:center;gap:8px;opacity:.8;transition:opacity .2s}
.dev-credit:hover{opacity:1}
.dev-credit a{display:inline-flex;align-items:center}
.dev-credit img{height:20px;width:auto;display:block}
@media (max-width:900px){
  .footer-bottom{flex-direction:column;align-items:center;text-align:center;gap:12px}
  .footer-bottom-links{justify-content:center}
}
@media (max-width:900px){.footer-bottom{padding-bottom:88px}}
