/**
 * Business Profiles Section - Clean & Focused Design
 * Dedicated section for business profile cards after hero simplification
 * 
 * @package Zero_Qubit_Astra_Child
 * @since 1.0.0
 */

/* ===================================
   BUSINESS PROFILES SECTION
   =================================== */

.business-profiles-section {
  padding: 3rem 0;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

/* Section Header */
.business-profiles-section .section-header {
  text-align: center;
  margin: 0 1rem 0 auto;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.business-profiles-section .section-title {
  margin: 0 0 1.5rem 0;
  color: var(--text-primary);
  text-align: center;
  width: 100%;
}

.business-profiles-section .section-description {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0;
  text-align: center;
  width: 100%;
}

/* ===================================
   BUSINESS PROFILES GRID
   =================================== */

.business-profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* Profile Cards */
.profile-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px var(--glass-shadow-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 200px;
  cursor: default;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.profile-card:hover {
  transform: translateY(-1px);
  border-color: var(--primary-light);
  box-shadow: 0 4px 20px var(--glass-shadow-medium);
  background: rgba(255, 255, 255, 0.95);
}

.profile-card:hover::before {
  opacity: 0.4;
}

/* Profile Icons */
.profile-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light-bg);
  border: 1px solid var(--primary-subtle);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 122, 204, 0.08);
}

.profile-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
  transition: all 0.2s ease;
}

.profile-card:hover .profile-icon {
  background: var(--primary-medium-bg);
  border-color: var(--primary);
  box-shadow: 0 3px 12px rgba(0, 122, 204, 0.15);
}

.profile-card:hover .profile-icon svg {
  color: var(--primary-dark);
}

/* Profile Content */
.profile-title {
  margin: 0 0 0.75rem 0;
}

.profile-description {
  margin: 0;
  text-align: center;
  flex-grow: 1;
  max-width: 280px;
}

/* Profile CTA - Removed as per requirements */

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
  .business-profiles-section {
    padding: 2.5rem 0;
  }
  
  .business-profiles-grid {
    gap: 1.25rem;
    padding: 0 1rem;
  }
  
  .profile-card {
    padding: 1.25rem;
    min-height: 180px;
  }
  
  .profile-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 0.875rem;
  }
  
  .profile-icon svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 768px) {
  .business-profiles-section {
    padding: 2rem 0;
  }
  
  .business-profiles-section .section-header {
    margin: 0 1rem 0 auto;
    padding: 0 1rem;
  }
  
  .business-profiles-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 350px;
    padding: 0 1rem;
  }
  
  .profile-card {
    padding: 1.25rem;
    min-height: 160px;
  }
  
  .profile-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
  }
  
  .profile-icon svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .business-profiles-grid {
    max-width: 320px;
    gap: 1rem;
  }
  
  .profile-card {
    padding: 1rem;
    border-radius: 14px;
    min-height: 140px;
  }
  
  .profile-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }
  
  .profile-icon svg {
    width: 18px;
    height: 18px;
  }
}

/* ===================================
   ACCESSIBILITY & INTERACTIONS
   =================================== */

/* Focus states for accessibility */
.profile-card:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-subtle);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .profile-card,
  .profile-icon,
  .profile-cta {
    transition: none;
  }
  
  .profile-card:hover {
    transform: none;
  }
  
  .profile-card:hover .profile-icon {
    transform: none;
  }
  
  .profile-cta:hover {
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .profile-card {
    border-color: var(--text-primary);
    background: var(--bg-primary);
  }
  
  .profile-card:hover {
    background: var(--bg-elevated);
    border-color: var(--primary);
  }
  
  .profile-icon {
    border-color: var(--text-primary);
    background: var(--bg-elevated);
  }
  
  .profile-cta {
    border: 2px solid var(--primary);
  }
}

/* Print styles */
@media print {
  .business-profiles-section {
    padding: 2rem 0;
    page-break-inside: avoid;
  }
  
  .profile-card {
    break-inside: avoid;
    box-shadow: none;
    border: 2px solid var(--text-primary);
  }
  
  /* No CTAs to hide */
}