@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=Sora:wght@600;700;800&display=swap');
:root {
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-condensed: "Archivo", ui-sans-serif, system-ui, sans-serif;

  --color-royal: #1848C8;
  --color-electric: #08B8E8;
  --color-dark-base: #0C0C14;
  --color-dark-card: #1C1F26;
  --color-chrome: #C8CDD4;
  --color-ice: #F2F4F8;
}

/* PageSpeed fix: classe reutilizável para travar scroll em modais, evita forced reflow de body.style.overflow inline */
body.no-scroll {
  overflow: hidden;
}

@layer base {
  body {
    background-color: var(--color-dark-base);
    color: var(--color-ice);
    font-family: var(--font-sans);
    overflow-x: hidden;
  }
}

/* Custom continuous horizontal marquee for services / locations */
@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}

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

/* Glassmorphism card utility */
.glass-card {
  background: rgba(28, 31, 38, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(200, 205, 212, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Hexagon background pattern */
.bg-hex-grid {
  background-image: radial-gradient(rgba(24, 72, 200, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Chrome metallic shine effect */
.chrome-shine {
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #c8cdd4 40%,
    #a2a8b0 60%,
    #ffffff 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Smooth transition defaults */
* {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0C0C14;
}
::-webkit-scrollbar-thumb {
  background: #1C1F26;
  border-radius: 4px;
  border: 2px solid #0C0C14;
}
::-webkit-scrollbar-thumb:hover {
  background: #1848C8;
}

/* ═══════════════════════════════════════════════════════
   WHATSAPP PREMIUM — Balão + botão flutuante (AG5 V4)
═══════════════════════════════════════════════════════ */
.wa-premium-container {
  position: fixed;
  bottom: 25px;
  right: 20px;
  z-index: 2000;
  font-family: var(--font-sans);
}

/* Balão Glassmorphism */
.wa-bubble {
  width: 280px;
  position: absolute;
  bottom: 68px;
  right: 0;
  background: rgba(255, 252, 246, .98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(8, 184, 232, .25);
  border-radius: 1rem;
  box-shadow: 0 12px 32px -12px rgba(28, 24, 12, .18);
  padding: 1rem 1.15rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Cauda triangular conectando o balão ao botão */
.wa-bubble::before {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 16px;
  width: 20px;
  height: 20px;
  background: inherit;
  border-right: 1px solid rgba(8, 184, 232, .35);
  border-bottom: 1px solid rgba(8, 184, 232, .35);
  transform: rotate(45deg);
  border-bottom-right-radius: 4px;
  z-index: -1;
}

.wa-bubble.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Cabeçalho */
.wa-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.wa-avatar-wrapper { position: relative; flex-shrink: 0; }

.wa-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid #25d366;
  display: block;
}

.wa-name {
  display: block;
  font-weight: 700;
  color: #1a1a1a;
  font-size: 14px;
  letter-spacing: .01em;
}

/* Digitação */
.wa-typing {
  display: flex;
  gap: 4px;
  padding: 6px 0;
}

.wa-typing span {
  width: 5px;
  height: 5px;
  background: #25d366;
  border-radius: 50%;
  animation: wa-typing-ani 1.4s infinite;
  opacity: 0.4;
}

.wa-typing span:nth-child(2) { animation-delay: 0.2s; }
.wa-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes wa-typing-ani {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%      { transform: translateY(-4px); opacity: 1; }
}

/* Mensagem */
.wa-message-text p {
  margin: 0;
  font-size: 13px;
  color: #333;
  line-height: 1.5;
}

.wa-message-text p strong {
  color: #1848C8;
  font-weight: 700;
}

/* Botão flutuante redondo (estado inicial hidden, JS controla via .visible) */
.wa-float-btn {
  width: 54px;
  height: 54px;
  background: #25D366;
  color: #fff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
  text-decoration: none;
  transition: all 0.6s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  position: relative;
}

.wa-float-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.wa-float-btn:hover { transform: scale(1.1) translateY(-3px); }
.wa-float-btn svg { display: block; }

/* Badge de notificação (compacto — não invasivo) */
.wa-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  background: #ff3b30;
  color: #fff;
  font-size: 9px;
  line-height: 1;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 1.5px solid #fff;
  opacity: 0;
  transform: scale(0);
  transition: all 0.4s ease;
}

.wa-badge.show { opacity: 1; transform: scale(1); }

/* Botão fechar */
.wa-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-close:hover { color: #666; }

/* Classes utilitárias (PageSpeed fix — substituem inline style do JS, evita forced reflow) */
.wa-typing.is-hidden { display: none !important; }
.wa-message-text.is-visible { display: block !important; opacity: 0; transition: opacity 500ms ease; }
.wa-message-text.is-visible.is-in { opacity: 1; }

@media (max-width: 480px) {
  .wa-premium-container { bottom: 16px; right: 16px; }
  .wa-bubble { width: 260px; bottom: 72px; }
}

/* ═══════════════════════════════════════════════════════
   AGENDAMENTO RÁPIDO — Card Ultra Premium (borda animada + glow)
═══════════════════════════════════════════════════════ */

/* Glow ambiente dinâmico atrás do card, pulsando lentamente */
.quote-card-glow {
  position: absolute;
  inset: -40px;
  z-index: -1;
  background: radial-gradient(circle at 30% 20%, rgba(8, 184, 232, 0.35), transparent 55%),
              radial-gradient(circle at 80% 90%, rgba(24, 72, 200, 0.3), transparent 55%);
  filter: blur(50px);
  opacity: 0.55;
  animation: quote-glow-pulse 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes quote-glow-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 0.7; transform: scale(1.06); }
}

/* Wrapper que gera a borda com gradiente animado (conic gradient girando) */
.quote-card-border {
  position: relative;
  border-radius: 1.75rem;
  padding: 1.5px;
  background: conic-gradient(from var(--border-angle, 0deg),
    rgba(255, 255, 255, 0.06),
    rgba(8, 184, 232, 0.55),
    rgba(24, 72, 200, 0.55),
    rgba(255, 255, 255, 0.06) 40%
  );
  animation: quote-border-spin 6s linear infinite;
}

@property --border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@keyframes quote-border-spin {
  to { --border-angle: 360deg; }
}

/* Fallback para navegadores sem suporte a @property (Firefox antigo) */
@supports not (background: conic-gradient(from 0deg, red, blue)) {
  .quote-card-border {
    background: linear-gradient(135deg, rgba(8, 184, 232, 0.4), rgba(24, 72, 200, 0.4));
    animation: none;
  }
}

/* Card interno — mantém o fundo/gradient original, só herda o novo radius */
.quote-card-inner {
  border-radius: calc(1.75rem - 1.5px);
}

/* Inputs premium: halo de foco + leve elevação, sem alterar paleta */
.quote-field {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.25s ease;
}

.quote-field:focus {
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(8, 184, 232, 0.15), 0 8px 20px -8px rgba(8, 184, 232, 0.35);
}

/* Botão de envio: brilho deslizante (shine sweep) no hover */
.quote-submit-btn {
  position: relative;
  overflow: hidden;
}

.quote-submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
}

.quote-submit-btn:hover::before {
  left: 125%;
}

/* Stat strip "Consultores online agora" — leve pulso de destaque */
.quote-stat-strip {
  animation: quote-stat-pulse 4s ease-in-out infinite;
}

@keyframes quote-stat-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(8, 184, 232, 0); }
  50%      { box-shadow: 0 0 24px 0 rgba(8, 184, 232, 0.12); }
}

@media (prefers-reduced-motion: reduce) {
  .quote-card-glow,
  .quote-card-border,
  .quote-stat-strip {
    animation: none;
  }
  .quote-field:focus {
    transform: none;
  }
  .quote-submit-btn::before {
    display: none;
  }
}
