/* Mecânica compartilhada (reset, menu do celular, formulário, FAQ, botão flutuante).
   O visual de cada site fica no CSS próprio dele. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; }
.wrap { width: min(1140px, 100% - 36px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.ico { width: 1.3em; height: 1.3em; flex: none; fill: currentColor; }

/* Menu do celular */
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; color: inherit; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .3s, top .3s; }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 26px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .links {
    position: absolute; left: 0; right: 0; top: 100%; display: flex; flex-direction: column; align-items: stretch;
    padding: 6px 18px 22px; background: var(--nav-bg); color: var(--nav-ink);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform .25s, opacity .25s, visibility .25s;
  }
  .links.is-open { transform: none; opacity: 1; visibility: visible; }
  .links a { padding: 14px 2px; border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
  .links .btn { margin-top: 14px; border-bottom: 0; text-align: center; }
}

/* Perguntas frequentes (details nativo) */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 20px 0; font-weight: 600; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; flex: none; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 36px 22px 0; opacity: .8; max-width: 62ch; }

/* Formulário */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field textarea { width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); background: #fff; color: inherit; border-radius: var(--r, 8px); }
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 1px; }
.form-msg { margin-top: 12px; font-size: .92rem; min-height: 1.4em; }

/* Botão flutuante */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #1c9c52; color: #fff; box-shadow: 0 12px 26px -8px rgba(0, 0, 0, .55); }
.wa-float .ico { width: 30px; height: 30px; }

.credits { font-size: .78rem; opacity: .65; margin-top: 10px; max-width: 80ch; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
