/* ============================================================
   PROJECTS & ORGANIZATIONS PAGE STYLES
   css/projects.css
   ============================================================ */

/* ════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════ */
.pj-hero {
  position: relative;
  padding: 160px 0 70px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f1923 0%, #1a2a3a 55%, #0f1923 100%);
}
.pj-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 55%, rgba(232,100,26,0.15) 0%, transparent 50%),
    radial-gradient(circle at 85% 25%, rgba(16,185,129,0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(45,90,160,0.1) 0%, transparent 45%);
}
.pj-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.pj-hero .section-tag {
  display: inline-block;
  margin-bottom: 1rem;
}
.pj-hero__title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.pj-hero__subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

/* ── Filter buttons ── */
.pj-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pj-filter {
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.65);
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}
.pj-filter:hover {
  background: rgba(232,100,26,0.15);
  border-color: rgba(232,100,26,0.4);
  color: #f0906a;
}
.pj-filter.active {
  background: #E8641A;
  border-color: #E8641A;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(232,100,26,0.35);
}

/* ════════════════════════════════════════════════════════
   STATS BAR
════════════════════════════════════════════════════════ */
.pj-stats-bar {
  background: #E8641A;
  padding: 1.4rem 0;
}
.pj-stats-bar__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 3rem;
  text-align: center;
}
.pj-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.pj-stat__num {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}
.pj-stat__lbl {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════
   MAIN
════════════════════════════════════════════════════════ */
.pj-main {
  padding: 4rem 0 5rem;
  background: #f4f5f9;
}

/* ════════════════════════════════════════════════════════
   GRID
════════════════════════════════════════════════════════ */
.pj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
}

/* ════════════════════════════════════════════════════════
   ORGANIZATION CARDS
════════════════════════════════════════════════════════ */
.pj-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e6ed;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s ease;
}
.pj-card.visible { opacity: 1; transform: translateY(0); }
.pj-card:hover   { box-shadow: 0 10px 32px rgba(0,0,0,0.11); transform: translateY(-3px); }

/* Card top band */
.pj-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem 0.9rem;
  border-bottom: 1px solid #f0f2f5;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Icon circles */
.pj-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.pj-card__icon--green  { background: rgba(16,185,129,0.12);  color: #059669; }
.pj-card__icon--blue   { background: rgba(14,165,233,0.12);  color: #0284c7; }
.pj-card__icon--teal   { background: rgba(20,184,166,0.12);  color: #0f766e; }
.pj-card__icon--yellow { background: rgba(234,179,8,0.12);   color: #a16207; }
.pj-card__icon--orange { background: rgba(232,100,26,0.12);  color: #c94f10; }
.pj-card__icon--purple { background: rgba(139,92,246,0.12);  color: #7c3aed; }
.pj-card__icon--red    { background: rgba(239,68,68,0.12);   color: #dc2626; }
.pj-card__icon--indigo { background: rgba(99,102,241,0.12);  color: #4f46e5; }

/* Category pills */
.pj-card__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.pj-cat {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  text-transform: uppercase;
}
.pj-cat--economic    { background: rgba(232,100,26,0.1);  color: #c94f10; border: 1px solid rgba(232,100,26,0.2); }
.pj-cat--environment { background: rgba(16,185,129,0.1);  color: #059669; border: 1px solid rgba(16,185,129,0.2); }
.pj-cat--community   { background: rgba(99,102,241,0.1);  color: #4f46e5; border: 1px solid rgba(99,102,241,0.2); }
.pj-cat--global      { background: rgba(14,165,233,0.1);  color: #0284c7; border: 1px solid rgba(14,165,233,0.2); }

/* ── Logo area ── */
.pj-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.4rem 0.6rem;
  min-height: 72px;
  background: #fafbfc;
  border-bottom: 1px solid #f0f2f5;
}
.pj-card__logo img {
  max-height: 54px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
}
/* Text fallback logo for orgs without image */
.pj-card__logo--text {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1a1a2e;
  text-align: center;
  line-height: 1.2;
}
.pj-card__logo--text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  margin-top: 0.2rem;
}

/* Card body */
.pj-card__body {
  padding: 1.25rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.pj-card__num {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(0,0,0,0.1);
  line-height: 1;
}
.pj-card__name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.25;
  margin: -0.4rem 0 0;
}
.pj-card__url {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #E8641A;
  text-decoration: none;
  transition: color 0.2s;
}
.pj-card__url:hover { color: #c94f10; text-decoration: underline; }
.pj-card__url i { font-size: 0.65rem; }

/* Sections */
.pj-card__section h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.pj-card__section p {
  font-size: 0.86rem;
  line-height: 1.7;
  color: #555;
  margin: 0;
}

/* "Why Support It" highlight */
.pj-card__section--why {
  background: #f8f9fb;
  border-left: 3px solid #E8641A;
  border-radius: 0 8px 8px 0;
  padding: 0.75rem 0.9rem;
}
.pj-card__section--why h4 {
  color: #E8641A;
}
.pj-card__section--why h4 i { font-size: 0.68rem; }

/* CTA button at bottom */
.pj-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  background: #1a1a2e;
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  border-top: 1px solid #eaedf2;
  transition: background 0.2s ease, color 0.2s ease;
  margin-top: auto;
}
.pj-card__btn:hover {
  background: #E8641A;
  color: #ffffff;
}
.pj-card__btn i { font-size: 0.75rem; transition: transform 0.2s; }
.pj-card__btn:hover i { transform: translateX(3px); }

/* ════════════════════════════════════════════════════════
   CTA STRIP
════════════════════════════════════════════════════════ */
.pj-cta {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4e 100%);
  padding: 4rem 0;
}
.pj-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.pj-cta__text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.45rem;
}
.pj-cta__text p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}
.pj-cta__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .pj-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
}
@media (max-width: 768px) {
  .pj-hero { padding: 140px 0 60px; }
  .pj-hero__title { font-size: 2rem; }
  .pj-grid { grid-template-columns: 1fr; }
  .pj-cta__inner { flex-direction: column; text-align: center; }
  .pj-cta__actions { justify-content: center; }
  .pj-stats-bar__grid { gap: 1rem 1.5rem; }
}
@media (max-width: 480px) {
  .pj-filters { gap: 0.35rem; }
  .pj-filter { font-size: 0.76rem; padding: 0.38rem 0.85rem; }
}
