/* ===== VARIÁVEIS ===== */
:root {
  --blue:        #1E90FF;
  --blue-dark:   #0072ff;
  --blue-mid:    #0EA5E9;
  --blue-glow:   rgba(30, 144, 255, 0.35);
  --green:       #25D366;
  --text-muted:  #94a3b8;
  --glass:       rgba(255, 255, 255, 0.05);
  --glass-hover: rgba(30, 144, 255, 0.08);
  --glass-border:rgba(255, 255, 255, 0.1);
  --radius:      22px;
  --radius-sm:   14px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Roboto', sans-serif;
  background: #040a18;
  color: #fff;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== FUNDO ANIMADO GLOBAL ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, #1a3363 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(0,72,255,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 60%, rgba(30,144,255,0.07) 0%, transparent 55%),
    #040a18;
  z-index: -1;
  pointer-events: none;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 70px 20px 60px;
  text-align: center;
  overflow: hidden;
}

/* blobs animados no hero */
.hero-blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.12;
  animation: blob-float 10s ease-in-out infinite;
}
.blob-1 { width: 380px; height: 380px; background: #1E90FF; top: -120px; left: -60px; animation-delay: 0s; }
.blob-2 { width: 300px; height: 300px; background: #0072ff; top: -60px; right: -40px; animation-delay: 3s; }
.blob-3 { width: 260px; height: 260px; background: #1E90FF; bottom: -80px; left: 35%; animation-delay: 6s; }

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(18px, -18px) scale(1.06); }
  66%       { transform: translate(-12px, 22px) scale(0.94); }
}

.hero-content { position: relative; z-index: 1; }

.hero-logo {
  width: 170px;
  margin-bottom: 18px;
  filter: drop-shadow(0 4px 24px rgba(30, 144, 255, 0.35));
  animation: float 5s ease-in-out infinite;
}

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

.badge-24h {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  padding: 5px 18px;
  border-radius: 100px;
  margin-bottom: 16px;
  box-shadow: 0 2px 16px var(--blue-glow);
}

.badge-dot {
  width: 7px; height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(36px, 7vw, 60px);
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.08;
  margin-bottom: 12px;
}

h1 span {
  background: linear-gradient(135deg, #63B8FF, var(--blue), #0072ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 12px rgba(30, 144, 255, 0.4));
}

.hero-sub {
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 36px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BOTÕES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #1ab854);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}
.btn-whatsapp:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.btn-call {
  background: var(--glass);
  color: #fff;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}
.btn-call:hover {
  background: rgba(30, 144, 255, 0.14);
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px var(--blue-glow);
}

.btn-lg { padding: 16px 38px; font-size: 17px; }

/* ===== TRUST BAR ===== */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 0 auto 68px;
  padding: 0 20px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 28px 18px 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.trust-item::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  border-radius: 100px;
  opacity: 0.7;
}

.trust-item:hover {
  border-color: rgba(30,144,255,0.35);
  box-shadow: 0 8px 28px var(--blue-glow);
  transform: translateY(-4px);
  background: var(--glass-hover);
}

.trust-icon {
  width: 52px; height: 52px;
  background: linear-gradient(145deg, rgba(30,144,255,0.2), rgba(0,114,255,0.08));
  border-radius: 16px;
  border: 1px solid rgba(30,144,255,0.22);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.trust-item:hover .trust-icon {
  box-shadow: 0 4px 16px var(--blue-glow);
  border-color: rgba(30,144,255,0.5);
}

.trust-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg, #63B8FF, var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -0.5px;
}

.trust-text strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.3;
  margin-bottom: 4px;
}

.trust-text span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== SECTION GENERICS ===== */
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.section-label {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 36px;
}

/* ===== SERVIÇOS ===== */
.services-section {
  padding: 0 20px 72px;
  max-width: 1100px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 18px;
}

.service-card {
  position: relative;
  background: var(--glass);
  border-radius: var(--radius);
  padding: 34px 18px 26px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-border);
  overflow: hidden;
}

/* borda gradiente no topo */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* brilho de fundo no hover */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(30,144,255,0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-7px) scale(1.02);
  border-color: rgba(30, 144, 255, 0.45);
  box-shadow: 0 16px 36px rgba(30, 144, 255, 0.25);
  background: var(--glass-hover);
  outline: none;
}

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

.service-icon {
  width: 68px; height: 68px;
  background: linear-gradient(145deg, rgba(30,144,255,0.2), rgba(0,114,255,0.08));
  border-radius: 20px;
  border: 1px solid rgba(30, 144, 255, 0.22);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  color: #63B8FF;
}

.service-card:hover .service-icon {
  background: linear-gradient(145deg, rgba(30,144,255,0.32), rgba(0,114,255,0.18));
  border-color: rgba(30, 144, 255, 0.55);
  box-shadow: 0 4px 20px var(--blue-glow);
  transform: scale(1.08);
}

.service-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #dde6f0;
  letter-spacing: 0.4px;
  line-height: 1.35;
}

.service-hint {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.service-card:hover .service-hint {
  opacity: 1;
  transform: translateY(0);
}

/* ===== COMO FUNCIONA ===== */
.how-section {
  padding: 0 20px 72px;
  max-width: 860px;
  margin: 0 auto;
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 180px;
  max-width: 240px;
  text-align: center;
  padding: 30px 18px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.step:hover {
  border-color: rgba(30,144,255,0.35);
  box-shadow: 0 8px 26px var(--blue-glow);
  transform: translateY(-4px);
}

.step-num {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 16px;
  box-shadow: 0 4px 14px var(--blue-glow);
}

.step h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.step p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.step-arrow {
  font-size: 24px;
  color: rgba(30,144,255,0.5);
  flex-shrink: 0;
  display: flex; align-items: center;
}

/* ===== EMERGÊNCIA ===== */
.emergency-section {
  padding: 0 20px 72px;
  max-width: 800px;
  margin: 0 auto;
}

.emergency-inner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg,
    rgba(30,144,255,0.12) 0%,
    rgba(0,72,255,0.06) 60%,
    rgba(30,144,255,0.04) 100%);
  border: 1px solid rgba(30, 144, 255, 0.3);
  border-radius: var(--radius);
  padding: 44px 34px;
  text-align: center;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 44px rgba(30, 144, 255, 0.16);
}

.emergency-inner::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(30,144,255,0.15), transparent 70%);
  pointer-events: none;
}

.emergency-inner::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(0,114,255,0.1), transparent 70%);
  pointer-events: none;
}

.emergency-icon {
  width: 64px; height: 64px;
  background: rgba(30, 144, 255, 0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  border: 1px solid rgba(30, 144, 255, 0.3);
  position: relative; z-index: 1;
  animation: ring-pulse 2.5s ease-in-out infinite;
}

@keyframes ring-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(30,144,255,0.3); }
  50%       { box-shadow: 0 0 0 14px rgba(30,144,255,0); }
}

.emergency-inner h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(17px, 3.5vw, 24px);
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 14px;
  position: relative; z-index: 1;
  text-shadow: 0 2px 10px rgba(30,144,255,0.3);
}

.emergency-inner p {
  color: #b0c4d8;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 26px;
  position: relative; z-index: 1;
}

.emergency-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  padding: 14px 36px;
  border-radius: 100px;
  box-shadow: 0 6px 22px var(--blue-glow);
  transition: all 0.25s ease;
  position: relative; z-index: 1;
}

.emergency-phone:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 32px var(--blue-glow);
}

/* ===== CTA FINAL ===== */
.cta-section {
  padding: 0 20px 72px;
  text-align: center;
}

.cta-inner {
  max-width: 620px;
  margin: 0 auto;
  background: linear-gradient(135deg,
    rgba(37,211,102,0.1) 0%,
    rgba(26,184,84,0.04) 100%);
  border: 1px solid rgba(37,211,102,0.25);
  border-radius: var(--radius);
  padding: 44px 28px;
  backdrop-filter: blur(10px);
}

.cta-inner h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 700;
  margin-bottom: 10px;
}

.cta-inner p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 26px;
}

/* ===== CONTATO / SOCIAL ===== */
.contact-section {
  text-align: center;
  padding: 0 20px 64px;
}

.contact-section h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.social-links a {
  width: 52px; height: 52px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.social-links a:hover {
  background: rgba(30,144,255,0.12);
  border-color: rgba(30,144,255,0.4);
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 8px 20px var(--blue-glow);
}

.social-links img {
  width: 22px; height: 22px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity 0.2s;
}
.social-links a:hover img { opacity: 1; }

/* ===== DIVISOR ===== */
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  border-radius: 100px;
  margin: 0 auto 36px;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 30px 20px 110px;
  border-top: 1px solid var(--glass-border);
}

.footer-logo {
  width: 75px;
  opacity: 0.4;
  margin-bottom: 10px;
}

footer p { color: var(--text-muted); font-size: 13px; }

/* ===== BOTÃO FLUTUANTE WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: 22px; right: 22px;
  width: 62px; height: 62px;
  background: linear-gradient(145deg, #25D366, #1ab854);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
  z-index: 9999;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: pulse-green 3s ease-in-out infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 6px 28px rgba(37,211,102,0.5); }
  50%       { box-shadow: 0 6px 38px rgba(37,211,102,0.8), 0 0 0 12px rgba(37,211,102,0.07); }
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 36px rgba(37,211,102,0.7);
  animation: none;
}

.whatsapp-float svg {
  width: 34px; height: 34px;
}

/* ===== ANIMAÇÕES DE ENTRADA ===== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible { opacity: 1; transform: none; }

/* delays para service cards */
.service-card:nth-child(1) { transition-delay: 0ms; }
.service-card:nth-child(2) { transition-delay: 80ms; }
.service-card:nth-child(3) { transition-delay: 160ms; }
.service-card:nth-child(4) { transition-delay: 240ms; }
.service-card:nth-child(5) { transition-delay: 320ms; }

/* delays para steps */
.step:nth-child(1) { transition-delay: 0ms; }
.step:nth-child(3) { transition-delay: 120ms; }
.step:nth-child(5) { transition-delay: 240ms; }

/* ===== RESPONSIVO ===== */
@media (max-width: 680px) {
  .hero { padding: 52px 16px 44px; }
  .hero-logo { width: 140px; }

  .trust-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px;
  }

  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .service-card { padding: 24px 12px 20px; }

  .step-arrow { display: none; }
  .steps { gap: 12px; }
  .step { min-width: 100%; }

  .emergency-inner { padding: 28px 18px; }

  .cta-inner { padding: 30px 18px; }

  .btn { padding: 12px 20px; font-size: 14px; }
  .btn-lg { padding: 14px 28px; font-size: 15px; }
}

@media (max-width: 400px) {
  .hero-btns { flex-direction: column; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo, .whatsapp-float, .emergency-icon, .badge-dot,
  .blob { animation: none; }
  .fade-up { transition: none; opacity: 1; transform: none; }
  .service-card, .step { transition: none; }
}
