/* ====================================================
   PROFESSIONAL PROFILE PAGE STYLES
   Color palette (from site design system):
     Primary dark:    #24305e, #374785
     Accent yellow:   #f8e9a1
     Accent blue:     #a8d0e6
     Accent coral:    #f76c6c
     White/light:     #ffffff, #f8f9fa
     Text dark:       #212529
     Text muted:      #6c757d
     Green:           #28a745, #2e7d32
   ==================================================== */

/* ── Page Wrapper ── */
.profile-page {
  padding-top: 65px; /* clear fixed navbar */
}

/* ── Hero Section ── */
.profile-hero {
  background: linear-gradient(135deg, #24305e 0%, #374785 100%);
  padding: 2.5rem 0 2rem;
  color: #ffffff;
}

.profile-photo-container {
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 50%;
  border: 4px solid #a8d0e6;
  padding: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: clamp(2rem, 12vw, 3.25rem);
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}

.profile-avatar-fallback__initials {
  user-select: none;
  pointer-events: none;
}

.profile-avatar-fallback--editorial {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.75);
}

.profile-photo-credit-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  max-width: 180px;
  margin: 0.45rem auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.profile-photo-credit-trigger:hover,
.profile-photo-credit-trigger:focus {
  color: rgba(255, 255, 255, 0.94);
}

.profile-photo-credit-trigger:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 3px;
  border-radius: 4px;
}

.profile-photo-credit-modal .modal-content {
  border-radius: 8px;
}

#profilePhotoCreditModal {
  z-index: 1080;
  background-color: transparent;
}

body.modal-open .modal-backdrop {
  z-index: 1070;
}

.profile-photo-credit-list {
  margin: 0;
}

.profile-photo-credit-row {
  display: grid;
  grid-template-columns: minmax(7rem, max-content) 1fr;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e9ecef;
}

.profile-photo-credit-row:first-child {
  padding-top: 0;
}

.profile-photo-credit-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.profile-photo-credit-row dt {
  margin: 0;
  color: #6c757d;
  font-size: 0.85rem;
  font-weight: 600;
}

.profile-photo-credit-row dd {
  margin: 0;
  color: #212529;
  overflow-wrap: anywhere;
}

.profile-photo-credit-row a {
  color: #374785;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.profile-name {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 768px) {
  .profile-name {
    justify-content: flex-start;
  }
}

.profile-name .verified-badge {
  display: inline-flex;
  align-items: center;
}

.profile-name .certificate-badge {
  position: relative;
  display: inline-block;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.profile-name .certificate-badge .fa-certificate {
  color: #0d6efd;
  font-size: 1.25rem;
}

.profile-name .certificate-badge .certificate-check {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 900;
  z-index: 2;
}

.profile-name .verified-badge:hover .certificate-badge {
  transform: scale(1.1);
  filter: brightness(1.2);
}

.profile-hero .verified-label {
  color: #d0d8f0;
  font-size: 0.95rem;
}

/* Mobile-only status badges (below the name, centered) */
.profile-mobile-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  color: #d0d8f0;
  font-size: 0.95rem;
}

.profile-mobile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.profile-mobile-badge .certificate-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  line-height: 1;
}

.profile-mobile-badge .certificate-badge .fa-certificate {
  color: #0d6efd;
  font-size: 1.1rem;
}

.profile-mobile-badge .certificate-badge .certificate-check {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 0.5rem;
  font-weight: 900;
  z-index: 2;
}

.profile-mobile-badge .editorial-pick-star {
  font-size: 1.1rem;
}

.profile-name .editorial-pick-icon {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  filter: brightness(1.1);
}

.profile-name .editorial-pick-star {
  font-size: 1.25rem;
  vertical-align: middle;
}

.profile-name .editorial-pick-icon:hover {
  transform: scale(1.08);
  filter: brightness(1.2);
}

.profile-hero-tagline {
  font-size: 1.05rem;
  color: #d0d8f0;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 0.75rem;
  line-height: 1.5;
  max-width: 620px;
}

@media (max-width: 767px) {
  .profile-hero-tagline {
    text-align: center;
    max-width: none;
  }
}

.profile-profession {
  font-size: 1.1rem;
  color: #f8e9a1;
  font-weight: 500;
}

/* ── Meta row (location, experience, session types) ── */
.profile-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .profile-meta-row {
    justify-content: flex-start;
  }
}

.profile-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  color: #e0e0e0;
}

.profile-meta-item i {
  font-size: 0.8rem;
}

.profile-meta-item.session-meta {
  background: rgba(168, 208, 230, 0.2);
  color: #a8d0e6;
}

.profile-meta-item.accepting-meta {
  background: rgba(40, 167, 69, 0.25);
  color: #8cf5a5;
}

/* ── CTA Buttons ── */
.profile-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 768px) {
  .profile-cta {
    justify-content: flex-start;
  }
}

/* ── Hero microcopy ── */
.hero-microcopy {
  font-size: 0.85rem;
  color: #efefef;
  margin-top: 0.6rem;
  margin-bottom: 0;
  line-height: 1.4;
}

.hero-microcopy-link {
  color: #efefef;
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 2px;
  transition: opacity 0.2s ease;
}

.hero-microcopy-link:hover {
  color: #ffffff;
  opacity: 0.85;
}

@media (max-width: 767px) {
  .hero-microcopy {
    text-align: center;
  }
}

.profile-hero-claim {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #e0e0e0;
  font-size: 0.85rem;
  line-height: 1.45;
  text-align: center;
}

.profile-hero-claim__text {
  margin: 0;
}

.profile-hero-claim__text i {
  color: #f8e9a1;
  margin-right: 0.4rem;
}

.profile-hero-claim__text strong {
  color: #ffffff;
  font-weight: 600;
}

.profile-btn-claim {
  background: rgba(248, 233, 161, 0.12);
  border: 1px solid rgba(248, 233, 161, 0.35);
  color: #f8e9a1;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  margin-top: 0.6rem;
}

.profile-btn-claim:hover {
  background: rgba(248, 233, 161, 0.22);
  color: #ffffff;
  border-color: rgba(248, 233, 161, 0.55);
}

@media (min-width: 768px) {
  .profile-hero-claim {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 767px) {
  .profile-btn-claim {
    margin-top: auto;
  }
}

.profile-btn-primary {
  background: #f76c6c;
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.profile-btn-primary:hover {
  background: #e55b5b;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(247, 108, 108, 0.4);
}

.profile-btn-secondary {
  background: #a8d0e6;
  border: none;
  color: #24305e;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.profile-btn-secondary:hover {
  background: #8ec4de;
  color: #24305e;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(168, 208, 230, 0.4);
}

/* ── Content Area ── */
.profile-content {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* ── Sections ── */
.profile-section {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.profile-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #374785;
  text-align: left;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #f8e9a1;
}

.profile-section h2 i {
  color: #f76c6c;
  font-size: 1.1rem;
}

/* ── Bio / Text content ── */
.profile-bio {
  font-size: 1rem;
  line-height: 1.75;
  color: #333;
}

/* ── Tags grid (specialties, credentials) ── */
.profile-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.profile-tags-grid .specialization-badge {
  background: #374785;
  color: #a8d0e6;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-size: 0.85rem;
}

.profile-tags-grid .cert-badge {
  background: #f8e9a1;
  color: #374785;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-size: 0.85rem;
}

/* ── Services Grid ── */
.profile-services-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.service-label {
  font-weight: 600;
  color: #374785;
  font-size: 0.9rem;
  min-width: 180px;
  flex-shrink: 0;
}

.service-value {
  color: #333;
  font-size: 0.95rem;
}

/* ── Location text ── */
.profile-location-text {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

/* ── Contact Grid ── */
.profile-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  text-decoration: none;
  color: #374785;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.contact-link:hover {
  background: #374785;
  color: #ffffff;
  border-color: #374785;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(55, 71, 133, 0.2);
}

.contact-link:hover i {
  color: #f8e9a1;
}

.contact-link i {
  font-size: 1.2rem;
  color: #f76c6c;
  transition: color 0.2s ease;
}

/* ── Additional Resources (featured links) ── */
.profile-extra-links {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e7ecf5;
}

.profile-extra-links-header {
  margin-bottom: 0.75rem;
}

.profile-extra-links-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 1.2rem !important;
  font-weight: 700;
  color: #2f3f78;
  letter-spacing: 0;
  text-transform: none;
}

.profile-extra-links-icon {
  color: #f76c6c;
  font-size: 0.85rem;
}

.profile-extra-links-subtitle {
  margin: 0.2rem 0 0 1.3rem;
  font-size: 0.9rem;
  color: #7a8599;
}

.profile-extra-link-list {
  display: grid;
  gap: 0.5rem;
}

.profile-extra-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #e3e8f2;
  border-radius: 10px;
  background: #f8fafd;
  color: #24386f;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  min-width: 0;
}

.profile-extra-link:hover {
  background: #ffffff;
  border-color: #cfd8ea;
  color: #24386f;
  transform: translateY(-1px);
  text-decoration: none;
}

.profile-extra-link-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.profile-extra-link-left > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-extra-link-icon {
  color: #f76c6c;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.profile-extra-link-arrow {
  color: #9aa6bd;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ── Final CTA section ── */
.profile-final-cta {
  text-align: center;
  padding: 2.5rem 2rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.profile-final-cta h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #374785;
  margin-bottom: 0.5rem;
  border-bottom: none;
  text-align: center;
}

.profile-final-cta .btn-lg {
  padding: 0.65rem 1.5rem;
  font-size: 1rem;
}

/* ── Bottom claim CTA ── */
.profile-claim-footer {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.profile-claim-footer h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #374785;
  margin-bottom: 0.5rem;
}

.profile-claim-footer p {
  color: #6c757d;
  font-size: 0.95rem;
  line-height: 1.5;
}

.profile-claim-footer--editorial {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  box-shadow: none;
}

.profile-claim-footer--editorial h3 {
  font-size: 0.7rem;
  font-weight: 500;
  color: #8a94a6;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-claim-footer--editorial p {
  font-size: 0.875rem;
  color: #495057;
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.profile-claim-footer--editorial .btn {
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
}

/* ── Related Professionals Section ── */
.profile-related-section {
  background: #f8f9fa;
  padding: 2.5rem 0 2rem;
  margin-top: 1rem;
}

.profile-related-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #374785;
  text-align: center;
}

/* ── Breadcrumb ── */
.profile-breadcrumb {
  padding: 1rem 0;
  background: #ffffff;
  border-top: 1px solid #e9ecef;
}

.profile-breadcrumb .breadcrumb {
  font-size: 0.85rem;
}

.profile-breadcrumb .breadcrumb-item a {
  color: #374785;
  text-decoration: none;
}

.profile-breadcrumb .breadcrumb-item a:hover {
  color: #f76c6c;
  text-decoration: underline;
}

.profile-breadcrumb .breadcrumb-item.active {
  color: #6c757d;
}

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

/* ── Small screens (phones) ── */
@media (max-width: 576px) {
  .profile-photo-credit-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .profile-extra-link {
    padding: 0.65rem 0.75rem;
    gap: 0.5rem;
  }

  .profile-extra-link-left > span {
    white-space: normal;
    word-break: break-word;
  }

  .profile-claim-footer--editorial {
    padding: 0.875rem 1rem;
  }

  .profile-claim-footer--editorial p {
    font-size: 0.85rem;
  }

  .profile-hero {
    padding: 2rem 0 1.5rem;
  }

  .profile-photo-container {
    width: 120px;
    height: 120px;
  }

  .profile-name {
    font-size: 1.5rem;
  }

  .profile-profession {
    font-size: 0.95rem;
  }

  .profile-section {
    padding: 1.25rem 1rem;
  }

  .profile-section h2 {
    font-size: 1.15rem;
  }

  .service-item {
    flex-direction: column;
    gap: 0.3rem;
  }

  .service-label {
    min-width: auto;
  }

  .profile-contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .profile-final-cta {
    padding: 1.5rem 1rem;
  }

  .profile-final-cta h2 {
    font-size: 1.2rem;
  }
}

/* ── Medium screens (tablets) ── */
@media (min-width: 577px) and (max-width: 768px) {
  .profile-photo-container {
    width: 140px;
    height: 140px;
  }

  .profile-name {
    font-size: 1.75rem;
  }

  .profile-contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Large screens ── */
@media (min-width: 769px) {
  .profile-contact-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Scroll offset for anchors (fixed navbar) ── */
#links-section,
#about-section,
#approach-section,
#clients-section,
#specialties-section,
#credentials-section,
#services-section,
#location-section {
  scroll-margin-top: 90px;
}
