/**
 * Garden Sansar - Services Archive & Single Service Stylesheet
 * Fully responsive, modern, device-friendly, SEO-enhanced
 */

/* ==========================================================================
   Services Archive Page (/services/)
   ========================================================================== */

.services-archive-wrapper {
  background-color: #ffffff;
  min-height: 100vh;
}

.services-header-section {
  padding: 56px 20px 24px;
  text-align: center;
}

.services-main-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0d5c46;
  margin: 0 0 12px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.services-main-subtitle {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #4b5563;
  max-width: 760px;
  margin: 0 auto;
}

.services-grid-section {
  padding: 24px 20px 80px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1240px;
  margin: 0 auto;
}

.service-card-item {
  display: flex;
}

.service-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

.service-card-img-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: transparent;
  flex-shrink: 0;
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.service-card:hover .service-card-img {
  transform: scale(1.08);
}

.service-card-content {
  padding: 20px 22px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-grow: 1;
}

.service-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px;
  line-height: 1.3;
  transition: color 0.2s;
}

.service-card:hover .service-card-title {
  color: #0b5c49;
}

.service-card-desc {
  font-size: 0.885rem;
  line-height: 1.6;
  color: #4b5563;
  margin: 0 0 22px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card-btn-wrap {
  margin-top: auto;
}

.service-card-btn {
  background-color: #0b5c49;
  color: #ffffff;
  padding: 10px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.925rem;
  display: inline-block;
  transition: background-color 0.25s, box-shadow 0.25s, transform 0.25s;
  text-align: center;
  box-shadow: 0 2px 4px rgba(11, 92, 73, 0.2);
}

.service-card:hover .service-card-btn {
  background-color: #084335;
  box-shadow: 0 4px 14px rgba(11, 92, 73, 0.35);
  transform: translateY(-1px);
}

.no-services-found {
  grid-column: 1 / -1;
  text-align: center;
  color: #64748b;
  padding: 48px;
  font-size: 1.1rem;
}

/* ==========================================================================
   Single Service Page (/services/<slug>/)
   ========================================================================== */

.single-service-article {
  background: #ffffff;
}

/* Hero Section */
.single-service-hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  overflow: hidden;
}

.service-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transform: scale(1.02);
}

.service-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: 2;
}

.service-hero-container {
  position: relative;
  z-index: 3;
  max-width: 900px;
  text-align: center;
  padding: 64px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Breadcrumbs */
.service-breadcrumbs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.service-breadcrumbs a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s;
}

.service-breadcrumbs a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.5);
  display: inline-block;
}

.breadcrumb-current {
  color: #ffffff;
  font-weight: 600;
}

.service-hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 18px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.service-hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.92);
  max-width: 840px;
  margin: 0 auto;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

/* Content Body */
.single-service-content-section {
  padding: 64px 20px 48px;
}

.max-w-content {
  max-width: 960px;
  margin: 0 auto;
}

.service-expert-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: #0d5c46;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
  text-align: center;
}

.service-body-copy p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #374151;
  margin-bottom: 22px;
  text-align: center;
}

/* Related Services */
.single-service-related-section {
  padding: 48px 20px 64px;
  background: #f8fafc;
}

.related-section-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0d5c46;
  margin: 0 0 36px;
  letter-spacing: -0.01em;
  text-align: center;
}

.related-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.related-service-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}

.related-service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 20px -3px rgba(0, 0, 0, 0.09);
  border-color: #cbd5e1;
}

.related-img-wrap {
  height: 170px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #f1f5f9;
}

.related-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.related-service-card:hover .related-img-wrap img {
  transform: scale(1.07);
}

.related-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px;
  transition: color 0.2s;
}

.related-service-card:hover .related-card-title {
  color: #0b5c49;
}

.related-card-desc {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #4b5563;
  margin: 0;
}

/* FAQ Accordion */
.single-service-faq-section {
  padding: 64px 20px 80px;
}

.max-w-faq {
  max-width: 860px;
  margin: 0 auto;
}

.faq-section-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: #0d5c46;
  margin: 0 0 36px;
  letter-spacing: -0.01em;
  text-align: center;
}

.service-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-accordion-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-accordion-card.is-active {
  border-color: #0b5c49;
  box-shadow: 0 4px 12px rgba(11, 92, 73, 0.08);
}

.faq-accordion-btn {
  width: 100%;
  padding: 18px 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0b5c49;
  transition: background-color 0.2s;
  font-family: inherit;
}

.faq-accordion-btn:hover {
  background-color: #f9fafb;
}

.faq-chevron-icon {
  color: #64748b;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s;
  flex-shrink: 0;
}

.faq-accordion-card.is-active .faq-chevron-icon {
  transform: rotate(180deg);
  color: #0b5c49;
}

.faq-accordion-drawer {
  border-top: 1px solid #f1f5f9;
  padding: 20px 22px;
  background: #ffffff;
}

.faq-drawer-content p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #4b5563;
  margin: 0;
}

/* Gardener Recruitment Callout Strip */
.gardener-hire-strip {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  padding: 56px 20px;
  background-color: #072b22;
}

.gardener-hire-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
  opacity: 0.4;
}

.gardener-hire-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7, 43, 34, 0.94) 0%, rgba(13, 27, 24, 0.97) 100%);
  z-index: 2;
}

.gardener-hire-container {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.gardener-hire-title {
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.25;
  color: #ffffff;
}

.gardener-hire-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  max-width: 740px;
}

.gardener-hire-btn {
  display: inline-block;
  padding: 12px 28px;
  border: 1.5px solid #14b8a6;
  color: #ffffff;
  text-decoration: none;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}

.gardener-hire-btn:hover {
  background-color: #14b8a6;
  border-color: #14b8a6;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(20, 184, 166, 0.35);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .services-main-title {
    font-size: 2rem;
  }

  .single-service-hero {
    min-height: 420px;
  }

  .service-hero-title {
    font-size: 2.15rem;
  }

  .service-hero-subtitle {
    font-size: 1rem;
  }

  .service-expert-title,
  .related-section-title,
  .faq-section-title {
    font-size: 1.65rem;
  }

  .related-services-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .gardener-hire-container {
    flex-direction: column;
    text-align: center;
  }

  .gardener-hire-title {
    font-size: 1.5rem;
  }

  .gardener-hire-btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 380px;
    margin: 0 auto;
  }

  .service-card-img-wrap {
    height: 210px;
  }

  .service-hero-title {
    font-size: 1.85rem;
  }

  .service-breadcrumbs {
    font-size: 0.8rem;
  }
}

.text-center {
  text-align: center !important;
}

/* Ensure duplicate footer hiring banner is not displayed on services pages */
.page-template-page-services .site-footer .footer-hiring,
.page-services .site-footer .footer-hiring,
.single-gs_service .site-footer .footer-hiring,
.services-archive-wrapper ~ .site-footer .footer-hiring {
  display: none !important;
}

