/* ==================================================================
   NUMBO Our Team Page — assets/our-team.css
   Scoped under .numbo-team-page to avoid bleed into other pages.
   Visually distinct from Our Story: full-width hero, role cards,
   capability matrix, no timeline/trust-numbers layout.
   ================================================================== */

/* ---------- GP Layout Reset ---------- */
.numbo-team-page {
  margin: 0;
}
body.page-template-page-our-team-php .site-content,
body.page-template-page-our-team-php .site-main {
  padding: 0;
  margin: 0;
}
body.page-template-page-our-team-php #page {
  background: transparent;
}

/* ---------- Container reset (override global flex) ---------- */
.numbo-team-page .numbo-container {
  display: block;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================
   S1 HERO — Immersive full-screen background
   ========================================================== */
.numbo-team-page .numbo-team-hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 64px;
  overflow: hidden;
  text-align: left;
}
.numbo-team-page .numbo-team-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: teamHeroKenBurns 20s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes teamHeroKenBurns {
  0%   { transform: scale(1); }
  100% { transform: scale(1.06); }
}
/* Dark gradient overlay */
.numbo-team-page .numbo-team-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18,14,10,0.55) 0%, rgba(18,14,10,0.28) 40%, rgba(18,14,10,0.6) 100%),
    linear-gradient(90deg, rgba(18,14,10,0.4) 0%, rgba(18,14,10,0) 60%);
  z-index: 1;
}
.numbo-team-page .numbo-team-hero .numbo-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 1200px;
}
.numbo-team-page .numbo-team-hero h1 {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -1px;
  margin-bottom: 16px;
  color: #f5f2ed;
}
.numbo-team-page .numbo-team-hero-sub {
  max-width: 560px;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(245, 242, 237, 0.8);
}

/* --- Hero CTA Buttons --- */
.numbo-team-page .numbo-team-hero-cta {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Hero Breadcrumb --- */
.numbo-team-page .numbo-team-hero .numbo-team-hero-breadcrumb {
  margin-bottom: 20px;
  font-size: 12px;
  font-family: var(--sans);
  color: rgba(245, 242, 237, 0.4);
}
.numbo-team-page .numbo-team-hero .numbo-team-hero-breadcrumb a {
  color: rgba(245, 242, 237, 0.5);
  text-decoration: none;
  transition: color .2s;
}
.numbo-team-page .numbo-team-hero .numbo-team-hero-breadcrumb a:hover {
  color: rgba(245, 242, 237, 0.85);
}
.numbo-team-page .numbo-team-hero .numbo-team-hero-breadcrumb .sep {
  margin: 0 8px;
  color: rgba(245, 242, 237, 0.4);
}
.numbo-team-page .numbo-team-hero .numbo-team-hero-breadcrumb .current {
  color: rgba(245, 242, 237, 0.7);
}

/* --- Hero Fade-up Animation --- */
.numbo-team-page .hero-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.numbo-team-page .hero-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.numbo-team-page .hero-fade-up:nth-child(2) { transition-delay: 0.1s; }
.numbo-team-page .hero-fade-up:nth-child(3) { transition-delay: 0.2s; }
.numbo-team-page .hero-fade-up:nth-child(4) { transition-delay: 0.3s; }
.numbo-team-page .hero-fade-up:nth-child(5) { transition-delay: 0.4s; }

/* ==========================================================
   S2 MISSION — Centered narrow layout with blockquote
   ========================================================== */
.numbo-team-page .numbo-team-mission {
  padding: 96px 0;
  background: var(--surface);
}
.numbo-team-page .numbo-team-mission-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.numbo-team-page .numbo-team-mission-quote {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--brand);
  margin: 0 0 40px;
  padding: 0 0 0 24px;
  position: relative;
  text-align: left;
  display: inline-block;
  max-width: 520px;
}
.numbo-team-page .numbo-team-mission-quote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--brand-light);
  border-radius: 2px;
}
.numbo-team-page .numbo-team-mission-text p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 20px;
  text-align: left;
}
.numbo-team-page .numbo-team-mission-text p:last-of-type {
  margin-bottom: 0;
}
.numbo-team-page .numbo-team-inline-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 14px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}
.numbo-team-page .numbo-team-inline-link:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

/* ==========================================================
   S3 MEET THE TEAM — 3 Role cards with circular avatar
   ========================================================== */
.numbo-team-page .numbo-team-roles {
  padding: 96px 0;
  background: var(--bg-alt);
}
.numbo-team-page .numbo-team-roles h2 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 56px;
}
.numbo-team-page .numbo-team-roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.numbo-team-page .numbo-team-role-card {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px 28px 36px;
  transition: box-shadow .3s, border-color .3s;
}
.numbo-team-page .numbo-team-role-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
  border-color: var(--brand-light);
}
.numbo-team-page .numbo-team-role-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 3px solid var(--border);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.numbo-team-page .numbo-team-role-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.numbo-team-page .numbo-team-role-avatar i,
.numbo-team-page .numbo-team-role-avatar svg {
  width: 32px;
  height: 32px;
  color: var(--brand-light);
  stroke-width: 1.5;
}
.numbo-team-page .numbo-team-role-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 6px;
}
.numbo-team-page .numbo-team-role-title {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 500;
}
.numbo-team-page .numbo-team-role-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.numbo-team-page .numbo-team-roles-note {
  text-align: center;
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
  margin-top: 40px;
  opacity: .7;
}

/* ==========================================================
   S4 CAPABILITIES — 2x2 grid matrix
   ========================================================== */
.numbo-team-page .numbo-team-capabilities {
  padding: 96px 0;
  background: var(--surface);
}
.numbo-team-page .numbo-team-capabilities h2 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 56px;
}
.numbo-team-page .numbo-team-cap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 64px;
  max-width: 960px;
  margin: 0 auto;
}
.numbo-team-page .numbo-team-cap-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.numbo-team-page .numbo-team-cap-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.numbo-team-page .numbo-team-cap-icon i,
.numbo-team-page .numbo-team-cap-icon svg {
  width: 22px;
  height: 22px;
  color: var(--brand);
  stroke-width: 1.5;
}
.numbo-team-page .numbo-team-cap-text h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
}
.numbo-team-page .numbo-team-cap-text p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.numbo-team-page .numbo-team-cap-cta {
  text-align: center;
  margin-top: 48px;
}

/* ==========================================================
   S5 CTA
   ========================================================== */
.numbo-team-page .numbo-team-cta {
  padding: 96px 0;
  text-align: center;
  background: #1a1a1a;
}
.numbo-team-page .numbo-team-cta h2 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 500;
  margin-bottom: 16px;
  color: #f5f2ed;
}
.numbo-team-page .numbo-team-cta p {
  font-size: 16px;
  color: rgba(245, 242, 237, .6);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.numbo-team-page .numbo-team-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons (scoped) ---------- */
.numbo-team-page .numbo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
}
.numbo-team-page .numbo-btn-primary {
  background: var(--brand);
  color: #fff;
}
.numbo-team-page .numbo-btn-primary:hover {
  background: var(--brand-dark);
}
.numbo-team-page .numbo-btn-outline {
  background: transparent;
  color: #f5f2ed;
  border: 1.5px solid rgba(245, 242, 237, .5);
}
.numbo-team-page .numbo-btn-outline:hover {
  background: rgba(245, 242, 237, .1);
  border-color: #f5f2ed;
}
.numbo-team-page .numbo-btn-outline-light {
  background: transparent;
  color: #f5f2ed;
  border: 1.5px solid rgba(245, 242, 237, 0.4);
}
.numbo-team-page .numbo-btn-outline-light:hover {
  background: rgba(245, 242, 237, 0.1);
  border-color: rgba(245, 242, 237, 0.7);
}

/* ==========================================================
   RESPONSIVE — Tablet (968px)
   ========================================================== */
@media (max-width: 968px) {
  .numbo-team-page .numbo-team-hero { min-height: 70vh; }
  .numbo-team-page .numbo-team-hero h1 {
    font-size: 40px;
  }
  .numbo-team-page .numbo-team-mission {
    padding: 72px 0;
  }
  .numbo-team-page .numbo-team-mission-quote {
    font-size: 24px;
  }
  .numbo-team-page .numbo-team-roles {
    padding: 72px 0;
  }
  .numbo-team-page .numbo-team-roles-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 480px;
    margin: 0 auto;
  }
  .numbo-team-page .numbo-team-capabilities {
    padding: 72px 0;
  }
  .numbo-team-page .numbo-team-cap-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ==========================================================
   RESPONSIVE — Mobile (640px)
   ========================================================== */
@media (max-width: 640px) {
  .numbo-team-page .numbo-team-hero {
    min-height: 60vh;
    padding: 0 0 40px;
  }
  .numbo-team-page .numbo-team-hero h1 {
    font-size: 28px;
  }
  .numbo-team-page .numbo-team-hero-sub {
    font-size: 15px;
  }
  .numbo-team-page .numbo-team-hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .numbo-team-page .numbo-team-mission,
  .numbo-team-page .numbo-team-roles,
  .numbo-team-page .numbo-team-capabilities,
  .numbo-team-page .numbo-team-cta {
    padding: 48px 0;
  }
  .numbo-team-page .numbo-team-mission-quote {
    font-size: 22px;
    max-width: 100%;
  }
  .numbo-team-page .numbo-team-roles h2,
  .numbo-team-page .numbo-team-capabilities h2 {
    font-size: 28px;
    margin-bottom: 40px;
  }
  .numbo-team-page .numbo-team-role-card {
    padding: 32px 24px 28px;
  }
  .numbo-team-page .numbo-team-role-avatar {
    width: 96px;
    height: 96px;
  }
  .numbo-team-page .numbo-team-cap-item {
    gap: 16px;
  }
  .numbo-team-page .numbo-team-cap-icon {
    width: 40px;
    height: 40px;
  }
  .numbo-team-page .numbo-team-cap-icon i,
  .numbo-team-page .numbo-team-cap-icon svg {
    width: 18px;
    height: 18px;
  }
  .numbo-team-page .numbo-team-cta h2 {
    font-size: 28px;
  }
  .numbo-team-page .numbo-team-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .numbo-team-page .numbo-btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
    justify-content: center;
  }
}
