/* =============================================================================
   ABOUT PAGE STYLES
   ============================================================================= */

.page-header {
  margin-top: var(--nav-height);
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(227,27,35,.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(227,27,35,.1) 0%, transparent 50%);
  pointer-events: none;
}

.page-header-content {
  position: relative;
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

.page-header h1 {
  margin: 0 0 12px;
}

.page-header p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.owner-feature {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 60px;
  padding: 40px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.owner-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid var(--red);
}

.owner-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.owner-info h2 {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--ink);
}

.owner-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 24px;
}

.owner-bio {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 32px;
}

.owner-contact {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

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

/* Center the 7th agent when alone on desktop */
.team-grid .team-member:nth-child(7):last-child {
  grid-column: 2;
}

.team-member {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-base);
}

.team-member:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--line-dark);
}

.member-photo {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  position: relative;
  overflow: hidden;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.team-member:hover .member-photo img {
  transform: scale(1.05);
}

.member-info {
  padding: 24px;
}

.member-name {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
}

.member-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.member-bio {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 20px;
}

.member-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.member-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  transition: color var(--transition-fast);
}

.member-contact a:hover {
  color: var(--red);
}

.member-contact svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.company-story {
  background: var(--bg-gray);
  padding: 60px 0;
  margin-top: 40px;
}

.story-content {
  max-width: 800px;
  margin: 0 auto;
}

.story-content h2 {
  margin: 0 0 24px;
  text-align: center;
}

.story-content p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 20px;
}

.story-content p:last-child {
  margin-bottom: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

@media (max-width: 1020px) {
  .owner-feature {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px;
  }

  .owner-photo {
    max-width: 350px;
    margin: 0 auto;
  }

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

  .team-grid .team-member:nth-child(7):last-child {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .page-header {
    padding: 60px 0 40px;
  }

  .page-header h1 {
    font-size: 32px;
  }

  .page-header p {
    font-size: 16px;
  }

  .owner-feature {
    padding: 24px;
  }

  .owner-info h2 {
    font-size: 28px;
  }

  .owner-contact {
    flex-direction: column;
  }

  .owner-contact .btn {
    width: 100%;
  }

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

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