/* app.css — versão de desenvolvimento.
   Em produção, compilar Tailwind via CLI/PostCSS (ver README do projeto)
   para gerar um CSS purgado e minificado — não usar o CDN do Tailwind
   em produção (impacta performance / Core Web Vitals). */

html { 
  scroll-behavior: smooth; 
  scrollbar-width: thin;
  scrollbar-color: #2450ff #f8fafc;
}

/* =====================================================
   CUSTOM SCROLLBAR (Webkit)
   ===================================================== */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: #f8fafc; /* slate-50 */
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2450ff, #32dc9c);
  border-radius: 10px;
  border: 3px solid #f8fafc;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #1c3dcc, #25b37b);
}

@media (prefers-color-scheme: dark) {
  ::-webkit-scrollbar-track {
    background: #0f172a; /* slate-900 */
  }
  ::-webkit-scrollbar-thumb {
    border-color: #0f172a;
  }
}
body { font-family: 'Inter', system-ui, sans-serif; }

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
}

/* =====================================================
   SELECTION (Text Highlighting)
   ===================================================== */
::selection {
  background-color: rgba(50, 220, 156, 0.3); /* Verde da marca com transparência */
}
::-moz-selection {
  background-color: rgba(50, 220, 156, 0.3);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

@keyframes infinite-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.animate-infinite-scroll {
  animation: infinite-scroll 35s linear infinite;
  width: max-content;
}

.animate-infinite-scroll:hover {
  animation-play-state: paused;
}

.carousel-mask {
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

/* =====================================================
   PREMIUM HOVER EFFECTS — Botões Coloridos
   ===================================================== */

/* ---------- Shimmer sweep (luz deslizante) ---------- */
@keyframes btn-shimmer {
  0%   { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(250%)  skewX(-15deg); }
}

/* ---------- Glow pulse (brilho pulsante ao redor) ---------- */
@keyframes btn-glow-pulse {
  0%, 100% { box-shadow: 0 0 18px 2px rgba(36, 80, 255, 0.25), 0 0 40px 4px rgba(50, 220, 156, 0.15); }
  50%      { box-shadow: 0 0 28px 6px rgba(36, 80, 255, 0.40), 0 0 60px 10px rgba(50, 220, 156, 0.25); }
}

/* ---------- WhatsApp glow ---------- */
@keyframes wpp-glow {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35); }
  50%      { box-shadow: 0 4px 32px rgba(37, 211, 102, 0.60), 0 0 50px 6px rgba(37, 211, 102, 0.20); }
}

/* ---------- Ring expand (anel que expande no hover do WhatsApp) ---------- */
@keyframes ring-expand {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ---------- Shine sweep para botões outline ---------- */
@keyframes btn-shine {
  0%   { left: -50%; }
  100% { left: 150%; }
}


/* ======================
   1. BOTÕES GRADIENTE (CTA primário / Nav / Form submit)
   Seletores: links e buttons com background gradient inline
   ====================== */
a[style*="linear-gradient(90deg,#2450ff,#32dc9c)"],
button[style*="linear-gradient(90deg,#2450ff,#32dc9c)"] {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease,
              filter 0.35s ease;
  z-index: 1;
}

/* Shimmer overlay (pseudoelemento) */
a[style*="linear-gradient(90deg,#2450ff,#32dc9c)"]::after,
button[style*="linear-gradient(90deg,#2450ff,#32dc9c)"]::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.30),
    rgba(255, 255, 255, 0.08),
    transparent
  );
  transform: skewX(-15deg);
  pointer-events: none;
  z-index: 2;
  transition: none;
}

/* Hover: shimmer + glow + lift */
a[style*="linear-gradient(90deg,#2450ff,#32dc9c)"]:hover,
button[style*="linear-gradient(90deg,#2450ff,#32dc9c)"]:hover {
  transform: translateY(-3px) scale(1.02);
  animation: btn-glow-pulse 2s ease-in-out infinite;
  filter: brightness(1.08);
}

a[style*="linear-gradient(90deg,#2450ff,#32dc9c)"]:hover::after,
button[style*="linear-gradient(90deg,#2450ff,#32dc9c)"]:hover::after {
  animation: btn-shimmer 1.2s ease-in-out forwards;
}

/* Active press */
a[style*="linear-gradient(90deg,#2450ff,#32dc9c)"]:active,
button[style*="linear-gradient(90deg,#2450ff,#32dc9c)"]:active {
  transform: translateY(0px) scale(0.98);
  filter: brightness(0.95);
  animation: none;
}


/* ======================
   2. BOTÃO FLUTUANTE WHATSAPP
   ====================== */
a[style*="background:#25D366"] {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease;
}

/* Anel que expande no hover */
a[style*="background:#25D366"]::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid #25D366;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

a[style*="background:#25D366"]:hover {
  transform: scale(1.12) rotate(-5deg);
  animation: wpp-glow 1.5s ease-in-out infinite;
}

a[style*="background:#25D366"]:hover::before {
  animation: ring-expand 1.2s ease-out infinite;
}

a[style*="background:#25D366"]:active {
  transform: scale(0.95) rotate(0deg);
  animation: none;
}


/* ======================
   3. BOTÕES OUTLINE / BRANCOS (CTA secundários)
   ====================== */

/* Botão branco do CTA (seção escura): sombra e shine */
.py-20 a[class*="rounded-full"][class*="bg-white"][class*="shadow-lg"] {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease,
              background-color 0.3s ease;
}

.py-20 a[class*="rounded-full"][class*="bg-white"][class*="shadow-lg"]::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 30%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(36, 80, 255, 0.06),
    rgba(50, 220, 156, 0.10),
    rgba(36, 80, 255, 0.06),
    transparent
  );
  transform: rotate(25deg);
  pointer-events: none;
  z-index: 1;
  transition: none;
}

.py-20 a[class*="rounded-full"][class*="bg-white"][class*="shadow-lg"]:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 40px rgba(36, 80, 255, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08);
}

.py-20 a[class*="rounded-full"][class*="bg-white"][class*="shadow-lg"]:hover::after {
  animation: btn-shine 0.8s ease-in-out forwards;
}

/* Botão outline (borda) do CTA escuro */
a[class*="rounded-full"][class*="border-2"][class*="border-slate-600"] {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease,
              border-color 0.3s ease,
              background-color 0.3s ease;
}

a[class*="rounded-full"][class*="border-2"][class*="border-slate-600"]::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 30%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transform: rotate(25deg);
  pointer-events: none;
  z-index: 1;
  transition: none;
}

a[class*="rounded-full"][class*="border-2"][class*="border-slate-600"]:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.08);
}

a[class*="rounded-full"][class*="border-2"][class*="border-slate-600"]:hover::after {
  animation: btn-shine 0.8s ease-in-out forwards;
}

/* Botão outline (borda slate-200) — hero secundário */
a[class*="rounded-full"][class*="border-2"][class*="border-slate-200"] {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
}

a[class*="rounded-full"][class*="border-2"][class*="border-slate-200"]::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 30%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(36, 80, 255, 0.04),
    rgba(50, 220, 156, 0.08),
    rgba(36, 80, 255, 0.04),
    transparent
  );
  transform: rotate(25deg);
  pointer-events: none;
  z-index: 1;
  transition: none;
}

a[class*="rounded-full"][class*="border-2"][class*="border-slate-200"]:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 35px rgba(36, 80, 255, 0.10), 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: #93c5fd;
}

a[class*="rounded-full"][class*="border-2"][class*="border-slate-200"]:hover::after {
  animation: btn-shine 0.8s ease-in-out forwards;
}


/* ======================
   4. BOTÃO NAV "Fale Comigo" (menor, gradient)
   Ícones de ação pequenos no header — ajustar transição
   ====================== */
header a[style*="linear-gradient(90deg,#2450ff,#32dc9c)"] {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease,
              filter 0.3s ease;
}

header a[style*="linear-gradient(90deg,#2450ff,#32dc9c)"]:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 24px rgba(36, 80, 255, 0.35), 0 0 40px 2px rgba(50, 220, 156, 0.15);
  filter: brightness(1.10);
  animation: none; /* Override glow-pulse for nav — keep it subtle */
}


/* ======================
   5. REDUCED MOTION — respeitar acessibilidade
   ====================== */
@media (prefers-reduced-motion: reduce) {
  a[style*="linear-gradient(90deg,#2450ff,#32dc9c)"]::after,
  button[style*="linear-gradient(90deg,#2450ff,#32dc9c)"]::after,
  a[style*="background:#25D366"]::before,
  .py-20 a[class*="rounded-full"][class*="bg-white"]::after,
  a[class*="rounded-full"][class*="border-2"]::after {
    display: none !important;
  }

  a[style*="linear-gradient(90deg,#2450ff,#32dc9c)"]:hover,
  button[style*="linear-gradient(90deg,#2450ff,#32dc9c)"]:hover,
  a[style*="background:#25D366"]:hover,
  header a[style*="linear-gradient(90deg,#2450ff,#32dc9c)"]:hover {
    transform: none !important;
    animation: none !important;
    filter: none !important;
  }
}

/* ======================
   6. CLIENT LOGO HOVER (Estilo WhatsApp Glow)
   ====================== */
@keyframes brand-glow-pulse {
  0%, 100% {
    filter:
    grayscale(0)
    drop-shadow(0 0px 10px rgba(36, 80, 255, 0.4))
    drop-shadow(10 4px 10px rgba(50, 220, 156, 0.4));
    transform: scale(1.00);
  }
  50% {
    filter:
    grayscale(0)
    drop-shadow(0 0px 15px rgba(36, 80, 255, 0.7))
    drop-shadow(0 0 35px rgba(50, 220, 156, 0.5));
    transform: scale(1.08);
  }
}

@keyframes float-logo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes ambient-pulse { 
  0%, 100% { opacity: 0.4; transform: scale(0.9); } 
  50% { opacity: 0.8; transform: scale(1.1); } 
} 
.animate-ambient-pulse { 
  animation: ambient-pulse 8s ease-in-out infinite; 
}