/* TEAM PAGE SPECIFIC STYLES */

/* Team Hero Section */
.team-hero {
  height: 60vh;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../gallery/team-hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  margin-top: 80px;
}

.team-hero .hero-content h1 {
  font-family: 'Lato', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.team-hero .hero-content p {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 300;
  color: #ffe600;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* Team Introduction */
.team-intro {
  padding: 6rem 0;
  background: #fff;
}

.intro-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.intro-content h2 {
  font-family: 'Lato', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 2rem;
}

.intro-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 1.5rem;
}

/* Team Members Section - FIXED 3 COLUMNS ON DESKTOP */
.team-members {
  padding: 6rem 0;
  background: #f8f8f8;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2rem;
  justify-items: center;
  align-items: start;
}

.team-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.team-image {
  position: relative;
  height: 280px;
  overflow: hidden;
  flex-shrink: 0;
}

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

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

/* TEAM INFO - FLEXIBLE HEIGHT FOR DIFFERENT BIO LENGTHS */
.team-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 280px;
}

.team-info h3 {
  font-family: 'Lato', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 0.5rem;
}

.team-role {
  font-size: 1rem;
  font-weight: 600;
  color: #ffe600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.team-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 1.5rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 4.8rem;
}

.team-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
}

.specialty {
  background: #f0f0f0;
  color: #333;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.team-card:hover .specialty {
  background: #ffe600;
  color: #000;
  transform: translateY(-1px);
}

/* Team Values Section - FIXED SPACING BETWEEN VALUES */
.team-values {
  padding: 6rem 0;
  background: #fff;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5rem;
  margin-top: 2rem;
  justify-items: center;
}

.value-card {
  text-align: center;
  padding: 2rem;
  border-radius: 16px;
  background: #f8f8f8;
  transition: transform 0.3s ease, background 0.3s ease;
  width: 100%;
  max-width: 300px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.value-card:hover {
  transform: translateY(-5px);
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.value-card h3 {
  font-family: 'Lato', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 1rem;
}

.value-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
  flex: 1;
}

/* Call to Action Section */
.team-cta {
  padding: 6rem 0;
  background: linear-gradient(135deg, #000 0%, #333 100%);
  color: #fff;
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-family: 'Lato', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #ccc;
}

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

.cta-btn {
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  display: inline-block;
}

.cta-btn.primary {
  background: #ffe600;
  color: #000;
}

.cta-btn.primary:hover {
  background: #fff;
  color: #000;
  transform: translateY(-2px);
}

.cta-btn.secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.cta-btn.secondary:hover {
  background: #fff;
  color: #000;
  transform: translateY(-2px);
}

/* RESPONSIVE DESIGN - ENHANCED MOBILE SCALING */
@media (max-width: 1200px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .values-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
  
  .team-info {
    min-height: 260px;
  }
}

@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .team-info {
    min-height: 260px;
  }
}

@media (max-width: 768px) {
  .team-hero {
    height: 40vh;
    margin-top: 70px;
  }
  
  .team-intro,
  .team-members,
  .team-values,
  .team-cta {
    padding: 4rem 0;
  }
  
  .intro-content h2,
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 500px;
    margin: 2rem auto 0;
  }
  
  .team-card {
    max-width: 100%;
  }
  
  /* SQUARE IMAGE CONTAINER */
  .team-image {
    height: 0;
    padding-bottom: 100%; /* Creates square aspect ratio */
    position: relative;
    overflow: hidden;
  }
  
  .team-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%; /* Focus on upper portion for faces */
    transition: transform 0.3s ease;
  }
  
  .team-info {
    padding: 1.5rem;
    min-height: 240px;
  }
  
  .team-description {
    -webkit-line-clamp: 3;
    min-height: 3.6rem;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .value-card {
    max-width: 100%;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .team-intro,
  .team-members,
  .team-values,
  .team-cta {
    padding: 3rem 0;
  }
  
  .team-grid {
    gap: 1.5rem;
    margin: 1.5rem auto 0;
  }
  
  .team-card {
    border-radius: 12px;
  }
  
  /* MAINTAIN SQUARE RATIO ON SMALLER SCREENS */
  .team-image {
    padding-bottom: 100%; /* Keep square */
  }
  
  .team-image img {
    object-position: center 15%; /* Adjust for smaller screens */
  }
  
  .team-info {
    padding: 1rem;
    min-height: 200px;
  }
  
  .team-info h3 {
    font-size: 1.3rem;
  }
  
  .team-role {
    font-size: 0.9rem;
  }
  
  .team-description {
    font-size: 0.9rem;
    -webkit-line-clamp: 3;
    min-height: 3.24rem;
  }
  
  .team-specialties {
    gap: 0.25rem;
  }
  
  .specialty {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
  
  .value-card {
    padding: 1.5rem;
    border-radius: 12px;
  }
  
  .value-icon {
    font-size: 2.5rem;
  }
  
  .intro-content h2,
  .cta-content h2 {
    font-size: 1.8rem;
  }
  
  .intro-content p,
  .cta-content p {
    font-size: 1rem;
  }
}

@media (max-width: 360px) {
  .team-grid {
    padding: 0 0.5rem;
  }
  
  .team-info {
    padding: 0.75rem;
    min-height: 180px;
  }
  
  .team-description {
    font-size: 0.85rem;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    min-height: 2.55rem;
  }
  
  .specialty {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
}

/* RESPONSIVE DESIGN FOR VALUES */
@media (max-width: 1200px) {
  .values-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .value-card {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .value-card {
    padding: 1.5rem;
    border-radius: 12px;
  }
  
  .value-icon {
    font-size: 2.5rem;
  }
}