/**
 * Team Page Stylesheet - Hindustan Power EV
 * Pixel-Perfect Implementation matching approved design system
 */

/* ==========================================================================
   1. HERO BANNER
   ========================================================================== */
.hp-team-hero {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  background: radial-gradient(circle at 85% 30%, rgba(17, 178, 164, 0.15) 0%, rgba(17, 178, 164, 0.04) 40%, rgba(248, 250, 252, 0) 70%), #f8fafc;
  color: #0f172a;
  padding-top: 130px;
  padding-bottom: 70px;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
}

.hp-team-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hp-team-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #11b2a4;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
  background: rgba(17, 178, 164, 0.1);
  padding: 0.4rem 1.1rem;
  border-radius: 9999px;
  border: 1px solid rgba(17, 178, 164, 0.25);
}

.hp-team-hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #11b2a4;
  box-shadow: 0 0 8px #11b2a4;
}

.hp-team-hero-heading {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.4rem, 4.2vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hp-team-hero-heading span {
  color: #11b2a4;
}

.hp-team-hero-paragraph {
  font-size: 1.1rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 540px;
}

.hp-team-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.hp-hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hp-hero-stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: #11b2a4;
  line-height: 1.2;
}

.hp-hero-stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.2rem;
}

.hp-team-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hp-team-hero-card {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(17, 178, 164, 0.2);
  background: #ffffff;
}

.hp-team-hero-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hp-team-hero-card:hover img {
  transform: scale(1.03);
}

.hp-team-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, transparent 100%);
  color: #ffffff;
}

.hp-hero-overlay-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #11b2a4;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hp-hero-overlay-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

/* ==========================================================================
   2. LEADERSHIP TEAM
   ========================================================================== */
.hp-leadership-section {
  padding: 100px 0;
  background: #ffffff;
}

.hp-section-title-wrap {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
}

.hp-section-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #11b2a4;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.hp-section-heading {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.hp-leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
}

.hp-leader-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 1.75rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
}

.hp-leader-card:hover {
  transform: translateY(-8px);
  border-color: rgba(17, 178, 164, 0.4);
  box-shadow: 0 20px 30px -10px rgba(17, 178, 164, 0.15), 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.hp-leader-image-wrap {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.hp-leader-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hp-leader-card:hover .hp-leader-image-wrap img {
  transform: scale(1.05);
}

.hp-leader-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.hp-leader-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.hp-leader-role {
  font-size: 0.85rem;
  font-weight: 700;
  color: #11b2a4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

.hp-leader-bio {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.hp-social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.hp-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.25s ease;
}

.hp-social-btn:hover {
  background: #11b2a4;
  color: #ffffff;
  border-color: #11b2a4;
  transform: translateY(-2px);
}

.hp-social-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ==========================================================================
   3. MEET OUR TEAM & DEPARTMENT FILTER
   ========================================================================== */
.hp-team-grid-section {
  padding: 90px 0;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.hp-dept-filter-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.hp-dept-tab {
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.hp-dept-tab:hover {
  border-color: #11b2a4;
  color: #11b2a4;
}

.hp-dept-tab.active {
  background: #11b2a4;
  color: #ffffff;
  border-color: #11b2a4;
  box-shadow: 0 4px 14px rgba(17, 178, 164, 0.35);
}

/* ==========================================================================
   4. TEAM GRID
   ========================================================================== */
.hp-team-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.hp-team-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
}

.hp-team-card.hidden {
  display: none !important;
}

.hp-team-card:hover {
  transform: translateY(-5px);
  border-color: rgba(17, 178, 164, 0.4);
  box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.12);
}

.hp-team-photo-wrap {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: #f1f5f9;
}

.hp-team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hp-team-card:hover .hp-team-photo-wrap img {
  transform: scale(1.06);
}

.hp-team-card-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.15rem;
}

.hp-team-card-role {
  font-size: 0.8rem;
  font-weight: 600;
  color: #11b2a4;
  margin-bottom: 0.5rem;
}

.hp-team-card-dept {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #f1f5f9;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 1rem;
}

.hp-team-card-social {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   5. COMPANY STATISTICS STRIP
   ========================================================================== */
.hp-team-stats-strip {
  padding: 80px 0;
  background: #ffffff;
}

.hp-stats-card-wrap {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

.hp-stats-flex {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.hp-stat-box {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.hp-stat-icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(17, 178, 164, 0.15);
  border: 1px solid rgba(17, 178, 164, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #11b2a4;
  flex-shrink: 0;
}

.hp-stat-icon-circle svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.hp-stat-number-wrap {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.hp-stat-number-wrap span.teal {
  color: #11b2a4;
}

.hp-stat-text-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* ==========================================================================
   6. COMPANY CULTURE
   ========================================================================== */
.hp-culture-section {
  padding: 100px 0;
  background: #ffffff;
}

.hp-culture-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: center;
}

.hp-culture-left {
  max-width: 500px;
}

.hp-culture-heading {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hp-culture-paragraph {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hp-culture-cards-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hp-culture-item-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: all 0.3s ease;
}

.hp-culture-item-card:hover {
  background: #ffffff;
  border-color: #11b2a4;
  transform: translateX(8px);
  box-shadow: 0 10px 20px -5px rgba(17, 178, 164, 0.15);
}

.hp-culture-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #11b2a4;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.hp-culture-item-card:hover .hp-culture-icon-box {
  background: #11b2a4;
  color: #ffffff;
  border-color: #11b2a4;
}

.hp-culture-icon-box svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.hp-culture-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.15rem;
}

.hp-culture-desc {
  font-size: 0.9rem;
  color: #64748b;
}

/* ==========================================================================
   7. TEAM MOMENTS GALLERY
   ========================================================================== */
.hp-moments-section {
  padding: 90px 0;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.hp-moments-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.hp-moment-item {
  position: relative;
  height: 280px;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.hp-moment-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hp-moment-item:hover img {
  transform: scale(1.08);
}

.hp-moment-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hp-moment-item:hover .hp-moment-overlay {
  opacity: 1;
}

.hp-moment-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.hp-moment-tag {
  font-size: 0.75rem;
  color: #11b2a4;
  font-weight: 700;
  text-transform: uppercase;
}

/* Lightbox Modal */
.hp-moments-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.hp-moments-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.hp-lightbox-content {
  max-width: 900px;
  width: 100%;
  position: relative;
  text-align: center;
}

.hp-lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.hp-lightbox-caption {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 1rem;
}

.hp-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ==========================================================================
   8. JOIN OUR MISSION CTA
   ========================================================================== */
.hp-team-cta-section {
  padding: 80px 0 100px 0;
  background: #f8fafc;
}

.hp-team-cta-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 28px;
  padding: 4.5rem 4rem;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
}

.hp-cta-glow {
  position: absolute;
  top: -20%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(17, 178, 164, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hp-cta-heading {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hp-cta-paragraph {
  font-size: 1.1rem;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 520px;
}

.hp-cta-buttons {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hp-cta-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hp-cta-visual img {
  max-width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3));
  transition: transform 0.5s ease;
}

.hp-team-cta-banner:hover .hp-cta-visual img {
  transform: translateY(-6px) scale(1.02);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
.hp-dept-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1279px) {
  .hp-team-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1023px) {
  .hp-team-hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hp-team-hero-card img {
    height: 340px;
    object-fit: cover;
  }

  .hp-leadership-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .hp-team-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .hp-stats-flex {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .hp-culture-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hp-moments-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .hp-team-cta-banner {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.75rem;
  }
}

@media (max-width: 767px) {
  .hp-team-hero {
    padding-top: 110px;
    padding-bottom: 50px;
  }

  .hp-team-hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .hp-leadership-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hp-dept-filter-wrap {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .hp-dept-filter-wrap::-webkit-scrollbar {
    display: none;
  }

  .hp-team-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .hp-stats-flex {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .hp-moments-grid {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .hp-moment-item {
    min-width: 240px;
    scroll-snap-align: start;
  }
}

@media (max-width: 480px) {
  .hp-team-cards-grid {
    grid-template-columns: 1fr;
  }

  .hp-stats-flex {
    grid-template-columns: 1fr;
  }
}
