/* ============================================================
   Página inicial — identidade Amazonia Social (site matriz)
   Usa as variáveis de style.css (--creme, --bronze, --serifa…)
   ============================================================ */
.pagina-home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.home-topo {
  padding: 1.75rem 1rem 0;
  text-align: center;
  line-height: 0;
}

.home-topo img {
  width: min(210px, 52vw);
  height: auto;
}

.home {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 24px 3rem;
}

.rotulo {
  margin: 0 0 .35rem;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bronze);
}

.home-cabecalho {
  text-align: center;
  padding-bottom: 1.75rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(138, 90, 52, .3);
}

.home-cabecalho h1 {
  margin: 0;
  font-family: var(--serifa);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.1;
  color: var(--bronze-escuro);
}

.home-cabecalho p:last-child {
  margin: .75rem auto 0;
  max-width: 34rem;
  font-size: .95rem;
}

/* ---------- Instituição dos documentos ---------- */
.instituicoes {
  margin-bottom: 2.25rem;
  text-align: center;
}

.inst-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: .75rem;
}

.inst-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
  max-width: 360px;
  padding: 14px 18px;
  border: 1.5px solid rgba(138, 90, 52, .25);
  border-radius: 16px;
  background: rgba(255, 253, 249, .7);
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}

.inst-card:hover {
  border-color: var(--bronze);
}

.inst-card:focus-visible {
  outline: 2px solid var(--bronze-escuro);
  outline-offset: 3px;
}

.inst-card[aria-checked="true"] {
  border-color: var(--bronze);
  background: #fff;
  box-shadow: 0 8px 24px rgba(94, 59, 32, .12);
}

.inst-card img {
  width: 64px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.inst-card b {
  display: block;
  font-size: .95rem;
  color: var(--bronze-escuro);
}

.inst-card small {
  display: block;
  font-size: .75rem;
  line-height: 1.35;
  color: var(--muted);
}

.inst-card .marcador {
  margin-left: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(138, 90, 52, .45);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.inst-card[aria-checked="true"] .marcador {
  background: var(--bronze);
  border-color: var(--bronze);
}

.inst-card[aria-checked="true"] .marcador::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FFF9F1;
}

.inst-nota {
  margin: .85rem auto 0;
  max-width: 36rem;
  font-size: .8rem;
  color: var(--muted);
}

/* ---------- Busca + cards dos modelos ---------- */
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.toolbar input {
  flex: 1;
  max-width: 360px;
  font: inherit;
  font-size: 14px;
  padding: 10px 18px;
  border: 1.5px solid rgba(138, 90, 52, .3);
  border-radius: 999px;
  background: #fffdf9;
  color: var(--texto);
}

.toolbar input:focus {
  outline: none;
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px rgba(138, 90, 52, .15);
}

.count {
  font-size: 13px;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.sheet-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}

a.sheet-card:hover {
  transform: translateY(-3px);
  border-color: var(--bronze-claro);
  box-shadow: 0 12px 32px rgba(94, 59, 32, .14);
}

a.sheet-card:focus-visible {
  outline: 2px solid var(--bronze-escuro);
  outline-offset: 3px;
}

.sheet-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--marca-suave);
  color: var(--bronze);
  margin-bottom: 6px;
}

.sheet-cat {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--salvia);
}

.sheet-card h2 {
  margin: 0;
  font-family: var(--serifa);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.15;
  color: var(--bronze-escuro);
}

.sheet-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.sheet-cta {
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bronze);
}

.sheet-card.soon {
  border-style: dashed;
  box-shadow: none;
  background: rgba(255, 253, 249, .5);
}

.sheet-card.soon .sheet-icon {
  background: #efe9e0;
  color: var(--muted);
}

.sheet-card.soon .sheet-cat,
.sheet-card.soon .sheet-cta {
  color: var(--muted);
}

.empty {
  color: var(--muted);
  text-align: center;
  padding: 32px;
}

/* ---------- Rodapé (igual ao site matriz) ---------- */
.rodape {
  padding: 1.25rem 1.5rem 1.75rem;
  text-align: center;
  font-size: .8rem;
  color: rgba(74, 53, 39, .7);
}

.rodape p {
  margin: 0;
}

.endereco {
  margin: 0 0 .6rem;
  font-style: normal;
  line-height: 1.7;
}

.endereco a {
  color: var(--bronze-escuro);
  text-decoration: none;
  border-bottom: 1px solid rgba(138, 90, 52, .3);
}

.endereco a:hover {
  border-bottom-color: var(--bronze);
}

@media (max-width: 640px) {
  .home {
    padding: 1rem 16px 2.5rem;
  }

  .inst-card {
    min-width: 0;
    width: 100%;
  }

  .toolbar input {
    max-width: none;
  }
}
