/* ATS Contabilidade Goiânia — complementos do CSS base (css/base.css) */

/* link "pular para o conteúdo" (acessibilidade) */
.ats-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #fff;
  color: #152056;
  padding: 0.75rem 1rem;
  border-radius: 0 0 10px 0;
  font-weight: 700;
}
.ats-skip:focus {
  left: 0;
}

/* imagem do contador na seção Reforma: some suavemente embaixo */
.ats-fade-bottom {
  -webkit-mask-image: linear-gradient(#000 58%, transparent 96%);
  mask-image: linear-gradient(#000 58%, transparent 96%);
}

/* aviso (erros do formulário) */
.ats-toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 400;
  max-width: min(92vw, 28rem);
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  background: #152056;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 16px 40px rgba(13, 24, 80, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 1rem);
  transition: opacity 0.2s, transform 0.2s;
}
.ats-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.ats-toast.is-error {
  background: #b42318;
}

/* entrada dos modais */
@keyframes ats-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes ats-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.ats-fade { animation: ats-fade 0.18s ease-out; }
.ats-pop { animation: ats-pop 0.22s cubic-bezier(0.22, 1, 0.36, 1); }

@media (max-width: 399px) {
  .ats-hide-xs { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ats-fade, .ats-pop { animation: none; }
}

/* ---- utilitários que não existiam no CSS base (mesmos valores do Tailwind) ---- */
.bottom-3 { bottom: 0.75rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-10 { gap: 2.5rem; }
.gap-x-4 { column-gap: 1rem; }
.gap-x-5 { column-gap: 1.25rem; }
.gap-y-2 { row-gap: 0.5rem; }
.hover\:text-accent-hover:hover { color: var(--color-accent-hover); }
.leading-\[1\.1\] { line-height: 1.1; }
.max-h-\[78vh\] { max-height: 78vh; }
.mt-1\.5 { margin-top: 0.375rem; }
.mt-2\.5 { margin-top: 0.625rem; }
.mt-auto { margin-top: auto; }
.p-3 { padding: 0.75rem; }
.pt-6 { padding-top: 1.5rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.shadow-\[0_10px_24px_rgba\(47\,84\,235\,0\.08\)\] { box-shadow: 0 10px 24px rgba(47, 84, 235, 0.08); }
.size-7 { width: 1.75rem; height: 1.75rem; }
.space-y-2 > :not(:last-child) { margin-bottom: 0.5rem; }
.text-\[30px\] { font-size: 30px; }
.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: var(--tw-duration, 150ms);
}
@media (width >= 40rem) {
  .sm\:inline { display: inline; }
  .sm\:text-\[38px\] { font-size: 38px; }
}
@media (width >= 48rem) {
  .md\:gap-4 { gap: 1rem; }
  .md\:gap-12 { gap: 3rem; }
  .md\:inline-flex { display: inline-flex; }
  .md\:justify-between { justify-content: space-between; }
  .md\:mt-3 { margin-top: 0.75rem; }
  .md\:p-4 { padding: 1rem; }
  .md\:text-\[48px\] { font-size: 48px; }
  .md\:text-xs { font-size: 0.75rem; line-height: 1rem; }
}
@media (width >= 64rem) {
  .lg\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
}

/* submenu do menu principal */
.ats-dd { position: relative; }
.ats-dd-menu {
  display: none; position: absolute; left: 0; top: 100%; z-index: 50; min-width: 15rem;
  padding: 0.5rem; background: #fff; border: 1px solid #dbe3ff; border-radius: 16px;
  box-shadow: 0 16px 40px rgba(13, 24, 80, 0.14);
}
.ats-dd:hover .ats-dd-menu, .ats-dd:focus-within .ats-dd-menu { display: block; }
.ats-dd-link { display: block; padding: 0.6rem 0.85rem; border-radius: 10px; font-size: 0.9rem; font-weight: 500; color: #152056; white-space: nowrap; }
.ats-dd-link:hover, .ats-dd-link:focus { background: #f4f6ff; color: #2f54eb; }
.ml-6 { margin-left: 1.5rem; }
.gap-1 { gap: 0.25rem; }
