*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold-50:  #FAEEDA;
  --gold-100: #FAC775;
  --gold-200: #EF9F27;
  --gold-400: #BA7517;
  --gold-600: #854F0B;
  --gold-800: #633806;
  --gold-900: #412402;
  --gray-50:  #F1EFE8;
  --gray-100: #D3D1C7;
  --gray-400: #888780;
  --gray-600: #5F5E5A;
  --text:     #1a1a18;
  --text-muted: #5a5a55;
  --bg:       #ffffff;
  --border:   rgba(90,90,85,0.15);
  --border-md:rgba(90,90,85,0.28);
  --r-md: 8px;
  --r-lg: 12px;
}

html { scroll-behavior: smooth; }
body { font-family: 'EB Garamond', Georgia, serif; color: var(--text); background: var(--bg); line-height: 1.6; }

/* ===== NAV PRINCIPAL (linha superior) ===== */
.main-nav {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem; height: 60px;
  border-bottom: 1px solid rgba(186,117,23,0.22);
  background: rgba(8,3,0,0.97); position: sticky; top: 0; z-index: 100;
}
.main-nav .nav-logo { display: flex; align-items: center; text-decoration: none; margin-left: -10px; }
.main-nav .nav-logo-img { height: 44px; width: auto; display: block; }
.main-nav .nav-links { display: flex; gap: 24px; }
.main-nav .nav-links a {
  font-family: 'EB Garamond', serif; font-size: 14px; font-weight: 700;
  letter-spacing: 1px; color: #ffffff; text-decoration: none;
  text-transform: uppercase; white-space: nowrap; transition: color .2s;
}
.main-nav .nav-links a:hover { color: #EF9F27; }

/* ===== SUB-NAV (linha inferior) ===== */
.sub-nav {
  width: 100%; background: var(--gold-50);
  border-bottom: 1px solid rgba(186,117,23,0.2);
  padding: 10px 3rem; text-align: center;
  position: sticky; top: 60px; z-index: 99;
}
.sub-nav .sub-links { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.sub-nav .sub-links a {
  font-family: 'EB Garamond', serif; font-size: 13px; font-weight: 600;
  letter-spacing: 1.2px; color: var(--gold-800); text-decoration: none;
  text-transform: uppercase; white-space: nowrap; transition: color .2s;
}
.sub-nav .sub-links a:hover { color: var(--gold-900); }

/* BACK BAR (apenas nas páginas internas) */
.back-bar {
  background: var(--gold-50); border-bottom: 1px solid rgba(186,117,23,0.2);
  padding: 10px 3rem;
}
.back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: -apple-system, sans-serif; font-size: 13px; font-weight: 600;
  color: var(--gold-600); text-decoration: none; transition: color .2s;
}
.back-btn:hover { color: var(--gold-900); }
.back-btn svg { transition: transform .2s; }
.back-btn:hover svg { transform: translateX(-3px); }

/* PAGE HEADER */
.page-header {
  background: linear-gradient(135deg, #0e0602 0%, #1a0804 60%, #2a1006 100%);
  padding: 60px 3rem 50px; text-align: center; position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(186,117,23,0.18) 0%, transparent 70%);
}
.page-label {
  font-family: -apple-system, sans-serif; font-size: 11px; font-weight: 600;
  color: var(--gold-100); text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 12px; position: relative;
}
.page-title {
  font-family: 'Playfair Display', serif; font-size: clamp(32px, 5vw, 52px);
  font-weight: 900; color: #FAEEDA; position: relative; margin-bottom: 14px;
}
.page-desc {
  font-family: -apple-system, sans-serif; font-size: 15px;
  color: rgba(250,238,218,0.65); max-width: 520px; margin: 0 auto; line-height: 1.7; position: relative;
}
.header-rule {
  display: flex; align-items: center; gap: 14px;
  width: 200px; margin: 20px auto; position: relative;
}
.rule-line { flex: 1; height: 1px; background: linear-gradient(to right, transparent, #BA7517, transparent); }
.rule-diamond { width: 7px; height: 7px; background: #BA7517; transform: rotate(45deg); flex-shrink: 0; }

/* CONTENT */
.content { max-width: 1200px; margin: 0 auto; padding: 50px 3rem 60px; }
.sec-label {
  font-family: -apple-system, sans-serif; font-size: 11px; font-weight: 600;
  color: var(--gold-600); text-transform: uppercase; letter-spacing: 1.4px; margin-bottom: 8px;
}
.sec-title {
  font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700;
  margin-bottom: 10px; color: var(--text);
}
.sec-desc {
  font-family: -apple-system, sans-serif; font-size: 14px;
  color: var(--text-muted); max-width: 580px; line-height: 1.7; margin-bottom: 30px;
}

/* FOOTER */
footer {
  padding: 30px 3rem; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; background: var(--bg);
  font-family: -apple-system, sans-serif;
}
.footer-left { font-size: 13px; color: var(--text-muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--text-muted); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--gold-600); }

/* LIGHTBOX */
.lightbox {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92);
  z-index: 1000; align-items: center; justify-content: center; padding: 20px;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px; color: white; font-size: 32px;
  cursor: pointer; font-family: sans-serif; line-height: 1; opacity: 0.7; transition: opacity .2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-caption {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.75); font-family: -apple-system, sans-serif;
  font-size: 13px; text-align: center; max-width: 600px;
}

/* STATS */
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px; margin: -28px 3rem 0; position: relative; z-index: 2;
}
.stat-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px 16px; text-align: center;
  font-family: -apple-system, sans-serif;
}
.stat-num { font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 700; color: var(--gold-600); }
.stat-lbl { font-size: 12px; color: var(--text-muted); margin-top: 5px; line-height: 1.4; }

/* PILLARS */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.pillar-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 26px 22px;
  font-family: -apple-system, sans-serif;
}
.pillar-icon {
  width: 44px; height: 44px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.pillar-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.pillar-card p  { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* PUBLICATIONS */
.pub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.pub-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; font-family: -apple-system, sans-serif; }
.pub-cover { height: 100px; display: flex; align-items: center; justify-content: center; }
.pub-body  { padding: 16px 18px; }
.pub-tag   { font-size: 11px; font-weight: 600; color: var(--gold-600); text-transform: uppercase; letter-spacing: .9px; margin-bottom: 6px; }
.pub-title { font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--text); line-height: 1.4; }
.pub-desc  { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-visual {
  background: var(--gold-50); border: 1px solid #EF9F27;
  border-radius: var(--r-lg); height: 290px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.about-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 20px; font-family: -apple-system, sans-serif; }
.about-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.check {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold-50); border: 1px solid #EF9F27;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}

/* TIMELINE */
.tl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.timeline { display: flex; flex-direction: column; }
.tl-item  { display: flex; gap: 16px; padding-bottom: 26px; font-family: -apple-system, sans-serif; }
.tl-left  { display: flex; flex-direction: column; align-items: center; }
.tl-dot   { width: 12px; height: 12px; border-radius: 50%; background: var(--gold-400); flex-shrink: 0; margin-top: 3px; }
.tl-dot-main { width: 16px; height: 16px; background: var(--gold-900); }
.tl-line  { width: 1px; background: var(--border); flex: 1; margin-top: 4px; }
.tl-year  { font-size: 12px; font-weight: 600; color: var(--gold-600); min-width: 40px; text-align: right; margin-top: 1px; }
.tl-content h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.tl-content p  { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* PARTNERS */
.partners-row { display: flex; flex-wrap: wrap; gap: 10px; }
.partner-pill {
  padding: 8px 18px; border: 1px solid var(--border-md);
  border-radius: 20px; font-size: 13px; color: var(--text-muted);
  background: var(--bg);
  font-family: -apple-system, sans-serif;
}

/* CTA */
.cta-section { background: var(--gold-800); color: white; text-align: center; padding: 72px 2rem; }
.cta-section h2 { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 700; margin-bottom: 14px; color: white; }
.cta-section p  {
  font-family: -apple-system, sans-serif;
  font-size: 15px; color: rgba(255,255,255,0.78); max-width: 500px; margin: 0 auto 28px; line-height: 1.7;
}
.cta-req {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(250,199,117,0.15); border: 1px solid rgba(250,199,117,0.3);
  border-radius: var(--r-md); padding: 8px 18px;
  font-size: 12px; color: var(--gold-100); margin-top: 16px;
  font-family: -apple-system, sans-serif; letter-spacing: .5px;
}

/* MEMBERS GRID */
.members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.member-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
  transition: transform .2s, box-shadow .2s; cursor: pointer;
}
.member-card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(0,0,0,0.1); }
.member-card img { width: 100%; height: 220px; object-fit: cover; object-position: top; display: block; }
.member-info { padding: 12px 14px; background: var(--bg); }
.member-name { font-family: 'Playfair Display', serif; font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.3; margin-bottom: 4px; }
.member-tag { font-family: -apple-system, sans-serif; font-size: 11px; font-weight: 600; color: var(--gold-600); text-transform: uppercase; letter-spacing: .8px; }

/* PHOTO GRID */
.photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}
.photo-item {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  border: 1px solid var(--border); background: #f5f3ee;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.photo-item:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.12); }
.photo-item img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform .3s; }
.photo-item:hover img { transform: scale(1.03); }
.photo-caption {
  padding: 10px 12px;
  font-family: -apple-system, sans-serif; font-size: 12px;
  color: var(--text-muted); line-height: 1.5; background: var(--bg);
  border-top: 1px solid var(--border);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .main-nav { padding: 0 1.5rem; }
  .main-nav .nav-links { gap: 12px; }
  .sub-nav { padding: 10px 1.5rem; }
  .sub-nav .sub-links { gap: 16px; }
}
@media (max-width: 768px) {
  .main-nav .nav-links { display: none; }
  .sub-nav { top: 60px; }
  .back-bar { padding: 10px 1.25rem; }
  .page-header { padding: 44px 1.25rem 36px; }
  .content { padding: 36px 1.25rem 44px; }
  .stats-row { margin: -24px 1.25rem 0; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .about-grid, .tl-grid { grid-template-columns: 1fr; }
  .members-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .member-card img { height: 180px; }
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .photo-item img { height: 160px; }
  footer { flex-direction: column; text-align: center; padding: 24px 1.25rem; }
}