/* ============================================
   MEET THE TEAM PAGE STYLES
   Uses team- prefix
   Bowland Pharmacy — Blue + Green palette
   ============================================ */

/* ============================================
   HERO SECTION
   ============================================ */
.team-hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 80px 0 100px;
  overflow: hidden;
  background: linear-gradient(to bottom, #f0f4f8, #ffffff);
}

.team-hero-bg-blob-1 {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(63, 115, 174, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}

.team-hero-bg-blob-2 {
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(121, 188, 46, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  animation: float 10s ease-in-out infinite reverse;
  pointer-events: none;
}

.team-hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(63, 115, 174, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 1;
  pointer-events: none;
}

.team-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.team-hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  color: #111827;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

@media (min-width: 1024px) {
  .team-hero-title {
    font-size: 5rem;
  }
}

.team-hero-description {
  font-size: 1.25rem;
  color: var(--text-gray);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .team-hero-description {
    font-size: 1.5rem;
  }
}

/* ============================================
   STATS BAR (Floating Glassmorphic)
   ============================================ */
.team-stats-section {
  position: relative;
  margin-top: -3rem;
  z-index: 20;
  padding: 0 1.5rem;
}

.team-stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 1.5rem;
  padding: 2.5rem 3rem;
  box-shadow:
    0 20px 60px -15px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(63, 115, 174, 0.05);
  max-width: 1200px;
  margin: 0 auto;
}

.team-stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  justify-content: center;
}

.team-stat-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, rgba(63, 115, 174, 0.15), rgba(42, 80, 122, 0.1));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  font-size: 1.5rem;
}

.team-stat-text {
  display: flex;
  flex-direction: column;
}

.team-stat-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 900;
  color: #111827;
  line-height: 1;
}

.team-stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-slate);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-stat-divider {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, transparent, rgba(63, 115, 174, 0.3), transparent);
}

@media (max-width: 1023px) {
  .team-stats-bar {
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
  }

  .team-stat-item {
    flex: 0 0 45%;
    justify-content: flex-start;
  }

  .team-stat-divider {
    display: none;
  }
}

@media (max-width: 639px) {
  .team-stats-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .team-stat-item {
    width: 100%;
  }
}

/* ============================================
   TEAM GRID SECTION
   ============================================ */
.team-members-section {
  padding: 8rem 0 6rem;
  background: var(--white);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

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

/* Team Member Card */
.team-member-card {
  background: var(--white);
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(63, 115, 174, 0.15);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

.team-member-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(63, 115, 174, 0.2);
  border-color: rgba(63, 115, 174, 0.4);
}

.team-member-image-wrapper {
  position: relative;
  height: 450px;
  overflow: hidden;
}

.team-member-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.team-member-image-placeholder {
  background: linear-gradient(135deg, rgba(63, 115, 174, 0.1), rgba(121, 188, 46, 0.08));
}

.team-member-card:hover .team-member-image {
  transform: scale(1.05);
}

.team-member-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  opacity: 0.6;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.team-member-card:hover .team-member-overlay {
  opacity: 0.4;
}

/* Badges */
.team-member-badge-founder,
.team-member-badge-director,
.team-member-badge-senior {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.team-member-badge-founder {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
  color: var(--white);
}

.team-member-badge-director {
  background: #ffffff;
  color: var(--brand-dark);
}

.team-member-badge-senior {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #111827;
}

/* Content */
.team-member-content {
  padding: 2.5rem;
  position: relative;
}

.team-member-name {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.25rem;
  line-height: 1.1;
}

.team-member-role {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  display: block;
}

.team-member-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(63, 115, 174, 0.15);
}

.team-credential-badge {
  background: #f3f4f6;
  color: #374151;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.team-member-bio {
  font-size: 1.0625rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.team-member-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.team-specialty-tag {
  background: rgba(63, 115, 174, 0.1);
  color: var(--brand-dark);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.team-member-card:hover .team-specialty-tag {
  background: var(--brand-primary);
  color: var(--white);
}

/* ============================================
   VALUES SECTION
   ============================================ */
.team-values-section {
  padding: 6rem 0;
  background: #f9fafb;
  position: relative;
}

.team-section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.team-section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: #111827;
  margin-top: 0;
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .team-section-title {
    font-size: 3rem;
  }
}

.team-section-description {
  font-size: 1.25rem;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
}

.team-values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

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

.team-value-card {
  background: var(--white);
  border: 1px solid rgba(63, 115, 174, 0.1);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  transition: all 0.4s ease;
  height: 100%;
}

.team-value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(63, 115, 174, 0.15);
  border-color: var(--brand-primary);
}

.team-value-icon {
  width: 4.5rem;
  height: 4.5rem;
  background: linear-gradient(135deg, rgba(63, 115, 174, 0.15), rgba(42, 80, 122, 0.1));
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--brand-primary);
  font-size: 2rem;
  transition: all 0.4s ease;
}

.team-value-card:hover .team-value-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
  color: var(--white);
}

.team-value-title {
  font-size: 1.375rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
}

.team-value-description {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.6;
}

/* ============================================
   CTA SECTION
   ============================================ */
.team-cta-section {
  position: relative;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
  padding: 8rem 0;
  overflow: hidden;
  text-align: center;
}

.team-cta-blob-1 {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.team-cta-blob-2 {
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 700px;
  height: 700px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.team-cta-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
}

.team-cta-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.team-cta-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  color: var(--white);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-cta-title {
  font-size: 3rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

@media (min-width: 1024px) {
  .team-cta-title {
    font-size: 4rem;
  }
}

.team-cta-description {
  font-size: 1.375rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.team-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .team-cta-actions {
    flex-direction: row;
  }
}

.team-cta-button-white {
  background: var(--white);
  color: var(--brand-dark);
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.team-cta-button-white:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.05);
}

.team-cta-button-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

.team-cta-button-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.team-cta-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 2rem;
}

.team-cta-trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.team-cta-trust-item i {
  font-size: 1.25rem;
  color: var(--white);
}
