/**
 * Tour Team Page Stylesheet - WildForest Peru
 * Theme: Amazon Rainforest & Eco-Expeditions Theme
 * Version: 2.0.0
 * 
 * Color Distribution:
 * - 55% Whites, beige & neutral backgrounds (#ffffff, #fbf9f4, #f7f4ed, #e8e2d5)
 * - 25% Forest Green (#223717, #16240f)
 * - 10% Jungle Green (#2E7214, #edf7eb)
 * - 7% Peru Red (#8D0A06)
 * - 3% Bright Accents (#ea580c, #0284c7, #f59e0b)
 */

:root {
  --team-forest: #223717;
  --team-forest-dark: #16240f;
  --team-jungle: #2E7214;
  --team-jungle-light: #3d941b;
  --team-jungle-soft: #edf7eb;
  --team-red-peru: #8D0A06;
  --team-red-peru-hover: #700805;
  --team-beige: #fbf9f4;
  --team-sand: #f7f4ed;
  --team-border: #e8e2d5;
  --team-text-dark: #1b2416;
  --team-text-body: #3c4a35;
  --team-text-muted: #6b7c62;
  --team-gold: #f59e0b;
}

/* ==========================================================================
   1. Master Page Wrapper
   ========================================================================== */
.stp-team-page {
  background-color: #ffffff;
  color: var(--team-text-body);
  font-family: inherit;
  overflow-x: hidden;
}

/* ==========================================================================
   2. Hero Section
   ========================================================================== */
.stp-team-hero {
  position: relative;
  background-color: var(--team-forest-dark);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 10.5rem 0 5.5rem;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.stp-team-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(22, 36, 15, 0.28) 0%,
    rgba(22, 36, 15, 0.45) 50%,
    rgba(22, 36, 15, 0.78) 100%
  );
  z-index: 1;
}

.stp-team-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.stp-team-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f59e0b;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.stp-team-hero-title {
  font-family: 'Pochaevsk', Georgia, serif !important;
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.18;
  color: #ffffff !important;
  margin-bottom: 1.25rem;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.75);
}

@media (max-width: 767.98px) {
  .stp-team-hero-title {
    font-size: 2.15rem;
  }
}

.stp-team-hero-sub {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #f1f5f9;
  max-width: 780px;
  margin: 0 auto 2rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}

/* Hero Stats Counter Bar */
.stp-team-stats-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
}

.stp-team-stat-item {
  background: rgba(22, 36, 15, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50rem;
  padding: 8px 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.stp-team-stat-item i {
  color: #a3e635;
  font-size: 0.95rem;
}

/* ==========================================================================
   3. Introduction Section
   ========================================================================== */
.stp-team-intro-section {
  padding: 5rem 0 3.5rem;
  background-color: #ffffff;
}

.stp-team-intro-lead {
  font-size: 1.22rem;
  line-height: 1.75;
  color: var(--team-forest);
  font-weight: 600;
  max-width: 820px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.stp-team-intro-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--team-text-body);
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

/* ==========================================================================
   4. Filter Navigation Pills
   ========================================================================== */
.stp-team-nav-wrap {
  padding: 1rem 0 3rem;
  background-color: #ffffff;
}

.stp-team-filter-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 980px;
}

.stp-team-filter-btn {
  background-color: var(--team-beige);
  border: 1px solid var(--team-border);
  color: var(--team-forest);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 50rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stp-team-filter-btn i {
  color: var(--team-jungle);
  font-size: 0.85rem;
  transition: color 0.25s ease;
}

.stp-team-filter-btn:hover {
  background-color: var(--team-sand);
  border-color: var(--team-jungle);
  color: var(--team-forest-dark);
  transform: translateY(-2px);
}

.stp-team-filter-btn.active {
  background-color: var(--team-forest) !important;
  border-color: var(--team-forest) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(34, 55, 23, 0.3);
}

.stp-team-filter-btn.active i {
  color: #a3e635 !important;
}

/* ==========================================================================
   5. Team Grid & Member Cards
   ========================================================================== */
.stp-team-grid-section {
  padding: 0 0 5rem;
  background-color: #ffffff;
}

.stp-team-card {
  background-color: #ffffff;
  border: 1px solid var(--team-border);
  border-radius: 24px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease;
  box-shadow: 0 6px 20px rgba(34, 55, 23, 0.04);
  position: relative;
}

.stp-team-card:hover {
  transform: translateY(-8px);
  border-color: var(--team-jungle);
  box-shadow: 0 20px 40px -10px rgba(34, 55, 23, 0.16), 0 0 0 1px var(--team-jungle) inset;
}

/* Member Photo Container */
.stp-team-photo-wrap {
  position: relative;
  width: 100%;
  height: 310px;
  overflow: hidden;
  background-color: var(--team-forest-dark);
}

.stp-team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.stp-team-card:hover .stp-team-photo {
  transform: scale(1.06);
  filter: brightness(1.03);
}

.stp-team-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(22, 36, 15, 0.8) 100%);
  pointer-events: none;
}

/* Top Role Pill */
.stp-team-role-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  background: rgba(22, 36, 15, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stp-team-role-badge i {
  color: #a3e635;
}

/* Exp Badge on Top Right */
.stp-team-exp-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  background: rgba(46, 114, 20, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 50rem;
  letter-spacing: 0.5px;
}

/* Member Body Details */
.stp-team-card-body {
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background-color: #ffffff;
}

.stp-team-name {
  font-family: 'Pochaevsk', Georgia, serif !important;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--team-forest);
  margin-bottom: 4px;
  line-height: 1.25;
}

.stp-team-title-sub {
  color: var(--team-jungle);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}

/* Meta Tags & Chips */
.stp-team-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.stp-team-chip {
  background-color: var(--team-jungle-soft);
  color: var(--team-jungle);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(46, 114, 20, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.stp-team-bio {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--team-text-body);
  margin-bottom: 1rem;
  flex-grow: 1;
}

/* Specialty Highlight Box */
.stp-team-specialty-box {
  background-color: var(--team-beige);
  border: 1px dashed var(--team-border);
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--team-text-dark);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.stp-team-specialty-box i {
  color: var(--team-jungle);
  font-size: 0.95rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.stp-team-specialty-box strong {
  color: var(--team-forest);
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1px;
}

/* ==========================================================================
   6. Pillars of Excellence Section
   ========================================================================== */
.stp-team-pillars-section {
  padding: 5.5rem 0;
  background-color: var(--team-beige);
  border-top: 1px solid var(--team-border);
  border-bottom: 1px solid var(--team-border);
}

.stp-team-section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 3.5rem;
}

.stp-team-section-title {
  font-family: 'Pochaevsk', Georgia, serif !important;
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--team-forest);
  margin-bottom: 14px;
}

.stp-team-section-subtitle {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--team-text-muted);
}

.stp-pillar-card {
  background-color: #ffffff;
  border: 1px solid var(--team-border);
  border-radius: 20px;
  padding: 2.25rem 1.75rem;
  height: 100%;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.stp-pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--team-jungle);
  box-shadow: 0 16px 32px rgba(34, 55, 23, 0.1);
}

.stp-pillar-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background-color: var(--team-jungle-soft);
  color: var(--team-jungle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.stp-pillar-card:hover .stp-pillar-icon-wrap {
  background-color: var(--team-forest);
  color: #a3e635;
}

.stp-pillar-title {
  font-family: 'Pochaevsk', Georgia, serif !important;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--team-forest);
  margin-bottom: 10px;
}

.stp-pillar-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--team-text-body);
  margin-bottom: 0;
}

/* ==========================================================================
   7. Certifications & Badges Ribbon
   ========================================================================== */
.stp-team-cert-section {
  padding: 4rem 0;
  background-color: #ffffff;
}

.stp-team-cert-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem 3rem;
}

.stp-team-cert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--team-forest);
  font-weight: 700;
  font-size: 0.92rem;
}

.stp-team-cert-item i {
  color: var(--team-jungle);
  font-size: 1.4rem;
}

/* ==========================================================================
   8. Call To Action Banner
   ========================================================================== */
.stp-team-cta-section {
  background: linear-gradient(135deg, var(--team-forest-dark) 0%, var(--team-forest) 55%, var(--team-jungle) 100%);
  color: #ffffff;
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.stp-team-cta-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(46, 114, 20, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.stp-team-cta-title {
  font-family: 'Pochaevsk', Georgia, serif !important;
  font-size: 2.65rem;
  font-weight: 800;
  color: #ffffff !important;
  margin-bottom: 1rem;
}

@media (max-width: 767.98px) {
  .stp-team-cta-title {
    font-size: 1.85rem;
  }
}

.stp-team-cta-text {
  font-size: 1.12rem;
  color: #d5decb;
  max-width: 650px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
}

.stp-team-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* Primary Peru Red CTA Button (7%) */
.btn-team-primary {
  background: linear-gradient(135deg, var(--team-red-peru) 0%, var(--team-red-peru-hover) 100%) !important;
  color: #ffffff !important;
  border: 1px solid var(--team-red-peru) !important;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 34px;
  border-radius: 50rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(141, 10, 6, 0.35);
  transition: all 0.3s ease;
}

.btn-team-primary:hover {
  background: linear-gradient(135deg, #a50d08 0%, var(--team-red-peru) 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(141, 10, 6, 0.48);
  color: #ffffff !important;
}

/* Secondary WhatsApp / Outline Button */
.btn-team-whatsapp {
  background-color: #25d366 !important;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: 50rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  transition: all 0.3s ease;
}

.btn-team-whatsapp:hover {
  background-color: #20ba5a !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  color: #ffffff !important;
}
