/* ============================= */
/*   PÁGINA DE SERVIÇOS - LIMPO  */
/*   Apenas estilos necessários  */
/* ============================= */

/* Variáveis CSS */
:root {
  --bg-dark: #1a1f2e;
  --text-primary: #ffffff;
  --text-secondary: #b3b8c8;
  --accent-primary: #00aeef;
  --accent-secondary: #0084cc;
  --neutral-gray-800: #2a2f3e;
  --neutral-gray-700: #3a3f4e;
}

/* Container base */
.services-page {
  background: var(--bg-dark);
  min-height: auto; /* Removendo min-height de 100vh */
  color: var(--text-primary);
  overflow-x: hidden;
}

/* Reset do padding do main para a página de serviços */
.services-page main {
  padding: 0 !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================= */
/*         HERO SECTION          */
/* ============================= */

.services-hero {
  position: relative;
  min-height: auto; /* Altura automática para se ajustar ao conteúdo */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1f2e 0%, #2a3441 50%, #1e2633 100%);
  padding: 6rem 0 3rem 0; /* Reduzindo ainda mais o padding */
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 31, 46, 0.95) 0%, rgba(42, 47, 62, 0.9) 100%);
  background-image: radial-gradient(circle at 50% 50%, rgba(0, 174, 239, 0.1) 0%, transparent 70%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Força o layout flexbox para o título - regra mais específica e prioritária */
.services-hero .hero-content .hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem) !important;
  font-weight: 700 !important;
  margin-bottom: 1rem !important; /* Reduzindo de 1.5rem para 1rem */
  line-height: 1.2 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: baseline !important;
  gap: 0.8rem !important;
  /* Previne mudanças durante animações */
  animation-fill-mode: both !important;
}

.services-hero .hero-content .hero-title .title-highlight,
.services-hero .hero-content .hero-title .title-main {
  display: inline-block !important;
  margin: 0 !important;
  /* Mantém o layout durante animações */
  transform-origin: center !important;
}

/* Responsivo para telas menores */
@media (max-width: 768px) {
  .services-hero .hero-content .hero-title {
    flex-direction: column !important;
    gap: 0.2rem !important;
    text-align: center !important;
  }
  
  .services-hero .hero-content .hero-title .title-highlight,
  .services-hero .hero-content .hero-title .title-main {
    text-align: center !important;
  }
}

/* CSS original mantido como fallback - com prioridade menor */
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: baseline !important;
  gap: 0.8rem !important;
}

.title-highlight,
.title-main {
  display: inline-block !important;
}

/* Responsivo para telas menores */
@media (max-width: 768px) {
  .hero-title {
    flex-direction: column !important;
    gap: 0.2rem !important;
    text-align: center !important;
  }
  
  .title-highlight,
  .title-main {
    text-align: center !important;
  }
}

.title-highlight {
  color: var(--accent-primary);
  display: inline-block !important; /* Força inline-block em vez de block */
  text-shadow: 0 0 20px rgba(0, 174, 239, 0.4);
}

.title-main {
  /* reforço de contraste para evitar aparência "apagada" */
  color: #f5f9ff;
  display: inline-block !important; /* Força inline-block em vez de block */
  margin-top: 0 !important; /* Remove margin-top que quebrava o layout */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 0 16px rgba(0, 174, 239, 0.25);
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 1rem; /* Reduzindo de 2rem para 1rem */
  color: var(--text-secondary);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Inline fix migrated from servicos.html to avoid FOUC/text leak ===== */
/* Immediate layout to prevent FOUC */
.hero-title {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: baseline !important;
  gap: 0.8rem !important;
}

.title-highlight,
.title-main {
  display: inline-block !important;
  margin: 0 !important;
}

/* Keyframes and animations previously inline */
@keyframes heroEntrance {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes colorShift {
  0% { color: #00aeef; }
  25% { color: #00ffaf; }
  50% { color: #ff6b6b; }
  75% { color: #4ecdc4; }
  100% { color: #00aeef; }
}

@keyframes glowPulse {
  0%, 100% {
    text-shadow: 0 0 20px rgba(0, 174, 239, 0.5);
    transform: scale(1);
  }
  50% {
    text-shadow: 0 0 40px rgba(0, 255, 175, 0.8);
    transform: scale(1.02);
  }
}

@keyframes slideInBounce {
  0% {
    opacity: 0;
    transform: translateX(-100px) rotate(-5deg);
  }
  60% {
    opacity: 1;
    transform: translateX(10px) rotate(1deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }
}

@keyframes numberCounter {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.hero-content { animation: heroEntrance 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) both !important; }

.title-highlight {
  animation: glowPulse 3s ease-in-out infinite !important;
  color: #00aeef !important;
}

.title-main {
  color: #ff6b6b !important;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInBounce 1s ease-out 0.3s both, colorShift 2s ease-in-out infinite 1.5s !important;
}

.hero-description { animation: heroEntrance 1s ease-out 0.2s both !important; }
.hero-stats { animation: heroEntrance 1s ease-out 0.5s both !important; }
.stat-number { animation: numberCounter 0.1s ease-out both !important; }

/* ============================= */
/*      SERVICES SECTION         */
/* ============================= */

/* Removendo hero-stats para eliminar espaços desnecessários */
.hero-stats {
  display: none !important; /* Escondendo completamente para evitar espaços */
}

/* Garante que nenhum card ocupe a linha inteira (sobreposição do services.css) */
.hero-stats .stat-item:nth-child(3) {
  grid-column: auto;
  justify-self: stretch;
}

.stat-item {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 174, 239, 0.3);
  border-radius: 20px;
  padding: 2rem 1.5rem; /* Reduzindo padding para tornar mais compacto */
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  min-height: 160px; /* Reduzindo altura mínima */
  position: relative;
  overflow: hidden;
}

.stat-item:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(0, 174, 239, 0.6);
  box-shadow: 0 20px 40px rgba(0, 174, 239, 0.3);
  background: rgba(0, 174, 239, 0.1);
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00aeef, #00ffaf, #ff6b6b);
  background-size: 200% 100%;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.stat-number {
  display: block;
  font-size: 3rem; /* Reduzindo de 3.5rem para 3rem */
  font-weight: 700;
  color: #00aeef;
  margin-bottom: 0.6rem; /* Reduzindo margem */
  text-shadow: 0 0 30px rgba(0, 174, 239, 0.5);
  background: linear-gradient(45deg, #00aeef, #00ffaf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 1rem;
  color: #e0e0e0;
  line-height: 1.4;
}

/* ============================= */
/*      SERVICES SECTION         */
/* ============================= */

.services-section {
  padding: 2rem 0; /* Reduzindo de 3rem para 2rem */
  background: var(--bg-dark);
}

.section-header {
  text-align: center;
  margin-bottom: 1.5rem; /* Reduzindo de 2.5rem para 1.5rem */
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}


.services-showcase {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 174, 239, 0.2);
  border-radius: 24px;
  padding: 3rem;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-card:hover {
  transform: translateY(-12px);
  border-color: rgba(0, 174, 239, 0.45);
  box-shadow: 0 24px 40px rgba(0, 174, 239, 0.2);
}

.service-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem;
}

.service-card__meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 220px;
}

.service-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 174, 239, 0.2);
  border: 1px solid rgba(0, 174, 239, 0.35);
  color: #00aeef;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-icon {
  width: 86px;
  height: 86px;
  background: linear-gradient(135deg, #00aeef, #0088cc);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 174, 239, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-icon i {
  font-size: 2.4rem;
  color: #ffffff;
}

.service-card:hover .service-icon {
  transform: scale(1.08) rotate(4deg);
  box-shadow: 0 10px 28px rgba(0, 174, 239, 0.35);
}

.service-card__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin: 0;
}

.service-description {
  color: #b0b8c8;
  line-height: 1.7;
  margin: 0;
  max-width: 720px;
}

.service-card__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-feature {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 174, 239, 0.18);
  border-radius: 18px;
  padding: 1.15rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 174, 239, 0.4);
}

.service-feature .check-icon {
  margin-top: 0.2rem;
  background: rgba(0, 174, 239, 0.18) !important;
  border-color: rgba(0, 174, 239, 0.45) !important;
  color: #00aeef !important;
  font-size: 0.75rem !important;
  width: 28px !important;
  height: 28px !important;
}

.service-feature__title {
  font-weight: 600;
  color: #ffffff;
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}

.service-feature p {
  color: #b0b8c8;
  margin: 0;
  line-height: 1.5;
  font-size: 0.95rem;
}

.service-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.service-card__assurance {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #d1d6e6;
  font-size: 0.95rem;
}

.service-card__assurance .check-icon {
  margin: 0;
  background: rgba(0, 174, 239, 0.18) !important;
  border-color: rgba(0, 174, 239, 0.45) !important;
  color: #00aeef !important;
  width: 28px !important;
  height: 28px !important;
  font-size: 0.75rem !important;
}

.service-card__cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.service-card__cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.service-card__cta p {
  color: #8f95a9;
  font-size: 0.9rem;
  margin: 0;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-tags .tag {
  background: rgba(0, 174, 239, 0.16);
  color: #00aeef;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  border: 1px solid rgba(0, 174, 239, 0.35);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 174, 239, 0.85);
  margin-bottom: 0.75rem;
}

.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.service-card--automation {
  border-color: rgba(123, 97, 255, 0.2);
}

.service-card--automation:hover {
  border-color: rgba(123, 97, 255, 0.45);
  box-shadow: 0 24px 40px rgba(123, 97, 255, 0.2);
}

.service-card--automation .service-icon {
  background: linear-gradient(135deg, #7b61ff, #4f2ee8);
  box-shadow: 0 4px 16px rgba(123, 97, 255, 0.35);
}

.service-card--automation .service-card__badge {
  background: rgba(123, 97, 255, 0.18);
  border-color: rgba(123, 97, 255, 0.35);
  color: #b8a6ff;
}

.service-card--automation .service-feature {
  border-color: rgba(123, 97, 255, 0.24);
}

.service-card--automation .service-feature:hover {
  border-color: rgba(123, 97, 255, 0.45);
}

.service-card--automation .service-feature .check-icon,
.service-card--automation .service-card__assurance .check-icon {
  background: rgba(123, 97, 255, 0.2) !important;
  border-color: rgba(123, 97, 255, 0.45) !important;
  color: #b8a6ff !important;
}

.service-card--automation .service-tags .tag {
  background: rgba(123, 97, 255, 0.18);
  border-color: rgba(123, 97, 255, 0.35);
  color: #b8a6ff;
}

@media (max-width: 1024px) {
  .service-card {
    padding: 2.5rem;
  }

  .service-card__features {
    grid-template-columns: 1fr;
  }
}

/* ============================= */
/*      PROCESS SECTION          */
/* ============================= */

.process-section {
  padding: 3rem 0; /* Reduzindo de 5rem para 3rem */
  background: rgba(26, 31, 46, 0.5);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem; /* Reduzindo de 3rem para 2rem */
}

.process-step {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 174, 239, 0.2);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.process-step:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 174, 239, 0.4);
  box-shadow: 0 10px 30px rgba(0, 174, 239, 0.2);
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #00aeef, #0088cc);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin: 0 auto 1.5rem auto;
  transition: all 0.3s ease;
}

.step-content h3 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.step-content p {
  color: #b0b0b0;
  line-height: 1.6;
}

/* ============================= */
/*        CTA SECTION            */
/* ============================= */

.services-cta {
  padding: 3rem 0; /* Reduzindo de 5rem para 3rem */
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.cta-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem; /* Reduzindo de 3rem para 2rem */
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem; /* Reduzindo de 3rem para 2rem */
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  padding: 1rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #00aeef, #0088cc);
  color: white;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 174, 239, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #00aeef;
  border: 2px solid #00aeef;
}

.btn-secondary:hover {
  background: #00aeef;
  color: white;
  transform: translateY(-2px);
}

.cta-extra {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.guarantee {
  color: var(--text-secondary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.check-icon {
  color: #00aeef !important;
  font-size: 1.4rem !important;
  font-weight: bold !important;
  background: rgba(0, 174, 239, 0.15);
  border: 2px solid #00aeef;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-align: center;
  line-height: 1;
}

/* ============================= */
/*        RESPONSIVIDADE         */
/* ============================= */

@media (max-width: 768px) {
  .services-hero {
    min-height: auto; /* Removendo altura mínima no mobile */
    padding: 1rem 0; /* Reduzindo ainda mais o padding */
  }
  
  .hero-stats {
    display: none !important; /* Garantindo que não apareça no mobile */
  }
  
  .stat-item {
    padding: 1.8rem 1.5rem;
    min-height: 140px;
  }
  
  .stat-number {
    font-size: 2.8rem;
  }
  
  .services-showcase {
    gap: 2rem;
  }

  .service-card {
    padding: 2rem;
  }

  .service-card__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .service-card__features {
    grid-template-columns: 1fr;
  }

  .service-card__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .service-card__cta {
    width: 100%;
  }

  .service-card__cta .btn {
    width: 100%;
    justify-content: center;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-extra {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Reduzir animações para usuários que preferem menos movimento */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Garantir que não há elementos extras no final da página */
.services-page::after,
.services-cta::after {
  display: none !important;
}

/* Remover qualquer borda ou linha extra no final */
.services-page > *:last-child {
  border-bottom: none !important;
  margin-bottom: 0 !important;
}

/* Forçar espaçamento compacto entre seções */
.services-page section + section {
  margin-top: 0 !important;
  padding-top: 1rem !important;
}

/* Remover espaços extras de todas as seções */
.services-page section {
  margin: 0 !important;
}
