/* ==========================================================
   LORSO DIGITAL — style.css
   Estilos complementares ao Tailwind (via CDN) definido no
   <head> do index.html. Este arquivo cobre: reset base,
   scrollbar, menu mobile, estados de formulário e utilitários
   que não são cobertos por classes utilitárias do Tailwind.
   ========================================================== */

/* -----------------------------
   Reset base (herdado do export original)
------------------------------ */
@layer base {
  html,
  body {
    margin: 0;
    padding: 0;
  }

  body {
    overscroll-behavior: none;
  }

  main > :first-child {
    margin-top: 0 !important;
  }

  main > :last-child {
    margin-bottom: 0 !important;
  }
}

html {
  scroll-behavior: smooth;
}

/* Esconde a scrollbar (mantendo o comportamento do export original) */
::-webkit-scrollbar {
  display: none;
}

body {
  scrollbar-width: none;
}

/* -----------------------------
   Menu mobile (hambúrguer)
------------------------------ */
.mobile-menu {
  position: fixed;
  top: 5rem; /* altura do header (h-20) */
  left: 0;
  right: 0;
  z-index: 40;
  background-color: rgba(9, 10, 15, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid #1e2433;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);

  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
}

.mobile-menu.is-open {
  max-height: 26rem;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-link {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  padding: 0.85rem 0.25rem;
  color: #b9cbb9;
  border-bottom: 1px solid #1e2433;
  transition: color 0.2s ease;
}

.mobile-menu-link:last-of-type {
  border-bottom: none;
}

.mobile-menu-link:hover,
.mobile-menu-link:focus-visible {
  color: #ffffff;
}

/* Trava o scroll do body quando o menu mobile está aberto */
body.menu-open {
  overflow: hidden;
}

/* -----------------------------
   Formulário
------------------------------ */
.form-input,
.form-input-wrap {
  width: 100%;
  background-color: #090a0f;
  color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #1e2433;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.form-input::placeholder {
  color: rgba(148, 163, 184, 0.5);
}

.form-input:focus,
.form-input-wrap:focus-within {
  outline: none;
  border-color: #00eefc;
  box-shadow: 0 0 0 1px #00eefc, 0 0 16px rgba(0, 238, 252, 0.18);
}

.form-input.is-invalid,
.form-input-wrap.is-invalid {
  border-color: #ffb4ab;
}

.form-input.is-invalid:focus,
.form-input-wrap.is-invalid:focus-within {
  border-color: #ffb4ab;
  box-shadow: 0 0 0 1px #ffb4ab, 0 0 16px rgba(255, 180, 171, 0.18);
}

select.form-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 2.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px;
}

@media (max-width: 400px) {
  select.form-input {
    font-size: 13px;
    padding-right: 2rem;
  }
}

.channel-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.75rem 0.375rem;
  background-color: #090a0f;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.channel-option input[type="radio"] {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.channel-option span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-option:hover {
  background-color: #131722;
}

.channel-option:has(input:checked) {
  border-color: #00ff87;
  background-color: rgba(0, 255, 135, 0.06);
}

@media (max-width: 400px) {
  .channel-option {
    gap: 0.25rem;
    padding: 0.625rem 0.25rem;
  }
  .channel-option span {
    font-size: 12.5px;
  }
}

/* Honeypot anti-spam (campo invisível para humanos, visível para bots) */
.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Mensagens de feedback do formulário */
.form-feedback {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.5rem;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

.form-feedback.is-visible {
  display: flex;
}

.form-feedback-success {
  background-color: #131722;
  color: #00ff87;
}

.form-feedback-error {
  background-color: rgba(147, 0, 10, 0.15);
  color: #ffb4ab;
}

/* -----------------------------
   Instagram (grade de posts)
------------------------------ */
.insta-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #0d0f17;
  color: #94a3b8;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insta-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(0, 255, 135, 0.15);
}

.insta-tile-profile {
  background: linear-gradient(135deg, #00ff87 0%, #00c46a 100%);
  color: #090a0f;
}

.insta-tile-placeholder {
  color: #2a324b;
}

.insta-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.insta-tile:hover img {
  transform: scale(1.04);
}

.insta-tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
  background: linear-gradient(0deg, rgba(9, 10, 15, 0.85) 0%, rgba(9, 10, 15, 0) 55%);
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  line-height: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.insta-tile:hover .insta-tile-overlay,
.insta-tile:focus-visible .insta-tile-overlay {
  opacity: 1;
}

/* ==========================================================
   ANIMAÇÕES — Números (stats) e Metodologia em 5 etapas
   ========================================================== */

/* ---------- Stats: entrada, contador, ponto pulsante, barra ---------- */
.js-anim .stat-card{opacity:0;transform:translateY(24px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1),background-color .3s}
.js-anim .stat-card.is-in{opacity:1;transform:none;transition-delay:calc(var(--i)*.12s),calc(var(--i)*.12s),0s}
.stat-num{font-variant-numeric:tabular-nums}
.stat-num.is-counting{color:#fff;text-shadow:0 0 18px rgba(0,255,135,.35)}
.stat-dot{position:relative}
.stat-dot::after{content:"";position:absolute;inset:0;border-radius:9999px;background:currentColor;animation:statPing 2s cubic-bezier(0,0,.2,1) infinite}
@keyframes statPing{0%{transform:scale(1);opacity:.7}80%,100%{transform:scale(3.2);opacity:0}}
.stat-bar{position:absolute;left:0;bottom:0;height:2px;width:100%;background:linear-gradient(90deg,#00ff87,#00eefc);transform:scaleX(0);transform-origin:left;transition:transform 1.8s cubic-bezier(.65,0,.35,1);opacity:.85}
.stat-card.is-in .stat-bar{transform:scaleX(1);transition-delay:calc(var(--i)*.12s + .2s)}
.stat-card::before{content:"";position:absolute;top:0;left:-60%;width:40%;height:100%;pointer-events:none;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.05),transparent);transform:skewX(-15deg)}
.stat-card.is-in::before{animation:statShine 1.4s ease calc(var(--i)*.12s + 1.6s) 1 both}
@keyframes statShine{to{left:130%}}

/* ---------- Metodologia ---------- */
.js-anim .metodo-head>*{opacity:0;transform:translateY(18px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1)}
.js-anim #o-metodo.is-in .metodo-head>*{opacity:1;transform:none}
.js-anim #o-metodo.is-in .metodo-head>*:nth-child(2){transition-delay:.08s}
.js-anim #o-metodo.is-in .metodo-head>*:nth-child(3){transition-delay:.16s}

.metodo-track{display:none}
@media (min-width:1024px){
  .metodo-track{display:block;position:absolute;top:2.75rem;left:3rem;right:3rem;height:2px;background:#131722;border-radius:2px;z-index:0}
  .metodo-track-fill{position:absolute;inset:0 auto 0 0;width:0;border-radius:2px;background:linear-gradient(90deg,#00ff87,#00eefc);
    box-shadow:0 0 12px rgba(0,238,252,.55);transition:width .9s cubic-bezier(.65,0,.35,1)}
  .metodo-track-fill::after{content:"";position:absolute;right:-5px;top:50%;width:10px;height:10px;border-radius:50%;transform:translateY(-50%);
    background:#00eefc;box-shadow:0 0 14px 4px rgba(0,238,252,.7)}
}

.metodo-step{position:relative;border:1px solid rgba(255,255,255,.04);padding-bottom:2.25rem;
  transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1),background-color .4s,border-color .4s,box-shadow .4s}
.js-anim .metodo-step{opacity:0;transform:translateY(40px) scale(.97)}
.js-anim #o-metodo.is-in .metodo-step{opacity:1;transform:none;transition-delay:calc(.25s + var(--i)*.12s),calc(.25s + var(--i)*.12s),0s,0s,0s}
.metodo-num{background:#131722;color:#fff;transition:background-color .4s,color .4s,box-shadow .4s,transform .4s}
.metodo-step h4,.metodo-step p{transition:color .4s}
.metodo-bar{position:absolute;left:1.5rem;right:1.5rem;bottom:1.1rem;height:2px;background:rgba(255,255,255,.05);border-radius:2px;overflow:hidden}
.metodo-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,#00ff87,#00eefc)}

#o-metodo .metodo-step.is-active{background:#11151f;border-color:rgba(0,255,135,.25);
  box-shadow:0 0 0 1px rgba(0,255,135,.08),0 18px 50px -12px rgba(0,255,135,.28);transform:translateY(-6px)}
.metodo-step.is-active .metodo-num{background:#00ff87;color:#090A0F;transform:scale(1.08);box-shadow:0 0 20px rgba(0,255,135,.55)}
.metodo-step.is-active p{color:#c3cad6}
.metodo-step.is-active .metodo-bar i{animation:metodoFill 2.6s linear forwards}
.metodo-steps.is-paused .metodo-step.is-active .metodo-bar i{animation-play-state:paused}
.metodo-step.is-done .metodo-num{background:rgba(0,255,135,.12);color:#00ff87}
@keyframes metodoFill{to{width:100%}}

@media (prefers-reduced-motion:reduce){
  .js-anim .stat-card,.js-anim .metodo-step,.js-anim .metodo-head>*{opacity:1!important;transform:none!important}
  .stat-dot::after,.stat-card::before{animation:none!important}
  .metodo-step.is-active .metodo-bar i{animation:none;width:100%}
}
