/* ==========================================================================
   LICAM — Liga Carnavalesca de Marabá
   Paleta tirada da própria logo (verde do aro, dourado dos pandeiros,
   preto do traço, branco do fundo). Tratamento editorial e enxuto —
   pensado para um site de transparência, não para uma landing de venda.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Work+Sans:wght@400;500;600&display=swap");

:root {
  --forest-dark: #0a5c39;
  --forest: #0e7a4c;
  --forest-bright: #14a66b;
  --gold: #e8a415;
  --gold-bright: #ffda00;
  --ink: #14161a;
  --paper: #faf7ef;
  --paper-alt: #f1ece0;
  --white: #ffffff;
  --line: rgba(20, 22, 26, 0.14);
  --line-soft: rgba(20, 22, 26, 0.08);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, "Segoe UI", sans-serif;

  --container: 1080px;
  --radius: 6px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

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

:focus-visible {
  outline: 3px solid var(--forest-bright);
  outline-offset: 2px;
}

/* -------------------- Cabeçalho -------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand img { width: 44px; height: 44px; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.68rem;
  color: #555;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a.active {
  border-bottom-color: var(--gold);
}

.nav .nav-admin-link {
  padding: 8px 18px;
  font-size: 0.86rem;
  margin-left: 4px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 16px;
    display: none;
  }
  .nav.open { display: flex; }
}

/* -------------------- Hero -------------------- */

.hero {
  position: relative;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 218, 0, 0.16) 0, transparent 40%),
    radial-gradient(circle at 82% 70%, rgba(255, 218, 0, 0.1) 0, transparent 38%),
    linear-gradient(160deg, var(--forest-dark), var(--forest) 65%);
  color: var(--paper);
  overflow: hidden;
}

.hero .container {
  padding-top: 84px;
  padding-bottom: 84px;
  max-width: 720px;
}

.hero .eyebrow {
  color: var(--gold-bright);
  font-weight: 600;
  font-size: 0.85rem;
  margin: 0 0 14px;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  color: var(--white);
}

.hero p.lead {
  font-size: 1.1rem;
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.88);
}

.hero .actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* -------------------- Botões -------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.btn-primary:hover { background: var(--gold-bright); }

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); }

.btn-quiet {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-quiet:hover { border-color: var(--ink); }

.btn-danger {
  background: transparent;
  border-color: #b3311c;
  color: #b3311c;
}
.btn-danger:hover { background: #b3311c; color: var(--white); }

.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* -------------------- Seções gerais -------------------- */

.section {
  padding: 64px 0;
}

.section-alt { background: var(--paper-alt); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }

.section-head p { color: #4a4a4a; max-width: 60ch; margin: 6px 0 0; }

.link-more {
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid var(--gold);
  white-space: nowrap;
}

/* -------------------- Missão / Ações / Valores -------------------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.pillar {
  border-top: 3px solid var(--forest);
  padding-top: 18px;
}

.pillar h3 { font-size: 1.2rem; }

.pillar p { color: #3c3c3c; }

@media (max-width: 780px) {
  .pillars { grid-template-columns: 1fr; }
}

/* -------------------- Lista tipo "registro" (transparência) -------------------- */

.filtros {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.filtros button {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: #555;
  cursor: pointer;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.filtros button.active,
.filtros button:hover {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

.registro-lista { border-top: 1px solid var(--line); }

.registro-item {
  display: grid;
  grid-template-columns: 120px 140px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.registro-item .data { color: #666; font-size: 0.9rem; }

.registro-item .categoria {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--forest-dark);
}

.registro-item .categoria::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}

.registro-item .titulo { font-weight: 600; }
.registro-item .titulo span {
  display: block;
  font-weight: 400;
  font-size: 0.88rem;
  color: #666;
  margin-top: 2px;
}

.registro-item a.abrir {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 2px solid var(--gold);
}

@media (max-width: 680px) {
  .registro-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.estado-vazio {
  padding: 48px 0;
  text-align: center;
  color: #666;
}

/* -------------------- Galeria -------------------- */

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.galeria-item figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.galeria-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.galeria-item figcaption {
  padding: 10px 12px 14px;
  font-size: 0.9rem;
}

.galeria-item figcaption strong { display: block; margin-bottom: 2px; }
.galeria-item figcaption span { color: #666; font-size: 0.84rem; }

/* -------------------- Paginação -------------------- */

.paginacao {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
  font-size: 0.9rem;
  color: #555;
}

/* -------------------- Rodapé -------------------- */

.site-footer {
  background: var(--forest-dark);
  color: rgba(250, 247, 239, 0.92);
  padding: 44px 0 26px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-grid h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 10px;
}

.footer-grid p, .footer-grid a {
  font-size: 0.9rem;
  color: rgba(250, 247, 239, 0.8);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
  font-size: 0.82rem;
  color: rgba(250, 247, 239, 0.65);
}

.footer-bottom a { text-decoration: underline; }

/* -------------------- Formulário de login -------------------- */

.login-wrap {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  background: var(--white);
}

.login-card img { width: 56px; height: 56px; margin: 0 auto 16px; }

.login-card h1 {
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 4px;
}

.login-card .sub {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* -------------------- Campos de formulário (usados no site e no admin) -------------------- */

.campo { margin-bottom: 18px; }

.campo label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.campo input,
.campo select,
.campo textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

.campo textarea { resize: vertical; min-height: 90px; }

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  border-color: var(--forest);
}

.mensagem {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.mensagem.erro { background: #fbe7e4; color: #93291e; }
.mensagem.sucesso { background: #e5f4ec; color: var(--forest-dark); }

/* -------------------- Utilidades -------------------- */

.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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }