/* =========================================================
   Portal Informativo Siga Fácil SP (Independente)
   Estilo: moderno, limpo, profissional
   ========================================================= */

:root {
  --azul: #0b5fff;
  --azul-escuro: #0a2a66;
  --verde: #0f9d58;
  --verde-escuro: #0b7a43;
  --tinta: #16202c;
  --cinza: #5b6776;
  --cinza-claro: #eef2f7;
  --cinza-borda: #dde3ea;
  --branco: #ffffff;
  --fundo: #f7f9fc;
  --amarelo-aviso: #fff4d6;
  --amarelo-borda: #f0c95a;
  --vermelho: #d23b3b;
  --radius: 12px;
  --sombra: 0 6px 24px rgba(16, 32, 52, 0.08);
  --sombra-sm: 0 2px 8px rgba(16, 32, 52, 0.06);
  --container: 1140px;
  --fonte: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--fonte);
  color: var(--tinta);
  background: var(--fundo);
  line-height: 1.65;
  font-size: 17px;
}

img { max-width: 100%; display: block; }

a { color: var(--azul); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; color: var(--azul-escuro); margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }
.section--alt { background: var(--branco); }
.section__lead { max-width: 760px; color: var(--cinza); font-size: 1.08rem; }
.center { text-align: center; }
.muted { color: var(--cinza); }

/* ---------- Barra de aviso (não oficial) ---------- */
.topbar {
  background: var(--azul-escuro);
  color: #dce6ff;
  font-size: .82rem;
  text-align: center;
  padding: 7px 16px;
  line-height: 1.4;
}
.topbar strong { color: #fff; }
.topbar a { color: #fff; text-decoration: underline; }

/* ---------- Cabeçalho ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cinza-borda);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--azul), var(--verde));
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 1.1rem;
  flex-shrink: 0;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 800; color: var(--azul-escuro); font-size: 1.05rem; }
.brand__tag { font-size: .68rem; color: var(--cinza); text-transform: uppercase; letter-spacing: .04em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--tinta);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 500;
}
.nav a:hover { background: var(--cinza-claro); text-decoration: none; }
.nav a.is-active { color: var(--azul); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--cinza-borda);
  border-radius: 8px; padding: 8px 10px; cursor: pointer;
  font-size: 1.1rem;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--azul); color: #fff; box-shadow: var(--sombra-sm); }
.btn--primary:hover { background: #0a52e0; }
.btn--ghost { background: #fff; color: var(--azul); border-color: var(--cinza-borda); }
.btn--ghost:hover { border-color: var(--azul); }
.btn--green { background: var(--verde); color: #fff; }
.btn--green:hover { background: var(--verde-escuro); }
.btn--lg { padding: 15px 30px; font-size: 1.08rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, rgba(15,157,88,.14), transparent),
              linear-gradient(180deg, #f1f6ff 0%, var(--fundo) 100%);
  padding: 72px 0 56px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  background: #e7f0ff; color: var(--azul);
  font-weight: 700; font-size: .8rem;
  padding: 6px 14px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 18px;
}
.hero h1 { margin-bottom: .4em; }
.hero p.lead { font-size: 1.18rem; color: var(--cinza); margin-bottom: 28px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__card {
  background: #fff; border-radius: var(--radius); padding: 28px;
  box-shadow: var(--sombra); border: 1px solid var(--cinza-borda);
}
.hero__card h3 { display: flex; align-items: center; gap: 8px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 8px 0 8px 30px; position: relative; color: var(--tinta); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  color: var(--verde); font-weight: 800;
}

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--cinza-borda);
  border-radius: var(--radius); padding: 26px;
  box-shadow: var(--sombra-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sombra); }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: #eaf1ff; color: var(--azul);
  display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 14px;
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--cinza); margin: 0; font-size: .98rem; }

/* numbered steps */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step {
  display: grid; grid-template-columns: 52px 1fr; gap: 18px;
  background: #fff; border: 1px solid var(--cinza-borda);
  border-radius: var(--radius); padding: 22px;
}
.step__num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--azul); color: #fff; font-weight: 800;
  display: grid; place-items: center; font-size: 1.2rem;
}
.step h3 { margin-bottom: .25em; }
.step p { margin: 0; color: var(--cinza); }

/* ---------- Caixa de destaque / aviso ---------- */
.callout {
  border-radius: var(--radius);
  padding: 20px 22px;
  border: 1px solid var(--cinza-borda);
  background: #fff;
  display: flex; gap: 14px; align-items: flex-start;
}
.callout__icon { font-size: 1.4rem; flex-shrink: 0; }
.callout--warn { background: var(--amarelo-aviso); border-color: var(--amarelo-borda); }
.callout--info { background: #eaf1ff; border-color: #c4d8ff; }
.callout--danger { background: #fdeaea; border-color: #f3b6b6; }
.callout p:last-child { margin-bottom: 0; }
.callout h3 { margin-bottom: .3em; font-size: 1.1rem; }

/* ---------- Tabela ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--cinza-borda); }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--cinza-borda); font-size: .96rem; }
th { background: var(--cinza-claro); color: var(--azul-escuro); font-weight: 700; }
tr:last-child td { border-bottom: none; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item { border: 1px solid var(--cinza-borda); border-radius: var(--radius); background: #fff; margin-bottom: 12px; overflow: hidden; }
.faq__q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 18px 20px; font-size: 1.05rem; font-weight: 600; color: var(--azul-escuro);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: inherit;
}
.faq__q:hover { background: var(--cinza-claro); }
.faq__q .sign { font-size: 1.4rem; color: var(--azul); transition: transform .2s ease; flex-shrink: 0; }
.faq__item.open .faq__q .sign { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq__a-inner { padding: 0 20px 18px; color: var(--cinza); }
.faq__item.open .faq__a { max-height: 600px; }

/* ---------- Formulário ---------- */
.form-card {
  background: #fff; border: 1px solid var(--cinza-borda); border-radius: var(--radius);
  box-shadow: var(--sombra); padding: 32px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field .req { color: var(--vermelho); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--cinza-borda);
  border-radius: 10px; font-size: 1rem; font-family: inherit; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(11,95,255,.15);
}
.field textarea { resize: vertical; min-height: 110px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--cinza); }
.consent input { width: auto; margin-top: 4px; flex-shrink: 0; }
.form-error { color: var(--vermelho); font-size: .85rem; margin-top: 4px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--vermelho); }
.field.invalid .form-error { display: block; }
.form-success {
  display: none; background: #e7f7ee; border: 1px solid #b6e3c8;
  color: var(--verde-escuro); padding: 16px; border-radius: 10px; margin-bottom: 18px;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--azul-escuro), var(--azul));
  color: #fff; border-radius: 18px; padding: 44px;
  text-align: center;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #dbe7ff; max-width: 620px; margin: 0 auto 24px; }

/* ---------- Rodapé ---------- */
.footer { background: var(--azul-escuro); color: #c8d4ec; padding: 56px 0 24px; font-size: .92rem; }
.footer a { color: #c8d4ec; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer__disclaimer {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; padding: 16px; font-size: .85rem; line-height: 1.6; color: #b9c6e0;
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: 36px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .85rem; color: #9fb0d0;
}

/* ---------- Página: cabeçalho interno ---------- */
.page-head {
  background: linear-gradient(180deg, #eef4ff, var(--fundo));
  padding: 48px 0 36px; border-bottom: 1px solid var(--cinza-borda);
}
.breadcrumb { font-size: .85rem; color: var(--cinza); margin-bottom: 12px; }
.breadcrumb a { color: var(--cinza); }

/* conteúdo legal */
.legal { max-width: 820px; }
.legal h2 { margin-top: 1.6em; font-size: 1.4rem; }
.legal h3 { margin-top: 1.2em; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal__updated { color: var(--cinza); font-size: .9rem; font-style: italic; }

/* ---------- Banner de cookies ---------- */
.cookie-bar {
  position: fixed; bottom: 16px; left: 16px; right: 16px;
  max-width: 760px; margin: 0 auto;
  background: #fff; border: 1px solid var(--cinza-borda);
  box-shadow: var(--sombra); border-radius: var(--radius);
  padding: 18px 20px; z-index: 100;
  display: none; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: space-between;
}
.cookie-bar.show { display: flex; }
.cookie-bar p { margin: 0; font-size: .88rem; color: var(--cinza); flex: 1 1 320px; }
.cookie-bar .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-bar .btn { padding: 9px 18px; font-size: .9rem; }

/* ---------- Responsivo ---------- */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--cinza-borda);
    padding: 8px; box-shadow: var(--sombra);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; border-radius: 8px; }
  .nav-toggle { display: inline-block; }
  .header { position: sticky; }
}
@media (max-width: 560px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .cta-banner { padding: 30px 22px; }
  body { font-size: 16px; }
}
