/* Team Page & Section Styles */

/* ==========================================================================
   Hero Section
   ========================================================================== */

.team-hero {
  height: 500px;
  background-image: url('../images/spa-hero.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.team-hero .container {
  align-content: center;
}

.team-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

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

.team-hero-content h1 {
  font-family: 'Fraunces', serif;
  font-size: 4rem;
  font-weight: 400;
  margin: 0 0 15px 0;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.team-hero-content p {
  font-family: 'Figtree', sans-serif;
  font-size: 1.2rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Team Page Content Section (with Curved Top Transition)
   ========================================================================== */

.team-page-section {
  border-top-left-radius: 100px;
  border-top-right-radius: 100px;
  margin-top: -100px;
  position: relative;
  z-index: 10;
  background: #c2ae8f;
  padding: 85px 0 100px;
}

/* Intro Header */
.team-intro-header {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 60px;
  padding: 0 15px;
}

.team-kicker {
  font-family: 'Figtree', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #8b7355;
  font-weight: 600;
  display: block;
  margin-bottom: 14px;
}

.team-intro-title {
  font-family: 'Fraunces', serif;
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1.25;
  color: #1a1a1a;
  margin: 0 0 18px 0;
}

.team-intro-desc {
  font-family: 'Figtree', sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #000000;
  margin: 0;
}

/* ==========================================================================
   Modern Team Members Grid (3 cols desktop, 2 cols tablet, 1 col mobile)
   ========================================================================== */

.team-members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  margin-bottom: 75px;
}

.team-member-card {
  background: #ffffff;
  border: 1px solid rgba(139, 115, 85, 0.14);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.team-member-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(139, 115, 85, 0.16);
  border-color: #8b7355;
}

/* Image Container */
.member-card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4;
  overflow: hidden;
  background-color: #f2ece6;
}

.member-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  display: block;
}

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

.member-experience-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  background: rgba(26, 26, 26, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: 'Figtree', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Card Content Body */
.member-card-body {
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.member-header {
  margin-bottom: 12px;
}

.member-name {
  font-family: 'Fraunces', serif;
  font-size: 1.45rem;
  font-weight: 400;
  color: #1a1a1a;
  margin: 0 0 6px 0;
  line-height: 1.25;
}

.member-role-title {
  font-family: 'Figtree', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #8b7355;
  font-weight: 600;
  margin: 0;
}

.member-bio-text {
  font-family: 'Figtree', sans-serif;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #000000;
  margin: 0 0 12px 0;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-bio-text.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
}

.member-bio-wrapper {
  margin-bottom: 20px;
}

.btn-read-more {
  background: transparent;
  border: none;
  color: #8b7355;
  font-family: 'Figtree', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}

.btn-read-more:hover {
  color: #b48a54;
}

/* Specialty Tags */
.member-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.specialty-pill {
  font-family: 'Figtree', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 5px 12px;
  background: #f4eae0;
  color: #8b7355;
  border: 1px solid rgba(139, 115, 85, 0.2);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.team-member-card:hover .specialty-pill {
  background: #f4eae0;
  border-color: rgba(139, 115, 85, 0.35);
}

/* Card Action Button */
.member-card-action {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #f2ede6;
}

.btn-member-book {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #8b7355;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 26px; /* Strict 26px border-radius guideline */
  font-family: 'Figtree', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(139, 115, 85, 0.2);
}

.btn-member-book:hover {
  background: #b48a54;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 115, 85, 0.3);
}

.btn-member-book .arrow {
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.btn-member-book:hover .arrow {
  transform: translateX(3px);
}

/* ==========================================================================
   Consultation Call-to-Action Banner
   ========================================================================== */

.team-consultation-banner {
  background: linear-gradient(135deg, #3c3024 0%, #251d16 100%);
  border: 1px solid rgba(212, 165, 116, 0.25);
  border-radius: 28px;
  padding: 65px 40px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

.team-consultation-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(180, 138, 84, 0.15) 0%, rgba(180, 138, 84, 0) 70%);
  pointer-events: none;
}

.consultation-banner-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

.consultation-badge {
  display: inline-block;
  background: rgba(180, 138, 84, 0.25);
  color: #f2dec5;
  border: 1px solid rgba(180, 138, 84, 0.4);
  padding: 6px 18px;
  border-radius: 20px;
  font-family: 'Figtree', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 20px;
}

.team-consultation-banner h2 {
  font-family: 'Fraunces', serif;
  font-size: 2.6rem;
  font-weight: 400;
  color: #ffffff;
  margin: 0 0 16px 0;
  line-height: 1.25;
}

.team-consultation-banner p {
  font-family: 'Figtree', sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 32px 0;
}

.consultation-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.btn-team-cta {
  background: #b48a54;
  color: #ffffff;
  padding: 14px 34px;
  border-radius: 26px; /* Strict 26px border-radius guideline */
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(180, 138, 84, 0.35);
  border: none;
}

.btn-team-cta:hover {
  background: #d4a574;
  color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(212, 165, 116, 0.45);
}

.btn-team-secondary {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  padding: 13px 32px;
  border-radius: 26px; /* Strict 26px border-radius guideline */
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.btn-team-secondary:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   Embedded Section (Homepage/Generic Template Part Compatibility)
   ========================================================================== */

.team-section {
  background-color: #8c7456;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.team-member {
  background-color: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-align: center;
  border: 1px solid #f0f0f0;
}

.team-member:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
  border-color: #8b7355;
}

.member-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  position: relative;
}

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

.team-member:hover .member-image img {
  transform: scale(1.08);
}

.member-content {
  padding: 25px;
}

.member-content h4 {
  color: #1a1a1a;
  margin-bottom: 5px;
  font-size: 1.25rem;
  font-family: 'Fraunces', serif;
  font-weight: 400;
}

.member-role {
  color: #8b7355;
  font-weight: 500;
  font-size: 0.85rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.member-bio {
  color: #777;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .team-members-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .team-intro-title {
    font-size: 2.4rem;
  }

  .team-hero-content h1 {
    font-size: 3.2rem;
  }

  .team-consultation-banner h2 {
    font-size: 2.2rem;
  }

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

@media (max-width: 768px) {
  .team-hero {
    height: 400px;
  }

  .team-hero-content h1 {
    font-size: 2.4rem;
  }

  .team-hero-content p {
    font-size: 1.05rem;
  }

  .team-page-section {
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    margin-top: -50px;
    padding: 60px 0 80px;
  }

  .team-intro-header {
    margin-bottom: 40px;
  }

  .team-intro-title {
    font-size: 1.9rem;
  }

  .team-intro-desc {
    font-size: 0.98rem;
  }

  .team-members-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 50px;
  }

  .member-card-image-wrap {
    aspect-ratio: 4 / 4;
  }

  .team-consultation-banner {
    padding: 45px 24px;
    border-radius: 20px;
  }

  .team-consultation-banner h2 {
    font-size: 1.8rem;
  }

  .team-consultation-banner p {
    font-size: 0.95rem;
  }

  .consultation-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-team-cta,
  .btn-team-secondary {
    width: 100%;
    justify-content: center;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .member-image {
    height: 250px;
  }
}
