/* ============================================================
   LocaRap — Folha de Estilos Principal
   Caminho: assets/css/style.css
   ============================================================ */

/* ---- Variáveis ---- */
:root {
  --navy: #19699b;
  --blue: #3399dc;
  --light: #e8f4fc;
  --dark: #0f4a6e;
  --darker: #0a2d44;
  --orange: #f97316;
  --orange-dark: #ea580c;
}

/* ---- Base ---- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'League Spartan', sans-serif;
}

/* ---- Heading weight override ---- */
h1,
h2 {
  font-weight: 700 !important;
}

h3 {
  font-weight: 600 !important;
}

/* ---- Hero ---- */
.hero-bg {
  background: linear-gradient(135deg, rgba(10, 45, 68, 0.94) 0%, rgba(15, 74, 110, 0.88) 55%, rgba(25, 105, 155, 0.82) 100%);
}

@media (min-width: 768px) {
  .hero-bg {
    background: linear-gradient(135deg, rgba(10, 45, 68, 0.92) 0%, rgba(15, 74, 110, 0.85) 55%, rgba(25, 105, 155, 0.78) 100%);
  }
}

/* ---- Dot Pattern ---- */
.dot-pattern {
  background-color: #f8fafc;
  background-image: radial-gradient(#c7dff0 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ---- Buttons ---- */
.btn-green {
  background: #25d366;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  font-family: 'League Spartan', sans-serif;
}

.btn-green:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
}

.btn-orange {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  font-family: 'League Spartan', sans-serif;
}

.btn-orange:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(249, 115, 22, 0.5);
  filter: brightness(1.05);
}

.btn-blue {
  background: linear-gradient(135deg, #3399dc 0%, #19699b 100%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: 'League Spartan', sans-serif;
}

.btn-blue:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(51, 153, 220, 0.45);
}

.btn-white {
  background: #fff;
  color: #0f4a6e;
  font-family: 'League Spartan', sans-serif;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-white:hover {
  background: #e8f4fc;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* ---- Cards ---- */
.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(15, 74, 110, 0.15);
}

/* ---- Glass badge ---- */
.glass-badge {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

/* ---- Section tag ---- */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #e8f4fc;
  color: #19699b;
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.section-tag-white {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* ---- Stats bg ---- */
.stats-bg {
  background: linear-gradient(135deg, #0a2d44 0%, #0f4a6e 60%, #19699b 100%);
}

/* ---- CTA dark ---- */
.cta-dark-bg {
  background: linear-gradient(135deg, #0a2d44 0%, #0f4a6e 50%, #194f74 100%);
  position: relative;
  overflow: hidden;
}

.cta-dark-bg::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(51, 153, 220, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.cta-dark-bg::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(51, 153, 220, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ---- Form inputs ---- */
.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.6rem;
  font-size: 0.92rem;
  color: #1f2937;
  background: #fff;
  font-family: 'Open Sans', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #3399dc;
  box-shadow: 0 0 0 3px rgba(51, 153, 220, 0.15);
}

.form-input.error {
  border-color: #ef4444;
}

/* ---- FAQ ---- */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer.open {
  max-height: 500px;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-open .faq-icon {
  transform: rotate(45deg);
}

/* ---- Testimonial ---- */
.testimonial-card {
  background: #fff;
  border: 1.5px solid #e8f4fc;
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(15, 74, 110, 0.12);
  border-color: #3399dc;
}

/* ---- Stars ---- */
.stars {
  color: #f59e0b;
  letter-spacing: 0.05em;
}

/* ---- Floating WhatsApp button ---- */
#fab-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  background: #25d366;
  color: #fff;
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem 1.4rem;
  border-radius: 9999px;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.2s ease;
}

#fab-whatsapp.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#fab-whatsapp:hover {
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.65);
  transform: translateY(-2px);
}

/* ---- WhatsApp Modal ---- */
#wa-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 45, 68, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#wa-modal-overlay.open {
  display: flex;
}

#wa-modal {
  background: #fff;
  border-radius: 1.5rem;
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(10, 45, 68, 0.3);
  animation: fadeInUp 0.3s ease forwards;
}

#wa-modal-header {
  background: #25d366;
  padding: 1.4rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

#wa-modal-header h3 {
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin: 0;
}

#wa-modal-header p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  margin: 0.15rem 0 0;
}

#wa-modal-body {
  padding: 1.75rem;
}

#wa-modal-body .form-field {
  margin-bottom: 1rem;
}

#wa-modal-body label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: #374151;
  margin-bottom: 0.4rem;
  font-family: 'Open Sans', sans-serif;
}

#wa-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0;
}

.btn-wa {
  background: #25d366;
  color: #fff;
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 0.75rem;
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s, transform 0.2s;
  margin-top: 0.25rem;
}

.btn-wa:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
}

/* ---- Pulse animation ---- */
@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* ---- Fade in up ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.65s ease forwards;
}

.delay-1 {
  animation-delay: 0.12s;
}

.delay-2 {
  animation-delay: 0.24s;
}

.delay-3 {
  animation-delay: 0.36s;
}

/* ---- Gradient text ---- */
.gradient-text {
  background: linear-gradient(135deg, #3399dc 0%, #19699b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Service icon gradient ---- */
.icon-gradient {
  background: linear-gradient(135deg, #0f4a6e 0%, #3399dc 100%);
}

/* ---- Step connector ---- */
.step-connector {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, #3399dc, #19699b);
  opacity: 0.3;
}

.step-number {
  font-family: 'League Spartan', sans-serif;
  font-weight: 900;
  font-size: 3rem;
  line-height: 1;
  background: linear-gradient(135deg, #3399dc, #0f4a6e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Footer ---- */
.footer-bg {
  background: linear-gradient(160deg, #0a2d44 0%, #0f3d5c 100%);
}

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Nav bar ---- */
.nav-bar {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---- Redirect WA Popup ---- */
.redirect-wa-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.redirect-wa-popup.hidden {
  display: none;
}

.redirect-wa-box {
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  width: 90%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.redirect-wa-icon {
  font-size: 34px;
  margin-bottom: 10px;
}

.redirect-wa-box h3 {
  margin: 10px 0;
  font-size: 20px;
}

.redirect-wa-box p {
  font-size: 14px;
  color: #555;
  margin-bottom: 18px;
}

.redirect-wa-loader {
  width: 28px;
  height: 28px;
  border: 3px solid #ddd;
  border-top: 3px solid #25d366;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}
