/* ============================================================
   ASILO SÃO VICENTE DE PAULO – CSS PÚBLICO
   Paleta: Azul institucional + Branco + Dourado sutil
   ============================================================ */

:root {
  --azul:        #1a4a8a;
  --azul-escuro: #0f2d5c;
  --azul-claro:  #2563a8;
  --dourado:     #b8972a;
  --cinza-bg:    #f5f6f8;
  --cinza-borda: #dde0e7;
  --texto:       #2c3347;
  --texto-leve:  #5a6278;
  --branco:      #ffffff;
  --sombra:      0 2px 12px rgba(26,74,138,.12);
  --radius:      10px;
  --font-body:   'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--texto);
  background: var(--cinza-bg);
  line-height: 1.65;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Header ─────────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--azul-escuro);
  color: var(--branco);
  padding: 0.9rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-brand { display: flex; align-items: center; gap: 0.9rem; }

.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-title { font-size: 1.05rem; font-weight: 700; line-height: 1.2; }
.header-subtitle { font-size: 0.78rem; opacity: 0.75; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: background .2s, color .2s;
}
.nav-link:hover { background: rgba(255,255,255,.12); color: #fff; }

.nav-admin {
  border: 1px solid rgba(255,255,255,.3);
  margin-left: 0.5rem;
}
.nav-admin:hover { background: var(--dourado); border-color: var(--dourado); color: var(--azul-escuro); }

/* Dropdown de anos */
.nav-dropdown { position: relative; }
.nav-btn-dropdown {
  background: none;
  border: none;
  color: rgba(255,255,255,.85);
  cursor: pointer;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: background .2s;
}
.nav-btn-dropdown:hover { background: rgba(255,255,255,.12); color: #fff; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--branco);
  border-radius: var(--radius);
  box-shadow: var(--sombra);
  min-width: 120px;
  overflow: hidden;
  z-index: 200;
}
.nav-dropdown:hover .dropdown-menu { display: block; }

.dropdown-item {
  display: block;
  padding: 0.55rem 1rem;
  color: var(--texto);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background .15s;
}
.dropdown-item:hover { background: var(--cinza-bg); }

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--azul-escuro) 0%, var(--azul) 100%);
  color: var(--branco);
  padding: 4rem 0;
  text-align: center;
}

.hero-symbol {
  font-size: 2.5rem;
  color: var(--dourado);
  margin-bottom: 1rem;
  display: block;
}

.hero-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.hero-desc {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero-action-label { font-size: 0.85rem; opacity: 0.7; margin-bottom: 0.6rem; display: block; }
.hero-anos { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }

.btn-ano {
  background: rgba(255,255,255,.12);
  color: var(--branco);
  border: 1px solid rgba(255,255,255,.35);
  padding: 0.45rem 1.1rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background .2s, border-color .2s;
}
.btn-ano:hover { background: var(--dourado); border-color: var(--dourado); color: var(--azul-escuro); }

/* ── Seção de informações ───────────────────────────────────────────────────── */
.info-section { padding: 3.5rem 0; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
}

.info-card {
  background: var(--branco);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--sombra);
  border-top: 3px solid var(--azul);
}

.info-card-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }
.info-card-title { font-size: 1rem; font-weight: 700; color: var(--azul-escuro); margin-bottom: 0.5rem; }
.info-card-text { font-size: 0.92rem; color: var(--texto-leve); line-height: 1.7; }

/* ── Seção anos ─────────────────────────────────────────────────────────────── */
.documentos-section {
  padding: 3rem 0 4rem;
  background: var(--branco);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--azul-escuro);
  margin-bottom: 0.5rem;
}

.section-desc {
  color: var(--texto-leve);
  margin-bottom: 2rem;
}

.anos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.ano-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--cinza-bg);
  border: 2px solid var(--cinza-borda);
  border-radius: var(--radius);
  padding: 1.25rem 2rem;
  text-decoration: none;
  color: var(--texto);
  transition: border-color .2s, box-shadow .2s, background .2s;
  min-width: 120px;
}
.ano-card:hover {
  border-color: var(--azul);
  background: var(--branco);
  box-shadow: var(--sombra);
}

.ano-numero { font-size: 1.6rem; font-weight: 700; color: var(--azul); }
.ano-label  { font-size: 0.78rem; color: var(--texto-leve); margin-top: 0.2rem; }

/* ── Página de documentos ───────────────────────────────────────────────────── */
.page-hero {
  background: var(--azul-escuro);
  color: var(--branco);
  padding: 2rem 0;
}

.breadcrumb { font-size: 0.82rem; opacity: 0.7; margin-bottom: 0.5rem; }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.page-title { font-size: 1.75rem; font-weight: 700; }
.page-desc  { opacity: 0.8; margin-top: 0.25rem; }

.docs-section { padding: 2.5rem 0 4rem; }

.mes-bloco {
  background: var(--branco);
  border-radius: var(--radius);
  box-shadow: var(--sombra);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.mes-header {
  background: var(--azul);
  color: var(--branco);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mes-titulo { font-size: 1rem; font-weight: 700; }
.mes-icone  { margin-right: 0.5rem; }
.mes-qtd    { background: rgba(255,255,255,.2); padding: 0.2rem 0.65rem; border-radius: 12px; font-size: 0.8rem; }

.docs-lista { padding: 0.5rem 0; }

.doc-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  text-decoration: none;
  color: var(--texto);
  border-bottom: 1px solid var(--cinza-borda);
  transition: background .15s;
}
.doc-item:last-child { border-bottom: none; }
.doc-item:hover { background: var(--cinza-bg); }

.doc-icone { font-size: 1.4rem; flex-shrink: 0; }

.doc-info { flex: 1; }
.doc-descricao { display: block; font-weight: 600; font-size: 0.95rem; }
.doc-obs       { display: block; font-size: 0.82rem; color: var(--texto-leve); margin-top: 0.15rem; }

.doc-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; }
.doc-tamanho { font-size: 0.78rem; color: var(--texto-leve); }
.doc-ver     { font-size: 0.82rem; color: var(--azul); font-weight: 600; }

/* ── Alertas e estados vazios ───────────────────────────────────────────────── */
.alert {
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  font-size: 0.93rem;
}
.alert-erro   { background: #fef2f2; color: #b91c1c; border-left: 4px solid #ef4444; }
.alert-sucesso{ background: #f0fdf4; color: #166534; border-left: 4px solid #22c55e; }

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--texto-leve);
}
.empty-icon { font-size: 3rem; margin-bottom: 0.75rem; }
.btn-voltar {
  display: inline-block;
  background: var(--azul);
  color: #fff;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 1rem;
  font-size: 0.9rem;
}
.btn-voltar:hover { background: var(--azul-escuro); }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--azul-escuro);
  color: rgba(255,255,255,.75);
  text-align: center;
  padding: 2rem 0;
  margin-top: auto;
}

.footer-cross { font-size: 1.5rem; color: var(--dourado); margin-bottom: 0.5rem; }
.footer-nome  { font-weight: 700; color: var(--branco); }
.footer-cidade{ font-size: 0.85rem; margin-top: 0.1rem; }
.footer-copy  { font-size: 0.78rem; opacity: 0.55; margin-top: 0.75rem; }

/* ── Responsivo ─────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .site-header .container { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .header-nav { flex-wrap: wrap; }
  .doc-meta { display: none; }
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: 20px;
  font-size: 0.88rem;
  margin-top: 1.5rem;
}