/* Base e reset acessível */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #6b7280;
  --primary: #1d4ed8;        /* Azul moderno */
  --primary-600: #2563eb;
  --accent: #0ea5e9;          /* Ciano para detalhes e foco */
  --border: #e5e7eb;
  --success: #059669;
  --warning: #b45309;
  --danger: #b91c1c;
  --radius: 12px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 28px rgba(15, 23, 42, 0.10);
}
/* Dark mode removido para manter tema 100% claro e consistente */
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; border-radius: 0; }
a { color: var(--primary-600); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Utilitários de layout e tipografia */
.container { width: min(1180px, 92vw); margin: 0 auto; }
.section { padding: 72px 0; }
.section-title { font-size: clamp(1.6rem, 2.2vw + 1rem, 2.2rem); margin: 0 0 10px; letter-spacing: -0.02em; }
.section-sub { color: var(--muted); margin: 0 0 28px; }
.eyebrow { display:inline-block; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--primary-600); background: #eff6ff; padding: 6px 10px; border-radius: 999px; border: 1px solid #dbeafe; }
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Cabeçalho fixo */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--border); backdrop-filter: saturate(180%) blur(4px); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.nav-left { display: flex; align-items: center; gap: 12px; }
.nav-left img { width: 132px; height: auto; }
.nav-menu { display: flex; gap: 12px; align-items: center; }
.nav-menu a { padding: 10px 12px; border-radius: 10px; color: var(--text); font-weight: 600; }
.nav-menu a.active, .nav-menu a[aria-current="page"] { background: #eff6ff; color: var(--primary-600); border: 1px solid #dbeafe; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--border); padding: 8px 12px; border-radius: 10px; color: var(--text); }
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu { position: fixed; inset: 60px 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px; display: grid; gap: 10px; transform-origin: top center; transform: scaleY(0); transition: transform .2s ease; }
  .nav-menu[data-open="true"] { transform: scaleY(1); }
}

/* Herói moderno */
.hero { padding: 64px 0 32px; background: var(--bg); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 28px; }
.hero h1 { font-size: clamp(1.9rem, 2.8vw + 1rem, 2.8rem); margin: 0 0 12px; letter-spacing: -0.02em; }
.hero p { color: var(--muted); margin: 0 0 18px; max-width: 680px; }
.hero-media { border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-md); overflow: hidden; background: var(--bg); }
.hero-media img { display: block; width: 100%; height: auto; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding: 48px 0 24px; } }

.ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { --b: var(--primary); display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--b); color: #fff; background: var(--b); box-shadow: 0 6px 20px rgba(29,78,216,0.25); transition: translate .2s ease, background .2s ease, box-shadow .2s ease; }
.btn.secondary { background: #ffffff; color: var(--primary); box-shadow: var(--shadow-sm); }
.btn:hover { translate: 0 -2px; box-shadow: 0 10px 24px rgba(29,78,216,0.28); }

/* Ícones, listas e módulos */
.icon { width: 36px; height: 36px; border-radius: 10px; background: var(--primary); display: inline-grid; place-items: center; color: #fff; font-weight: 800; }
.list { display: grid; gap: 10px; }
.list li { display: flex; gap: 10px; align-items: flex-start; }

/* Depoimentos */
.testimonial { border-left: 4px solid var(--primary); padding: 12px 16px; background: var(--surface); border-radius: 8px; }

/* FAQ */
details { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--surface); }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 600; }

/* Rodapé */
.site-footer { border-top: 1px solid var(--border); background: var(--bg); padding: 28px 0; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; color: var(--muted); }

/* Botão voltar ao topo */
#backToTop { position: fixed; right: 18px; bottom: 18px; padding: 10px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); box-shadow: var(--shadow-sm); display: none; }
#backToTop[data-show="true"] { display: inline-flex; }

/* Banner e painel de cookies */
.cookie-banner { position: fixed; inset: auto 12px 12px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px; box-shadow: var(--shadow-md); display: grid; gap: 10px; max-width: 720px; margin-left: auto; margin-right: auto; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 14px; }

.cookie-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: none; }
.cookie-modal { position: fixed; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: min(680px, 92vw); background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 16px; box-shadow: var(--shadow-md); display: none; }
.cookie-modal[data-open="true"], .cookie-modal-backdrop[data-open="true"] { display: block; }
.prefs { display: grid; gap: 10px; }
.pref-item { display: grid; gap: 4px; border: 1px dashed var(--border); padding: 10px; border-radius: 10px; }
.pref-item label { font-weight: 600; }
.pref-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }

/* Acessibilidade extra */
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: static; width: auto; height: auto; background: var(--accent); color: #003; padding: 6px 10px; border-radius: 8px; }

/* Animações sutis (IntersectionObserver) */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease; }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}