/** Teams page — /our-team.html */

.teams-body {
  font-size: 1rem;
  line-height: 1.7;
  color: #575757;
}

/* Light gradient hero — ecoGRID / Figma */
.teams-hero {
  position: relative;
  background: linear-gradient(160.14deg, rgba(249, 212, 35, 0.1) 14.42%, rgba(249, 212, 35, 0.5) 50.62%, rgba(111, 134, 100, 0.8) 80.46%, #407775 108.11%);
}

.teams-hero::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -100px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(64, 119, 117, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.teams-hero h1 {
  line-height: 1.16;
}

/* Leadership section */
.teams-leadership {
  background: rgba(64, 119, 117, 0.03);
}

.teams-leadership.teams-section-pad {
  padding-top: 4.5rem;
}

@media (min-width: 768px) {
  .teams-leadership.teams-section-pad {
    padding-top: 5.5rem;
  }
}

.teams-leadership-grid {
  margin-top: 2rem;
}

.teams-leader-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(64, 119, 117, 0.12);
  border-radius: 24px;
  padding: 25px;
  box-shadow: 0 12px 32px rgba(64, 119, 117, 0.04);
}

.teams-leader-photo {
  height: 280px;
  margin-bottom: 1.25rem;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f8f2;
}

.teams-leader-bio {
  margin-top: 0.875rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #575757;
}

@media (min-width: 1024px) {
  .teams-leadership.teams-section-pad {
    padding-top: 5rem;
    padding-bottom: 2.5rem;
  }

  .teams-leadership-grid {
    margin-top: 1.75rem;
    gap: 1.25rem;
  }

  .teams-leader-card {
    padding: 1.125rem;
  }

  .teams-leader-photo {
    height: 200px;
    margin-bottom: 1rem;
    border-radius: 12px;
  }

  .teams-leader-meta {
    gap: 12px;
  }

  .teams-leader-role {
    margin-top: 0.125rem;
    font-size: 0.8125rem;
    line-height: 1.4;
  }

  .teams-leader-bio {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.5;
  }

  .teams-leadership .teams-linkedin {
    width: 34px;
    height: 34px;
  }

  .teams-leadership .teams-linkedin-icon i {
    font-size: 0.9rem;
  }
}

@media (min-width: 1280px) {
  .teams-leader-photo {
    height: 220px;
  }
}

.teams-leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.teams-leader-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.teams-leader-info {
  flex: 1;
  min-width: 0;
}

.teams-leader-name {
  font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: #343f52;
}

@media (min-width: 1024px) {
  .teams-leader-name {
    font-size: 1.35rem;
  }
}

.teams-leader-role {
  margin-top: 0.125rem;
  font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  color: #407775;
}

.teams-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  color: #407775;
  background: transparent;
  border: 1px solid rgba(64, 119, 117, 0.24);
  border-radius: 9999px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.teams-linkedin:hover {
  background: #407775;
  border-color: #407775;
  color: #ffffff;
  transform: translateY(-1px);
}

.teams-linkedin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.teams-linkedin-icon i {
  display: block;
  width: 1em;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
  transform: translateY(0.8px);
}

.teams-name-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.teams-name-link:hover {
  color: #407775;
}

/* Team grid section */
.teams-team-section {
  background: #fafaf8;
}

.teams-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 0.875rem;
  background: rgba(249, 212, 35, 0.3);
  font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: #105447;
  text-align: center;
}

.teams-grid-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.teams-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .teams-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .teams-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.teams-member-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  min-height: 140px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(64, 119, 117, 0.12);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(64, 119, 117, 0.03);
}

.teams-member-photo {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(64, 119, 117, 0.1);
  background: rgba(64, 119, 117, 0.05);
}

@media (min-width: 1024px) {
  .teams-member-photo {
    width: 110px;
    height: 110px;
  }
}

.teams-member-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  min-width: 0;
}

.teams-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.teams-member-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #407775;
  background: linear-gradient(135deg, rgba(64, 119, 117, 0.12) 0%, rgba(249, 212, 35, 0.15) 100%);
}

.teams-member-role {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #407775;
}

@media (max-width: 479px) {
  .teams-member-card {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
  }

  .teams-member-photo {
    width: 100%;
    height: 180px;
  }
}

.teams-quote-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  margin: 0;
  padding: 28px 24px;
  border-radius: 24px;
  background: linear-gradient(130.53deg, #407775 0%, #5d9a97 100%);
  box-shadow: 0 8px 16px rgba(64, 119, 117, 0.03);
  text-align: center;
}

@media (min-width: 1024px) {
  .teams-quote-card {
    min-height: 140px;
    padding: 32px 28px;
  }
}

.teams-quote-text {
  margin: 0;
  font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.02em;
  text-align: center;
  color: #fff;
}

@media (min-width: 1024px) {
  .teams-quote-text {
    font-size: 1.125rem;
  }
}

/* Scroll reveal — teams/caad style (overrides shared v3 js-reveal in main.css) */
.js-reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js-reveal-delay-1 {
  transition-delay: 0.1s;
}
.js-reveal-delay-2 {
  transition-delay: 0.2s;
}
.js-reveal-delay-3 {
  transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .teams-page .js-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
