/* Professional Agency Profile - BigLeap Style */
/* Clean, consistent design with white backgrounds */

:root {
  --primary-color: #6366F1;
  --primary-dark: #4F46E5;
  --text-primary: #1F2937;
  --text-secondary: #6C757D;
  --text-light: #9CA3AF;
  --border-color: #E5E7EB;
  --bg-white: #FFFFFF;
  --bg-gray: #F9FAFB;
  --success-color: #10B981;
  --warning-color: #F59E0B;
}

.agency-profile-wrapper {
  background: var(--bg-white);
  min-height: 100vh;
}

/* ============================================
   BREADCRUMB
============================================ */
.profile-breadcrumb {
  background: var(--bg-white);
  padding: 1rem 0;

  font-size: 0.875rem;
  color: var(--text-secondary);
}

.profile-breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

.profile-breadcrumb a:hover {
  color: var(--primary-dark);
}

/* ============================================
   HERO SECTION
============================================ */
.profile-hero {
  background: var(--bg-white);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

/* Company Header */
.company-header {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.company-logo,
.company-logo-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
}

.company-logo-placeholder {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.company-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1.5rem 0;
  line-height: 1.2;
}

/* Inline Stats Pills Below Name */
.hero-stats-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
  margin-bottom: 2rem;
}

.stat-pill-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.875rem;
}

.stat-label-inline {
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.6875rem;
  letter-spacing: 0.5px;
}

.stat-value-inline {
  color: var(--text-primary);
  font-weight: 700;
}

.company-tagline {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Hero Stats Pills */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-gray);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.875rem;
}

.stat-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-value {
  color: var(--text-primary);
  font-weight: 600;
}

/* Hero Meta */
.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.meta-item svg {
  color: var(--primary-color);
  flex-shrink: 0;
}

.meta-item a {
  color: var(--primary-color);
  text-decoration: none;
}

.meta-item a:hover {
  text-decoration: underline;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-gray);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.social-link:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Hero Sidebar - Rating & CTA */
.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rating-box {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.rating-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.rating-score {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.rating-stars {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.rating-stars span {
  color: #E5E7EB;
}

.rating-stars span.filled {
  color: #FBB040;
}

.rating-count {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.btn-primary-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--success-color);
  color: white;
  padding: 0.875rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary-cta:hover {
  background: #059669;
  transform: translateY(-1px);
}

/* ============================================
   MAIN CONTENT
============================================ */
.profile-content {
  padding: 3rem 0;
  background: var(--bg-white);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
}

/* ============================================
   CONTENT SECTIONS (Reusable)
============================================ */
.content-section {
  background: var(--bg-white);
  padding: 0 0 2.5rem 0;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
}

.content-section:last-child {
  border-bottom: none;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

.section-content {
  color: var(--text-secondary);
}

/* Description Box */
.description-box {
  background: var(--bg-white);
  padding: 0;
}

.description-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.9375rem;
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.2s;
}

.service-item:hover {
  border-color: var(--primary-color);
  background: var(--bg-gray);
}

.service-item svg {
  color: var(--success-color);
  flex-shrink: 0;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.portfolio-item {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s;
}

.portfolio-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.portfolio-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: var(--bg-gray);
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-content {
  padding: 1.25rem;
}

.portfolio-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
}

.portfolio-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}

.team-member {
  text-align: center;
}

.team-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-color);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-gray);
  color: var(--primary-color);
  font-size: 1.75rem;
  font-weight: 700;
}

.team-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* Reviews List */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.review-item {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.reviewer {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.reviewer-avatar,
.reviewer-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
}

.reviewer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reviewer-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-gray);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.125rem;
}

.reviewer-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.reviewer-position {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.review-rating {
  display: flex;
  gap: 0.25rem;
  font-size: 1.125rem;
}

.review-rating span {
  color: #E5E7EB;
}

.review-rating span.filled {
  color: #FBB040;
}

.review-body {
  margin-bottom: 0.75rem;
}

.review-body p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.review-project {
  font-size: 0.8125rem;
  color: var(--text-light);
}

/* ============================================
   SIDEBAR (Reusable Components)
============================================ */
.sidebar-section {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

/* Sidebar Lists */
.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-list-item {
  padding: 0.625rem 0.875rem;
  background: var(--bg-gray);
  border-radius: 4px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Clients List */
.clients-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.client-item {
  padding: 0.625rem;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.2s;
}

.client-item:hover {
  border-color: var(--primary-color);
  background: var(--bg-gray);
}

/* Awards List - Portfolio Style */
.awards-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.award-item {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
}

.award-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
  transform: translateY(-2px);
}

.award-icon {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: var(--bg-gray);
  padding: 2rem;
}

.award-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.award-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.award-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
}

.award-org {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Locations List */
.locations-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.location-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--bg-gray);
  border-radius: 4px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.location-item svg {
  color: var(--primary-color);
  flex-shrink: 0;
}

.location-more {
  padding: 0.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--primary-color);
  font-weight: 600;
}

/* Press List */
.press-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.press-item {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.press-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.press-item a {
  text-decoration: none;
  transition: opacity 0.2s;
}

.press-item a:hover {
  opacity: 0.8;
}

.press-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.press-source {
  font-size: 0.75rem;
  color: var(--primary-color);
  font-weight: 500;
}

/* Inline Expertise Tags */
.expertise-tags-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.expertise-tag-inline {
  display: inline-block;
  padding: 0.5rem 0.875rem;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.2s;
}

.expertise-tag-inline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: #F0F4FF;
}

/* ============================================
   RESPONSIVE DESIGN
============================================ */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-sidebar {
    flex-direction: row;
    gap: 1rem;
  }
  
  .rating-box,
  .btn-primary-cta {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .company-header {
    flex-direction: column;
  }
  
  .company-name {
    font-size: 1.5rem;
  }
  
  .hero-stats {
    flex-direction: column;
  }
  
  .hero-sidebar {
    flex-direction: column;
  }
  
  .services-grid,
  .portfolio-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .clients-list {
    grid-template-columns: 1fr;
  }
  
  .awards-list {
    grid-template-columns: 1fr;
  }
  
  .profile-content {
    padding: 2rem 0;
  }
}

@media (max-width: 480px) {
  .company-logo,
  .company-logo-placeholder {
    width: 60px;
    height: 60px;
  }
  
  .company-name {
    font-size: 1.25rem;
  }
  
  .rating-score {
    font-size: 2rem;
  }
}
