/* =========================
 * RESET & VARIÁVEIS
         * ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: #f8fbff;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
button {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* Cores: azul (confiança), verde (água/limpeza), branco */
:root {
  --blue: #1e3a8a; /* azul escuro - confiança */
  --blue-light: #3b82f6; /* azul claro - ações */
  --green: #059669; /* verde - água/limpeza */
  --green-light: #34d399; /* verde claro - destaque */
  --white: #ffffff;
  --gray-100: #f3f4f6;
  --gray-600: #6b7280;
  --gray-800: #1f2937;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* =========================
         * LAYOUT BASE
         * ========================= */
.container {
  width: min(90%, 1200px);
  margin-inline: auto;
}
.section {
  padding: 4rem 0;
}
.section-sm {
  padding: 2.5rem 0;
}

/* =========================
         * HEADER
         * ========================= */
header {
  background: white;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 150px;
  width: auto;
}
.company-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue);
  margin-left: 0.8rem;
}

/* Botão WhatsApp header - sempre visível no topo */
.whatsapp-header-btn {
  background: #25d366;
  color: #fff;
  padding: 0.7rem 1.3rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-lg);
}
.whatsapp-header-btn:hover {
  background: #128c76;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 104, 0.4);
}
.whatsapp-header-btn svg {
  width: 1.3rem;
  height: 1.3rem;
}

/* =========================
         * HERO
         * ========================= */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 3rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -70px;
  right: -70px;
  width: 280px;
  height: 280px;
  background: rgba(52, 224, 153, 0.12);
  border-radius: 50%;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0.95;
}
.cta-primary {
  background: #25d366;
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.cta-primary:hover {
  background: #128c76;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(37, 211, 104, 0.45);
}
.cta-primary svg {
  width: 1.4rem;
  height: 1.4rem;
}

/* =========================
         * SERVIÇOS
         * ========================= */
.services-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.services-header h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--blue);
  margin-bottom: 0.6rem;
}
.services-header p {
  color: var(--gray-600);
  font-size: 1rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.8rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--green);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}
.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--blue-light), var(--green-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.8rem;
}
.service-card h3 {
  font-size: 1.2rem;
  color: var(--blue);
  margin-bottom: 0.6rem;
}
.service-card p {
  color: var(--gray-600);
  font-size: 0.9rem;
}

/* =========================
         * DIFERENCIAIS / PREÇO
         * ========================= */
.differentials {
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: var(--white);
  text-align: center;
}
.differentials h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 0.5rem;
}
.differentials p {
  opacity: 0.95;
  margin-bottom: 2rem;
}
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.highlight-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 0.8rem;
  padding: 1.4rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.highlight-item strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
}
.price-cta {
  background: var(--white);
  color: var(--blue);
  padding: 1.6rem 2rem;
  border-radius: 1rem;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.price-cta .price-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green);
  font-weight: 700;
}
.price-cta .price-value {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--blue);
  margin: 0.4rem 0;
}
.price-cta .price-disclaimer {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-top: 0.5rem;
}
.cta-secondary {
  background: var(--blue);
  color: var(--white);
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 700;
  margin-top: 1rem;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.cta-secondary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
}

/* =========================
         * BOTÃO FLUTUANTE WHATSAPP
         * ========================= */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #25d366;
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 18px rgba(37, 211, 104, 0.45);
  z-index: 40;
  transition: all 0.3s ease;
}
.whatsapp-float:hover {
  background: #128c76;
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 104, 0.6);
}
.whatsapp-float svg {
  width: 1.6rem;
  height: 1.6rem;
}
.pulse {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: pulse-anim 2s infinite;
  opacity: 0.7;
}
@keyframes pulse-anim {
  0% {
    transform: scale(0.8);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.2);
    opacity: 0;
  }
  100% {
    transform: scale(0.8);
    opacity: 0;
  }
}

/* =========================
         * RODAPÉ
         * ========================= */
footer {
  background: var(--gray-800);
  color: var(--gray-100);
  padding: 2.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.footer-col h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.footer-col ul li {
  margin-bottom: 0.5rem;
}
.footer-col a {
  color: var(--gray-600);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--green);
}
.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-600);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contact-info a {
  color: var(--green);
  font-weight: 600;
}

/* =========================
* RESPONSIVIDADE EXTRA
* ========================= */
@media (max-width: 490px) {
  .hero {
    padding: 2rem 0 3rem;
  }
  .cta-primary {
    font-size: 1rem;
    padding: 0.9rem 1.7rem;
    gap: 0.5rem;
  }
  .whatsapp-header-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
  header .company-name {
    display: none;
  }
}

/* =========================
 * TERMOS / POLÍTICA DE PRIVACIDADE
 * ========================= */
.terms-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}
.terms-block {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #e5e7eb;
}
.terms-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.terms-block h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.terms-meta {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  display: block;
}
.terms-block h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue);
  margin: 1.75rem 0 0.75rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--green);
}
.terms-block p {
  color: #374151;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.terms-block ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0.75rem 0 1rem;
}
.terms-block li {
  color: #374151;
  margin-bottom: 0.4rem;
  font-size: 1rem;
  line-height: 1.7;
}
.terms-block li::marker {
  color: var(--green);
}

/* =========================
 * RESPONSIVIDADE TERMOS
 * ========================= */
@media (max-width: 640px) {
  .terms-block h1 {
    font-size: 1.5rem;
  }
  .terms-block h2 {
    font-size: 1.1rem;
  }
  .terms-block p,
  .terms-block li {
    font-size: 0.95rem;
  }
  .section {
    padding: 2.5rem 0;
  }
}

/* =========================
 * BANNER DE COOKIES / LGPD (FIXO NO RODAPÉ)
 * ========================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  padding: 1rem 1.25rem;
  transform: translateY(100%);
  transition: transform 0.35s ease, opacity 0.35s ease;
  opacity: 0;
}
.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner.hidden {
  display: none;
}
.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-text {
  flex: 1;
  min-width: 260px;
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.5;
}
.cookie-text strong {
  color: var(--blue);
}
.cookie-text a {
  color: var(--blue-light);
  text-decoration: underline;
  font-weight: 500;
}
.cookie-text a:hover {
  color: var(--blue);
}
.cookie-btn {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.cookie-btn:hover {
  background: var(--blue-light);
  transform: translateY(-1px);
}
.cookie-btn:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 2px;
}

/* Ajuste para não ficar por cima do botão flutuante do WhatsApp */
@media (max-width: 640px) {
  .cookie-banner.show ~ .whatsapp-float,
  .cookie-banner:not(.hidden) ~ .whatsapp-float {
    bottom: calc(1.5rem + 90px);
  }
}
.cookie-banner:not(.hidden) ~ .whatsapp-float {
  bottom: calc(1.5rem + 80px);
}

/* Animação sutil de entrada */
.fade-in {
  opacity: 0;
  transform: translateY(15px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.fade-in.show {
  opacity: 1;
  transform: none;
}

/* =========================
 * MODAL DE PRÉ-QUALIFICAÇÃO
 * ========================= */
.qualification-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.qualification-modal.open {
  opacity: 1;
  visibility: visible;
}
.qualification-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}
.qualification-container {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  background: var(--white);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s ease;
}
.qualification-modal.open .qualification-container {
  transform: scale(1) translateY(0);
}
.qualification-header {
  padding: 1.5rem 1.5rem 1rem;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}
.qualification-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 0.25rem;
}
.qualification-subtitle {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
}
.qualification-progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.progress-bar {
  flex: 1;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  border-radius: 3px;
  transition: width 0.3s ease;
}
.progress-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-600);
  white-space: nowrap;
}
.qualification-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}
.qualification-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.25rem;
}
.step-subtitle {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 1.25rem;
}

/* Grid de opções */
.options-grid {
  display: grid;
  gap: 0.75rem;
}
.option-btn {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}
.option-btn:hover {
  border-color: var(--green-light);
  background: #f0fdf4;
}
.option-btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.option-btn.selected {
  border-color: var(--green);
  background: #f0fdf4;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}
.option-label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-800);
  margin-bottom: 0.25rem;
}
.option-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-600);
}
.option-check {
  flex-shrink: 0;
  color: var(--green);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}
.option-btn.selected .option-check {
  opacity: 1;
  transform: scale(1);
}

/* Input de bairro */
.neighborhood-input-wrapper {
  position: relative;
}
.neighborhood-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
}
.neighborhood-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}
.neighborhood-input::placeholder {
  color: var(--gray-600);
}
.suggestions-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
}
.suggestion-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--gray-800);
  transition: background 0.15s ease;
}
.suggestion-item:hover,
.suggestion-item:focus {
  background: #f0fdf4;
  outline: none;
}
.input-hint {
  font-size: 0.75rem;
  color: var(--gray-600);
  margin-top: 0.5rem;
}

/* Turnstile */
.turnstile-wrapper {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}
.turnstile-notice {
  font-size: 0.75rem;
  color: var(--gray-600);
  text-align: center;
}

/* Loading spinner */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e5e7eb;
  border-top-color: var(--green);
  border-radius: 50%;
  margin: 1.5rem auto;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success animation */
.success-animation {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}
.success-animation svg {
  animation: checkmark 0.5s ease forwards;
}
@keyframes checkmark {
  0% { stroke-dashoffset: 100; opacity: 0; }
  50% { opacity: 1; }
  100% { stroke-dashoffset: 0; }
}

/* Botões do rodapé do modal */
.qualification-footer {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid #e5e7eb;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  flex: 1;
}
.btn-primary:not(:disabled):hover {
  background: var(--blue-light);
  transform: translateY(-1px);
}
.btn-secondary {
  background: #f3f4f6;
  color: var(--gray-800);
  flex: 1;
}
.btn-secondary:not(:disabled):hover {
  background: #e5e7eb;
}
.btn-whatsapp-final {
  background: #25d366;
  color: var(--white);
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
}
.btn-whatsapp-final:hover {
  background: #128c76;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 104, 0.4);
}
.whatsapp-hint {
  font-size: 0.75rem;
  color: var(--gray-600);
  text-align: center;
  margin-top: 0.75rem;
}
.error-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.error-actions .btn {
  flex: 1;
}

/* Responsividade do modal */
@media (max-width: 480px) {
  .qualification-container {
    max-height: 95vh;
    border-radius: 1rem;
  }
  .qualification-header,
  .qualification-body,
  .qualification-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .option-btn {
    padding: 0.875rem;
  }
  .btn {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }
}


/* Controles do formulário com área de toque móvel. */
.qualification-header { position: relative; }
.qualification-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 1.6rem;
  cursor: pointer;
}
.qualification-header h2 { padding-inline: 1rem; }
.qualification-close:focus-visible { outline: 2px solid var(--blue); outline-offset: -4px; }
#whatsapp-fallback { margin-top: 0.75rem; width: 100%; text-align: center; }


/* O mesmo banner de cookies, com escolha explícita e controles móveis. */
.cookie-banner { max-height: 80vh; overflow-y: auto; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cookie-actions .cookie-btn { min-height: 44px; }
#cookie-reject { background: var(--gray-600, #4b5563); }
.cookie-settings-btn {
  border: 0; background: transparent; color: inherit;
  text-decoration: underline; cursor: pointer; padding: 0.75rem;
  font: inherit; min-height: 44px;
}
@media (max-width: 640px) {
  .cookie-banner:not(.hidden) ~ .whatsapp-float { bottom: calc(1.5rem + var(--cookie-banner-height, 245px)); }
  .cookie-actions { width: 100%; }
  .cookie-actions .cookie-btn { flex: 1; }
}
