/* ============================================================
   NOSSOS SERVIÇOS EM AÇÃO — responsivo
   ============================================================ */

.NossasServicos {
  position: relative;
  width: 100%;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  overflow: hidden;
  background: #042951;
 
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 9px;
  background: white;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: white;
}

.section-subtitle {
  font-size: clamp(14px, 2vw, 16px);
  color: white;
  text-align: center;
  margin-bottom: 80px;
  font-weight: 300;
  letter-spacing: 0.04em;
  max-width: 600px;
}

/* ── ÓRBITA (desktop: circular) ───────────────────────────── */

.orbit-container {
  margin-top: 40px;
  position: relative;
  width: min(700px, 90vw);
  height: min(700px, 90vw);
}

.center-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 70%;
  object-fit: contain;
  z-index: 10;
  filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.4));
  animation: float 6s ease-in-out infinite;
  /* impede que a imagem sobreponha os pills */
  pointer-events: none;
}

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

.orbit-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

.orbit-line {
  stroke-dasharray: 6 4;
  stroke-width: 1.5;
  opacity: 0.35;
  transition: opacity 0.3s, stroke-dashoffset 0.3s;
  animation: dash 20s linear infinite;
}

@keyframes dash {
  to { stroke-dashoffset: -200; }
}

/* ── NÓ DE SERVIÇO ────────────────────────────────────────── */

.service-node {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 20;
  cursor: pointer;
}

.pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 100px;
  border: 1.5px solid;
  background: rgba(13, 11, 30, 0.85);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 0 0 transparent;
  font-family: 'DM Sans', Inter, sans-serif;
  letter-spacing: .01em;
}

.pill i {
  font-size: 15px;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.card-body {
  display: none;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.6;
  margin-top: 10px;
  color: rgb(255, 255, 255);
  max-width: 180px;
  white-space: normal;
  font-family: 'DM Sans', Inter, sans-serif;
}

.service-node:hover .pill {
  border-radius: 16px;
  padding: 14px 18px;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 200px;
}

.service-node:hover .pill i {
  font-size: 20px;
  transform: scale(1.1);
}

.service-node:hover .card-body {
  display: block;
}

/* ── PULSE DOT ────────────────────────────────────────────── */

.pulse-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0aa44d;
  animation: pulse-ring 3s ease-out infinite;
  z-index: 5;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  border: 1px solid #f9cf10;
  animation: pulse-ring 3s ease-out infinite 0.5s;
}

@keyframes pulse-ring {
  0%   { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(4); opacity: 0; }
}

/* ── GLOW ORB ─────────────────────────────────────────────── */

.glow-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.08;
  filter: blur(60px);
}

/* ============================================================
   MOBILE: lista de cards em vez da órbita circular
   Abaixo de 640px o orbit-container vira um grid de cards.
   O JS detecta isso via .orbit-container[data-mode="list"]
   e não posiciona os nós em absoluto.
   ============================================================ */

@media (max-width: 640px) {
  .NossasServicos {
    padding: 56px 20px 64px;

  }
 h2.section-title {
    font-size: 40px;
    margin-bottom: 8px;
  }

  .section-subtitle {
    margin-bottom: 36px;
  }

  /* Container vira uma coluna de cards */
  .orbit-container {
    width: 100%;
    height: auto;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* SVG e pulse-dot somem no mobile */
  .orbit-svg,
  .pulse-dot,
  .center-image {
    display: none;
  }

  /* Nós ficam estáticos, sem position:absolute */
  .service-node {
    position: static;
    transform: none;
    width: 100%;
  }

  /* Pill vira card horizontal full-width */
  .pill {
    width: 100%;
    border-radius: 14px;
    padding: 14px 16px;
    white-space: normal;
    font-size: 14px;
  }

  /* Card body sempre visível no mobile */
  .card-body {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    max-width: 100%;
  }

  /* Hover expand não faz sentido no mobile, desativa */
  .service-node:hover .pill {
    flex-direction: row;
    align-items: center;
    padding: 14px 16px;
    min-width: unset;
    border-radius: 14px;
  }

  .service-node:hover .pill i {
    font-size: 15px;
    transform: none;
  }
}

/* ── tablet estreito (641–900px): órbita menor ────────────── */
@media (min-width: 641px) and (max-width: 900px) {
  .NossasServicos { padding: 60px 24px; }

  /* Pills menores para não se sobreporem */
  .pill {
    font-size: 11px;
    padding: 7px 12px;
    gap: 5px;
  }

  .pill i { font-size: 13px; }

  .service-node:hover .pill {
    min-width: 160px;
    font-size: 12px;
  }

  .card-body { font-size: 11px; max-width: 150px; }
}

/* ── prefers-reduced-motion ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .center-image { animation: none; }
  .orbit-line   { animation: none; }
  .pulse-dot,
  .pulse-dot::after { animation: none; }
}