/* ==========================================================================
   R.tec — Peças para Máquinas Pesadas
   Folha de estilo principal
   Sumário:
   1. Tokens e base
   2. Utilitários (container, eyebrow, botões)
   3. Topbar e cabeçalho
   4. Hero
   5. Dor / Benefícios
   6. Diferenciais
   7. Provas
   8. Galeria + Lightbox
   9. Processo
   10. Autoridade
   11. FAQ
   12. Contato e formulário
   13. Rodapé, WhatsApp e voltar ao topo
   14. Animações
   15. Responsivo
   ========================================================================== */

/* 1. Tokens e base ------------------------------------------------------- */
:root {
  --red: #e30613;
  --red-dark: #b9040e;
  --red-light: #f34a52;
  --black: #0b0c0e;
  --ink: #121418;
  --steel: #24282e;
  --line: #393f47;
  --muted: #aeb5be;
  --white: #f7f8fa;
  --max: 1200px;
  --radius: 18px;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.26);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--red);
  color: #fff;
  padding: 12px 18px;
  font-weight: 800;
}
.skip-link:focus { left: 12px; top: 12px; }

/* 2. Utilitários --------------------------------------------------------- */
.container { width: min(calc(100% - 40px), var(--max)); margin: auto; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--red-light);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.72rem;
  font-weight: 800;
}
.eyebrow:before { content: ""; width: 28px; height: 2px; background: var(--red); }

h1, h2, h3, p { margin-top: 0; }
h2 {
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin: 14px 0 20px;
}
p { color: var(--muted); }

.button {
  border: 0;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 19px;
  font-weight: 850;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s var(--ease), background 0.22s var(--ease),
    box-shadow 0.22s var(--ease), color 0.22s var(--ease);
}
.button span { transition: transform 0.25s var(--ease); }
.button:hover { transform: translateY(-2px); }
.button:hover span { transform: translateX(4px); }
.button:active { transform: translateY(0) scale(0.985); }

.button-red { background: var(--red); color: #fff; box-shadow: 0 12px 28px rgba(227, 6, 19, 0.25); }
.button-red:hover { background: #f10a18; box-shadow: 0 16px 34px rgba(227, 6, 19, 0.36); }
.button-outline { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.28); color: #fff; }
.button-outline:hover { background: #fff; color: #111; }
.button-small { padding: 11px 15px; font-size: 0.84rem; }
.button[disabled] { opacity: 0.7; pointer-events: none; }

/* Efeito de brilho ao passar o mouse */
.button:after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s var(--ease);
}
.button:hover:after { left: 115%; }

/* 3. Topbar e cabeçalho -------------------------------------------------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 51;
  transition: transform 0.3s var(--ease);
  background: var(--red);
  text-align: center;
  padding: 8px 18px;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}
.topbar.hide { transform: translateY(-100%); }

.header {
  height: 84px;
  position: fixed;
  z-index: 50;
  top: 35px;
  left: 0;
  right: 0;
  background: rgba(11, 12, 14, 0.86);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: height 0.3s var(--ease), top 0.3s var(--ease), background 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.header.scrolled {
  top: 0;
  height: 68px;
  background: rgba(8, 9, 10, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 68px; width: auto; transition: height 0.3s var(--ease); }
.header.scrolled .brand img { height: 54px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #d7dbe0;
  font-weight: 650;
  font-size: 0.9rem;
}
.nav-links a { position: relative; padding: 4px 0; transition: color 0.2s var(--ease); }
.nav-links a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover:after, .nav-links a.active:after { transform: scaleX(1); transform-origin: left; }

.menu-btn {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  width: 42px;
  height: 42px;
  position: relative;
}
.menu-btn i {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.menu-btn i:nth-child(1) { top: 14px; }
.menu-btn i:nth-child(2) { top: 20px; }
.menu-btn i:nth-child(3) { top: 26px; }
.menu-btn[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 4. Hero ---------------------------------------------------------------- */
.hero {
  min-height: 760px;
  display: flex;
  align-items: end;
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.95) 0%, rgba(5, 6, 7, 0.78) 40%, rgba(5, 6, 7, 0.22) 100%),
    url("../img/hero.jpg") center / cover;
}
.hero:after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  background: linear-gradient(transparent, var(--black));
}
.hero-content { padding: 188px 0 105px; max-width: 780px; }
.hero h1 { font-size: clamp(3rem, 6.2vw, 6.25rem); letter-spacing: -0.07em; line-height: 0.93; margin: 16px 0 25px; }
.hero h1 em { color: var(--red); font-style: normal; }
.hero p { max-width: 675px; font-size: clamp(1rem, 1.5vw, 1.22rem); color: #d6d9de; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }

.trust-strip {
  position: absolute;
  bottom: 25px;
  right: max(20px, calc((100% - var(--max)) / 2));
  display: flex;
  gap: 22px;
  color: #d9dce1;
  font-size: 0.77rem;
  font-weight: 750;
}
.trust-strip span { display: flex; align-items: center; gap: 7px; }
.trust-strip i { height: 7px; width: 7px; background: var(--red); border-radius: 50%; }

/* 5. Dor / Benefícios ---------------------------------------------------- */
section { padding: 105px 0; }

.pain { background: var(--ink); }
.pain-grid { display: grid; grid-template-columns: 0.86fr 1.14fr; gap: 90px; align-items: center; }
.pain-visual {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.pain-visual img {
  display: block;
  width: 100%;
  height: clamp(340px, 40vw, 520px);
  object-fit: cover;
  transition: transform 0.7s ease;
}
.pain-visual:hover img { transform: scale(1.05); }
.pain-badge {
  position: absolute;
  left: 0;
  bottom: 26px;
  background: var(--red);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 11px 20px 11px 22px;
  border-radius: 0 999px 999px 0;
}
.pain p { font-size: 1.13rem; max-width: 700px; }

.benefits { background: linear-gradient(130deg, #14171b, #0b0c0e); }
.heading-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 38px; }
.heading-row p { max-width: 430px; margin: 0; }
.benefit-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 25px 19px;
  background: rgba(255, 255, 255, 0.025);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-7px);
  border-color: var(--red);
  background: rgba(227, 6, 19, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}
.icon {
  height: 43px;
  width: 43px;
  border: 1px solid rgba(227, 6, 19, 0.55);
  display: grid;
  place-items: center;
  color: #ff5e65;
  border-radius: 10px;
  font-weight: 900;
  font-size: 1.1rem;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.card:hover .icon { background: var(--red); color: #fff; }
.card h3 { font-size: 1.05rem; line-height: 1.15; margin: 18px 0 10px; }
.card p { font-size: 0.88rem; margin: 0; }

/* 6. Diferenciais -------------------------------------------------------- */
.difference { position: relative; overflow: hidden; background: #e7e9ec; color: #111; }
.difference:after {
  content: "";
  position: absolute;
  right: -10vw;
  top: -8vw;
  height: 48vw;
  width: 48vw;
  border: 1px solid #c7cbd1;
  border-radius: 50%;
  box-shadow: 0 0 0 55px #d8dbe0, 0 0 0 56px #c7cbd1;
}
.difference .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
}
.difference p { color: #4e5661; font-size: 1.08rem; }
.machine-frame {
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.machine-frame img { height: 100%; width: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.machine-frame:hover img { transform: scale(1.05); }
.machine-frame:after {
  content: "R.tec • Especialistas em linha amarela";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.84));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

/* 7. Provas -------------------------------------------------------------- */
.proof { background: #0c0e11; }
.proof-head { text-align: center; max-width: 780px; margin: 0 auto 46px; }
.proof-head .eyebrow { justify-content: center; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { padding: 30px; border-right: 1px solid var(--line); background: linear-gradient(130deg, rgba(255, 255, 255, 0.04), transparent); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: clamp(2rem, 4vw, 3.45rem); line-height: 1; color: var(--red); letter-spacing: -0.07em; }
.stat span { display: block; color: #c7cbd0; font-weight: 700; font-size: 0.9rem; margin-top: 10px; }

.proof-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 14px; }
.proof-points div {
  border-left: 2px solid var(--red);
  padding: 12px 14px;
  background: #15181c;
  color: #dce0e4;
  font-size: 0.89rem;
  font-weight: 680;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.proof-points div:hover { background: #1c2026; transform: translateX(4px); }

/* 8. Galeria + Lightbox -------------------------------------------------- */
.gallery { background: #171a1e; }
.gallery-top { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 32px; }
.gallery-top p { max-width: 540px; }
.gallery-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: 210px 210px; gap: 14px; }

.gallery-item {
  min-height: 0;
  position: relative;
  overflow: hidden;
  border-radius: 13px;
  border: 1px solid #373d45;
  background: #f3f3f3;
  padding: 0;
  cursor: zoom-in;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.gallery-item:first-child { grid-row: span 2; cursor: default; }
.gallery-item img { height: 100%; width: 100%; object-fit: cover; transition: transform 0.45s var(--ease); }
.gallery-item:hover { border-color: var(--red); box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4); }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item:nth-child(n + 2) img { object-fit: contain; padding: 18px; }
.gallery-item label, .gallery-item .tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  padding: 6px 9px;
  font-size: 0.73rem;
  font-weight: 750;
  color: var(--white);
  pointer-events: none;
}
.gallery-item .zoom {
  position: absolute;
  top: 10px;
  right: 10px;
  height: 30px;
  width: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 900;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.gallery-item:hover .zoom { opacity: 1; transform: scale(1); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 5, 6, 0.9);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), visibility 0.28s var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; text-align: center; max-width: 720px; }
.lightbox img {
  max-height: 72vh;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  transform: scale(0.92);
  transition: transform 0.3s var(--ease);
}
.lightbox.open img { transform: scale(1); }
.lightbox figcaption { margin-top: 14px; font-weight: 800; letter-spacing: 0.02em; }
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  height: 44px;
  width: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.3rem;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.lightbox-close:hover { background: var(--red); transform: rotate(90deg); }

/* 9. Processo ------------------------------------------------------------ */
.process { position: relative; background: var(--black); }
.process-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 70px; }
.process-copy { position: sticky; top: 115px; height: max-content; }
.steps { border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.step:hover { background: rgba(255, 255, 255, 0.03); padding-left: 10px; }
.step-no { font-size: 1.75rem; color: var(--red); font-weight: 900; letter-spacing: -0.08em; }
.step h3 { margin: 0 0 4px; font-size: 1.08rem; }
.step p { font-size: 0.92rem; margin: 0; }

/* 10. Autoridade --------------------------------------------------------- */
.authority {
  padding: 78px 0;
  color: #fff;
  position: relative;
  isolation: isolate;
  background: linear-gradient(90deg, rgba(185, 4, 14, 0.94), rgba(227, 6, 19, 0.82)),
    url("../img/autoridade.jpg") center / cover fixed;
}
.authority .container { display: grid; grid-template-columns: 80px 1fr; gap: 26px; align-items: start; }
.quote { font-family: Georgia, serif; font-size: 6rem; line-height: 0.65; }
.authority p {
  color: #fff;
  font-size: clamp(1.3rem, 2.6vw, 2.2rem);
  line-height: 1.26;
  letter-spacing: -0.035em;
  margin: 0;
  font-weight: 700;
}

/* 11. FAQ ---------------------------------------------------------------- */
.faq { background: #121519; }
.faq-grid { display: grid; grid-template-columns: 0.74fr 1.26fr; gap: 70px; }
.faq-intro p { font-size: 1.05rem; }
.faq-list { border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  background: none;
  border: 0;
  color: inherit;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-weight: 800;
  font-size: 1rem;
  padding: 19px 0;
  transition: color 0.2s var(--ease);
}
.faq-question:hover { color: var(--red-light); }
.faq-question .sign {
  color: var(--red);
  font-size: 1.5rem;
  line-height: 1;
  flex: none;
  transition: transform 0.3s var(--ease);
}
.faq-item.open .sign { transform: rotate(45deg); }
.faq-answer { overflow: hidden; height: 0; transition: height 0.32s var(--ease); }
.faq-answer p { margin: 0 35px 19px 0; font-size: 0.92rem; }

/* 12. Contato e formulário ----------------------------------------------- */
.contact { background: linear-gradient(135deg, #1c2026, #0a0b0d); position: relative; overflow: hidden; }
.contact:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 20%, rgba(227, 6, 19, 0.28), transparent 26%);
}
.contact .container { position: relative; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 65px; align-items: start; }
.contact-copy p { font-size: 1.07rem; }
.contact-data { margin-top: 30px; display: grid; gap: 11px; color: #dfe2e5; font-weight: 650; }
.contact-data span { display: flex; gap: 10px; align-items: center; }
.dot { width: 9px; height: 9px; background: var(--red); border-radius: 50%; display: inline-block; flex: none; }

.form { background: #f6f7f8; color: #131518; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form h3 { font-size: 1.65rem; letter-spacing: -0.045em; margin-bottom: 5px; }
.form > p { font-size: 0.9rem; color: #59616b; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 23px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.75rem; font-weight: 800; color: #363c44; }
.field input, .field textarea {
  width: 100%;
  border: 1px solid #d3d7dc;
  border-radius: 7px;
  background: #fff;
  padding: 12px;
  color: #15171a;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.12); }
.field textarea { height: 82px; resize: vertical; }
.field .error { font-size: 0.72rem; font-weight: 700; color: var(--red-dark); min-height: 0; }
.field.invalid input, .field.invalid textarea { border-color: var(--red); background: #fff5f5; }
.field.valid input { border-color: #2f9e54; }
.form .button { width: 100%; margin-top: 17px; }
.form-note { font-size: 0.72rem !important; text-align: center; margin: 11px 0 0 !important; color: #6a717a !important; }
.form-success {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 9px;
  background: #e8f6ec;
  border: 1px solid #b8e0c4;
  color: #1d6b38;
  font-size: 0.85rem;
  font-weight: 750;
  display: none;
}
.form-success.show { display: block; animation: fade-up 0.4s var(--ease); }

/* 13. Rodapé, WhatsApp e voltar ao topo ---------------------------------- */
footer { background: #050607; padding: 38px 0 26px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 28px; border-bottom: 1px solid #292d32; }
.footer-info { display: flex; flex-wrap: wrap; gap: 14px; color: #aeb4bd; font-size: 0.84rem; align-items: center; }
.footer-info a { cursor: pointer; transition: color 0.2s var(--ease); }
.footer-info a:hover { color: var(--red-light); }
.copyline { color: #747c86; font-size: 0.73rem; padding-top: 21px; display: flex; justify-content: space-between; gap: 16px; }

.whatsapp-float {
  position: fixed;
  right: 21px;
  bottom: 21px;
  z-index: 70;
  height: 59px;
  width: 59px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 9px 25px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s var(--ease);
  cursor: pointer;
}
.whatsapp-float svg { width: 30px; height: 30px; fill: currentColor; }
.whatsapp-float:hover { transform: scale(1.09); }
.whatsapp-float:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.6);
  animation: pulse-ring 2.4s ease-out infinite;
}
.whatsapp-float .tip {
  position: absolute;
  right: calc(100% + 12px);
  white-space: nowrap;
  background: #14171a;
  border: 1px solid #303840;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 750;
  padding: 8px 11px;
  border-radius: 8px;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.whatsapp-float:hover .tip { opacity: 1; transform: translateX(0); }

.to-top {
  position: fixed;
  right: 26px;
  bottom: 92px;
  z-index: 69;
  height: 44px;
  width: 44px;
  border-radius: 50%;
  border: 1px solid #3a4149;
  background: rgba(18, 20, 24, 0.92);
  color: #fff;
  font-size: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s var(--ease),
    background 0.2s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--red); border-color: var(--red); }

/* 14. Animações ---------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.8; }
  80%, 100% { transform: scale(1.5); opacity: 0; }
}

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

/* 15. Responsivo --------------------------------------------------------- */
@media (max-width: 1100px) {
  .benefit-grid { grid-template-columns: repeat(3, 1fr); }
  .pain-grid { gap: 50px; }
  .process-grid, .faq-grid { gap: 45px; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav-links.open {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    left: 20px;
    right: 20px;
    top: calc(100% + 8px);
    padding: 10px;
    background: #171a1e;
    border: 1px solid #353b43;
    border-radius: 12px;
    box-shadow: var(--shadow);
    animation: fade-up 0.28s var(--ease);
  }
  .nav-links.open a { padding: 13px; }
  .nav .button-small { display: none; }
  .hero { min-height: 720px; background-attachment: scroll; }
  .trust-strip { display: none; }
  .pain-grid, .difference .container, .process-grid, .faq-grid, .contact .container {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .pain-visual img { height: 240px; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .machine-frame { height: 290px; }
  .proof-points { grid-template-columns: 1fr 1fr; }
  .process-copy { position: static; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 210px 170px 170px; }
  .gallery-item:first-child { grid-column: span 2; grid-row: auto; }
  .contact-copy { max-width: 650px; }
  .authority { background-attachment: scroll; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 30px), var(--max)); }
  .topbar { font-size: 0.67rem; }
  .header { height: 72px; }
  .header.scrolled { height: 62px; }
  .topbar { font-size: 0.62rem; }
  .brand img { height: 48px; }
  .hero-content { padding: 146px 0 85px; }
  .hero h1 { font-size: 3.15rem; }
  .hero-actions .button { width: 100%; }
  section { padding: 75px 0; }
  .heading-row, .gallery-top { display: block; }
  .heading-row p, .gallery-top p { margin-top: 13px; }
  .benefit-grid, .proof-points { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: 250px repeat(4, 170px); }
  .gallery-item:first-child { grid-column: auto; }
  .authority .container { grid-template-columns: 45px 1fr; gap: 12px; }
  .quote { font-size: 4.5rem; }
  .form { padding: 22px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .footer-row, .copyline { align-items: flex-start; flex-direction: column; }
  .whatsapp-float { right: 15px; bottom: 15px; }
  .to-top { right: 20px; bottom: 84px; }
  .difference:after { height: 100vw; width: 100vw; }
}

/* Ajustes extras ----------------------------------------------------------- */

/* Cursor pointer em todos os elementos que abrem o WhatsApp */
[data-wa],
.whatsapp-float {
  cursor: pointer;
}

/* Nova seção de estoque (texto + imagem da escavadeira) */
.estoque-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.estoque-text {
  max-width: 560px;
}

.estoque-text h2 {
  margin: 14px 0 22px;
}

.estoque-text p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

.estoque-text .button {
  margin-top: 28px;
}

.estoque-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #373d45;
  background: #f3f3f3;
  aspect-ratio: 4 / 3;
}

.estoque-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease);
}

.estoque-visual:hover img {
  transform: scale(1.05);
}

.estoque-visual .tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  padding: 6px 9px;
  font-size: 0.73rem;
  font-weight: 750;
  color: var(--white);
  pointer-events: none;
}

@media (max-width: 900px) {
  .estoque-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .estoque-text {
    max-width: 100%;
  }

  .estoque-visual {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 560px) {
  .estoque-text p {
    font-size: 1rem;
  }

  .estoque-visual {
    aspect-ratio: 4 / 3;
  }
}

/* Tipografia (restaura o peso e a diagramação original) --------------------- */
body {
  font-family: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
}
h1, h2, h3, h4,
.button,
.nav-links a,
.eyebrow,
.topbar,
.trust-strip,
.tag {
  font-family: "Barlow Semi Condensed", "Barlow", "Segoe UI", Arial, sans-serif;
}
h1, h2, h3 { font-weight: 800; }
h4 { font-weight: 700; }
.button { font-weight: 700; letter-spacing: 0.01em; }
.hero h1 { letter-spacing: -0.02em; }
h2 { letter-spacing: -0.015em; }

/* Hero em vídeo ------------------------------------------------------------ */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.94) 0%, rgba(5, 6, 7, 0.8) 45%, rgba(5, 6, 7, 0.42) 100%),
    linear-gradient(180deg, rgba(5, 6, 7, 0.6) 0%, rgba(5, 6, 7, 0.25) 40%, rgba(5, 6, 7, 0.85) 100%);
}
.hero.hero-has-video { background: var(--black); }

/* Espaçamentos entre textos e botões --------------------------------------- */
.hero p { margin-bottom: 0; }
.hero-actions { margin-top: 44px; }
.process-copy .button,
.faq-cta .button,
.section-cta .button { margin-top: 26px; }

/* Estoque: imagem à esquerda, texto e botão à direita ---------------------- */
.estoque-grid {
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.estoque-visual { order: 1; aspect-ratio: 4 / 3; }
.estoque-text {
  order: 2;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.estoque-text h2 { margin: 16px 0 20px; font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.05; }
.estoque-text p { margin: 0; }
.estoque-text .button { margin-top: 34px; }

@media (max-width: 900px) {
  .estoque-grid { grid-template-columns: 1fr; gap: 32px; }
  .estoque-visual { order: 1; }
  .estoque-text { order: 2; max-width: none; }
}
