/* =========================================================
   TRIMON v2 — camada de movimento e acabamento
   Carrega depois do style.css. Tudo que depende de JS fica
   atrás de html.anim, então sem JS o site continua legível.
   ========================================================= */

html { overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Intro ---------- */
.intro { display: none; }
html.anim .intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 500;
  background: var(--ink);
}
.intro-inner { display: grid; justify-items: center; gap: 22px; }
.intro-inner img { width: 72px; height: 72px; }
.intro-bar { width: 140px; height: 2px; background: rgba(255,255,255,.12); position: relative; overflow: hidden; border-radius: 2px; }
.intro-bar::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; animation: introBar 1s var(--ease) forwards; }
@keyframes introBar { to { transform: scaleX(1); } }

/* ---------- Progresso de scroll ---------- */
.scroll-progress {
  position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 300;
  background: linear-gradient(90deg, var(--green), var(--accent)); transform: scaleX(0); transform-origin: left;
  pointer-events: none;
}

/* ---------- Header ---------- */
.site-header { transition: background-color .3s var(--ease), box-shadow .3s var(--ease), transform .45s var(--ease); }
.site-header.is-hidden:not(.menu-open) { transform: translateY(-100%); }
.nav a:not(.is-active)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--accent);
  border-radius: 2px; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav a:not(.is-active):hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Hero ---------- */
.hero-bg img { transform-origin: 70% 50%; will-change: transform; }
.hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(47,179,159,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,179,159,.16) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(360px circle at var(--gx, 30%) var(--gy, 45%), #000, transparent 70%);
          mask-image: radial-gradient(360px circle at var(--gx, 30%) var(--gy, 45%), #000, transparent 70%);
}
.hero-glow {
  position: absolute; z-index: -1; pointer-events: none; width: 520px; height: 520px; border-radius: 50%;
  left: 0; top: 0; margin: -260px 0 0 -260px;
  background: radial-gradient(circle, rgba(47,179,159,.22), rgba(47,179,159,0) 65%);
  transform: translate3d(var(--gx-px, 30vw), var(--gy-px, 40vh), 0);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 1.4rem;
  padding: 8px 16px 8px 12px; border-radius: 999px; font-family: var(--font-head);
  font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-1);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px);
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); position: relative; }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }

.hero h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); max-width: 17ch; line-height: 1.1; }
.hero h1 strong .wi { background: linear-gradient(100deg, #fff 10%, var(--accent) 110%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.wi { display: inline-block; will-change: transform; }
html.anim .hero h1, html.anim .hero-eyebrow, html.anim .hero-sub, html.anim .hero-actions, html.anim .hero-stats li { visibility: hidden; }
html.anim.ready .hero h1, html.anim.ready .hero-eyebrow, html.anim.ready .hero-sub, html.anim.ready .hero-actions, html.anim.ready .hero-stats li { visibility: visible; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 3rem; max-width: 720px;
}
.hero-stats li {
  flex: 1 1 190px; display: grid; gap: 2px; padding: 16px 20px; border-radius: var(--radius);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px);
}
.hero-stats strong { font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1; color: var(--white); font-variant-numeric: tabular-nums; }
.hero-stats strong::after { content: ""; }
.hero-stats li > span { font-size: .85rem; color: var(--gray-1); line-height: 1.35; }
.hero-stats strong span { color: inherit; font-size: inherit; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px;
  border: 2px solid rgba(255,255,255,.45); border-radius: 14px; z-index: 2;
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Legado: palavras acendendo no scroll ---------- */
.lead .sw { display: inline; }
.legado .eyebrow-title { letter-spacing: .02em; }

/* ---------- Faixa de texto (ticker) ---------- */
.ticker { overflow: hidden; padding: clamp(24px, 4vw, 48px) 0; background: var(--ink); border-block: 1px solid rgba(255,255,255,.06); }
.ticker-row { display: flex; width: max-content; will-change: transform; }
.ticker-row + .ticker-row { margin-top: 8px; }
.ticker-track { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); padding-right: clamp(20px, 3vw, 44px); flex: none; }
.ticker-track span {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: -.02em;
  font-size: clamp(2.6rem, 8vw, 6.5rem); line-height: 1.05; white-space: nowrap;
}
.ticker-track .solid { color: var(--white); }
.ticker-track .outline { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.4); }
.ticker-track svg { width: clamp(24px, 3.4vw, 44px); height: clamp(24px, 3.4vw, 44px); flex: none; fill: var(--accent); }

/* ---------- Diferenciais ---------- */
.dif-list li { padding: 14px; margin: -14px; border-radius: var(--radius); transition: background-color .3s var(--ease); }
.dif-list li:hover { background: rgba(255,255,255,.04); }
.dif-icon { transition: transform .4s var(--ease), background-color .3s var(--ease), color .3s var(--ease); }
.dif-list li:hover .dif-icon { transform: rotate(-8deg) scale(1.08); background: var(--accent); color: var(--ink); }
.dif-photos { position: relative; }
.dif-photos picture { overflow: hidden; border-radius: var(--radius); display: block; }
.dif-photos img { will-change: transform; transform: scale(1.12); }
.dif-photos::before {
  content: ""; position: absolute; z-index: -1; inset: 8% -6% -6% 10%; border-radius: var(--radius-lg);
  background: radial-gradient(circle at 30% 30%, rgba(47,179,159,.28), transparent 70%); filter: blur(30px);
}

/* ---------- Serviços ---------- */
.servicos-card { position: relative; overflow: hidden; transform-origin: 50% 0; }
.servicos-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(900px circle at 85% -10%, rgba(47,179,159,.35), transparent 55%);
}
.servicos-card > * { position: relative; }
.servicos-grid { gap: 20px; perspective: 1000px; }
.servico {
  --mx: 50%; --my: 50%;
  position: relative; padding: clamp(22px, 3vw, 34px); border-radius: var(--radius);
  background: rgba(3,56,48,.45); border: 1px solid rgba(255,255,255,.14);
  transition: border-color .3s var(--ease), background-color .3s var(--ease); transform-style: preserve-3d; will-change: transform;
}
.servico + .servico { border-left: 1px solid rgba(255,255,255,.14); }
.servico::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease);
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(255,255,255,.16), transparent 60%);
}
.servico:hover { border-color: rgba(255,255,255,.4); background: rgba(3,56,48,.7); }
.servico:hover::before { opacity: 1; }
.servico h3 svg { padding: 6px; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.12); transition: transform .4s var(--ease), background-color .3s; }
.servico:hover h3 svg { transform: scale(1.1) rotate(-6deg); background: var(--accent); stroke: var(--ink); }

/* ---------- Cards genéricos (cases / depoimentos) ---------- */
.soon-card { --mx: 50%; --my: 50%; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.soon-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(280px circle at var(--mx) var(--my), rgba(0,93,82,.12), transparent 65%);
}
.soon-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0,0,0,.1); border-color: rgba(0,93,82,.35); }
.soon-card:hover::after { opacity: 1; }

/* ---------- Botões ---------- */
.btn { position: relative; overflow: hidden; will-change: transform; }
.btn-primary::after, .btn-pill::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg);
}
.btn-primary:hover::after, .btn-pill:hover::after { left: 130%; transition: left .7s var(--ease); }
.btn-primary { box-shadow: 0 8px 28px rgba(0,93,82,.45); }
.btn-pill-icon { transition: transform .4s var(--ease); }
.btn-pill:hover .btn-pill-icon { transform: scale(1.12) rotate(360deg); }

/* ---------- Formulário ---------- */
.field label { transition: color .2s; }
.field:focus-within label { color: var(--green); }
.field input, .field select, .field textarea { transition: border-color .2s, box-shadow .2s, transform .25s var(--ease); }
.field input:focus, .field select:focus, .field textarea:focus { transform: translateY(-1px); }
.form-success svg path, .form-success svg circle { will-change: stroke-dashoffset; }

/* ---------- WhatsApp flutuante ---------- */
.whats-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25D366; z-index: -1;
  animation: pingSoft 2.4s var(--ease) infinite;
}
@keyframes pingSoft { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Mobile / toque ---------- */
@media (hover: none) {
  .servico:hover, .soon-card:hover { transform: none; }
  .hero-grid, .hero-glow { display: none; }
}
@media (max-width: 860px) {
  .hero { align-items: flex-end; }
  .hero-stats { margin-top: 2rem; }
  .hero-stats li { flex-basis: 100%; padding: 12px 16px; grid-template-columns: auto 1fr; align-items: center; gap: 14px; }
  .scroll-cue { display: none; }
  .servico + .servico { border-top: 1px solid rgba(255,255,255,.14); padding-top: clamp(22px, 3vw, 34px); }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  .intro, .scroll-cue span, .pulse-dot::after, .whats-float::before { display: none !important; animation: none !important; }
  .ticker-row { flex-wrap: wrap; width: auto; justify-content: center; }
  .ticker-track:nth-child(2) { display: none; }
  .dif-photos img { transform: none; }
  .btn-primary::after, .btn-pill::after { display: none; }
}

/* ---------- Logos de clientes (monocromáticos) ---------- */
.marquee-group img { height: 52px; width: auto; filter: none; opacity: .6; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.marquee-group img:hover { opacity: 1; transform: scale(1.06); filter: none; }
.marquee-group { gap: clamp(56px, 7vw, 96px); padding-right: clamp(56px, 7vw, 96px); }
.social li svg { fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
