/* =====================================================================
   CRD QUENENA — folha de estilos
   Paleta: verdes, azul (ribeira), dourado, branco/creme.
   ===================================================================== */

:root {
  --green:        #1f7a4d;
  --green-dark:   #14532d;
  --green-soft:   #eaf5ee;
  --blue:         #2b7fb8;
  --blue-deep:    #1c5f8c;
  --gold:         #c8a032;
  --gold-soft:    #f6edd6;
  --cream:        #faf8f2;
  --paper:        #ffffff;
  --ink:          #22312a;
  --ink-soft:     #4f6157;
  --line:         #e6e2d6;
  --shadow:       0 10px 30px rgba(20, 83, 45, .10);
  --shadow-sm:    0 4px 14px rgba(20, 83, 45, .08);
  --radius:       18px;
  --radius-sm:    12px;
  --maxw:         1120px;
  --font-head:    "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 82px; }

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

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; color: var(--green-dark); font-weight: 600; }

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

section { padding: 86px 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 14px; }
.section-head p { font-size: 1.08rem; color: var(--ink-soft); margin: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: .98rem;
  cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { background: transparent; color: var(--green-dark); border-color: rgba(20,83,45,.25); }
.btn-ghost:hover { border-color: var(--green); background: var(--green-soft); }
.btn-gold { background: var(--gold); color: #3a2f0c; }
.btn-gold:hover { background: #b8912a; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 242, .88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 600; color: var(--green-dark); }
.brand img { width: 46px; height: 46px; }
.brand strong { font-size: 1.12rem; line-height: 1; }
.brand span { display: block; font-family: var(--font-body); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: .95rem; padding: 8px 14px; border-radius: 999px; transition: background .18s, color .18s; }
.nav-links a:hover { background: var(--green-soft); color: var(--green-dark); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2.5px; background: var(--green-dark); border-radius: 2px; margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(43,127,184,.14), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(31,122,77,.14), transparent 55%),
    var(--cream);
  padding: 84px 0 96px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 54px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-soft); color: #7a5f13;
  padding: 7px 15px; border-radius: 999px; font-weight: 600; font-size: .82rem;
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); margin: 0 0 18px; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 30em; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-figure { display: flex; justify-content: center; }
.hero-figure img {
  width: min(380px, 82vw); height: auto;
  filter: drop-shadow(0 24px 40px rgba(20,83,45,.22));
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

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

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--green-soft); color: var(--green); font-size: 1.5rem;
}
.card h3 { font-size: 1.25rem; margin: 0 0 8px; }
.card p { margin: 0; color: var(--ink-soft); }

/* ---------- O Clube ---------- */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.stat-row { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 28px; }
.stat b { font-family: var(--font-head); font-size: 2rem; color: var(--green); display: block; }
.stat span { font-size: .9rem; color: var(--ink-soft); }
.about p { color: var(--ink-soft); font-size: 1.05rem; }
.mission-note {
  border-left: 4px solid var(--gold);
  background: var(--gold-soft);
  padding: 18px 22px; border-radius: 0 12px 12px 0;
  font-family: var(--font-head); font-size: 1.2rem; color: var(--green-dark);
}

/* ---------- A Quenena ---------- */
.quenena { background: linear-gradient(180deg, var(--green-soft), var(--cream)); }
.quenena-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.quenena p { color: var(--ink-soft); font-size: 1.06rem; }
.factbox { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 4px; box-shadow: var(--shadow-sm); }
.factbox ul { list-style: none; margin: 0; padding: 0; }
.factbox li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.factbox li:last-child { border-bottom: 0; }
.factbox .k { font-size: 1.4rem; }
.factbox strong { display: block; color: var(--green-dark); }
.factbox small { color: var(--ink-soft); }

/* ---------- Eventos ---------- */
.event-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.event-media { position: relative; aspect-ratio: 16/10; background: var(--green-soft); overflow: hidden; }
.event-media img { width: 100%; height: 100%; object-fit: cover; }
.event-media .ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2.4rem; color: var(--green); background: repeating-linear-gradient(45deg, var(--green-soft), var(--green-soft) 12px, #e2f0e7 12px, #e2f0e7 24px); }
.event-date {
  position: absolute; top: 14px; left: 14px;
  background: var(--paper); border-radius: 12px; padding: 8px 12px; text-align: center;
  box-shadow: var(--shadow-sm); line-height: 1;
}
.event-date b { display: block; font-family: var(--font-head); font-size: 1.4rem; color: var(--green); }
.event-date span { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.event-body { padding: 22px 24px 26px; }
.event-body .tag { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.event-body h3 { font-size: 1.3rem; margin: 6px 0 8px; }
.event-body .where { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: .92rem; margin-bottom: 10px; }
.event-body p { margin: 0; color: var(--ink-soft); }
.badge-soon { display: inline-block; margin-left: 8px; background: var(--blue); color: #fff; font-size: .68rem; padding: 3px 9px; border-radius: 999px; vertical-align: middle; }

/* ---------- Órgãos sociais ---------- */
.board { background: var(--paper); }
.orgao { margin-bottom: 52px; }
.orgao:last-child { margin-bottom: 0; }
.orgao-title { text-align: center; font-size: 1.5rem; margin: 0 0 28px; }
.orgao-title::after { content: ""; display: block; width: 54px; height: 3px; background: var(--gold); border-radius: 2px; margin: 12px auto 0; }
.board-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.board-grid .board-card { flex: 0 1 210px; }
.board-card { text-align: center; }
.board-card h4 { font-size: 1.15rem; margin: 0 0 2px; }
.avatar {
  width: 108px; height: 108px; border-radius: 50%; margin: 0 auto 16px;
  object-fit: cover; border: 3px solid var(--gold-soft); background: var(--green-soft);
  display: grid; place-items: center;
  font-family: var(--font-head); font-size: 2rem; color: var(--green); font-weight: 600;
}
.board-card h3 { font-size: 1.2rem; margin: 0 0 2px; }
.board-card .role { color: var(--gold); font-weight: 600; font-size: .92rem; }

/* ---------- Galeria ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid figure { margin: 0; position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; cursor: pointer; background: var(--green-soft); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-grid figure:hover img { transform: scale(1.07); }
.gallery-grid .ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 1.8rem; color: var(--green); }
.gallery-grid figcaption {
  position: absolute; inset: auto 0 0 0; padding: 22px 12px 10px; color: #fff; font-size: .84rem;
  background: linear-gradient(transparent, rgba(20,83,45,.78)); opacity: 0; transition: opacity .25s;
}
.gallery-grid figure:hover figcaption { opacity: 1; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15,40,26,.92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox .close { position: absolute; top: 20px; right: 26px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; }
.lightbox .cap { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: #efeadd; font-size: .95rem; }

/* ---------- Contactos ---------- */
.contact { background: var(--green-dark); color: #eaf5ee; }
.contact h2, .contact h3 { color: #fff; }
.contact .eyebrow { color: var(--gold); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact p { color: #cfe3d6; }
.contact-methods { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.contact-methods a, .contact-methods li > div { display: flex; align-items: center; gap: 14px; color: #eaf5ee; }
.contact-methods .ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.1); display: grid; place-items: center; font-size: 1.3rem; }
.contact-methods small { display: block; color: #a9c9b5; }
.contact-methods a:hover strong { color: var(--gold); }

.form { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); padding: 26px; border-radius: var(--radius); }
.form label { display: block; font-size: .9rem; margin: 0 0 6px; color: #dcefe2; }
.form input, .form textarea {
  width: 100%; padding: 12px 14px; margin-bottom: 16px;
  border-radius: 10px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.95); color: var(--ink); font: inherit;
}
.form textarea { resize: vertical; min-height: 120px; }
.form .btn { width: 100%; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: #0f3a20; color: #bcd6c5; padding: 46px 0 28px; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 44px; height: 44px; }
.footer-brand strong { color: #fff; font-family: var(--font-head); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: #bcd6c5; font-size: .92rem; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 26px; padding-top: 20px; text-align: center; font-size: .84rem; color: #8fb59d; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .quenena-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 12px 20px 20px;
    gap: 2px; transform: translateY(-140%); transition: transform .3s ease; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle { display: block; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}
@media (max-width: 560px) {
  section { padding: 60px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .brand span { display: none; }
  .stat-row { gap: 22px; }
}

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

/* Reveal on scroll — melhoria progressiva.
   Sem JavaScript (ou se algo falhar) o conteúdo fica SEMPRE visível.
   A animação só é aplicada quando o JS está ativo (classe .js no <html>). */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
