/* ===== Custom styles for FAPESP project site ===== */

/* Color palette */
:root {
  --primary: #1a3c6e;
  --primary-light: #2a5ca0;
  --accent: #c41e3a;
  --bg-light: #f8f9fa;
  --bg-card: #ffffff;
  --text-dark: #2c3e50;
  --text-muted: #6c757d;
  --border: #dee2e6;
}

/* Typography */
body {
  font-family: 'Source Sans Pro', 'Segoe UI', sans-serif;
  color: var(--text-dark);
}

h1, h2, h3, h4 {
  color: var(--primary);
  font-weight: 600;
}

/* Hero section */
.hero-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  text-align: center;
}

.hero-banner h1 {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.hero-banner .subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.hero-banner .badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-banner .badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  backdrop-filter: blur(4px);
}

/* Stat cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.stat-card .number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-card .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Info cards */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.info-card {
  background: var(--bg-card);
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.info-card h3 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.info-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Highlight box */
.highlight-box {
  background: linear-gradient(135deg, #eef2f7 0%, #e8eef5 100%);
  border-radius: 10px;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
  border: 1px solid #d0d9e6;
}

.highlight-box h3 {
  margin-top: 0;
  color: var(--primary);
}

/* Callout adjustments */
.callout {
  border-radius: 8px !important;
}

/* Tables */
.table {
  border-radius: 8px;
  overflow: hidden;
}

.table thead th {
  background: var(--primary) !important;
  color: white !important;
  font-weight: 600;
  border: none !important;
  padding: 0.75rem 1rem !important;
}

.table tbody tr:hover {
  background: #f0f4f8 !important;
}

.table tbody td {
  padding: 0.6rem 1rem !important;
  vertical-align: middle;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 0.3rem;
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-item.bepe::before {
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-item h4 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.timeline-item .period {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.timeline-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Team cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.team-card {
  background: var(--bg-card);
  border-radius: 10px;
  padding: 1.8rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
}

.team-card .role {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.team-card .name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

.team-card .affiliation {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-banner {
    padding: 2rem 1rem;
  }
  .hero-banner h1 {
    font-size: 1.4rem;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Gantt chart table */
.gantt-table th,
.gantt-table td {
  font-size: 0.8rem !important;
  padding: 0.4rem 0.3rem !important;
  text-align: center;
}

.gantt-table td.active {
  background: var(--primary) !important;
  color: white !important;
}

.gantt-table td.bepe-active {
  background: var(--accent) !important;
  color: white !important;
}

/* Logo row */
.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.logo-row img {
  max-height: 70px;
  opacity: 0.85;
}
