/* Legacy about page hero styles removed in favor of shared inner-page hero. */

/* Stats bar */
.stats-bar {
  margin-top: -52px;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 3;
}

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

/* 3-column variant for About page */
.stats-grid--3 {
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 1.8vw, 1.2rem);
}

.stat {
  background: var(--surface-grad-card-warm);
  border-radius: var(--card-radius);
  padding: clamp(1.1rem, 2.2vw, 1.55rem) clamp(0.85rem, 1.5vw, 1.25rem)
    clamp(1.1rem, 2.2vw, 1.45rem);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--card-border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--brand-grad-primary);
}

.stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--card-border-strong);
}

.stat-number {
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary);
}

.stat-label {
  color: var(--gray-700);
  margin-top: 0.38rem;
  font-size: clamp(0.75rem, 1vw, 0.88rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.35;
}

.about-story-section {
  padding-top: var(--section-space-tight);
  padding-bottom: var(--section-space);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(1.4rem, 3.2vw, 3rem);
  margin: 0;
  align-items: center;
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-md);
  padding: clamp(1.25rem, 2.4vw, 2rem);
}

.about-content {
  padding-right: clamp(0rem, 1.2vw, 0.6rem);
}

.about-content h2 {
  color: var(--gray-800);
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  margin-bottom: 1.15rem;
  line-height: 1.22;
  max-width: 18ch;
}

.about-content h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  margin-top: 0.72rem;
  background: var(--brand-grad-primary);
}

.about-content p {
  margin-bottom: 1rem;
  max-width: 62ch;
  line-height: 1.74;
  font-size: clamp(0.99rem, 1.2vw, 1.06rem);
  color: var(--gray-700);
  overflow-wrap: break-word;
  word-break: normal;
}

.values-list {
  list-style: none;
  padding: 0;
  margin-top: 1.25rem;
}

.values-list li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.values-list li::before {
  content: "→";
  color: var(--primary);
  position: absolute;
  left: 0;
}

/* Enhanced value chips */
.values-list--enhanced li {
  background: var(--gray-50);
  border-left: 4px solid var(--primary);
  padding: 0.75rem 1rem 0.75rem 1.25rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.values-list--enhanced li + li {
  margin-top: 1rem;
}

.about-image img {
  width: 100%;
  min-height: 360px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-lg);
}
.about-image-placeholder {
  height: 320px;
  width: 100%;
  border: 2px dashed var(--primary);
  border-radius: var(--card-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--primary);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(80, 64, 24, 0.06) 0 10px,
      rgba(80, 64, 24, 0.1) 10px 20px
    ),
    var(--gray-100);
  text-transform: uppercase;
}
.about-image-placeholder span {
  background: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
}

.team-section {
  background: linear-gradient(180deg, #fbf7ef 0%, #f4ead9 100%);
  padding: var(--section-space) 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}

.team-member {
  background: var(--gray-50);
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-400);
  transition: transform var(--anim-duration) ease;
}

.team-member:hover {
  transform: translateY(-2px);
}

.team-member img {
  width: 100%;
  display: block;
}
/* Ensure headshot wrapper maintains consistent height when image present */
.team-photo {
  width: 100%;
  aspect-ratio: 4 / 3; /* shorter default to reduce height */
  overflow: hidden;
  display: block;
  border-bottom: 1px solid var(--gray-200);
}
/* Ensure image fills the photo wrapper without distortion */
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* favor faces/headshots */
  display: block;
}
/* Placeholder styling when no image is available */
.team-photo.no-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-200);
}
.team-photo.no-thumb .initial {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
}

.team-member h3 {
  margin: 0.75rem 0 0.25rem;
  color: var(--primary);
  font-size: 1rem;
}

.team-member .role {
  color: var(--gray-600);
  font-style: italic;
  margin: 0.25rem 0;
}

.team-member p {
  padding: 0 0.75rem 0.5rem;
  margin: 0;
}
/* Bio space tuning */
.team-member .team-bio {
  margin-top: 0.5rem;
}

/* Enhanced team member details */
.team-member .experience {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-600);
  margin: 0.15rem 0 0.35rem;
  letter-spacing: 0.5px;
}
.team-member .team-bio {
  font-size: 0.8rem;
  line-height: 1.55;
  margin: 0.5rem 0 0.6rem;
  padding: 0 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.team-specialties {
  list-style: none;
  padding: 0 0.75rem 0.5rem;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}
.team-specialties li {
  background: var(--primary-accent);
  color: var(--white);
  font-size: 0.6rem;
  padding: 0.3rem 0.5rem;
  border-radius: 16px;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
}
.team-certifications {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--primary);
  padding: 0 0.75rem 0.75rem;
  letter-spacing: 0.5px;
}

.team-quote {
  font-size: 0.68rem;
  font-style: italic;
  color: var(--primary-dark);
  margin: 0 0.75rem 0.4rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.team-achievements {
  list-style: none;
  padding: 0 0.75rem 0.75rem;
  margin: 0;
  display: grid;
  gap: 0.3rem;
  font-size: 0.6rem;
}
.team-achievements li {
  background: var(--gray-200);
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  line-height: 1.3;
}

/* Mini team gallery */
.team-gallery-wrapper {
  margin-top: 3rem;
}
.team-gallery-title {
  margin: 0 0 1rem 0;
  color: var(--primary);
  font-size: 1.5rem;
  text-align: center;
}
.team-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}
.team-gallery-item {
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.team-gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.team-gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

@media (max-width: 600px) {
  .team-gallery-item img {
    height: 140px;
  }
}

/* Process section */
.process-section {
  padding: 4rem 0 0;
}

.process-section h2 {
  text-align: center;
  color: var(--primary);
}

.process-intro {
  text-align: center;
  color: var(--gray-600);
  max-width: 720px;
  margin: 0.75rem auto 0;
}

.process-grid {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.process-step {
  background: var(--gray-50);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-400);
  padding: 1.25rem 1rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.process-step h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.process-step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.step-number {
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  display: inline-block;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  /* 3-card layout: keep as 3 across on tablet-ish screens */
  .stats-grid--3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
    padding: 1rem;
  }

  .about-content {
    padding-right: 0;
  }

  .about-content p {
    max-width: 100%;
    margin-bottom: 0.86rem;
  }

  .about-image img {
    min-height: 260px;
    aspect-ratio: 16 / 11;
  }

  .team-photo {
    aspect-ratio: 16 / 9; /* shorter mobile crop to emphasize head/shoulders */
  }
}

/* Desktop-specific compaction */
@media (min-width: 1024px) {
  .team-photo {
    aspect-ratio: 16 / 9; /* shortest desktop ratio for compact cards */
  }
}

/* Very small screens: stack the 3 About stats into a 1-column layout */
@media (max-width: 420px) {
  .stats-grid--3 {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .stat-number {
    font-size: 1.6rem;
  }
}
