/* ========== PAGE-SPECIFIC STYLES ========== */

/* ========== Numbered scroll-style sections ========== */
.numbered-section {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 40px;
  padding: 80px 0;
  border-top: 1px solid var(--border);
  position: relative;
}
.numbered-section:first-of-type { border-top: none; }
.num-marker {
  position: sticky; top: 100px; align-self: start;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 64px; font-weight: 700;
  background: var(--grad-1);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.04em;
  line-height: 1;
}
.num-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -0.025em; margin-bottom: 14px;
}
.num-content > p.lead { font-size: 18px; color: var(--text-muted); margin-bottom: 28px; max-width: 720px; }

/* ========== Detail frame with video header ========== */
.detail-frame {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(15,8,38,0.06);
}
.detail-frame-video {
  position: relative; aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}
.detail-frame-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.detail-frame-video .placeholder {
  position: absolute; inset: 0;
  background: var(--grad-dark);
  display: flex; align-items: center; justify-content: center;
  color: white; font-family: 'JetBrains Mono'; font-size: 12px; letter-spacing: 0.2em;
}
.detail-frame-video .placeholder::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(168,85,247,0.4), transparent 60%);
}
.detail-frame-body { padding: 36px 40px 40px; }
.detail-frame-body h3 { font-family: 'Space Grotesk'; font-size: 26px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.02em; }
.detail-frame-body p { color: var(--text-muted); margin-bottom: 20px; font-size: 16px; }
.detail-list { display: grid; gap: 16px; margin-top: 24px; }
.detail-list .item {
  display: grid; grid-template-columns: 28px 1fr; gap: 14px;
  padding: 16px; background: var(--bg-soft); border-radius: 12px; border: 1px solid var(--border);
}
.detail-list .item i { color: var(--violet); width: 22px; height: 22px; margin-top: 2px; }
.detail-list .item h4 { font-family: 'Space Grotesk'; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.detail-list .item p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ========== Card grid ========== */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

/* ========== Pill/Chip ========== */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(124,58,237,0.08);
  color: var(--violet);
  border: 1px solid rgba(124,58,237,0.18);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em;
}
.chip i { width: 12px; height: 12px; }

/* ========== Stat grid ========== */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.stat-card { background: white; border: 1px solid var(--border); border-radius: 18px; padding: 28px; text-align: left; }
.stat-card .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px; font-weight: 700;
  background: var(--grad-1);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em; line-height: 1; margin-bottom: 8px;
}
.stat-card .label { color: var(--text-muted); font-size: 14px; }

/* ========== Timeline ========== */
.timeline { display: grid; gap: 24px; position: relative; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 14px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--violet), var(--cyan)); border-radius: 2px; }
.timeline-item { position: relative; }
.timeline-item::before {
  content: ''; position: absolute; left: -33px; top: 8px;
  width: 14px; height: 14px; border-radius: 50%;
  background: white; border: 3px solid var(--violet);
  box-shadow: 0 0 0 4px rgba(124,58,237,0.15);
}
.timeline-item h4 { font-family: 'Space Grotesk'; font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.timeline-item p { color: var(--text-muted); font-size: 14px; }

/* ========== FAQ ========== */
.faq-item {
  background: white; border: 1px solid var(--border); border-radius: 14px;
  padding: 0; margin-bottom: 12px; overflow: hidden;
}
.faq-q {
  padding: 20px 24px;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: 'Space Grotesk'; font-size: 16px; font-weight: 600;
  user-select: none;
}
.faq-q i { transition: transform 250ms; color: var(--violet); }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a {
  padding: 0 24px; max-height: 0; overflow: hidden; transition: all 350ms;
  color: var(--text-muted); font-size: 15px; line-height: 1.65;
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 24px 22px; }

/* ========== Video card ========== */
.video-card {
  background: white; border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  cursor: pointer; transition: all 250ms;
  display: flex; flex-direction: column;
}
.video-card:hover { transform: translateY(-4px); border-color: var(--violet); box-shadow: 0 14px 30px rgba(124,58,237,0.12); }
.video-thumb { aspect-ratio: 16/9; background: var(--grad-dark); position: relative; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb .play-btn {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.25); transition: all 250ms;
}
.video-thumb .play-btn .circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,0.95); color: var(--violet);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transition: transform 250ms;
}
.video-card:hover .play-btn .circle { transform: scale(1.1); }
.video-thumb .play-btn i { width: 26px; height: 26px; margin-left: 3px; }
.video-card-body { padding: 18px 20px; }
.video-card-body h4 { font-family: 'Space Grotesk'; font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.video-card-body p { color: var(--text-muted); font-size: 13px; }

/* ========== Modal video player ========== */
.video-modal {
  position: fixed; inset: 0; background: rgba(8,3,28,0.85);
  backdrop-filter: blur(12px); z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.video-modal.open { display: flex; }
.video-modal-inner { width: 100%; max-width: 1100px; aspect-ratio: 16/9; position: relative; }
.video-modal-inner iframe { width: 100%; height: 100%; border: 0; border-radius: 14px; }
.video-modal-close {
  position: absolute; top: -50px; right: 0;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  width: 40px; height: 40px; border-radius: 50%;
  color: white; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.video-modal-close:hover { background: rgba(255,255,255,0.2); }

/* ========== Article (media) cards ========== */
.article-card {
  background: white; border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; transition: all 250ms;
  text-decoration: none; color: inherit;
}
.article-card:hover { transform: translateY(-4px); border-color: var(--violet); box-shadow: 0 14px 30px rgba(124,58,237,0.12); }
.article-thumb {
  aspect-ratio: 16/9; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', serif; font-size: 28px; font-weight: 700;
  letter-spacing: -0.02em;
  color: white;
}
.article-thumb::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.6)); pointer-events: none; }
.article-thumb .vehicle { position: absolute; bottom: 14px; left: 18px; z-index: 1; font-family: 'Inter'; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.article-card-body { padding: 22px 24px; flex: 1; display: flex; flex-direction: column; }
.article-card-body .date { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-faint); letter-spacing: 0.1em; margin-bottom: 8px; }
.article-card-body h3 { font-family: 'Space Grotesk'; font-size: 17px; font-weight: 600; line-height: 1.3; margin-bottom: 10px; }
.article-card-body p { color: var(--text-muted); font-size: 13px; flex: 1; }
.article-card-body .read { font-size: 12px; color: var(--violet); margin-top: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.article-card-body .read i { width: 13px; height: 13px; }

/* Brand-tinted thumbs for big outlets */
.brand-folha { background: linear-gradient(135deg, #003F7F 0%, #0066CC 100%); }
.brand-veja { background: linear-gradient(135deg, #B8202E 0%, #E63946 100%); }
.brand-epoca { background: linear-gradient(135deg, #1A1A1A 0%, #4A4A4A 100%); }
.brand-exame { background: linear-gradient(135deg, #E60000 0%, #FF3838 100%); }
.brand-istoe { background: linear-gradient(135deg, #F39C12 0%, #FFB733 100%); }
.brand-veja2 { background: linear-gradient(135deg, #C0392B 0%, #E74C3C 100%); }
.brand-correio { background: linear-gradient(135deg, #2C5F2D 0%, #4A8B4F 100%); }
.brand-malaga { background: linear-gradient(135deg, #2980B9 0%, #6DD5FA 100%); }
.brand-sinop { background: linear-gradient(135deg, #16A085 0%, #2ECC71 100%); }

/* ========== Contact rep card ========== */
.rep-card {
  background: white; border: 1px solid var(--border);
  border-radius: 16px; padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
  transition: all 250ms;
}
.rep-card:hover { border-color: var(--violet); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(124,58,237,0.1); }
.rep-card .top { display: flex; align-items: center; gap: 14px; }
.rep-card .avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--grad-1); color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk'; font-weight: 700; font-size: 18px;
  flex-shrink: 0;
}
.rep-card .info h4 { font-family: 'Space Grotesk'; font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.rep-card .info .region { font-family: 'JetBrains Mono'; font-size: 11px; color: var(--text-faint); letter-spacing: 0.1em; text-transform: uppercase; }
.rep-card .actions { display: flex; gap: 8px; margin-top: auto; }
.rep-card .ico-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 12px; border-radius: 10px;
  background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 500;
  text-decoration: none; transition: all 200ms; border: 1px solid var(--border);
}
.rep-card .ico-btn:hover { background: var(--violet); color: white; border-color: var(--violet); }
.rep-card .ico-btn.wa:hover { background: #25D366; border-color: #25D366; }
.rep-card .ico-btn i { width: 14px; height: 14px; }
.rep-card .phone { font-family: 'JetBrains Mono'; font-size: 12px; color: var(--text-muted); }

/* ========== BNCC table ========== */
.bncc-table {
  background: white; border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
}
.bncc-table .row { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); border-top: 1px solid var(--border); }
.bncc-table .row:first-child { border-top: none; background: var(--bg-soft); }
.bncc-table .cell { padding: 18px 20px; font-size: 14px; border-left: 1px solid var(--border); }
.bncc-table .cell:first-child { border-left: none; }
.bncc-table .row:first-child .cell { font-family: 'JetBrains Mono'; font-size: 11px; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; }
.bncc-table .row .cell:first-child { font-weight: 600; font-family: 'Space Grotesk'; }
.bncc-table .check { color: var(--green); }
.bncc-table .check i { width: 18px; height: 18px; }

/* ========== Photo grid ========== */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; grid-auto-rows: 220px; }
.photo-grid .ph {
  border-radius: 14px; overflow: hidden;
  background: var(--grad-dark); position: relative;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); font-family: 'JetBrains Mono'; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  cursor: pointer; transition: transform 250ms;
}
.photo-grid .ph:hover { transform: scale(1.02); }
.photo-grid .ph.tall { grid-row: span 2; }
.photo-grid .ph::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(168,85,247,0.5), transparent 60%); }
.photo-grid .ph.cyan::before { background: radial-gradient(circle at 30% 30%, rgba(34,211,238,0.45), transparent 60%); }
.photo-grid .ph.pink::before { background: radial-gradient(circle at 30% 30%, rgba(236,72,153,0.45), transparent 60%); }
.photo-grid .ph.green::before { background: radial-gradient(circle at 30% 30%, rgba(5,150,105,0.45), transparent 60%); }
.photo-grid .ph.gold::before { background: radial-gradient(circle at 30% 30%, rgba(217,119,6,0.45), transparent 60%); }
.photo-grid .ph span { position: relative; z-index: 1; }

/* ========== CTA bar ========== */
.cta-bar {
  background: var(--grad-dark); color: white;
  border-radius: 28px;
  padding: 60px 50px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  position: relative; overflow: hidden;
}
.cta-bar::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(168,85,247,0.4), transparent 60%);
}
.cta-bar > * { position: relative; z-index: 1; }
.cta-bar h3 { font-family: 'Space Grotesk'; font-size: 32px; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 8px; }
.cta-bar p { color: rgba(255,255,255,0.75); max-width: 500px; }
.cta-bar .actions { display: flex; gap: 12px; flex-shrink: 0; }

/* ========== ODS (SDG) chips ========== */
.sdg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; }
.sdg-chip {
  aspect-ratio: 1;
  border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: white; font-family: 'Space Grotesk'; font-weight: 700;
  text-align: center; padding: 8px;
  position: relative;
}
.sdg-chip .num { font-size: 24px; line-height: 1; }
.sdg-chip .lbl { font-family: 'Inter'; font-size: 8px; font-weight: 600; margin-top: 4px; opacity: 0.95; line-height: 1.2; }
.sdg-chip.muted { background: var(--surface-2); color: var(--text-faint); border: 1px dashed var(--border-strong); }
.sdg-c1 { background: #E5243B; } .sdg-c2 { background: #DDA63A; } .sdg-c3 { background: #4C9F38; } .sdg-c4 { background: #C5192D; } .sdg-c5 { background: #FF3A21; }
.sdg-c8 { background: #A21942; } .sdg-c9 { background: #FD6925; } .sdg-c10 { background: #DD1367; } .sdg-c11 { background: #FD9D24; } .sdg-c13 { background: #3F7E44; } .sdg-c16 { background: #00689D; } .sdg-c17 { background: #19486A; }

/* ========== PDF download card ========== */
.pdf-card {
  display: flex; align-items: center; gap: 24px;
  background: white; border: 1px solid var(--border);
  border-radius: 20px; padding: 28px;
  margin-bottom: 28px;
}
.pdf-card .pdf-icon {
  width: 80px; height: 100px;
  background: linear-gradient(135deg, #B8202E 0%, #E63946 100%);
  border-radius: 8px;
  position: relative;
  display: flex; align-items: end; justify-content: center;
  color: white; font-family: 'Space Grotesk'; font-weight: 800; font-size: 14px;
  padding-bottom: 12px;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(184,32,46,0.25);
}
.pdf-card .pdf-icon::before { content: ''; position: absolute; top: 0; right: 0; width: 22px; height: 22px; background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,0.25) 50%); border-radius: 0 8px 0 8px; }
.pdf-card .pdf-info h4 { font-family: 'Space Grotesk'; font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.pdf-card .pdf-info p { color: var(--text-muted); font-size: 14px; }

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .numbered-section { grid-template-columns: 1fr; gap: 14px; padding: 50px 0; }
  .num-marker { position: static; font-size: 44px; }
  .cta-bar { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
  .cta-bar .actions { flex-direction: column; align-items: stretch; width: 100%; }
  .bncc-table .row { grid-template-columns: 1fr; }
  .bncc-table .cell { border-left: none; border-top: 1px solid var(--border); }
  .bncc-table .row:first-child { display: none; }
  .pdf-card { flex-direction: column; align-items: flex-start; }
  .detail-frame-body { padding: 24px; }
}
