/* ==========================================================================
   JMS Tecnologia — Estilos personalizados
   Complementa o Tailwind CSS. Mobile first, performance e acessibilidade.
   ========================================================================== */

:root {
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --surface: #f8fafc;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Respeita usuários que preferem menos movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

body {
  font-feature-settings: "cv11", "ss01";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Compensa o header fixo ao navegar por âncoras */
[id] { scroll-margin-top: 6rem; }

/* ---- Animação de revelação ao rolar ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ---- Gradiente sutil de fundo do hero ---- */
.hero-surface {
  background:
    radial-gradient(60rem 40rem at 80% -10%, rgba(37, 99, 235, 0.06), transparent 60%),
    radial-gradient(50rem 35rem at -10% 10%, rgba(15, 23, 42, 0.04), transparent 55%),
    #ffffff;
}

/* ---- Padrão de grade discreto ---- */
.grid-pattern {
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ---- Cartões premium ---- */
.card-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card-lift:hover {
  transform: translateY(-4px);
}

/* ---- Header com transição de fundo ao rolar ---- */
.site-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.04);
}

/* ---- Foco visível e acessível ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---- Logos de tecnologia em escala de cinza ---- */
.tech-logo {
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}
.tech-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-2px);
}

/* ---- Linha do tempo do processo ---- */
.process-line::before {
  content: "";
  position: absolute;
  top: 2.25rem;
  left: 50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, #e2e8f0 15%, #e2e8f0 85%, transparent);
  z-index: 0;
}
@media (max-width: 1023px) {
  .process-line::before { display: none; }
}

/* ---- Imagens com carregamento suave ---- */
img { max-width: 100%; height: auto; }

/* ---- Conteúdo das páginas legais ---- */
.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink-900);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  scroll-margin-top: 7rem;
}
.legal-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink-900);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}
.legal-content p,
.legal-content li {
  color: var(--ink-700);
  line-height: 1.75;
}
.legal-content p { margin-bottom: 1rem; }
.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.legal-content li { margin-bottom: 0.5rem; }
.legal-content a {
  color: var(--brand-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}
