/* ==========================================================================
   JF Peças de Empilhadeiras — LP Cinematográfica
   Identidade: navy #0F1E31 / #1A2E4A · âmbar #E8A020 · industrial noturno
   ========================================================================== */

:root {
  --navy: #1A2E4A;
  --navy-dark: #0F1E31;
  --navy-deep: #0A1524;
  --amber: #E8A020;
  --amber-soft: #F5B942;
  --amber-dark: #C8881A;
  --wa-green: #25D366;
  --wa-green-dark: #1DA855;
  --text-light: #F4F6FA;
  --muted-light: rgba(244, 246, 250, 0.62);
  --text-dark: #111827;
  --muted-dark: #6B7280;
  --surface: #F5F7FA;
  --border-light: rgba(255, 255, 255, 0.1);
  --border-dark: #E5E7EB;
  --radius: 12px;
  --font-display: "Archivo", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  color: var(--text-light);
  background: var(--navy-deep);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: rgba(232, 160, 32, 0.35); color: #fff; }

/* ==========================================================================
   Film grain
   ========================================================================== */
.grain {
  position: fixed; inset: -100px; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.045;
  animation: grain 7s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-30px, 10px); }
  40% { transform: translate(20px, -25px); }
  60% { transform: translate(-15px, 30px); }
  80% { transform: translate(25px, 5px); }
}

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 72px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}
.nav.is-scrolled {
  background: rgba(15, 30, 49, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border-light);
}
.nav__logo img {
  height: 52px; width: auto;
  border-radius: 8px;
  background: #fff;
  padding: 4px 8px;
}
.nav__cta {
  display: flex; align-items: center; gap: 8px;
  background: var(--wa-green); color: #fff;
  font-weight: 600; font-size: 0.875rem;
  padding: 9px 18px; border-radius: 8px;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.nav__cta:hover { background: var(--wa-green-dark); transform: translateY(-1px); }
.nav__cta svg { flex-shrink: 0; }

/* ==========================================================================
   Section headings
   ========================================================================== */
.section-label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.08; letter-spacing: -0.02em;
  color: var(--text-light);
  margin-bottom: 18px;
}
.section-title--dark { color: var(--text-dark); }
.section-sub {
  font-size: 1rem; color: var(--muted-dark);
  max-width: 540px; line-height: 1.7;
  margin-bottom: 48px;
}
.section-sub--light { color: var(--muted-light); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  padding: 96px 24px 80px;
}
.hero__bg { position: absolute; inset: 0; }
.hero__imgwrap { position: absolute; inset: 0; }
.hero__imgscale { position: absolute; inset: 0; }
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 70% center;
}
.hero__light {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 60% at 72% 8%, rgba(232, 160, 32, 0.16), transparent 65%);
  animation: lightPulse 8s ease-in-out infinite;
}
@keyframes lightPulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(10, 21, 36, 0.92) 0%, rgba(10, 21, 36, 0.55) 45%, rgba(10, 21, 36, 0.12) 75%),
    linear-gradient(to bottom, rgba(10, 21, 36, 0.35), transparent 25%, transparent 65%, var(--navy-deep) 97%);
}
.hero__content {
  position: relative; z-index: 2;
  width: min(1120px, 100%);
  margin-inline: auto;
}
.badge.badge--top { display: none; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(232, 160, 32, 0.14);
  border: 1px solid rgba(232, 160, 32, 0.32);
  color: var(--amber);
  font-size: 0.75rem; font-weight: 600;
  padding: 5px 14px; border-radius: 100px;
  margin-bottom: 24px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.hero__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  line-height: 1.04; letter-spacing: -0.025em;
  margin-bottom: 24px;
  max-width: 720px;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; }
.hero__title-accent { color: var(--amber); }
.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  color: var(--muted-light);
  max-width: 560px; line-height: 1.7;
  margin-bottom: 34px;
}
.btn-solicitar {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--amber); color: #fff;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  padding: 17px 38px; border-radius: 10px; border: none;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 36px rgba(232, 160, 32, 0.35);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  margin-bottom: 36px;
}
.btn-solicitar:hover {
  background: var(--amber-dark); transform: translateY(-2px);
  box-shadow: 0 14px 44px rgba(232, 160, 32, 0.45);
}
.btn-solicitar:active { transform: scale(0.99); }
.hero__trust { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.875rem; color: var(--muted-light);
}
.trust-item svg { color: var(--amber); flex-shrink: 0; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2;
  font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted-light);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero__scroll span {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, var(--amber));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ==========================================================================
   Parceiros (chips brancos sobre fundo escuro)
   ========================================================================== */
.clients {
  background: var(--navy-deep);
  padding: 64px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}
.clients__label {
  text-align: center;
  font-size: 0.75rem; font-weight: 700;
  color: var(--muted-light);
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 36px;
}
.marquee-wrapper { position: relative; width: 100%; overflow: hidden; }
.marquee-wrapper::before,
.marquee-wrapper::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.marquee-wrapper::before { left: 0; background: linear-gradient(to right, var(--navy-deep), transparent); }
.marquee-wrapper::after { right: 0; background: linear-gradient(to left, var(--navy-deep), transparent); }
.marquee-track {
  display: flex; gap: 24px; width: max-content;
  animation: marquee 32s linear infinite;
  padding: 4px 0;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 12px)); }
}
.marquee-item {
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border-radius: 14px;
  padding: 14px 28px;
  flex-shrink: 0;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}
.marquee-item img { height: 48px; width: auto; max-width: 150px; object-fit: contain; }

/* ==========================================================================
   Storytelling (pinned, cenografia procedural)
   ========================================================================== */
.historia { position: relative; background: var(--navy-deep); }
.historia__pin {
  position: relative; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.historia__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.historia__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, var(--navy-deep) 0%, transparent 20%, transparent 60%, rgba(10, 21, 36, 0.9) 100%);
}
.historia__head {
  position: absolute; top: max(11vh, 90px); left: 50%; transform: translateX(-50%);
  z-index: 2; width: min(1120px, 92vw);
}
.historia__head .section-title { margin-bottom: 0; }
.historia__captions { position: relative; z-index: 2; }
.historia__caption {
  position: absolute; bottom: 11vh; left: max(4vw, calc((100vw - 1120px) / 2)); right: 4vw;
  opacity: 0; visibility: hidden;
  max-width: 520px;
}
.historia__num {
  font-family: var(--font-display); font-weight: 800; font-size: 0.9rem;
  color: var(--amber); letter-spacing: 0.25em;
}
.historia__caption h3 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  margin: 8px 0 12px;
}
.historia__caption p { color: var(--muted-light); font-size: 1rem; max-width: 460px; line-height: 1.7; }
.historia__progress {
  position: absolute; right: 4vw; bottom: 11vh; z-index: 2;
  width: 3px; height: 110px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.historia__progress i {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(to bottom, var(--amber), var(--amber-soft));
  transform: scaleY(0); transform-origin: top;
}

/* Versão estática (mobile / reduced motion) */
.historia.is-static .historia__pin { height: auto; padding: 80px 24px 40px; display: block; }
.historia.is-static .historia__canvas,
.historia.is-static .historia__progress { display: none; }
.historia.is-static .historia__overlay { display: none; }
.historia.is-static .historia__head {
  position: static; transform: none; width: 100%; margin-bottom: 48px;
}
.historia.is-static .historia__caption {
  position: static; opacity: 1; visibility: visible;
  margin-bottom: 36px; padding: 24px;
  background: linear-gradient(160deg, rgba(26, 46, 74, 0.65), rgba(15, 30, 49, 0.85));
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  max-width: 100%;
}

/* ==========================================================================
   Serviços (bloco claro)
   ========================================================================== */
.services {
  background: linear-gradient(160deg, #FCFDFF 0%, #F0F4F9 45%, #E4EBF3 100%);
  padding: 96px 24px;
}
.services__inner { max-width: 1120px; margin: 0 auto; }
.services .section-sub { color: var(--muted-dark); }
.services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
  box-shadow: 0 16px 44px rgba(15, 30, 49, 0.12);
  transform: translateY(-4px);
  border-color: rgba(232, 160, 32, 0.5);
}
.service-icon {
  width: 48px; height: 48px;
  background: rgba(232, 160, 32, 0.12);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--amber-dark);
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.service-card p { font-size: 0.95rem; color: var(--muted-dark); line-height: 1.65; }

/* ==========================================================================
   Números (continua no bloco claro)
   ========================================================================== */
.numeros { background: linear-gradient(to bottom, #E4EBF3, #EDF1F7); padding: 56px 24px 96px; }
.numeros__inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.numero {
  background: var(--navy-dark);
  border-radius: var(--radius);
  padding: 32px 26px;
  border: 1px solid rgba(232, 160, 32, 0.18);
}
.numero b {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  color: var(--amber);
  display: block; margin-bottom: 8px;
  letter-spacing: -0.02em; line-height: 1.1;
}
.numero__text { font-size: clamp(1.3rem, 2.2vw, 1.7rem) !important; }
.numero p { font-size: 0.85rem; color: var(--muted-light); line-height: 1.55; }

/* ==========================================================================
   Diferenciais
   ========================================================================== */
.differentials { background: var(--navy-dark); padding: 96px 24px; }
.diff-inner { max-width: 1120px; margin: 0 auto; }
.diff-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  margin-top: 12px;
}
.diff-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.diff-item:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(232, 160, 32, 0.35); }
.diff-icon {
  width: 40px; height: 40px;
  background: rgba(232, 160, 32, 0.15);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--amber);
  flex-shrink: 0;
}
.diff-item h4 {
  font-family: var(--font-display);
  font-size: 0.98rem; font-weight: 700;
  color: var(--text-light);
  margin-bottom: 5px;
}
.diff-item p { font-size: 0.875rem; color: var(--muted-light); line-height: 1.6; }

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta-section {
  position: relative;
  background: var(--navy-deep);
  padding: 120px 24px;
  text-align: center;
  overflow: hidden;
}
.cta-section__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }
.cta-box { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.cta-box .section-label { text-align: center; }
.cta-box .section-title { margin-bottom: 14px; }
.cta-box .section-sub { margin: 0 auto 40px; text-align: center; }
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--wa-green); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  padding: 17px 38px; border-radius: 10px;
  box-shadow: 0 10px 36px rgba(37, 211, 102, 0.3);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-whatsapp:hover {
  background: var(--wa-green-dark); transform: translateY(-2px);
  box-shadow: 0 14px 44px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  padding: 30px 24px;
  font-size: 0.82rem;
  border-top: 1px solid var(--border-light);
}
footer strong { color: rgba(255, 255, 255, 0.72); }

/* ==========================================================================
   WhatsApp float
   ========================================================================== */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 200;
  background: var(--wa-green); color: #fff;
  border-radius: 50%;
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s, box-shadow 0.25s, opacity 0.4s;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

/* ==========================================================================
   Reveal defaults (JS controla; sem JS tudo visível)
   ========================================================================== */
.js-anim [data-reveal] { opacity: 0; transform: translateY(36px); }
.js-anim .hero__title .line > span { transform: translateY(115%); }
.js-anim [data-hero-reveal] { opacity: 0; transform: translateY(24px); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: 1fr; }
  .numeros__inner { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  /* Mobile: topo da imagem limpo (sem nav); badge vira o primeiro elemento da LP */
  .nav { display: none; }

  /* Mobile: plano mais aberto no topo (imagem baixa = cover mostra fatia larga
     da cena, empilhadeira inteira e mais distante), texto na base em navy */
  .hero { padding: 20px 20px 88px; align-items: flex-end; }
  .hero__content .badge { display: none; }
  .badge.badge--top {
    display: inline-flex;
    position: absolute;
    top: 18px; left: 20px;
    max-width: calc(100% - 40px);
    z-index: 3;
    margin-bottom: 0;
  }
  .hero__title { font-size: 1.72rem; margin-bottom: 12px; }
  .hero__sub { font-size: 0.95rem; margin-bottom: 26px; }
  /* Janela de recorte: só controla a altura da banda visível (independe da
     foto). A foto em si vive em .hero__imgscale, travada na proporção nativa
     1376:768 — isso garante o MESMO enquadramento em qualquer aparelho,
     porque nunca cruza unidades de largura (vw) com unidades de altura (vh)
     para decidir o corte. Bug anterior: width em vw + height em svh fazia o
     "cover" recortar de forma diferente a cada proporção de tela real. */
  .hero__imgwrap {
    inset: auto;
    top: 0; left: 0; right: 0;
    height: 42vh;
    height: 42svh;
    overflow: hidden;
    -webkit-mask-image:
      linear-gradient(to bottom, #000 62%, transparent 98%),
      linear-gradient(to right, transparent 0%, #000 14%, #000 84%, transparent 99%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to bottom, #000 62%, transparent 98%),
      linear-gradient(to right, transparent 0%, #000 14%, #000 84%, transparent 99%);
    mask-composite: intersect;
  }
  /* Foto em escala real: 250vw de largura = "zoom out". Proporção travada em
     1376/768 (a mesma do arquivo), então NUNCA distorce. translate() usa
     porcentagem da PRÓPRIA caixa, então -76%/-53% ancora o ponto (76%, 53%)
     da foto original (o corpo da empilhadeira, do topo do mastro às rodas)
     no centro da janela acima. Ajustado em 29/09/2026: o ancoragem anterior
     (68%, 40%) cortava o topo do mastro e a lateral direita da cabine. */
  .hero__imgscale {
    inset: auto;
    left: 50%; top: 50%;
    width: 250vw;
    aspect-ratio: 1376 / 768;
    transform: translate(-76%, -53%);
  }
  .hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
  .hero__scrim {
    background:
      linear-gradient(to bottom,
        rgba(10, 21, 36, 0.45) 0%,
        rgba(10, 21, 36, 0.05) 18%,
        rgba(10, 21, 36, 0.3) 34%,
        rgba(10, 21, 36, 0.9) 47%,
        var(--navy-deep) 55%);
  }
  .hero__light {
    background: radial-gradient(ellipse 95% 38% at 70% 4%, rgba(232, 160, 32, 0.18), transparent 68%);
  }
  .hero__trust { gap: 10px; flex-direction: column; align-items: flex-start; }
  .trust-item { font-size: 0.82rem; }
  .btn-solicitar { width: 100%; justify-content: center; font-size: 1rem; padding: 16px 20px; margin-bottom: 26px; }

  .services { padding: 64px 20px; }
  .numeros { padding: 0 20px 64px; }
  .numeros__inner { gap: 12px; }
  .numero { padding: 24px 20px; }
  .differentials { padding: 64px 20px; }
  .cta-section { padding: 80px 20px; }

  .marquee-item { padding: 10px 20px; border-radius: 10px; }
  .marquee-item img { height: 38px; max-width: 120px; }

  .whatsapp-float { width: 54px; height: 54px; bottom: 20px; right: 20px; }
}

@media (max-width: 380px) {
  .badge { font-size: 0.66rem; letter-spacing: 0.02em; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .grain, .hero__light, .hero__scroll span { animation: none; }
  /* Sem animação a faixa vira grade estática; o "set 2" (aria-hidden, só existe
     pra dar loop sem emenda na versão animada) fica de fora, senão cada logo
     aparece duas vezes. */
  .marquee-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
  .marquee-item[aria-hidden="true"] { display: none; }
  * { scroll-behavior: auto !important; }
}
