/* ============================================================================
   ABOUT US SECTION COMPONENT

   Team member cards displaying leadership information with photos.

   Purpose: Introduce the team behind Essential Budget with professional
   profile cards showing photos, names, and titles.

   Required HTML Structure:

   <section class="about-us" id="about">
     <div class="container">
       <h2 class="section-title">About Us</h2>
       <p class="about-intro">Introduction text...</p>

       <div class="team-grid">
         <div class="team-card">
           <div class="team-photo">
             <img src="images/team/person.jpg" alt="Name - Title" />
           </div>
           <h3 class="team-name">Full Name</h3>
           <p class="team-title">Job Title</p>
           <p class="team-company">Company Name</p>
         </div>
       </div>
     </div>
   </section>

   Dependencies:
   - variables.css (CSS custom properties)
   - .section-title from benefits.css

   Features:
   - Responsive 2-column grid (centers on mobile)
   - Circular photo with border
   - Card hover effects
   - Consistent with site styling

   ============================================================================ */

/* ===== Section Container ===== */

.about-us {
  padding: 80px 0 60px;
  background: transparent;
  position: relative;
}

.about-us .section-title {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
}

.about-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
}


/* ===== Team Grid ===== */

.team-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
  flex-wrap: wrap;
}


/* ===== Team Card ===== */

.team-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
  position: relative;
  width: 280px;
}

/* Gradient border effect on hover */
.team-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    135deg,
    var(--sky-blue),
    var(--light-blue)
  );
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: -1;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.team-card:hover::before {
  opacity: 0.1;
}


/* ===== Team Photo ===== */

.team-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--sky-blue);
  box-shadow: 0 5px 20px rgba(96, 165, 250, 0.3);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder styling when no image */
.team-photo--placeholder {
  background: linear-gradient(135deg, var(--navy-light), var(--sky-blue));
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-photo--placeholder i {
  font-size: 60px;
  color: var(--white);
  opacity: 0.7;
}


/* ===== Team Content ===== */

.team-name {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
}

.team-title {
  color: var(--sky-blue);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.team-company {
  color: var(--text-muted);
  font-size: 0.9rem;
}


/* ===== Responsive ===== */

@media (max-width: 768px) {
  .about-us {
    padding: 60px 0 40px;
  }

  .about-intro {
    font-size: 1rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
  }

  .team-grid {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .team-card {
    width: 100%;
    max-width: 300px;
    padding: 2rem 1.5rem;
  }

  .team-photo {
    width: 120px;
    height: 120px;
  }
}
