/* ==========================================================================
   GR Digital — style.css
   Efeitos customizados + ajustes que o Tailwind (via CDN) não cobre.
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

body {
  background-color: #ffffff;
  color: #0a0a0a;
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
}

/* Compensar header fixo ao navegar por âncora */
section[id] {
  scroll-margin-top: 96px;
}

/* ---------------------------------------------------------------------- */
/* Fundos "aurora" (gradientes radiais roxos)                              */
/* ---------------------------------------------------------------------- */
.gr-aurora,
.gr-aurora-strong {
  /* Força a criação de uma camada de composição própria (GPU layer).
     Sem isso, o Chrome às vezes deixa de repintar o gradiente de fundo em
     seções altas que entram na tela via scroll, mostrando um retângulo
     em branco até um novo repaint ser disparado. */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.gr-aurora {
  background-color: #1b0a3d;
  background-image:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(82, 32, 183, .55), transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 30%, rgba(139, 81, 254, .45), transparent 55%),
    radial-gradient(ellipse 90% 70% at 50% 90%, rgba(58, 18, 140, .6), transparent 60%);
}

.gr-aurora-strong {
  background-color: #1b0a3d;
  background-image:
    radial-gradient(ellipse 90% 70% at 20% 25%, rgba(139, 81, 254, .65), transparent 55%),
    radial-gradient(ellipse 80% 60% at 80% 40%, rgba(82, 32, 183, .7), transparent 50%),
    radial-gradient(ellipse 100% 80% at 50% 95%, rgba(33, 1, 96, .9), transparent 60%);
}

.gr-aurora-animated {
  background-size: 200% 200%;
  animation: gr-aurora-shift 18s ease infinite;
}

@keyframes gr-aurora-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------------------------------------------------------------------- */
/* Efeito "vidro" (glassmorphism)                                          */
/* ---------------------------------------------------------------------- */
.gr-glass {
  background: #ffffff0f;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .12);
}

/* ---------------------------------------------------------------------- */
/* Brilho pulsante nos CTAs principais                                     */
/* ---------------------------------------------------------------------- */
.gr-cta-glow {
  box-shadow: 0 0 #8b51fe80;
  animation: gr-breathe 3s ease-in-out infinite;
}

@keyframes gr-breathe {
  0%, 100% { box-shadow: 0 0 24px 2px #8b51fe59; }
  50% { box-shadow: 0 0 48px 8px #8b51fe99; }
}

/* ---------------------------------------------------------------------- */
/* Flutuação suave                                                         */
/* ---------------------------------------------------------------------- */
@keyframes gr-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.gr-float {
  animation: gr-float 6s ease-in-out infinite;
}

/* ---------------------------------------------------------------------- */
/* Texto com gradiente roxo                                                */
/* ---------------------------------------------------------------------- */
.gr-text-gradient {
  background: linear-gradient(90deg, #210160, #5220b7, #8b51fe);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.gr-text-gradient-light {
  background: linear-gradient(90deg, #8b51fe, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Destaque de impacto: usado na palavra-chave do H1 do hero.
   Gradiente claro (em vez de escuro) para ter contraste sobre o fundo
   aurora, mais um glow para "saltar" visualmente. */
.gr-text-impact {
  background: linear-gradient(90deg, #c9a6ff, #8b51fe 55%, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(139, 81, 254, .65)) drop-shadow(0 0 42px rgba(139, 81, 254, .4));
}

/* ---------------------------------------------------------------------- */
/* Badge com bolinha pulsante (hero)                                       */
/* ---------------------------------------------------------------------- */
.gr-dot-pulse {
  position: relative;
  display: inline-flex;
  height: .5rem;
  width: .5rem;
  border-radius: 9999px;
  background-color: #8b51fe;
}

.gr-dot-pulse::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background-color: #8b51fe;
  animation: gr-ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}

@keyframes gr-ping {
  0% { transform: scale(1); opacity: .75; }
  75%, 100% { transform: scale(2.5); opacity: 0; }
}

/* ---------------------------------------------------------------------- */
/* Header                                                                   */
/* ---------------------------------------------------------------------- */
#gr-nav {
  background-color: transparent;
  border-color: transparent;
  box-shadow: none;
  transition: background-color .5s ease, border-color .5s ease, box-shadow .5s ease, backdrop-filter .5s ease;
}

#gr-nav.gr-nav-scrolled {
  background: #ffffff0f;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .3);
}

/* ---------------------------------------------------------------------- */
/* Portfólio — hover                                                        */
/* ---------------------------------------------------------------------- */
.gr-portfolio-card {
  transition: transform .35s ease, box-shadow .35s ease;
}

.gr-portfolio-card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 40px 4px rgba(139, 81, 254, .35);
}

/* ---------------------------------------------------------------------- */
/* FAQ accordion                                                            */
/* ---------------------------------------------------------------------- */
.gr-faq-icon {
  transition: transform .3s ease;
}

.gr-faq-item[data-open="true"] .gr-faq-icon {
  transform: rotate(180deg);
}

.gr-faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}

.gr-faq-item[data-open="true"] .gr-faq-answer {
  grid-template-rows: 1fr;
}

.gr-faq-answer-inner {
  overflow: hidden;
}

/* ---------------------------------------------------------------------- */
/* Footer — marca d'água gigante                                            */
/* ---------------------------------------------------------------------- */
.gr-footer-watermark {
  font-size: 18vw;
  line-height: 1;
  color: rgba(255, 255, 255, .04);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* ---------------------------------------------------------------------- */
/* WhatsApp flutuante                                                       */
/* ---------------------------------------------------------------------- */
.gr-whatsapp-ring {
  animation: gr-ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}

/* ---------------------------------------------------------------------- */
/* Utilidades                                                                */
/* ---------------------------------------------------------------------- */
.gr-star {
  color: #fabb05;
  fill: #fabb05;
}

textarea.gr-field {
  resize: vertical;
  min-height: 120px;
}

::selection {
  background: #8b51fe;
  color: #fff;
}
