/* ============================================================
   Help Pragas — components.css
   Botões, chips, cards, timeline, selo 3D, marquee, FAQ,
   formulário e botão flutuante de WhatsApp.
   Regras de contraste AA:
   - CTA verde-principal (#78BA59) sempre com texto quase-preto;
   - CTA com texto branco somente sobre verde-medio (#406F43).
   ============================================================ */

/* ---------- Botões ---------- */
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease,
    color 0.22s ease, border-color 0.22s ease;
}

.botao .icone {
  width: 1.2em;
  height: 1.2em;
}

.botao:hover {
  transform: translateY(-2px);
}

.botao:active {
  transform: translateY(0);
}

.botao--primario {
  background: var(--verde-principal);
  color: var(--quase-preto);
  box-shadow: 0 10px 26px rgba(120, 186, 89, 0.35);
}

.botao--primario:hover {
  box-shadow: 0 14px 32px rgba(120, 186, 89, 0.45);
}

.botao--fantasma {
  border-color: rgba(64, 111, 67, 0.45);
  color: var(--verde-floresta);
  background: rgba(255, 255, 255, 0.6);
}

.botao--fantasma:hover {
  border-color: var(--verde-medio);
  background: var(--branco);
}

.botao--fantasma-claro {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--branco);
  background: transparent;
}

.botao--fantasma-claro:hover {
  border-color: var(--verde-lima);
  background: rgba(255, 255, 255, 0.08);
  color: var(--branco);
}

.botao--menu {
  padding: 11px 24px;
  font-size: 0.95rem;
}

.botao--card {
  margin-top: 4px;
  padding: 12px 20px;
  font-size: 0.94rem;
  border-color: rgba(64, 111, 67, 0.45);
  color: var(--verde-floresta);
  background: transparent;
}

.botao--card:hover {
  background: var(--verde-principal);
  border-color: var(--verde-principal);
  color: var(--quase-preto);
}

.botao--largo {
  width: 100%;
}

/* ---------- Chips de confiança ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid rgba(64, 111, 67, 0.22);
  border-radius: 999px;
  background: var(--branco);
  box-shadow: 0 2px 10px rgba(29, 30, 28, 0.04);
  font-size: 0.9rem;
  color: var(--verde-floresta);
}

.chip .icone {
  width: 1em;
  height: 1em;
  color: var(--verde-principal);
}

/* ---------- Cards de serviço (tilt 3D via js/tilt3d.js) ---------- */
.card-servico {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 26px;
  background: var(--branco);
  border: 1px solid var(--borda-suave);
  border-radius: var(--raio-cartao);
  box-shadow: var(--sombra-suave);
  transform-style: preserve-3d;
  will-change: transform;
}

.card-servico.tilt-suave {
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.25, 1);
}

.card-servico:hover {
  box-shadow: var(--sombra-media);
}

.card-brilho {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    560px circle at var(--brilho-x, 50%) var(--brilho-y, 50%),
    rgba(193, 213, 110, 0.28),
    transparent 46%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card-servico:hover .card-brilho {
  opacity: 1;
}

.card-icone {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(120, 186, 89, 0.16);
  color: var(--verde-medio);
  transform: translateZ(28px);
}

.card-icone .icone {
  width: 30px;
  height: 30px;
}

.card-servico h3 {
  transform: translateZ(20px);
}

.card-desc {
  font-size: 0.95rem;
  color: var(--texto-secundario);
}

.entregas {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}

.entregas li {
  position: relative;
  padding-left: 24px;
  font-size: 0.93rem;
}

.entregas li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 10px;
  height: 5px;
  border-left: 2.5px solid var(--verde-principal);
  border-bottom: 2.5px solid var(--verde-principal);
  transform: rotate(-45deg);
}

.card-nota {
  margin-top: auto;
  padding: 8px 12px;
  border-left: 3px solid var(--verde-lima);
  border-radius: 0 10px 10px 0;
  background: rgba(193, 213, 110, 0.18);
  font-size: 0.8rem;
  color: var(--verde-medio);
}

/* ---------- Selo "Ambiente Sanitizado" (flip 3D) ---------- */
.selo {
  display: block;
  width: min(320px, 80vw);
  aspect-ratio: 320 / 384;
  perspective: 1100px;
  border-radius: 26px 26px 50% 50% / 26px 26px 46% 46%;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.selo:hover {
  transform: translateY(-6px);
}

.selo-nucleo {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.35, 0.9, 0.3, 1.02);
}

.selo.is-virado .selo-nucleo {
  transform: rotateY(180deg);
}

.selo-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px 26px;
  border-radius: 26px 26px 50% 50% / 26px 26px 46% 46%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.selo-frente {
  background: linear-gradient(172deg, var(--verde-medio) 0%, var(--verde-floresta) 76%);
  border: 3px solid rgba(193, 213, 110, 0.65);
  box-shadow: 0 26px 60px rgba(45, 67, 31, 0.32), inset 0 0 0 6px rgba(255, 255, 255, 0.08);
  color: var(--branco);
}

.selo-frente::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.18) 46%, transparent 62%);
  background-size: 260% 100%;
  animation: selo-brilho 4.6s ease-in-out infinite;
  pointer-events: none;
}

.selo-frente img {
  width: 82px;
  height: auto;
  padding: 12px;
  background: var(--branco);
  border-radius: 50%;
  box-sizing: content-box;
}

.selo-titulo {
  font-weight: 900;
  font-size: 1.66rem;
  line-height: 1.08;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--branco);
}

.selo-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
}

.selo-verso {
  transform: rotateY(180deg);
  background: var(--branco);
  border: 3px dashed rgba(64, 111, 67, 0.5);
  box-shadow: 0 26px 60px rgba(45, 67, 31, 0.16);
  color: var(--verde-floresta);
}

.selo-verso-titulo {
  font-weight: 900;
  font-size: 1.45rem;
  line-height: 1.12;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  color: var(--verde-floresta);
}

.selo-campo {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: 6px;
}

.selo-campo-linha {
  display: inline-block;
  width: 72px;
  height: 2.1rem;
  border-bottom: 3px solid rgba(64, 111, 67, 0.55);
}

.selo-campo-barra {
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
  color: rgba(64, 111, 67, 0.8);
}

.selo-verso-legenda {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texto-secundario);
}

.selo-sub--verso {
  color: var(--texto-secundario);
}

/* ---------- Marquee de clientes ---------- */
.marquee {
  overflow: hidden;
  padding-block: 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-esteira {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee-rolar 38s linear infinite;
}

.marquee:hover .marquee-esteira,
.marquee:focus-within .marquee-esteira {
  animation-play-state: paused;
}

.marquee-trilho {
  display: flex;
  gap: 16px;
}

.cliente-pilula {
  white-space: nowrap;
  padding: 13px 28px;
  border: 1px solid var(--borda-suave);
  border-radius: 999px;
  background: var(--verde-suave);
  color: var(--verde-floresta);
  font-weight: 500;
  font-size: 0.98rem;
}

/* ---------- Segmentos ---------- */
.segmento {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 12px;
  border: 1px solid var(--borda-suave);
  border-radius: 16px;
  background: var(--branco);
  color: var(--verde-floresta);
  font-weight: 500;
  font-size: 0.95rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.segmento:hover {
  transform: translateY(-4px);
  border-color: rgba(120, 186, 89, 0.55);
  box-shadow: var(--sombra-suave);
}

.segmento .icone {
  width: 30px;
  height: 30px;
  color: var(--verde-medio);
}

/* ---------- FAQ (acordeões com <details>/<summary>) ---------- */
.faq-item {
  margin-bottom: 12px;
  border: 1px solid var(--borda-suave);
  border-radius: 16px;
  background: var(--branco);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item[open] {
  border-color: rgba(120, 186, 89, 0.55);
  box-shadow: 0 10px 30px rgba(29, 30, 28, 0.06);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--verde-floresta);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: rgba(120, 186, 89, 0.06);
}

.faq-marcador {
  position: relative;
  flex: none;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: rgba(120, 186, 89, 0.16);
}

.faq-marcador::before,
.faq-marcador::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2.2px;
  border-radius: 2px;
  background: var(--verde-medio);
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}

.faq-marcador::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-marcador::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-resposta {
  padding: 0 22px 20px;
  color: var(--texto-secundario);
  max-width: 66ch;
}

.faq-item[open] .faq-resposta {
  animation: faq-abrir 0.35s ease;
}

/* ---------- Formulário de contato ---------- */
.contato-form {
  padding: clamp(22px, 4vw, 40px);
  background: var(--branco);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  color: var(--quase-preto);
  width: 100%;
  box-sizing: border-box;
}

.contato-form h3 {
  font-size: 1.3rem;
}

.form-legenda {
  margin: 6px 0 22px;
  font-size: 0.88rem;
  color: var(--texto-secundario);
}

.campo {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.campo label,
.campo-rotulo {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--verde-floresta);
}

.campo-honey {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.campo-opcional {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--texto-secundario);
}

.campo input,
.campo select,
.campo textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid rgba(45, 67, 31, 0.22);
  border-radius: 12px;
  background: var(--branco);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.campo textarea {
  resize: vertical;
  min-height: 96px;
}

.campo input::placeholder,
.campo textarea::placeholder {
  color: var(--cinza-neutro);
}

.campo input:focus-visible,
.campo select:focus-visible,
.campo textarea:focus-visible {
  outline: none;
  border-color: var(--verde-principal);
  box-shadow: 0 0 0 3.5px rgba(120, 186, 89, 0.28);
}

/* Vermelho funcional de erro (fora da paleta, uso restrito à validação) */
.campo.tem-erro input,
.campo.tem-erro select,
.campo.tem-erro textarea {
  border-color: #b3453b;
}

.campo input[type='file'] {
  padding: 10px 12px;
  background: var(--verde-nevoa, #f7faf3);
}

.arquivo-zona {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  min-height: 92px;
  padding: 16px 18px;
  border: 1.5px dashed rgba(45, 67, 31, 0.35);
  border-radius: 12px;
  background: var(--verde-nevoa, #f7faf3);
  color: var(--verde-floresta);
  cursor: pointer;
}

.arquivo-zona:hover,
.arquivo-zona:focus-within {
  border-color: var(--verde-principal);
  box-shadow: 0 0 0 3.5px rgba(120, 186, 89, 0.22);
}

.arquivo-zona.is-ok {
  border-style: solid;
  border-color: var(--verde-principal);
  background: #f3faee;
}

.campo.tem-erro .arquivo-zona {
  border-color: #b3453b;
}

.arquivo-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 18px;
  background: transparent !important;
  box-shadow: none !important;
}

.arquivo-titulo {
  font-weight: 600;
  font-size: 0.95rem;
  pointer-events: none;
}

.arquivo-nome {
  font-size: 0.86rem;
  color: var(--texto-secundario, #5c615e);
  word-break: break-word;
  pointer-events: none;
}

.modal-fundo {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(29, 30, 28, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.modal-fundo[hidden] {
  display: none;
}

.modal-caixa {
  width: min(640px, 100%);
  max-height: min(86vh, 720px);
  overflow: auto;
  padding: 28px 26px 22px;
  border-radius: 20px;
  background: var(--branco);
  color: var(--quase-preto);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.modal-caixa h3 {
  font-size: 1.22rem;
  margin-bottom: 14px;
  color: var(--verde-floresta);
}

.modal-texto p {
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--texto-secundario, #5c615e);
}

.modal-texto p:last-child {
  margin-bottom: 0;
}

.modal-acoes {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

body.modal-aberto {
  overflow: hidden;
}

.campo-erro {
  font-size: 0.82rem;
  color: #a13c33;
}

.campo-erro[hidden] {
  display: none;
}

.form-status {
  margin-top: 14px;
  min-height: 1.3em;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--verde-medio);
}

/* ---------- Botão flutuante de WhatsApp ---------- */
.whats-flutuante {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--verde-medio);
  color: var(--branco);
  box-shadow: 0 12px 32px rgba(45, 67, 31, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whats-flutuante .icone {
  width: 28px;
  height: 28px;
}

.whats-flutuante:hover {
  transform: scale(1.08);
  box-shadow: 0 16px 40px rgba(45, 67, 31, 0.5);
}

/* Pulso de "mira" ao redor do botão */
.whats-flutuante::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(120, 186, 89, 0.7);
  animation: pulso-mira 2.4s ease-out infinite;
}

/* Anel tracejado girando como retículo */
.whats-flutuante::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.45);
  animation: girar-lento 16s linear infinite;
}

@media (max-width: 480px) {
  .whats-flutuante {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }
}

/* ============================================================
   UPGRADE — Anéis de radar no botão flutuante de WhatsApp
   (dois anéis expandindo em ondas, via box-shadow animado)
   ============================================================ */
.whats-flutuante {
  animation: radar-aneis 2.6s ease-out infinite;
}

@keyframes radar-aneis {
  0% {
    box-shadow: 0 12px 32px rgba(45, 67, 31, 0.4),
      0 0 0 0 rgba(120, 186, 89, 0.5),
      0 0 0 0 rgba(120, 186, 89, 0.3);
  }
  55% {
    box-shadow: 0 12px 32px rgba(45, 67, 31, 0.4),
      0 0 0 16px rgba(120, 186, 89, 0),
      0 0 0 8px rgba(120, 186, 89, 0.16);
  }
  100% {
    box-shadow: 0 12px 32px rgba(45, 67, 31, 0.4),
      0 0 0 16px rgba(120, 186, 89, 0),
      0 0 0 30px rgba(120, 186, 89, 0);
  }
}

/* ============================================================
   UPGRADE — Cursor personalizado em mira (js/cursor.js)
   Segue o ponteiro com inércia, cresce sobre clicáveis e
   "trava" sobre CTAs. O cursor real some apenas enquanto o
   ponteiro está em uso (classe cursor-custom no html).
   ============================================================ */
html.cursor-custom * {
  cursor: none !important;
}

html.cursor-custom input[type='file'],
html.cursor-custom .arquivo-zona,
html.cursor-custom .arquivo-zona * {
  cursor: pointer !important;
}

.cursor-mira,
.cursor-ponto {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 700;
  width: 0;
  height: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cursor-mira.is-ativo,
.cursor-ponto.is-ativo {
  opacity: 1;
}

.cursor-ponto::after {
  content: '';
  position: absolute;
  top: -2.5px;
  left: -2.5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--verde-medio);
}

.cursor-anel {
  position: absolute;
  top: -19px;
  left: -19px;
  width: 38px;
  height: 38px;
  border: 1.6px solid rgba(64, 111, 67, 0.85);
  border-radius: 50%;
  transition: transform 0.28s cubic-bezier(0.3, 1.3, 0.4, 1), border-color 0.28s ease,
    background 0.28s ease, box-shadow 0.28s ease;
}

.cursor-risco {
  position: absolute;
  background: rgba(64, 111, 67, 0.85);
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.cursor-risco--n { top: -27px; left: -0.8px; width: 1.6px; height: 7px; }
.cursor-risco--s { top: 20px;  left: -0.8px; width: 1.6px; height: 7px; }
.cursor-risco--l { top: -0.8px; left: 20px;  width: 7px;  height: 1.6px; }
.cursor-risco--o { top: -0.8px; left: -27px; width: 7px;  height: 1.6px; }

/* Sobre clicáveis comuns: a mira cresce */
.cursor-mira.is-sobre .cursor-anel {
  transform: scale(1.4);
  border-color: rgba(120, 186, 89, 0.9);
}

.cursor-mira.is-sobre .cursor-risco--n { transform: translateY(-6px); }
.cursor-mira.is-sobre .cursor-risco--s { transform: translateY(6px); }
.cursor-mira.is-sobre .cursor-risco--l { transform: translateX(6px); }
.cursor-mira.is-sobre .cursor-risco--o { transform: translateX(-6px); }

/* Sobre CTAs: snap — anel duplo travado e riscos encaixando */
.cursor-mira.is-trava .cursor-anel {
  transform: scale(1.55);
  border-color: var(--verde-principal);
  background: rgba(120, 186, 89, 0.14);
  box-shadow: 0 0 0 3px rgba(120, 186, 89, 0.25);
}

.cursor-mira.is-trava .cursor-risco {
  background: var(--verde-principal);
}

.cursor-mira.is-trava .cursor-risco--n { transform: translateY(-9px) scaleY(1.4); }
.cursor-mira.is-trava .cursor-risco--s { transform: translateY(9px) scaleY(1.4); }
.cursor-mira.is-trava .cursor-risco--l { transform: translateX(9px) scaleX(1.4); }
.cursor-mira.is-trava .cursor-risco--o { transform: translateX(-9px) scaleX(1.4); }

.cursor-mira.is-clicando .cursor-anel {
  transform: scale(0.82);
}

/* ============================================================
   UPGRADE — Cards de serviço premium: borda com gradiente
   animado (conic) + ícone que anima no hover. O glare que
   segue o mouse já existe em .card-brilho (via tilt3d.js).
   ============================================================ */
@property --ang-borda {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.card-servico::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  z-index: 0;
  border-radius: calc(var(--raio-cartao) + 1.5px);
  padding: 1.5px;
  background: conic-gradient(
    from var(--ang-borda, 0deg),
    transparent 0turn 0.55turn,
    var(--verde-principal) 0.72turn,
    var(--verde-lima) 0.82turn,
    var(--verde-principal) 0.9turn,
    transparent 1turn
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  animation: borda-gira 3.2s linear infinite;
  animation-play-state: paused;
  pointer-events: none;
}

.card-servico:hover::before,
.card-servico:focus-within::before {
  opacity: 1;
  animation-play-state: running;
}

@keyframes borda-gira {
  to { --ang-borda: 360deg; }
}

.card-servico:hover .card-icone {
  animation: icone-vibra 0.55s ease;
}

@keyframes icone-vibra {
  0%, 100% { transform: translateZ(28px) rotate(0deg) scale(1); }
  30% { transform: translateZ(28px) rotate(-9deg) scale(1.12); }
  60% { transform: translateZ(28px) rotate(7deg) scale(1.06); }
}

/* ============================================================
   UPGRADE — Marquee com profundidade: container com leve
   rotateX + segunda linha correndo no sentido oposto.
   ============================================================ */
.marquee {
  transform: perspective(900px) rotateX(7deg);
}

.marquee-esteira--reversa {
  margin-top: 14px;
  animation-direction: reverse;
  animation-duration: 52s;
}

.marquee-esteira--reversa .cliente-pilula {
  background: var(--branco);
  border-color: rgba(120, 186, 89, 0.35);
  opacity: 0.85;
}

/* ============================================================
   UPGRADE — Divisores de seção em onda (SVG com deriva suave)
   ============================================================ */
.secao {
  position: relative;
}

.divisor-onda {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: clamp(26px, 4vw, 54px);
  overflow: hidden;
  pointer-events: none;
}

.divisor-onda svg {
  width: 200%;
  height: 100%;
  animation: onda-deriva 16s ease-in-out infinite alternate;
}

@keyframes onda-deriva {
  from { transform: translateX(0); }
  to { transform: translateX(-12%); }
}

/* ============================================================
   Botao flutuante "Pausar animacoes" (js/movimento.js)
   Canto inferior ESQUERDO, discreto, sem conflitar com o
   botao de WhatsApp que fica a direita.
   ============================================================ */
.animacoes-toggle {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border: 1px solid rgba(45, 67, 31, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--verde-floresta, #2D431F);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(45, 67, 31, 0.18);
  backdrop-filter: blur(4px);
  opacity: 0.82;
  transition: opacity 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.animacoes-toggle:hover,
.animacoes-toggle:focus-visible {
  opacity: 1;
  box-shadow: 0 12px 28px rgba(45, 67, 31, 0.26);
  transform: translateY(-1px);
}

.animacoes-toggle .icone {
  width: 18px;
  height: 18px;
  flex: none;
}

/* Toque: o toggle precisa de alvo minimo de 44x44px */
@media (pointer: coarse) {
  .animacoes-toggle {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .animacoes-toggle {
    left: 12px;
    bottom: 12px;
    padding: 8px 10px;
  }

  /* No mobile fica so o icone; o texto continua para leitores de tela */
  .animacoes-toggle .animacoes-toggle-texto {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* ============================================================
   MOBILE — Botoes flutuantes recuam quando o formulario de
   contato ou o rodape estao na tela (classe .is-recuado via
   js/main.js, so em telas <=768px), para nao cobrir o botao
   de envio nem o texto final do rodape.
   ============================================================ */
.whats-flutuante.is-recuado,
.animacoes-toggle.is-recuado {
  opacity: 0;
  transform: translateY(140%);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ============================================================
   TOQUE — Neutraliza efeitos que dependem de hover (em telas
   touch o hover "gruda" apos o tap e atrapalha a interacao).
   O visual desktop segue intacto.
   ============================================================ */
@media (hover: none) {
  .botao:hover {
    transform: none;
  }

  .botao--primario:hover {
    box-shadow: 0 10px 26px rgba(120, 186, 89, 0.35);
  }

  .botao--fantasma:hover {
    border-color: rgba(64, 111, 67, 0.45);
    background: rgba(255, 255, 255, 0.6);
  }

  .botao--card:hover {
    background: transparent;
    border-color: rgba(64, 111, 67, 0.45);
    color: var(--verde-floresta);
  }

  .card-servico:hover {
    box-shadow: var(--sombra-suave);
  }

  .card-servico:hover .card-brilho {
    opacity: 0;
  }

  .card-servico:hover::before {
    opacity: 0;
    animation-play-state: paused;
  }

  .card-servico:focus-within::before {
    opacity: 1;
    animation-play-state: running;
  }

  .card-servico:hover .card-icone {
    animation: none;
  }

  .selo:hover {
    transform: none;
  }

  .segmento:hover {
    transform: none;
    border-color: var(--borda-suave);
    box-shadow: none;
  }

  .faq-item summary:hover {
    background: transparent;
  }

  .whats-flutuante:hover {
    transform: none;
    box-shadow: 0 12px 32px rgba(45, 67, 31, 0.4);
  }

  .menu-link:hover:not(.is-atual)::after {
    transform: scaleX(0);
  }
}
