/* =========================================================
   UNITEK — complementos ao CSS original (assets/css/site.css)
   Mantém o padrão visual: mesmas cores, fontes e cantos cortados.
   ========================================================= */

/* ---------- Fontes servidas pelo próprio site ---------- */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* <picture> não altera o layout original das imagens */
picture { display: contents; }

/* Laranja mais escuro só para textos pequenos sobre fundo claro (contraste acessível) */
.text-primary-strong { color: oklch(52% .14 52); }

/* ---------- Acessibilidade ---------- */
.skip-link {
  position: absolute; left: 16px; top: -120px; z-index: 100;
  background: var(--ink); color: var(--ink-foreground);
  padding: 12px 18px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.bg-ink :focus-visible, .bg-ink-gradient :focus-visible, header :focus-visible, footer :focus-visible { outline-color: var(--primary); }
/* Botões com canto cortado: o contorno fica por dentro para não ser recortado */
.cut-tr-sm.cut-tr-sm:focus-visible { outline: 2px solid var(--ink); outline-offset: -5px; }

@media (max-width: 767px) {
  .menu-btn { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; margin-right: -10px; }
}

/* ---------- Correção: seção de contato no celular ---------- */
.contact-card > * { min-width: 0; }
.btn-wrap { white-space: normal; height: auto; min-height: 3.5rem; padding-top: .75rem; padding-bottom: .75rem; line-height: 1.3; }
.break-all { overflow-wrap: anywhere; }

/* ---------- Formulário ---------- */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.seg-option { cursor: pointer; user-select: none; }
.seg-option:has(input:checked) { border-color: var(--primary); background: var(--primary); color: var(--primary-foreground); }
.seg-option:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

.consent { display: flex; gap: .75rem; align-items: flex-start; line-height: 1.5; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--ink); cursor: pointer; }
.consent a { text-decoration: underline; text-underline-offset: 3px; }

#form-demo [aria-invalid="true"] { border-color: #B42318; }
.field-error { color: #B42318; font-size: .8125rem; line-height: 1.4; }

.form-status { padding: .875rem 1rem; font-size: .875rem; line-height: 1.5; border: 1px solid var(--border); }
.form-status.is-error   { background: #FEF3F2; color: #912018; border-color: #FECDCA; }
.form-status.is-success { background: #ECFDF3; color: #05603A; border-color: #ABEFC6; }
.form-status.is-info    { background: oklch(96% .03 70); color: var(--foreground); border-color: oklch(85% .08 65); }
.form-status a { font-weight: 700; text-decoration: underline; }

/* ---------- Depoimentos (aparece só com depoimentos reais no config.php) ---------- */
@media (min-width: 64rem) { .testimonials-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Rodapé ---------- */
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; }
/* espaço para o botão fixo de WhatsApp não cobrir o fim da página */
body:has(.wa-float) .footer-bottom { padding-bottom: 96px; }

/* ---------- Botão fixo de WhatsApp (ícone verde animado) ---------- */
.wa-float {
  position: fixed; z-index: 40;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #FFFFFF; text-decoration: none;
  box-shadow: 0 10px 24px -8px rgba(18, 140, 126, .65), 0 2px 6px rgba(0, 0, 0, .18);
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), background-color .2s ease, box-shadow .25s ease;
  animation: wa-pop .6s cubic-bezier(.2, 1.4, .4, 1) .8s both;
}
.wa-float:hover { background: #1EBE5A; transform: scale(1.08); box-shadow: 0 14px 30px -8px rgba(18, 140, 126, .75), 0 2px 6px rgba(0, 0, 0, .2); }
.wa-float:active { transform: scale(.96); }
.wa-float:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.bg-ink .wa-float:focus-visible { outline-color: #FFFFFF; }

.wa-icon { position: relative; z-index: 1; animation: wa-wiggle 6s ease-in-out 2s infinite; transform-origin: 50% 60%; }
.wa-float:hover .wa-icon { animation-play-state: paused; }

/* ondas que se expandem a partir do botão */
.wa-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: #25D366; opacity: 0; pointer-events: none;
  animation: wa-ping 3s cubic-bezier(0, 0, .2, 1) 1.4s infinite;
}
.wa-ring-2 { animation-delay: 2.4s; }

@keyframes wa-pop { from { opacity: 0; transform: scale(.4) translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes wa-ping { 0% { opacity: .45; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.75); } }
@keyframes wa-wiggle {
  0%, 84%, 100% { transform: rotate(0); }
  87% { transform: rotate(-14deg) scale(1.06); }
  90% { transform: rotate(12deg) scale(1.06); }
  93% { transform: rotate(-8deg); }
  96% { transform: rotate(4deg); }
}

/* ---------- Foto do cartão "ERP de gestão completa" ---------- */
.erp-photo { object-position: 36% 30%; }
@media (min-width: 768px) { .erp-photo { object-position: 40% 30%; } }

/* ---------- Página de política ---------- */
.legal h2 { font-size: 1.375rem; font-weight: 800; margin: 2.5rem 0 .75rem; }
.legal p:not(.eyebrow), .legal li { color: var(--muted-foreground); line-height: 1.75; margin-bottom: .75rem; }
.legal ul { list-style: disc; padding-left: 1.25rem; }
.legal a { color: var(--foreground); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Respeita quem desativa animações ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate-marquee, .animate-rise, .wa-float, .wa-icon { animation: none !important; }
  .wa-ring { display: none; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
