/* =============================================
   AGÊNCIA GMN PREMIUM — ANIMATIONS & EFFECTS
   ============================================= */

/* Base Body */
body {
  overflow-x: hidden;
  background-color: #fafafa;
  color: #0f172a;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

::selection { background-color: rgba(59, 130, 246, 0.2); }

/* ===== CURSORES DO GOOGLE MAPS (Desktop) ===== */
@media (min-width: 768px) {
  body, html {
    cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='%23ef4444' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3' fill='%23ffffff' stroke='none'/%3E%3C/svg%3E") 16 32, auto;
  }
  a, button, .cursor-pointer, [role="button"], a *, button *, .cursor-pointer * {
    cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='%233b82f6' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3' fill='%23ffffff' stroke='none'/%3E%3C/svg%3E") 16 32, pointer !important;
  }
}

/* ===== ORBS (Floating Background Elements) ===== */
@keyframes float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  50% { transform: translate(-30px, 30px) scale(1.1); opacity: 0.5; }
}
@keyframes float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.2; }
  50% { transform: translate(40px, -20px) scale(1.3); opacity: 0.4; }
}
@keyframes float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  50% { transform: translate(-20px, -40px) scale(1.1); opacity: 0.5; }
}

.orb-1 { animation: float-1 12s ease-in-out infinite; }
.orb-2 { animation: float-2 15s ease-in-out infinite 1s; }
.orb-3 { animation: float-3 10s ease-in-out infinite 2s; }

/* ===== SCROLL INDICATOR ===== */
@keyframes scroll-line {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}
.animate-scroll-line {
  animation: scroll-line 2.5s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}

/* ===== GPS ROUTE ===== */
@keyframes draw-route {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}
.animate-route {
  animation: draw-route 20s linear infinite;
}

/* ===== FLOATING UI (Mockups) ===== */
@keyframes floating-ui {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}
.animate-floating {
  animation: floating-ui 6s ease-in-out infinite;
}

/* ===== MENU ENTRANCE ===== */
@keyframes fade-in-down {
  0% { transform: translateY(-100px); opacity: 0; filter: blur(8px); }
  100% { transform: translateY(0); opacity: 1; filter: blur(0px); }
}

/* ===== SCROLL REVEAL (Awwwards Style) ===== */
.reveal {
  opacity: 0;
  filter: blur(12px);
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, filter;
}

.reveal-up { transform: translateY(50px) scale(0.95); }
.reveal-down { transform: translateY(-50px) scale(0.95); }
.reveal-left { transform: translateX(-50px) scale(0.95); }
.reveal-right { transform: translateX(50px) scale(0.95); }
.reveal-scale { transform: scale(0.85); }

.reveal.active {
  opacity: 1;
  filter: blur(0px);
  transform: translate(0) scale(1);
}

/* ===== HERO ENTRANCE (NO LCP FIX) ===== */
@keyframes hero-up {
  0% { transform: translateY(50px) scale(0.95); opacity: 0; filter: blur(12px); }
  100% { transform: translate(0) scale(1); opacity: 1; filter: blur(0px); }
}
@keyframes hero-scale {
  0% { transform: scale(0.85); opacity: 0; filter: blur(12px); }
  100% { transform: scale(1); opacity: 1; filter: blur(0px); }
}

.animate-hero-up {
  animation: hero-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0; /* Ensures it's invisible before animation starts if delayed */
}

.animate-hero-scale {
  animation: hero-scale 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

/* ===== GRID PATTERN ===== */
.bg-grid-pattern {
  background-image: radial-gradient(circle at 2px 2px, rgba(0,0,0,0.04) 1px, transparent 0);
  background-size: 32px 32px;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  width: 3.5rem;
  height: 3.5rem;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.3);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
  }
}

/* =============================================
   GMN PRELOADER — First Visit Loading Screen
   ============================================= */

/* Bloqueia scroll enquanto preloader está visível */
body.gmn-is-loading {
  overflow: hidden;
}

#gmn-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #020817;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

#gmn-preloader.gmn-preloader--hidden {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

/* Fundo */
.gmn-preloader__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.gmn-preloader__map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

/* Orbs de luz */
.gmn-preloader__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.gmn-preloader__orb--blue {
  width: 50vw;
  height: 50vw;
  max-width: 500px;
  max-height: 500px;
  background: rgba(37, 99, 235, 0.18);
  top: -10%;
  left: -10%;
  animation: float-1 14s ease-in-out infinite;
}
.gmn-preloader__orb--purple {
  width: 40vw;
  height: 40vw;
  max-width: 400px;
  max-height: 400px;
  background: rgba(124, 58, 237, 0.15);
  bottom: -10%;
  right: -5%;
  animation: float-2 18s ease-in-out infinite 2s;
}

/* Conteúdo central */
.gmn-preloader__content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  padding: 2rem;
  text-align: center;
}

/* ===== Pino GPS ===== */
.gmn-preloader__pin-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gmn-preloader__pin-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.25);
  animation: gmn-pin-pulse 2s ease-out infinite;
}

@keyframes gmn-pin-pulse {
  0%   { transform: translate(-50%, -52%) scale(0.6); opacity: 0.8; }
  100% { transform: translate(-50%, -52%) scale(2);   opacity: 0; }
}

.gmn-preloader__pin-icon {
  width: 3.5rem;
  height: 3.5rem;
  color: #3b82f6;
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.7));
  animation: gmn-pin-drop 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  position: relative;
  z-index: 2;
}

@keyframes gmn-pin-drop {
  0%   { transform: translateY(-30px) scale(0.8); opacity: 0; }
  60%  { transform: translateY(4px) scale(1.05); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.gmn-preloader__pin-shadow {
  width: 1.5rem;
  height: 0.375rem;
  background: rgba(59, 130, 246, 0.4);
  border-radius: 50%;
  filter: blur(3px);
  margin-top: 0.25rem;
  animation: gmn-shadow-pulse 2s ease-in-out infinite;
}

@keyframes gmn-shadow-pulse {
  0%, 100% { transform: scale(1);   opacity: 0.5; }
  50%       { transform: scale(0.7); opacity: 0.2; }
}

/* ===== Brand ===== */
.gmn-preloader__brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  animation: gmn-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

@keyframes gmn-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.gmn-preloader__brand-name {
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1;
}

.gmn-preloader__brand-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #3b82f6;
  animation: gmn-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

/* ===== Barra de Progresso ===== */
.gmn-preloader__progress-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: min(260px, 70vw);
  animation: gmn-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.gmn-preloader__progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.gmn-preloader__progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  border-radius: 999px;
  transition: width 0.15s linear;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
}

.gmn-preloader__progress-pct {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.35);
}

