/* ==========================================================================
   NILSERVICE - INSTALAÇÃO E MANUTENÇÃO
   Estilos Profissionais, Responsivos e Autossuficientes (Zero Dependência Externa)
   ========================================================================== */

:root {
  /* Cores Principais - NilService Identidade */
  --color-primary: #FFB800;
  --color-primary-hover: #E5A500;
  --color-primary-glow: rgba(255, 184, 0, 0.35);
  --color-accent-blue: #0070F3;
  --color-accent-blue-glow: rgba(0, 112, 243, 0.4);
  
  /* Fundos Dark & High Contrast */
  --bg-dark: #07090E;
  --bg-card: rgba(15, 20, 31, 0.9);
  --bg-card-hover: rgba(22, 30, 48, 0.98);
  --bg-glass: rgba(13, 17, 28, 0.85);
  --bg-glass-border: rgba(255, 184, 0, 0.22);
  --bg-glass-border-hover: rgba(255, 184, 0, 0.55);
  
  /* Textos */
  --text-white: #FFFFFF;
  --text-muted: #94A3B8;
  --text-dimmed: #64748B;
  --text-dark: #0F172A;

  /* Sucess / WhatsApp */
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #1EBE5D;
  --color-whatsapp-glow: rgba(37, 211, 102, 0.45);

  /* Sombras & Efeitos */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 30px var(--color-primary-glow);
  --shadow-blue-glow: 0 0 30px var(--color-accent-blue-glow);

  /* Transições & Raios */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
}

/* Reset Global & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Barra de rolagem personalizada */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #090C13;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #FFB800, #E5A500);
  border-radius: 5px;
  border: 2px solid #090C13;
}

::-webkit-scrollbar-thumb:hover {
  background: #FFD566;
}

/* Barra de progresso de scroll no topo */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, #FFB800, #0070F3, #FFB800);
  z-index: 9999;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(255, 184, 0, 0.8);
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Montserrat', Roboto, sans-serif;
  color: var(--text-white);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img, video {
  max-width: 100%;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  border: none;
  outline: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Utilitários Visuais */
.text-gradient {
  background: linear-gradient(135deg, #FFF 20%, #FFB800 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gold {
  color: var(--color-primary);
}

.text-blue {
  color: var(--color-accent-blue);
}

/* Ícones SVG Auxiliares */
.svg-icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.2em;
  fill: currentColor;
}

.svg-icon-lg {
  width: 1.6em;
  height: 1.6em;
}

.svg-icon-xl {
  width: 2em;
  height: 2em;
}

/* ==========================================================================
   TOP BAR DE AVISO / URGÊNCIA
   ========================================================================== */
.top-bar {
  background: linear-gradient(90deg, #0d121c, #161e30, #0d121c);
  border-bottom: 1px solid rgba(255, 184, 0, 0.2);
  padding: 0.5rem 0;
  font-size: 0.85rem;
  font-weight: 500;
  position: relative;
  z-index: 1000;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #E2E8F0;
}

.top-bar-tag .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 1.5s infinite;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-primary);
  font-weight: 600;
  transition: opacity var(--transition-fast);
}

.top-bar-link:hover {
  opacity: 0.85;
}

/* ==========================================================================
   HEADER & NAVBAR NAVEGAÇÃO
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(7, 9, 14, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 999;
  transition: all var(--transition-normal);
}

.main-header.scrolled {
  background: rgba(5, 7, 11, 0.98);
  border-bottom-color: rgba(255, 184, 0, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 10px rgba(255, 184, 0, 0.4);
  transition: transform var(--transition-bounce), box-shadow var(--transition-fast);
}

.brand-logo-wrap:hover .brand-logo-img {
  transform: scale(1.05) rotate(3deg);
  box-shadow: 0 0 16px rgba(255, 184, 0, 0.6);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--text-white);
  line-height: 1.1;
  white-space: nowrap;
}

.brand-name span {
  color: var(--color-primary);
}

.brand-subtitle {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  font-weight: 600;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.15rem;
  margin: 0 1rem;
}

.nav-link {
  font-size: 0.84rem;
  font-weight: 600;
  color: #CBD5E1;
  position: relative;
  padding: 0.3rem 0;
  white-space: nowrap;
  line-height: 1;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary);
  transition: width var(--transition-fast);
}

.nav-link:hover {
  color: #FFFFFF;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Botão CTA Compacto e Perfeito do Header */
.btn-nav {
  height: 38px;
  padding: 0 1.15rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 3px 12px rgba(255, 184, 0, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  line-height: 1;
}

.btn-nav span {
  white-space: nowrap;
}

.btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(255, 184, 0, 0.5);
}

/* Botão Mobile Hamburger */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  cursor: pointer;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: #FFF;
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
  background: var(--color-primary);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
  background: var(--color-primary);
}

/* ==========================================================================
   BOTÕES (CTA) & MICROINTERAÇÕES - PROPORÇÕES POLIDAS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.65rem 1.45rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-bounce);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #FFB800 0%, #FF9000 100%);
  color: #07090E;
  box-shadow: 0 4px 16px rgba(255, 184, 0, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 22px rgba(255, 184, 0, 0.55);
  background: linear-gradient(135deg, #FFC42B 0%, #FFA21A 100%);
  color: #000;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 16px var(--color-whatsapp-glow);
}

.btn-whatsapp:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.55);
  color: #FFFFFF;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  background: rgba(255, 184, 0, 0.12);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 184, 0, 0.25);
}

.btn-lg {
  padding: 0.82rem 1.85rem;
  font-size: 0.95rem;
}

/* ==========================================================================
   HERO SECTION COM VÍDEO BACKGROUND EM LOOP
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6rem 0 5rem;
}

/* O Vídeo de Background */
.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(0.55) contrast(1.1);
  will-change: transform;
}

/* Camada de Overlay Gradiente Escuro por cima do vídeo */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(7, 9, 14, 0.8) 0%,
    rgba(7, 9, 14, 0.65) 40%,
    rgba(7, 9, 14, 0.9) 85%,
    var(--bg-dark) 100%
  );
  pointer-events: none;
}

.hero-overlay-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: radial-gradient(rgba(255, 184, 0, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
  pointer-events: none;
}

/* Conteúdo que fica por cima do vídeo */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 184, 0, 0.12);
  border: 1px solid rgba(255, 184, 0, 0.4);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.2);
}

.hero-title {
  font-size: clamp(2.3rem, 5.2vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.hero-title span.highlight {
  color: var(--color-primary);
  text-shadow: 0 0 35px rgba(255, 184, 0, 0.5);
  display: inline-block;
}

.hero-description {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: #E2E8F0;
  max-width: 780px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
  line-height: 1.6;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* Selos de Confiança na Hero */
.hero-trust-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(15, 20, 31, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
}

.trust-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 184, 0, 0.15);
  border: 1px solid rgba(255, 184, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.trust-badge-item h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.trust-badge-item p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Indicador de Scroll */
.scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.scroll-indicator-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-indicator-wheel {
  width: 4px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 2px;
  animation: mouseWheel 1.6s infinite;
}

/* ==========================================================================
   SEÇÕES GERAIS - TÍTULOS E ESTRUTURA
   ========================================================================== */
section {
  padding: 6rem 0;
  position: relative;
  z-index: 5;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(255, 184, 0, 0.1);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 184, 0, 0.25);
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   BANNER DESTAQUE: MOTOR DE PORTÃO INSTALADO
   (Informações retiradas da imagem 1fe30876...)
   ========================================================================== */
.featured-banner-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0d121c 100%);
  position: relative;
}

.gate-card-wrapper {
  background: radial-gradient(circle at top right, rgba(255, 184, 0, 0.15), transparent 60%),
              linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(9, 12, 19, 0.98));
  border: 1.5px solid rgba(255, 184, 0, 0.35);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 184, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.gate-card-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.gate-badge-urgency {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #DC2626;
  color: #FFF;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.4);
}

.gate-title {
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.gate-subtitle-alert {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gate-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.gate-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.gate-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 184, 0, 0.2);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.gate-feature-text h5 {
  font-size: 1rem;
  font-weight: 700;
  color: #FFF;
}

.gate-feature-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.gate-media-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gate-img-card {
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid rgba(255, 184, 0, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
  position: relative;
  transform: perspective(1000px) rotateY(-4deg);
  transition: transform var(--transition-bounce), box-shadow var(--transition-fast);
}

.gate-img-card:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.02);
  box-shadow: 0 20px 50px rgba(255, 184, 0, 0.3);
}

.gate-img-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.gate-floating-pill {
  position: absolute;
  bottom: -15px;
  left: 20px;
  background: #0B0F17;
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-full);
  padding: 0.6rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--color-primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  animation: floatUpDown 3s ease-in-out infinite;
}

/* ==========================================================================
   CARDS DE SERVIÇOS COM ANIMAÇÃO DE SCROLL E MOUSE HOVER 3D
   ========================================================================== */
.services-section {
  background-color: var(--bg-dark);
  position: relative;
}

/* Filtro de Serviços */
.services-filter-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background: rgba(255, 184, 0, 0.1);
  color: #FFF;
  border-color: rgba(255, 184, 0, 0.3);
}

.filter-btn.active {
  background: var(--color-primary);
  color: #000;
  font-weight: 700;
  border-color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(255, 184, 0, 0.4);
}

/* Grid de Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

/* Card Individual de Serviço com Efeito Tilt & Glow */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-bounce), 
              border-color var(--transition-normal), 
              box-shadow var(--transition-normal),
              background var(--transition-normal);
  backdrop-filter: blur(10px);
  will-change: transform;
}

/* Efeito de Borda Neon Superior */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

/* Hover no card */
.service-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: var(--bg-glass-border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 184, 0, 0.2);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(255, 184, 0, 0.1);
  border: 1.5px solid rgba(255, 184, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.6rem;
  transition: all var(--transition-bounce);
}

.service-card:hover .service-icon-box {
  background: var(--color-primary);
  color: #07090E;
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.5);
}

.service-number {
  font-size: 1.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.12);
  line-height: 1;
}

.service-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  color: #FFF;
}

.service-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
}

.service-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.service-checklist li {
  font-size: 0.85rem;
  color: #CBD5E1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: #FFF;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.service-action-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #07090E;
}

/* ==========================================================================
   SEÇÃO O PROFISSIONAL: NILDO (CONFIANÇA & HUMANIZAÇÃO)
   (Fotos cce1be5b... e 9fa85130...)
   ========================================================================== */
.about-nildo-section {
  background: linear-gradient(180deg, #07090E 0%, #0d121c 50%, #07090E 100%);
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  align-items: center;
}

.about-images-composition {
  position: relative;
}

.about-main-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(255, 184, 0, 0.3);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
  max-width: 460px;
  margin: 0 auto;
}

.about-main-img-wrap img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform var(--transition-normal);
}

.about-main-img-wrap:hover img {
  transform: scale(1.02);
}

.about-badge-exp {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(11, 15, 23, 0.92);
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 0.7rem 1.1rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.exp-number {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
}

.exp-text {
  font-size: 0.72rem;
  color: #CBD5E1;
  text-transform: uppercase;
  font-weight: 600;
}

.about-content-text h3 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.about-lead-para {
  font-size: 1.05rem;
  color: #E2E8F0;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.about-secondary-para {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.about-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.pillar-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.pillar-box span {
  font-size: 0.9rem;
  font-weight: 600;
  color: #FFF;
}

/* ==========================================================================
   ESTATÍSTICAS & NÚMEROS DE IMPACTO
   ========================================================================== */
.stats-section {
  background: linear-gradient(135deg, #101624, #0A0E17);
  border-top: 1px solid rgba(255, 184, 0, 0.15);
  border-bottom: 1px solid rgba(255, 184, 0, 0.15);
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  text-align: center;
}

.stat-item {
  position: relative;
}

.stat-number {
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 25px rgba(255, 184, 0, 0.35);
}

.stat-label {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   SIMULADOR INTERATIVO DE ORÇAMENTO RÁPIDO PARA WHATSAPP
   ========================================================================== */
.quote-calc-section {
  background-color: var(--bg-dark);
  position: relative;
}

.quote-calculator-box {
  background: linear-gradient(135deg, rgba(20, 27, 43, 0.9), rgba(11, 15, 25, 0.95));
  border: 1.5px solid rgba(255, 184, 0, 0.3);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(15px);
}

.calc-title {
  text-align: center;
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.calc-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.calc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.calc-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calc-form-group.full-width {
  grid-column: span 2;
}

.calc-form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #CBD5E1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.calc-input, .calc-select, .calc-textarea {
  width: 100%;
  background: rgba(8, 11, 18, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  color: #FFF;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.calc-input:focus, .calc-select:focus, .calc-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(255, 184, 0, 0.3);
  background: rgba(12, 17, 28, 0.95);
}

.calc-select option {
  background: #0d121c;
  color: #FFF;
}

.calc-submit-btn {
  width: 100%;
  padding: 1.15rem;
  font-size: 1.05rem;
}

/* ==========================================================================
   DEPOIMENTOS DE CLIENTES
   ========================================================================== */
.testimonials-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0d121c 100%);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-bounce), border-color var(--transition-fast);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 184, 0, 0.3);
}

.stars-rating {
  color: #FFB800;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: #CBD5E1;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.testimonial-client {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.client-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #000;
  font-size: 1.1rem;
}

.client-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFF;
}

.client-city {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PERGUNTAS FREQUENTES (FAQ)
   ========================================================================== */
.faq-section {
  background-color: var(--bg-dark);
}

.faq-accordion-wrap {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: rgba(255, 184, 0, 0.4);
}

.faq-question-btn {
  width: 100%;
  padding: 1.25rem 1.75rem;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFF;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition-fast);
}

.faq-item.active .faq-question-btn {
  color: var(--color-primary);
}

.faq-icon-arrow {
  font-size: 0.9rem;
  transition: transform var(--transition-normal);
  color: var(--color-primary);
}

.faq-item.active .faq-icon-arrow {
  transform: rotate(180deg);
}

.faq-answer-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.3s ease;
  padding: 0 1.75rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer-content {
  padding-bottom: 1.25rem;
}

/* ==========================================================================
   RODAPÉ COMPLETO & FORMAS DE PAGAMENTO
   ========================================================================== */
.main-footer {
  background: #05070A;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5rem 0 2rem;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: #FFF;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--color-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 6px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Bandeiras de Pagamento */
.payment-flags-list {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.payment-flag-pill {
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  color: #CBD5E1;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-dimmed);
}

/* ==========================================================================
   BOTÃO FLUTUANTE DO WHATSAPP COM EFEITO RIPPLE E PULSO
   ========================================================================== */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 62px;
  height: 62px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
  z-index: 9990;
  transition: all var(--transition-bounce);
  text-decoration: none;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.1) rotate(6deg);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.75);
  color: #FFF;
}

.whatsapp-ripple {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: rippleAnimation 2s infinite;
  pointer-events: none;
}

.whatsapp-tooltip {
  position: absolute;
  right: 75px;
  background: #0B0F17;
  border: 1px solid rgba(255, 184, 0, 0.3);
  color: #FFF;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.floating-whatsapp-btn:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   ANIMAÇÕES DE SCROLL REVEAL & KEYFRAMES
   Garantia: Visíveis por padrão e animados suavemente quando js-ready
   ========================================================================== */
.reveal-on-scroll {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Quando JS ativa animação de entrada */
body.js-animate .reveal-on-scroll:not(.is-visible) {
  opacity: 0;
  transform: translateY(28px);
}

body.js-animate .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

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

@keyframes floatUpDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes rippleAnimation {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ==========================================================================
   RESPONSIVIDADE (MOBILE-FIRST ADAPTATIONS)
   ========================================================================== */
@media (max-width: 1280px) and (min-width: 1025px) {
  .nav-menu {
    gap: 0.85rem;
  }
  .nav-link {
    font-size: 0.80rem;
  }
  .btn-nav {
    padding: 0 0.9rem;
    font-size: 0.78rem;
    height: 34px;
  }
}

@media (max-width: 1024px) {
  .nav-container {
    height: 64px;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background: rgba(7, 9, 14, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2.5rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    overflow-y: auto;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.15rem;
  }

  .nav-actions .btn-nav {
    display: none;
  }

  .gate-card-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .top-bar-content {
    justify-content: center;
    text-align: center;
  }

  .top-bar-actions {
    display: none;
  }

  .hero-section {
    padding: 3.5rem 0 2.5rem;
    min-height: auto;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .hero-trust-badges {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .gate-card-wrapper {
    padding: 2rem 1.25rem;
  }

  .gate-floating-pill {
    position: static;
    margin-top: 1.25rem;
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .calc-form-grid {
    grid-template-columns: 1fr;
  }

  .calc-form-group.full-width {
    grid-column: span 1;
  }

  .quote-calculator-box {
    padding: 2rem 1.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-pillars-grid {
    grid-template-columns: 1fr;
  }

  .floating-whatsapp-btn {
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-tooltip {
    display: none;
  }
}
