/* =========================================================================
   COFF — Clube Ornitófilo Figueira da Foz
   Folha de estilos única. Sem build, sem dependências.
   ------------------------------------------------------------------------
   Cor
     verde       #2F8A5B  base (mais fresco)
     verde ink   #21543A  texto forte / rodapé
     sage        #E8F2EB  faixas suaves
     ouro        #C79A3B  acento — SÓ nos destaques (exposição / anilhas)
   Tipografia: Manrope (sans-serif) em toda a página.
   ========================================================================= */

:root {
  --green:      #2F8A5B;
  --green-ink:  #21543A;
  --green-soft: #E8F2EB;
  --gold:       #C79A3B;
  --gold-deep:  #A87E27;
  --ink:        #263028;
  --muted:      #5E6960;
  --paper:      #FBFBF8;
  --line:       #E3E6DF;
  --white:      #ffffff;

  --wrap: 1120px;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(33,84,58,.05), 0 10px 28px rgba(33,84,58,.06);

  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 2px; }
a:hover { color: var(--gold-deep); }

h1, h2, h3 {
  font-family: var(--font);
  color: var(--green-ink);
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.45rem, 3.4vw, 1.95rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.18rem; font-weight: 700; }
p  { margin: 0 0 1rem; max-width: 68ch; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 3px; }

/* =========================================================================
   Cabeçalho + navegação
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.1) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 74px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand__logo { width: 50px; height: 50px; object-fit: contain; }
.brand__mono {
  display: none; width: 50px; height: 50px; border-radius: 9px;
  background: var(--green); color: var(--white);
  align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; letter-spacing: .02em;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.06; }
.brand__text strong { color: var(--green-ink); font-size: 1.08rem; font-weight: 800; letter-spacing: -.01em; }
.brand__text em { font-style: normal; color: var(--muted); font-size: .8rem; font-weight: 600; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { text-decoration: none; color: var(--green-ink); font-weight: 600;
  font-size: .95rem; padding: .55rem .7rem; border-radius: 8px; }
.nav a:hover { background: var(--green-soft); }
.nav a[aria-current="page"] { color: var(--green); box-shadow: inset 0 -2px 0 var(--gold); }

.nav-toggle { display: none; border: 1px solid var(--line); background: var(--white);
  width: 44px; height: 44px; border-radius: 9px; cursor: pointer;
  align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--green-ink); position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top:  6px; }

/* =========================================================================
   Hero (página inicial) — texto + cartaz
   ========================================================================= */
.hero { padding: 3rem 0 1.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center; }
.hero .eyebrow { color: var(--gold-deep); font-weight: 700; font-size: .9rem; margin-bottom: .5rem; }
.hero h1 { max-width: 16ch; }
.hero .lede { font-size: 1.12rem; color: var(--muted); max-width: 52ch; }

/* Moldura do cartaz da exposição (com placeholder gracioso) */
.hero-poster { position: relative; }
.poster-frame {
  border-radius: var(--radius); overflow: hidden; background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
}
.poster-frame img { width: 100%; height: 100%; object-fit: cover; }
/* fundo-placeholder (visível se a imagem falhar) */
.poster-frame {
  background:
    radial-gradient(120% 90% at 50% 0%, var(--green-soft), transparent 60%),
    var(--white);
}
.poster-ph { position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: .6rem; padding: 1.5rem;
  color: var(--muted); }
.poster-ph svg { width: 46px; height: 46px; color: var(--green); opacity: .8; }
.poster-ph b { color: var(--green-ink); }
.poster-cap { margin-top: .7rem; font-size: .9rem; color: var(--muted); }
.poster-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--gold); color: var(--green-ink); font-weight: 700;
  font-size: .78rem; padding: .3rem .6rem; border-radius: 999px;
}

/* =========================================================================
   Destaques (Exposição + Anilhas)
   ========================================================================= */
.destaques { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 2rem 0 1rem; }
.card-destaque {
  position: relative; background: var(--green); color: var(--white);
  border-radius: var(--radius); padding: 1.6rem; border-top: 4px solid var(--gold);
  display: flex; flex-direction: column; box-shadow: var(--shadow); text-decoration: none;
  transition: transform .18s ease;
}
.card-destaque:hover { color: var(--white); transform: translateY(-3px); }
.card-destaque .d-icon { width: 40px; height: 40px; margin-bottom: .8rem; color: var(--gold); }
.card-destaque .kicker { color: var(--gold); font-weight: 700; font-size: .78rem;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: .3rem; }
.card-destaque h2 { color: var(--white); font-size: 1.5rem; margin-bottom: .3rem; }
.card-destaque p  { color: rgba(255,255,255,.85); margin-bottom: 1.2rem; }
.card-destaque .go { margin-top: auto; align-self: flex-start; background: var(--gold);
  color: var(--green-ink); font-weight: 700; padding: .6rem 1.1rem; border-radius: 8px; }
.card-destaque:hover .go { background: #d9ad4c; }

/* faixa de aviso */
.aviso { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 10px; padding: .9rem 1.1rem; margin: 1.5rem 0; }
.aviso b { color: var(--green-ink); }
.aviso a { font-weight: 600; }

/* =========================================================================
   Secções genéricas
   ========================================================================= */
.section { padding: 3rem 0; }
.section--sage { background: var(--green-soft); }

.page-head { padding: 2.5rem 0 1.5rem; border-bottom: 1px solid var(--line); }
.page-head .eyebrow { color: var(--gold-deep); font-weight: 700; font-size: .85rem; }

.prose h3 { margin-top: 1.6rem; color: var(--green); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .3rem; }

.grid { display: grid; gap: 1rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.3rem; }
.card h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.card .name { color: var(--ink); }

.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.person { background: var(--white); border: 1px solid var(--line); border-radius: 9px; padding: .85rem 1rem; }
.person .role { display: block; color: var(--gold-deep); font-weight: 700; font-size: .72rem;
  letter-spacing: .05em; text-transform: uppercase; margin-bottom: .1rem; }
.person .name { color: var(--green-ink); font-weight: 700; }

.group-title { color: var(--green); font-size: 1.15rem; font-weight: 800;
  margin: 1.8rem 0 .8rem; padding-bottom: .3rem; border-bottom: 2px solid var(--gold); display: inline-block; }

/* documentos (PDF) */
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.doc { display: flex; align-items: center; gap: .9rem; background: var(--white);
  border: 1px solid var(--line); border-radius: 10px; padding: .85rem 1rem;
  text-decoration: none; color: var(--ink); }
.doc:hover { border-color: var(--gold); color: var(--green-ink); box-shadow: var(--shadow); }
.doc__icon { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 8px;
  background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; }
.doc__icon svg { width: 20px; height: 20px; }
.doc__label { display: flex; flex-direction: column; line-height: 1.25; }
.doc__label b { color: var(--green-ink); }
.doc__label small { color: var(--muted); }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.4rem; }
.panel h3 { color: var(--green); }
.data-line { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0;
  border-bottom: 1px dashed var(--line); }
.data-line:last-child { border-bottom: 0; }
.data-line span { color: var(--muted); }
.data-line b { color: var(--green-ink); }
.iban { font-weight: 700; letter-spacing: .02em; background: var(--green-soft); color: var(--green-ink);
  padding: .6rem .8rem; border-radius: 8px; display: inline-block; }

.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; align-items: start; }

.poster { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow); }

.btn { display: inline-block; text-decoration: none; font-weight: 700; background: var(--green);
  color: var(--white); padding: .7rem 1.3rem; border-radius: 8px; }
.btn:hover { background: var(--green-ink); color: var(--white); }
.btn--gold { background: var(--gold); color: var(--green-ink); }
.btn--gold:hover { background: var(--gold-deep); color: var(--white); }

/* =========================================================================
   Faixa "Filiado na FONP"
   ========================================================================= */
.fonp { border-top: 1px solid var(--line); background: var(--white); }
.fonp-inner { display: flex; align-items: center; gap: 1rem; justify-content: center;
  padding: 1.4rem 0; flex-wrap: wrap; text-align: center; }
.fonp-inner img { width: 46px; height: auto; }
.fonp-inner p { margin: 0; color: var(--muted); }
.fonp-inner b { color: var(--green-ink); }

/* =========================================================================
   Rodapé
   ========================================================================= */
.site-footer { background: var(--green-ink); color: rgba(255,255,255,.82); margin-top: 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  flex-wrap: wrap; padding: 1.6rem 0; }
.site-footer a { color: #cfe6d7; }
.site-footer .foot-brand { color: var(--white); font-weight: 800; }
.site-footer small { color: rgba(255,255,255,.6); }

/* =========================================================================
   Responsivo
   ========================================================================= */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero-poster { max-width: 360px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav { position: absolute; top: 74px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line);
    padding: .5rem 20px 1rem; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: .8rem .6rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { box-shadow: none; background: var(--green-soft); }
  .destaques { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .grid--3, .people { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .grid--3, .grid--2, .people { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* =========================================================================
   Arquivo de exposições (blocos expansíveis, sem JS)
   ========================================================================= */
.arquivo { display: grid; gap: .6rem; margin-top: 1.2rem; }
.edicao { border: 1px solid var(--line); border-radius: 10px; background: var(--white); overflow: hidden; }
.edicao > summary { list-style: none; cursor: pointer; display: flex; align-items: center;
  gap: .8rem; padding: .9rem 1.1rem; }
.edicao > summary::-webkit-details-marker { display: none; }
.edicao > summary:hover { background: var(--green-soft); }
.ed-num { flex: 0 0 auto; background: var(--green); color: #fff; font-weight: 800;
  border-radius: 7px; padding: .2rem .5rem; font-size: .82rem; }
.ed-title { font-weight: 700; color: var(--green-ink); }
.ed-meta { color: var(--muted); font-size: .88rem; margin-left: auto; }
.ed-chev { flex: 0 0 auto; width: 18px; height: 18px; color: var(--muted); transition: transform .2s ease; }
.edicao[open] .ed-chev { transform: rotate(180deg); }
.edicao[open] > summary { border-bottom: 1px solid var(--line); }
.edicao-body { padding: 1.2rem 1.1rem; display: grid; grid-template-columns: 150px 1fr; gap: 1.3rem; align-items: start; }
.ed-poster { display: block; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  background: var(--green-soft); min-height: 90px; }
.ed-poster img { width: 100%; display: block; }
.ed-docs h4 { margin: .2rem 0 .5rem; color: var(--green); font-size: .95rem; font-weight: 700; }
.ed-docs h4 + .docs { margin-bottom: 1rem; }
.ed-local { color: var(--muted); font-size: .9rem; margin: 0 0 .8rem; }
.docs--tight { gap: .35rem; }
.docs--tight .doc { padding: .5rem .7rem; }
.docs--tight .doc__icon { width: 30px; height: 30px; }
.docs--tight .doc__label small { font-size: .78rem; }

@media (max-width: 620px) {
  .edicao-body { grid-template-columns: 1fr; }
  .ed-poster { max-width: 180px; }
  .ed-meta { display: none; }
}
