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

.services-hero {
  padding: 90px 20px 70px;
  background:
    radial-gradient(
      circle at top right,
      rgba(212, 175, 55, 0.12),
      transparent 34%
    ),
    linear-gradient(135deg, #ffffff, #f7f7f7);
}

.services-hero .container {
  position: relative;
}

.services-hero h1 {
  max-width: 820px;
  margin: 12px 0 18px;
  font-size: clamp(2.7rem, 6vw, 4rem);
  line-height: 1.05;
}

.services-hero p {
  max-width: 760px;
  margin: 0;
  color: #555;
  font-size: 18px;
  line-height: 1.7;
}

.directory-filters {
  margin-top: 34px;
}

.directory-search {
  width: 100%;
  max-width: 680px;
  padding: 16px 18px;
  border: 1px solid #dddddd;
  border-radius: 14px;
  background: #ffffff;
  color: #111111;
  font: inherit;
  font-size: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.directory-search::placeholder {
  color: #777777;
}

.directory-search:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.14);
}

.category-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.filter-btn {
  padding: 10px 15px;
  border: 1px solid #dddddd;
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.filter-btn:hover {
  transform: translateY(-2px);
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: #ffffff;
}

.filter-btn:focus-visible {
  outline: 3px solid rgba(212, 175, 55, 0.35);
  outline-offset: 3px;
}

/* =========================
   FEATURED PROFESSIONALS
========================= */

.featured-services {
  padding: 90px 20px;
  background: #ffffff;
}

.featured-services .section-heading-center p {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.featured-professionals-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  margin-top: 42px;
}

.professional-preview-card {
  position: relative;
  padding: 28px 24px;
  overflow: hidden;
  border: 1px solid #ececec;
  border-radius: 20px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.professional-preview-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: var(--gold);
  content: "";
}

.professional-preview-card:hover {
  transform: translateY(-7px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.1);
}

.professional-preview-card img {
  width: 118px;
  height: 118px;
  margin-bottom: 18px;
  border: 4px solid #ffffff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.professional-preview-card h3 {
  margin: 10px 0 8px;
  font-size: 1.2rem;
}

.professional-preview-card p {
  color: #626262;
  line-height: 1.65;
}

.professional-preview-card .location {
  margin-bottom: 12px;
  color: #333333;
  font-size: 0.95rem;
  font-weight: 700;
}

.verified-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--gold);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
}

/* =========================
   WHY PROFESSIONALS
========================= */

.why-professionals {
  padding: 90px 20px;
  background: #f7f7f7;
}

.why-professionals .about-impact-grid {
  margin-top: 42px;
}

.why-professionals .about-impact-grid article {
  border: 1px solid #e7e7e7;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.045);
}

.why-professionals .about-impact-grid h3 {
  color: #1a1a1a;
}

/* =========================
   DIRECTORY
========================= */

#professionalsDirectory {
  padding-top: 90px;
  padding-bottom: 90px;
}

#professionalsDirectory .section-heading-center p {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

#professionalsGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 28px;
  margin-top: 42px;
}

.directory-message {
  grid-column: 1 / -1;
  padding: 46px 24px;
  border: 1px solid #e6e6e6;
  border-radius: 18px;
  background: #f8f8f8;
  text-align: center;
}

.directory-message h3 {
  margin-bottom: 10px;
}

.directory-message p {
  margin: 0;
  color: #666666;
}

.directory-error {
  border-color: #e7b6b6;
  background: #fff5f5;
}

/* =========================
   PROFESSIONAL CTA
========================= */

.professional-cta {
  padding: 90px 20px;
  background:
    linear-gradient(
      135deg,
      rgba(17, 17, 17, 0.97),
      rgba(48, 48, 48, 0.96)
    );
  color: #ffffff;
  text-align: center;
}

.professional-cta h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 3rem);
}

.professional-cta p {
  max-width: 700px;
  margin: 20px auto 34px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  line-height: 1.7;
}

.professional-cta .btn-primary {
  display: inline-flex;
}

/* =========================
   LEGACY SERVICE CARDS
========================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 44px;
}

.service-category-card {
  display: flex;
  min-height: 280px;
  padding: 32px 24px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #ececec;
  border-radius: 20px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.service-category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.service-category-card h3 {
  margin-bottom: 14px;
  font-size: 22px;
}

.service-category-card p {
  margin-bottom: 24px;
  color: #666666;
  line-height: 1.7;
}

.featured-section {
  padding: 80px 20px;
  background: #f3f3f3;
}

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

@media (max-width: 1150px) {
  .featured-professionals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #professionalsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .services-hero {
    padding-top: 72px;
    padding-bottom: 56px;
  }

  .services-hero p {
    font-size: 17px;
  }

  .featured-services,
  .why-professionals,
  #professionalsDirectory,
  .professional-cta {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  #professionalsGrid {
    grid-template-columns: 1fr;
  }

  .professional-directory-card {
    min-height: 270px;
  }

  .professional-card-image {
    flex-basis: 180px;
  }
}

@media (max-width: 620px) {
  .services-hero {
    padding-right: 16px;
    padding-left: 16px;
  }

  .directory-search {
    max-width: none;
  }

  .category-filter-buttons {
    gap: 9px;
  }

  .filter-btn {
    padding: 9px 12px;
    font-size: 0.84rem;
  }

  .featured-professionals-grid {
    grid-template-columns: 1fr;
  }

  .professional-directory-card {
    display: block;
  }

  .professional-card-image {
    width: 100%;
    min-height: 230px;
  }

  .professional-card-image img {
    height: 230px;
  }

  .professional-card-content {
    padding: 22px;
  }

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

@media (max-width: 420px) {
  .services-hero h1 {
    font-size: 2.5rem;
  }

  .professional-preview-card {
    padding: 24px 18px;
  }

  .professional-card-content {
    padding: 20px;
  }
}
.professional-preview-card img {
  display: none;
}