/* ================================================================
   Foresight Africa — Team Page Styles
   ================================================================ */

html { scroll-behavior: smooth; }

/* ── ANIMATIONS ── */
@keyframes fa-team-fadeUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fa-team-fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fa-team-scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.fa-team .anim-fade-up  { opacity: 0; }
.fa-team .anim-fade-in  { opacity: 0; }
.fa-team .anim-scale-in { opacity: 0; }

.fa-team .animated.anim-fade-up  { animation: fa-team-fadeUp   0.7s cubic-bezier(.22,.68,0,1.2) forwards; }
.fa-team .animated.anim-fade-in  { animation: fa-team-fadeIn   0.55s ease forwards; }
.fa-team .animated.anim-scale-in { animation: fa-team-scaleIn  0.7s cubic-bezier(.22,.68,0,1.2) forwards; }

.fa-team .d1 { animation-delay: 0.08s !important; }
.fa-team .d2 { animation-delay: 0.2s  !important; }
.fa-team .d3 { animation-delay: 0.34s !important; }
.fa-team .d4 { animation-delay: 0.48s !important; }

/* ── LAYOUT ── */
.fa-team .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── PAGE HERO ── */
.fa-team .page-hero {
  background: #0F0F0F;
  padding: 96px 0 88px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.fa-team .page-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 380px; height: 380px;
  background: rgba(231,120,22,0.07);
  border-radius: 50%;
}
.fa-team .page-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 260px; height: 260px;
  background: rgba(231,120,22,0.05);
  border-radius: 50%;
}
.fa-team .page-hero__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #E77816;
  border: 1px solid rgba(231,120,22,0.4);
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  position: relative; z-index: 1;
}
.fa-team .page-hero__headline {
  font-size: clamp(30px, 4.5vw, 50px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 18px;
  position: relative; z-index: 1;
}
.fa-team .page-hero__sub {
  font-size: 17px;
  color: #A6ABB0;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
  position: relative; z-index: 1;
}

/* ── TEAM SECTION ── */
.fa-team .team {
  padding: 100px 0 110px;
  background: #fff;
}
.fa-team .team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.fa-team .staff-card {
  background: #fff;
  border: 1px solid #E8E9EA;
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.fa-team .staff-card:hover {
  border-color: rgba(231,120,22,0.35);
  box-shadow: 0 10px 36px rgba(231,120,22,0.1);
  transform: translateY(-5px);
}
.fa-team .staff-card__img-wrap {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #F4F5F6;
  position: relative;
}
.fa-team .staff-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}
.fa-team .staff-card:hover .staff-card__img-wrap img {
  transform: scale(1.04);
}
.fa-team .staff-card__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to top, rgba(15,15,15,0.5), transparent);
}
.fa-team .staff-card__body {
  padding: 24px 28px 28px;
}
.fa-team .staff-card__role {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #E77816;
  background: rgba(231,120,22,0.08);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.fa-team .staff-card__name {
  font-size: 20px;
  font-weight: 700;
  color: #0F0F0F;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* ── CTA ── */
.fa-team .cta-section {
  padding: 100px 0;
  background: #E77816;
  text-align: center;
}
.fa-team .cta-section__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}
.fa-team .cta-section__heading {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}
.fa-team .cta-section__sub {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}
.fa-team .cta-section__btn {
  display: inline-block;
  background: #fff;
  color: #E77816;
  font-size: 15px;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.15s, background 0.2s;
}
.fa-team .cta-section__btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

/* ── RESPONSIVE ── */
@media (max-width: 800px) {
  .fa-team .team__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .fa-team .container  { padding: 0 20px; }
  .fa-team .team__grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .fa-team .anim-fade-up,
  .fa-team .anim-fade-in,
  .fa-team .anim-scale-in {
    opacity: 1 !important; transform: none !important; animation: none !important;
  }
}
