/* ===================================
   SERVICES PAGE STYLES
   =================================== */

/* CSS Variables — tokens moved to tokens.css */

/* ===================================
   HERO SECTION
   =================================== */
.services-hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #1e1e1e;
}

/* Hero Background */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, 
    rgba(0, 0, 0, 0.7) 0%, 
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.7) 100%);
  z-index: 2;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-image-fallback {
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1621905251189-08b45d6a269e?w=1920&h=1080&fit=crop') center/cover;
  filter: brightness(0.4);
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 0;
}

.hero-title {
  color: var(--white);
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease;
}

.title-line-1 {
  display: block;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  font-family: var(--font-secondary);
}

.title-line-2 {
  display: block;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  font-family: var(--font-secondary);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Search */
.hero-search-container {
  max-width: 650px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.hero-search-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.hero-search-input {
  flex: 1;
  padding: 1.25rem 2rem;
  border: none;
  outline: none;
  font-size: 1.125rem;
  color: var(--gray-900);
  background: transparent;
}

.hero-search-input::placeholder {
  color: var(--gray-500);
}

.hero-search-btn {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 1.25rem 2rem;
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-search-btn:hover {
  background: var(--primary-dark);
}

/* Popular Services Tags */
.popular-services-tags {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.tag-label {
  color: var(--white);
  font-weight: 500;
  opacity: 0.9;
}

.service-tag {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1.25rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

.service-tag:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.service-tag i {
  font-size: 0.9rem;
}

/* Trust Badges */
.trust-badges {
  margin-top: 3rem;
  color: var(--white);
  animation: fadeInUp 0.8s ease 0.6s backwards;
}

.trust-text {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-item {
  font-size: 0.9rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-item::before {
  content: '✓';
  color: var(--success-green);
  font-weight: bold;
}

/* ===================================
   SERVICE CATEGORIES FILTER BAR
   Modern horizontal scrollable pills
   =================================== */
.service-categories-bar {
  padding: 1.5rem 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

/* Category Pills Container */
.category-pills-wrapper {
  position: relative;
  margin-bottom: 1rem;
}

.category-pills-container {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.25rem 0;
  scroll-behavior: smooth;
}

.category-pills-container::-webkit-scrollbar {
  display: none;
}

/* Individual Category Pill */
.category-pill {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 50px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-700);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  scroll-snap-align: start;
  white-space: nowrap;
}

.category-pill i {
  font-size: 0.85rem;
  color: var(--gray-500);
  transition: color 0.2s ease;
}

.category-pill:hover {
  border-color: var(--primary-color);
  background: rgba(26, 137, 23, 0.05);
  color: var(--primary-color);
}

.category-pill:hover i {
  color: var(--primary-color);
}

.category-pill.active {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(26, 137, 23, 0.3);
}

.category-pill.active i {
  color: var(--white);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 10;
  transition: all 0.2s ease;
  opacity: 0;
  pointer-events: none;
}

.scroll-indicator:hover {
  background: var(--gray-50);
  border-color: var(--primary-color);
}

.scroll-indicator.scroll-right {
  right: 0;
}

.scroll-indicator.scroll-left {
  left: 0;
}

.scroll-indicator.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-indicator i {
  font-size: 0.75rem;
  color: var(--gray-600);
}

/* Secondary Filters Row */
.secondary-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-dropdowns {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-dropdown {
  position: relative;
}

.filter-dropdown select {
  appearance: none;
  padding: 0.5rem 2.5rem 0.5rem 2rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  background: var(--white);
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 140px;
}

.filter-dropdown select:hover {
  border-color: var(--primary-color);
}

.filter-dropdown select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 137, 23, 0.1);
}

.filter-dropdown i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--gray-400);
  pointer-events: none;
}

.filter-dropdown::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: var(--gray-400);
  pointer-events: none;
}

/* Filter Actions */
.filter-actions {
  display: flex;
  gap: 0.5rem;
}

.filter-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  background: var(--white);
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-toggle-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.filter-toggle-btn i {
  font-size: 0.8rem;
}

/* Active Filters Display */
.active-filters {
  display: none;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
  flex-wrap: wrap;
}

.active-filters.has-filters {
  display: flex;
}

.active-filters-label {
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 500;
}

.active-filter-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.active-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  background: rgba(26, 137, 23, 0.1);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.active-filter-pill .remove-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: none;
  background: none;
  color: var(--primary-color);
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
  padding: 0;
}

.active-filter-pill .remove-filter:hover {
  background: var(--primary-color);
  color: var(--white);
}

.clear-filters-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border: none;
  background: none;
  color: var(--gray-500);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
}

.clear-filters-btn:hover {
  color: var(--danger-red);
}

.clear-filters-btn i {
  font-size: 0.7rem;
}

/* Visually Hidden (for accessibility) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Section Header - keep for professionals section */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  font-family: var(--font-secondary);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
}

/* ===================================
   "All" sampler — horizontal scroll-snap strips
   (Phase C.1 — landing page sampler)
   =================================== */
.strip {
  margin-bottom: 2rem;
}

.strip-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.strip-header h3 {
  font-size: 1.125rem;
  margin: 0;
  font-weight: 600;
  color: var(--gray-900);
}

.strip-see-all {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
}

.strip-see-all:hover {
  text-decoration: underline;
}

/* Strip actions cluster — sits to the right of the strip title and groups a
   primary CTA (e.g. "Publier une offre") with the existing "Voir tout" link. */
.strip-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.strip-post-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  line-height: 1;
}

.strip-post-cta:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 137, 23, 0.3);
}

/* Jobs section panel header — wraps the "Post a job" CTA above the grid
   for when the user lands directly on the Jobs tab. */
.jobs-panel-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.post-job-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.post-job-cta:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 137, 23, 0.3);
}

/* Secondary variant — used for "Manage applications" / "My applications"
   pairings beside the primary "Post a job" CTA. Same shape, neutral fill. */
.post-job-cta.post-job-cta--secondary {
  background: var(--white);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.post-job-cta.post-job-cta--secondary:hover {
  background: var(--gray-50);
  color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(26, 137, 23, 0.15);
}

.strip-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.strip-scroll > * {
  flex: 0 0 280px;
  scroll-snap-align: start;
}

/* Reset the inner grid layout when a service card lives inside a strip —
   the parent flex item already owns the width. */
.strip-scroll .professional-card,
.strip-scroll .job-card,
.strip-scroll .talent-card {
  margin: 0;
}

/* Filter input group (checkboxes — Remote toggle) */
.filter-input-group {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  background: var(--white);
}

.filter-input-group[hidden] {
  display: none !important;
}

.filter-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-700);
  cursor: pointer;
  white-space: nowrap;
}

.filter-checkbox-label input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
}

/* Numeric / text filter inputs inside .filter-dropdown */
.filter-dropdown input[type="number"],
.filter-dropdown input[type="text"] {
  appearance: none;
  padding: 0.5rem 0.75rem 0.5rem 2rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  background: var(--white);
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 500;
  min-width: 140px;
  transition: all 0.2s ease;
}

.filter-dropdown input[type="number"]:hover,
.filter-dropdown input[type="text"]:hover {
  border-color: var(--primary-color);
}

.filter-dropdown input[type="number"]:focus,
.filter-dropdown input[type="text"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 137, 23, 0.1);
}

/* Hide the ::after caret on filter-dropdowns that wrap an <input> (carets
   only make sense on <select>). */
.filter-dropdown:has(input)::after {
  content: none;
}

/* ===================================
   FEATURED PROFESSIONALS
   =================================== */
.featured-professionals {
  padding: 5rem 0;
  background: var(--white);
}

.section-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.filter-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-pill {
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
  padding: 0.5rem 1.25rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-pill:hover {
  background: var(--gray-200);
}

.filter-pill.active {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

/* Load-more pagination button (sits below the grid, primary CTA) */
.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.view-all-btn {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  min-width: 200px;
  justify-content: center;
}

.view-all-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 137, 23, 0.25);
}

.view-all-btn:disabled,
.view-all-btn.is-loading {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.view-all-btn[hidden] { display: none; }

/* Results summary (e.g. "Showing 12 of 47 services matching ...") */
.results-summary {
  margin-top: 2rem;
  margin-bottom: -0.5rem;
  font-size: 1rem;
  color: var(--gray-800, #1f2937);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Professionals Grid */
.professionals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* Professional Card */
.professional-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
  animation: fadeInUp 0.5s ease backwards;
}

.professional-card:nth-child(1) { animation-delay: 0.1s; }
.professional-card:nth-child(2) { animation-delay: 0.2s; }
.professional-card:nth-child(3) { animation-delay: 0.3s; }

.professional-card {
  overflow: hidden;
}

.professional-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

/* Pro Cover (banner above the card content) */
.pro-cover {
  position: relative;
  margin: -1.5rem -1.5rem 0;
  width: calc(100% + 3rem);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f5e9 0%, var(--primary-color, #2e7d32) 100%);
}

.pro-cover::after {
  /* subtle dark fade so the avatar overlay reads cleanly */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,0.18) 100%);
  pointer-events: none;
}

.pro-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.professional-card:hover .pro-cover img {
  transform: scale(1.04);
}

.pro-cover-placeholder {
  width: 100%;
  height: 100%;
}

/* Clickable card overlay link */
.pro-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Ensure buttons are clickable above the overlay */
.professional-card .pro-actions {
  position: relative;
  z-index: 2;
}

/* Pro Badge — floats over the cover */
.pro-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--gray-900, #111);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  z-index: 3;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.pro-badge i {
  color: var(--success-green);
  font-size: 0.85rem;
}

/* Verified badge: green tinted */
.pro-badge--verified {
  background: rgba(46, 125, 50, 0.95);
  color: #fff;
}
.pro-badge--verified i { color: #fff; }

/* Rating badge: amber star + dark text on white */
.pro-badge--rating i { color: #f5b400; }

/* Pro Header */
.pro-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  margin-top: 1rem;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.pro-avatar {
  position: relative;
  flex-shrink: 0;
  /* Avatar peeks up over the cover; the rest of the header text stays in normal flow */
  margin-top: -42px;
}

.pro-avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--white, #fff);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  background: var(--white, #fff);
}

.availability-status {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--white);
}

.availability-status.online {
  background: var(--success-green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
}

.pro-info {
  flex: 1;
  min-width: 0;
  padding-top: 0.15rem;
}

.pro-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.2rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  /* keep on one line if possible, ellipsis on overflow so it never breaks layout */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pro-title {
  color: var(--primary-color, #2e7d32);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pro-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--gray-500);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pro-location i {
  color: var(--primary-color);
  flex-shrink: 0;
}

/* Pro Stats */
.pro-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 1rem;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--gray-500);
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Pro Skills */
.pro-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.skill-tag {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Pro Description */
.pro-description {
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.pro-description p {
  margin: 0;
}

/* Pro Pricing */
.pro-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.price-label {
  color: var(--gray-500);
  font-size: 0.9rem;
}

.price-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Pro Actions: primary "View Profile" button on top, then 2-col secondary row */
.pro-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pro-actions-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.btn-view,
.btn-contact,
.btn-book {
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  border: none;
  text-decoration: none;
  line-height: 1.2;
}

/* Primary: View Profile (filled green) */
.btn-view {
  background: var(--primary-color);
  color: var(--white);
}

.btn-view:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 137, 23, 0.3);
}

/* Secondary: Contact (gray) */
.btn-contact {
  background: var(--gray-100);
  color: var(--gray-700);
}

.btn-contact:hover {
  background: var(--gray-200);
}

/* Secondary: Book Now (outlined green) */
.btn-book {
  background: var(--white, #fff);
  color: var(--primary-color);
  border: 1.5px solid var(--primary-color);
}

.btn-book:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-1px);
}

/* ===================================
   HOW IT WORKS
   =================================== */
.how-it-works {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8fffe 0%, #e8f5e9 100%);
}

.section-header.center {
  text-align: center;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  align-items: start;
  position: relative;
}

.step {
  text-align: center;
  position: relative;
  padding: 0 1rem;
}

.step-number {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: var(--white);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 3;
}

.step-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--primary-color);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.step:hover .step-icon {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.step-description {
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.6;
}

.step-connector {
  position: absolute;
  top: 40px;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--gray-300) 0,
    var(--gray-300) 5px,
    transparent 5px,
    transparent 10px
  );
  z-index: 1;
}

/* ===================================
   CTA SECTION
   =================================== */
.services-cta {
  padding: 5rem 0;
  background: var(--gray-900);
  color: var(--white);
}

.cta-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: var(--font-secondary);
}

.cta-subtitle {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-benefits {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
}

.benefit i {
  color: var(--success-green);
  font-size: 1.25rem;
}

.cta-btn {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.cta-btn:hover {
  background: var(--primary-light);
  transform: translateX(5px);
}

.cta-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.cta-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===================================
   FOOTER
   =================================== */
.services-footer {
  background: var(--gray-100);
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--gray-600);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
  .professionals-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  
  .cta-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .cta-image {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .title-line-1,
  .title-line-2 {
    font-size: 2.5rem;
  }

  .hero-search-container {
    padding: 0 1rem;
  }

  .popular-services-tags {
    padding: 0 1rem;
  }

  .service-tag {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
  }

  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .section-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .filter-pills {
    justify-content: center;
  }

  .steps-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .step-connector {
    display: none;
  }
}

/* Mobile: keep at least 2 cards per row, tighten card internals */
@media (max-width: 480px) {
  .title-line-1,
  .title-line-2 {
    font-size: 2rem;
  }

  .hero-search-input {
    font-size: 1rem;
    padding: 1rem 1.5rem;
  }

  .hero-search-btn {
    padding: 1rem 1.5rem;
  }

  .trust-logos {
    gap: 1rem;
    font-size: 0.8rem;
  }

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

  /* 2 cards per row, even on phones */
  .professionals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.5rem;
  }

  /* Tighten card internals so 2 fit comfortably at ~360-440px viewports */
  .professional-card {
    padding: 0.9rem;
    border-radius: var(--radius-md);
  }

  .pro-cover {
    margin: -0.9rem -0.9rem 0;
    width: calc(100% + 1.8rem);
  }

  .pro-badge {
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.65rem;
  }
  .pro-badge i { font-size: 0.7rem; }

  .pro-header {
    gap: 0.6rem;
    margin-top: 0.6rem;
    margin-bottom: 0.85rem;
  }

  .pro-avatar {
    margin-top: -32px;
  }
  .pro-avatar img {
    width: 56px;
    height: 56px;
    border-width: 3px;
  }

  .pro-name {
    font-size: 0.95rem;
  }
  .pro-title {
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
  }
  .pro-location {
    font-size: 0.75rem;
  }

  .pro-description {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    /* Clamp description to 2 lines so card heights stay aligned */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }

  .pro-pricing {
    margin-bottom: 0.85rem;
    gap: 0.3rem;
  }
  .price-label { font-size: 0.75rem; }
  .price-value { font-size: 1.1rem; }

  .pro-stats {
    gap: 0.4rem;
    padding: 0.6rem 0;
    margin-bottom: 0.85rem;
  }
  .stat-value { font-size: 0.9rem; }
  .stat-label { font-size: 0.6rem; }

  /* All three buttons stack full-width */
  .pro-actions {
    gap: 0.5rem;
  }
  .pro-actions-secondary {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .btn-view,
  .btn-contact,
  .btn-book {
    padding: 0.55rem 0.7rem;
    font-size: 0.8rem;
  }

  .cta-title {
    font-size: 2rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Tiny phones: fall back to 1 column to avoid illegible cards */
@media (max-width: 340px) {
  .professionals-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Loading States */
.professional-card.loading {
  pointer-events: none;
  opacity: 0.6;
}

.professional-card.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border: 3px solid var(--gray-300);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.skill-bubble {
  display: inline-block;
  background-color: var(--gray-100);
  color: var(--gray-700);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  transition: var(--transition);
}

.skill-bubble:hover {
  background-color: var(--gray-200);
  color: var(--gray-800);
}
